Construction of rock mass fracture three-dimensional model and intelligent extraction method of characteristic parameters and its application
By collecting rock mass point cloud data and image data, a three-dimensional model of rock mass fissures is constructed, which solves the problem of inaccurate rock mass stability evaluation in the existing technology and achieves efficient and accurate rock mass fissure feature parameter extraction and three-dimensional model generation. , providing support for mine safety.
Patent Information
- Application Number
- CN202210039657.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-14
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2042-01-14
AI Technical Summary
It is difficult to accurately evaluate rock mass stability with existing technology, especially because manual estimation errors are large and image recognition methods ignore the three-dimensional spatial attributes of rock mass, resulting in inaccurate extraction of rock mass fracture characteristic parameters and dangerous underground environmental measurements.
By collecting rock mass point cloud data and image data, using image recognition and three-dimensional visualization technology, a three-dimensional model of rock mass fissures is constructed, the fracture contours and centerline three-dimensional key point coordinates are extracted, a refined three-dimensional model is dynamically generated, and the rock mass fissure characteristics are calculated. parameter.
It achieves the accurate acquisition of rock mass crack characteristic parameters without direct contact with dangerous rock mass, generates a high-precision three-dimensional model, intuitively describes the development of rock mass cracks, makes up for the shortcomings of two-dimensional plane information extraction, and improves the stability of rock mass. Reviews provide efficient and accurate support.
Smart Images

Figure CN114549740B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of mine virtual simulation, and in particular to a method and application for constructing a three-dimensional model of rock mass fractures and intelligently extracting characteristic parameters. Background Art
[0002] Rock mass stability evaluation is an important task, which is of great significance to the safe and efficient production of mines. In the process of mineral resource mining, there are many factors that affect the stability of rock mass, among which joints and fissures are one of the decisive factors for rock mass stability. At present, the parameters of rock mass joints and fissures are mostly obtained through manual estimation and image recognition methods. Due to the irregular shape of rock mass fissures, manual estimation is difficult, the error is large, and the efficiency is low, resulting in inaccurate rock mass stability evaluation. In addition, affected by the underground environment, it is difficult and dangerous to measure the joint and fissure parameters on the spot; the image recognition method extracts the fissure information through two-dimensional plane images, ignoring the three-dimensional spatial properties of the actual rock mass fissures, and it is not easy to accurately extract the characteristic parameters of the curved rock mass fissures.
[0003] Therefore, in order to ensure the safety of workers and accurately evaluate the stability of dangerous rock masses, it is particularly necessary to propose a method for constructing a three-dimensional model of rock fractures and intelligently extracting characteristic parameters. Summary of the invention
[0004] The technical problem to be solved by the present invention is to provide a method for constructing a three-dimensional model of rock fractures and intelligently extracting characteristic parameters, so as to accurately obtain the three-dimensional key point coordinates of the rock fracture contour and the fracture centerline based on the collected rock point cloud data and image information by using image recognition, three-dimensional visualization and other technologies, thereby realizing the construction of a refined dynamic three-dimensional model of rock fractures and accurate and efficient extraction of the characteristic parameters of rock fractures.
[0005] In order to solve the above technical problems, the method for constructing a three-dimensional rock mass fracture model and intelligently extracting characteristic parameters of the present invention comprises the following steps:
[0006] a) The target rock mass monitoring area is subdivided into multiple regular areas and numbered, image information of multiple regular areas and point cloud spatial data of rock mass surface are collected, image data and point cloud information database is established, and the collected information is stored in a standardized manner; when collecting image data of each area, the high-definition digital camera should be parallel to the rock wall as much as possible; a three-dimensional coordinate system is established, and the point cloud data of the rock mass surface is collected by full-circle scanning;
[0007] b) Use Python language to call the toolkit to write the image processing model, use Python language to call the OpenCV library, write the image preprocessing algorithm, and automatically retrieve the stored image for preprocessing by running the image preprocessing algorithm: binarization → noise removal → crack repair → thinning processing;
[0008] c) Using image recognition technology to identify the rock mass fracture contours, and extracting the two-dimensional coordinates of key pixel points of the contours for normalized storage;
[0009] d) Processing point cloud data and obtaining the coordinates of key feature points on the surface opposite to the rock mass point cloud data collection surface;
[0010] e) Obtaining the spatial coordinates of the key pixel points corresponding to the key feature points on the three-dimensional model of the rock mass, and obtaining the three-dimensional coordinates of the key points of the rock mass fracture;
[0011] f) connecting the three-dimensional key point coordinates of the rock mass fracture obtained in step e) in sequence to form a closed curve, dividing the point cloud spatial data into two parts of coordinate data within the rock mass fracture range and outside the rock mass fracture range according to the closed curve, and storing them in a database system respectively;
[0012] g) Retrieve the three-dimensional spatial coordinates of the rock mass cracks and the rock mass cracks outside the range, dynamically modify the three-dimensional model of the rock mass, and generate a three-dimensional refined model of the rock mass cracks;
[0013] h) Based on the three-dimensional key points of rock mass fractures and the point cloud data within the range of rock mass fractures, the parameter information of the rock mass surface is solved, and the parameter information includes the joint fracture area, joint fracture density, joint fracture opening width, joint fracture centerline length and the inclination angle of each straight line segment of the fracture curve.
[0014] Furthermore, the specific steps of rock mass image processing in step b) are:
[0015] b1) Binarization
[0016] The retrieved image is processed into a black and white image by using binarization, with black as the background color;
[0017] b2) Noise Removal
[0018] Based on the set width and length parameters, small noise points caused by rock protrusions and shadows are removed;
[0019] b3) Crack repair
[0020] Fill the small holes contained in the cracks after image processing;
[0021] b4) Thinning
[0022] The fracture contour is gradually refined through line thinning to obtain the center line of the rock fracture.
[0023] Furthermore, in step c), Python is used to call the cv2.findContours() function to detect the images processed by binarization → noise removal → crack repair and binarization → noise removal → crack repair → thinning in step b), extract the two-dimensional coordinates of the key pixel points of the crack contour and crack centerline of each image, output them in the form of a list, and use the cv2.drawContours() function to mark the crack contour and crack centerline according to the key pixel points of all the contours traversed and identified. Among them, the countours parameter of the cv2.findContours() function is set to cv2.RETR_TREE.
[0024] Furthermore, the point cloud data processing in step d) and obtaining the coordinates of key feature points on the surface opposite to the rock mass point cloud data collection surface specifically include:
[0025] d1) Using the Delaunay triangulation algorithm, the collected point cloud data are combined in groups of three according to a rule;
[0026] d2) extracting the index values of the corresponding points of each combination and storing them in the database in sequence;
[0027] d3) Set the rock mass thickness to H, and use H to replace the Y coordinate of the point cloud data as the coordinate of the key feature point on the opposite side of the rock mass point cloud data acquisition surface.
[0028] Furthermore, the step e) of obtaining the three-dimensional coordinates of key points of the rock mass fracture specifically includes:
[0029] e1) Based on the three-dimensional coordinates established by point cloud data collection, the ratio of the image to the actual distance, the key pixel points of the fracture contour extracted are calculated one by one, corresponding to the coordinates of the pseudo three-dimensional key points of the rock fracture in reality. The specific mathematical expression is as follows:
[0030]
[0031] Among them, x j 、z j is the coordinate of the reference point of the jth image; k is the ratio coefficient between the image and the actual distance; x ji 、z ji is the coordinate of the key pixel point i of the crack contour in the jth image;
[0032] The coordinates of the three-dimensional key points of the centerline of rock mass fractures are obtained in the same way as the three-dimensional key points of the rock mass fracture contours. All the key pixel points of the fracture contours and the centerline of the fractures identified in the image are obtained in a cyclic manner, corresponding to the coordinates of the pseudo three-dimensional key points of the rock mass fractures in reality. The Y-axis coordinates of the points obtained here are set according to the thickness of the rock mass, which are different from the coordinates of the three-dimensional key points of the actual rock mass fractures, so they are called pseudo three-dimensional key points of rock mass fractures.
[0033] e2) Using a loop method, the coordinate data of the pseudo three-dimensional key points of the rock mass fracture calculated in step e1) are compared with the point cloud data one by one:
[0034] When the x and z coordinates of the crack pseudo 3D key point are consistent with the x and z coordinates of a point in the point cloud data, the point is regarded as the crack 3D key point, and the 3D coordinates of the point are stored in the database;
[0035] When the x and z coordinates of the pseudo 3D key point of the fracture are inconsistent with the x and z coordinates of any point in the point cloud data, it is necessary to determine the index value of the pseudo 3D key point of the fracture that belongs to the triangle combination opposite to the rock point cloud data acquisition surface, call the point cloud data with the determined index value, calculate the coordinates of the projection point of the pseudo 3D key point of the fracture on the rock surface, use the projection point as the 3D key point of the fracture, and store the spatial coordinates of the projection point in the database.
[0036] Furthermore, the specific steps of determining in step e2) that the pseudo 3D key point of the crack belongs to the index value of the triangle combination opposite to the rock mass point cloud data acquisition surface in step d) are:
[0037] ① Use the for loop to retrieve n (n = 0, 1, ..., m) elements in the point cloud-triangle combination library;
[0038] ② Establish a nested loop, use the three data of the nth element as index values, and retrieve the corresponding point cloud three-dimensional coordinates;
[0039] ③Let the three 3D coordinates retrieved in ② be B 1 (x n1 ,y n1 , z n1 ), B 2 (x n2 ,y n2 , z n2 ) and B 3 (x n3 ,y n3 , z n3 ), C(x, H, z) is the pseudo three-dimensional key point of rock mass fracture, then B 1 B 2 , B 2 B 3 , B 3 B 1 The length calculation formula is as follows:
[0040]
[0041]
[0042]
[0043] B 1 C. B 2 C. B 3 The length of C is calculated as follows:
[0044]
[0045]
[0046]
[0047] The formula for calculating the area of a triangle is as follows:
[0048]
[0049]
[0050] Among them, a, b, and c are the lengths of the three sides of the triangle respectively;
[0051] ④ Use equations (2) to (9) to find △B 1 B 2 B 3 , △CB 2 B 3 , △B 1 CB 3 , △B 1 B 2 The area of C is When , point C is in △B 1 B 2 B 3 Then, the coordinates of the projection point of C on the surface E are calculated, and the projection point is used as the three-dimensional key point of the crack and stored in the three-dimensional key point library of the crack. Otherwise, it enters the next cycle.
[0052] Furthermore, when calculating the coordinates of the projection point of C(x, H, z) on the surface E in step ④, the point cloud data is first retrieved using the index value of the triangle combination on the plane F where C is located; 1 , A 2 , A 3 To retrieve data, use A 1 , A 2 , A 3 Point coordinates to establish equations, find the expression △A 1 A 2 A 3 The equation Ax+By+Cz+D=0; let the coordinates of the projection point of C on the surface E be (x p ,y p , z p ), then x p ,yp 、z p The mathematical expression is as follows:
[0053]
[0054] Furthermore, the specific steps of generating the three-dimensional refined model of rock mass fractures in step g) are as follows:
[0055] g1) respectively call the coordinates of points outside the range of rock mass fissures and the three-dimensional key points of rock mass fissures, and the coordinates of points within the range of rock mass fissures and the three-dimensional key points of rock mass fissures and store them in the list_R and list_S lists; set the y coordinates of all points in the list_R and list_S lists to the rock mass thickness H to form new lists list_R1 and list_S1; use the Delaunay triangulation algorithm to form a combination of three points in the list_R, list_S, list_R1, and list_S1 lists according to the rules, and store the index values of each combined point in the list_R, list_S, list_R1, and list_S1 lists in order in the list_R_I, list_S_I, list_R1_I, and list_S1_I lists;
[0056] g2) Based on the data in list_R, list_S, list_R_I and list_S_I, use the 3D modeling project of three.js to generate a series of triangular prisms seamlessly spliced into a 3D model named Rock;
[0057] g3) Based on the data in list_R1, list_S1, list_R1_I and list_S1_I, a three-dimensional modeling project of three.js is used to generate a series of triangular prisms seamlessly spliced into a crack three-dimensional model named Slip;
[0058] g4) Remove the Slip model and the model where Slip and Rock overlap, and a three-dimensional refined model of rock mass fractures can be generated.
[0059] Furthermore, based on the three-dimensional key points of rock fractures and the point cloud data within the range of rock fractures, parameter information such as the joint fracture density, joint fracture opening width, joint fracture area, joint fracture centerline length and occurrence (strike, dip, inclination) of any rock surface in reality can be calculated.
[0060] In step h), the joint fissure area is formed by superimposing a series of triangular areas, and the calculation formula is as follows:
[0061]
[0062]
[0063] Among them, a i 、b i 、c i To retrieve the side length of the triangle formed by the three points in list_S using the i-th element in list_S_I as the index value, J is the length of list_S_I.
[0064] The mathematical expression of rock surface crack density is as follows:
[0065]
[0066] Where ρ represents the density of cracks on the rock surface; S 岩体 The calculation method of S 裂隙 same.
[0067] The curved arc is straightened and multiple straight lines are used to describe the crack center curve. In order to accurately calculate the length of the crack center line, the three-dimensional key points of the crack center line need to be encrypted using interpolation. Suppose the coordinates of the i-th and i+1-th three-dimensional key points of the crack center line are (x i ,y i , z i )、(x i+1 ,y i+1 , z i+1 ), then the expression of the centerline length L of the rock surface joint fissure is as follows:
[0068]
[0069] Where l is the number of three-dimensional key points on the crack centerline.
[0070] The expression of the opening width W of the rock surface joint fissure is as follows:
[0071]
[0072] The fracture center curve is composed of multiple straight lines, and the inclination expression of each straight line segment is as follows:
[0073]
[0074] Suppose the coordinates of the two end points of a crack are (x l-1 ,y l-1 , z l-1 )、(x 0 ,y 0 , z 0 ), the mathematical expression of the large-scale roughness LP of the joint is as follows:
[0075]
[0076] The present invention also provides an integrated platform for dynamic generation of rock mass fracture three-dimensional model and intelligent extraction of characteristic parameters, including:
[0077] one or more processors; and
[0078] One or more memories storing a computer executable program, when the computer executable program is executed by the processor, the aforementioned rock mass fracture three-dimensional model construction and characteristic parameter intelligent extraction method is executed.
[0079] The present invention also provides a computer-readable storage medium on which computer-executable instructions are stored. When the instructions are executed by a processor, they are used to implement the aforementioned rock mass fracture three-dimensional model construction and characteristic parameter intelligent extraction method.
[0080] The present invention also provides a computer program product or a computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the aforementioned rock mass fracture three-dimensional model construction and characteristic parameter intelligent extraction method.
[0081] The beneficial effects of the present invention are as follows: the method and integrated platform for dynamic generation of three-dimensional rock fracture models and intelligent extraction of characteristic parameters of the present invention can accurately obtain the rock fracture contour and three-dimensional key point coordinates of the center line without directly contacting the dangerous rock mass, based on the collection of rock point cloud data and image information as data support, and efficiently and dynamically generate high-precision three-dimensional rock fracture models, which can intuitively and three-dimensionally describe the development of rock fractures; automatically extract characteristic parameters of curved rock fractures, effectively making up for the defect that image recognition technology can only extract two-dimensional plane rock fracture information, and provide support for accurate and efficient evaluation of the stability of dangerous rock masses. BRIEF DESCRIPTION OF THE DRAWINGS
[0082] The specific implementation of the present invention will be further explained below in conjunction with the accompanying drawings.
[0083] Figure 1 It is a flowchart of the method for dynamically generating a three-dimensional rock mass fracture model and intelligently extracting characteristic parameters of the present invention;
[0084] Figure 2 This is a schematic diagram of the key pixel points of the crack outline;
[0085] Figure 3 It is a schematic diagram of the rock surface;
[0086] Figure 4 This is a schematic diagram of pseudo three-dimensional key points of rock mass fractures;
[0087] Figure 5Schematic diagram for obtaining three-dimensional key points of rock fractures. DETAILED DESCRIPTION
[0088] Combination Figure 1 The method for constructing a three-dimensional rock mass fracture model and intelligently extracting characteristic parameters of this embodiment includes the following steps:
[0089] a) The target rock mass monitoring area is subdivided into multiple regular areas and numbered, image information of multiple regular areas and point cloud spatial data of rock mass surface are collected, image data and point cloud information database is established, and the collected information is stored in a standardized manner; when collecting image data of each area, the high-definition digital camera should be parallel to the rock wall as much as possible; a three-dimensional coordinate system is established, and the point cloud data of the rock mass surface is collected by full-circle scanning;
[0090] b) Use Python language to call the toolkit to write the image processing model, use Python language to call the OpenCV library, write the image preprocessing algorithm, and automatically retrieve the stored image for preprocessing by running the image preprocessing algorithm: binarization → noise removal → crack repair → thinning processing;
[0091] In this embodiment, preferably, the specific steps of rock mass image processing in step b) are:
[0092] b1) Binarization
[0093] The retrieved image is processed into a black and white image by using binarization, with black as the background color;
[0094] b2) Noise Removal
[0095] Based on the set width and length parameters, small noise points caused by rock protrusions and shadows are removed;
[0096] b3) Crack repair
[0097] Fill the small holes contained in the cracks after image processing;
[0098] b4) Thinning
[0099] The fracture contour is gradually refined through line thinning to obtain the center line of the rock fracture.
[0100] c) Using image recognition technology to identify the rock mass fracture contours, and extracting the two-dimensional coordinates of key pixel points of the contours for normalized storage;
[0101] In this embodiment, preferably, step c) uses Python to call the cv2.findContours() function, and the countours parameter of the cv2.findContours() function is set to cv2.RETR_TREE, and the images processed by binarization → noise removal → crack repair and binarization → noise removal → crack repair → thinning in step b) are detected respectively, and the two-dimensional coordinates of the key pixel points of the crack contour and the crack center line of each image are extracted and output in the form of a list, and the cv2.drawContours() function is used to mark the crack contour and the crack center line according to the key pixel points of all the contours traversed and identified, and the key pixel points of the crack contour and the key pixel points of the crack center line are as follows: Figure 2 shown.
[0102] d) Processing point cloud data and obtaining the coordinates of key feature points on the surface opposite to the rock mass point cloud data collection surface;
[0103] In this embodiment, preferably, the point cloud data processing and obtaining the coordinates of key feature points on the surface opposite to the rock mass point cloud data collection surface in step d) specifically include:
[0104] d1) Using the Delaunay triangulation algorithm, the collected point cloud data are combined in groups of three according to a rule;
[0105] d2) extracting the index values of the corresponding points of each combination and storing them in the database in sequence;
[0106] d3) Set the rock mass thickness to H, and use H to replace the Y coordinate of the point cloud data as the coordinate of the key feature point on the opposite side of the rock mass point cloud data acquisition surface.
[0107] like Figure 3 As shown, in this embodiment, A 1 , A 2 ,……,A 12 To collect the spatial points on the rock surface. Using the Delaunay triangulation algorithm, A 1 , A 2 ,……,A 12 Every three are combined, such as (A 1 , A 5 , A 2 )、(A 2 , A 6 , A 3 ),……,(A 7 , A 11 , A 12 ), extract the index value of each combination corresponding point, such as (A 1 , A 5 , A 2 )、(A2 , A 6 , A 3 ),……,(A 7 , A 11 , A 12 ) The index values of the corresponding points are (0, 4, 1), (1, 5, 2), ..., (6, 10, 11), which are stored in the point cloud-triangle combination library in sequence. If the rock mass thickness is set to H, the Y coordinate of the point cloud data can be replaced by H as the three-dimensional key feature point B on plane F. 1 , B 2 ,……,B 12 (The projection point of the point cloud data on surface E on surface F).
[0108] e) Obtaining the spatial coordinates of the key pixel points corresponding to the key feature points on the three-dimensional model of the rock mass, and obtaining the three-dimensional coordinates of the key points of the rock mass fracture;
[0109] like Figure 4 As shown, in this embodiment, the three-dimensional key point coordinates of the rock mass fracture and the center line in step e) are obtained specifically including:
[0110] e1) with O(x j , H, z j ) is the reference point of the jth image, k is the ratio coefficient between the image and the actual distance, x ji 、z ji is the coordinate C of the key pixel point i of the crack contour in the jth image ji , then C ji The corresponding pseudo-three-dimensional key point coordinates of rock mass fractures in reality can be set to (x, y, z), and the specific mathematical expression is as follows:
[0111]
[0112] The coordinates of the three-dimensional key points of the centerline of rock fractures are obtained in the same way as the three-dimensional key points of the rock fracture contours. A loop is used to obtain the key pixel points of all fracture contours and fracture centerlines identified in the image, which correspond to the coordinates of the pseudo three-dimensional key points of rock fractures in reality. The Y-axis coordinates of the points obtained here are set according to the thickness of the rock mass, which are different from the coordinates of the actual three-dimensional key points of rock fractures, so they are called pseudo three-dimensional key points of rock fractures.
[0113] e2) Figure 5 As shown, the pseudo three-dimensional key points C of the rock mass fractures calculated in step e1) are converted one by one in a cyclic manner. 1 , C 2 , …, C n The coordinate data of A 1 , A 2 , …, A m For comparison:
[0114] When the x and z coordinates of the crack pseudo 3D key point are consistent with the x and z coordinates of a point in the point cloud data, the point is regarded as the crack 3D key point, and the 3D coordinates of the point are stored in the database;
[0115] When the x and z coordinates of the crack pseudo 3D key point are inconsistent with the x and z coordinates of any point in the point cloud data, it is necessary to determine that the crack pseudo 3D key point belongs to the index value of the triangle combination on plane F in step d), and use the determined index value to call the point cloud data on surface E to calculate C n The coordinates of the projected points on the surface E are obtained, and the projected points are used as the three-dimensional key points of the cracks. The spatial coordinates of the projected points are stored in the database.
[0116] In this embodiment, preferably, the specific steps of determining in step e2) that the crack pseudo 3D key point belongs to the triangle combined index value on the plane F in step d) are:
[0117] ② Use the for loop to retrieve n (n = 0, 1, ..., m) elements in the point cloud-triangle combination library;
[0118] ② Establish a nested loop, use the three data of the nth element as the index value, and call the corresponding three-dimensional coordinates in the key feature point library of point F. The key feature point on plane F is the projection point of surface E. Therefore, the combined index value of the points on plane F and surface E is the same;
[0119] ③Let the three 3D coordinates retrieved in ② be B 1 (x n1 ,y n1 , z n1 ), B 2 (x n2 ,y n2 , z n2 ) and B 3 (x n3 ,y n3 , z n3 ), C(x, H, z) is the pseudo three-dimensional key point of rock mass fracture, then B 1 B 2 , B 2 B 3 , B 3 B 1 The length calculation formula is as follows:
[0120]
[0121]
[0122]
[0123] B 1C. B 2 C. B 3 The length of C is calculated as follows:
[0124]
[0125]
[0126]
[0127] The formula for calculating the area of a triangle is as follows:
[0128]
[0129]
[0130] Among them, a, b, and c are the lengths of the three sides of the triangle respectively;
[0131] ④ Use equations (2) to (9) to find △B 1 B 2 B 3 , △CB 2 B 3 , △B 1 CB 3 , △B 1 B 2 The area of C is When , point C is in △B 1 B 2 B 3 Then, the coordinates of the projection point of C on the surface E are calculated, and the projection point is used as the three-dimensional key point of the crack and stored in the three-dimensional key point library of the crack. Otherwise, it enters the next cycle.
[0132] In this embodiment, preferably, when calculating the coordinates of the projection point of C(x, H, z) on the curved surface E in step ④, the point cloud data is first retrieved using the index value of the triangle combination on the plane F where C is located; 1 , A 2 , A 3 To retrieve data, use A 1 , A 2 , A 3 Point coordinates to establish equations, find the expression △A 1 A 2 A 3 The equation Ax+By+Cz+D=0; let the coordinates of the projection point of C on the surface E be (x p ,y p , z p ), then x p ,y p 、z p The mathematical expression is as follows:
[0133]
[0134] f) connecting the three-dimensional key point coordinates of the rock mass fracture obtained in step e) in sequence to form a closed curve, dividing the point cloud spatial data into two parts of coordinate data within the rock mass fracture range and outside the rock mass fracture range according to the closed curve, and storing them in a database system respectively;
[0135] g) Retrieve the three-dimensional spatial coordinates of the rock mass cracks and the rock mass cracks outside the range, dynamically modify the three-dimensional model of the rock mass, and generate a three-dimensional refined model of the rock mass cracks;
[0136] In this embodiment, preferably, the specific steps of generating the three-dimensional refined model of rock mass fractures in step g) are:
[0137] g1) respectively call the coordinates of points outside the range of rock mass fissures and the three-dimensional key points of rock mass fissures, and the coordinates of points within the range of rock mass fissures and the three-dimensional key points of rock mass fissures and store them in the list_R and list_S lists; set the y coordinates of all points in the list_R and list_S lists to the rock mass thickness H to form new lists list_R1 and list_S1; use the Delaunay triangulation algorithm to form a combination of three points in the list_R, list_S, list_R1, and list_S1 lists according to the rules, and store the index values of each combined point in the list_R, list_S, list_R1, and list_S1 lists in order in the list_R_I, list_S_I, list_R1_I, and list_S1_I lists;
[0138] g2) Based on the data in list_R, list_S, list_R_I and list_S_I, use the 3D modeling project of three.js to generate a series of triangular prisms seamlessly spliced into a 3D model named Rock;
[0139] g3) Based on the data in list_R1, list_S1, list_R1_I and list_S1_I, a three-dimensional modeling project of three.js is used to generate a series of triangular prisms seamlessly spliced into a crack three-dimensional model named Slip;
[0140] g4) Remove the Slip model and the model where Slip and Rock overlap, and a three-dimensional refined model of rock mass fractures can be generated.
[0141] h) Based on the three-dimensional key points of rock mass fractures and the point cloud data within the range of rock mass fractures, the parameter information of the rock mass surface is solved, and the parameter information includes the joint fracture area, joint fracture density, joint fracture opening width, joint fracture centerline length and the inclination angle of each straight line segment of the fracture curve.
[0142] Preferably, in this embodiment, based on the three-dimensional key points of the rock fractures and the point cloud data within the range of the rock fractures, parameter information such as the joint fracture density, joint fracture opening width, joint fracture area, joint fracture centerline length and occurrence (strike, dip, inclination) of any rock surface in reality can be calculated.
[0143] In this embodiment, the joint fissure area in step h) is formed by superimposing a series of triangular areas, and the calculation formula is as follows:
[0144]
[0145]
[0146] Among them, a i 、b i 、c i To retrieve the side length of the triangle formed by the three points in list_S using the i-th element in list_S_I as the index value, J is the length of list_S_I.
[0147] In this embodiment, the mathematical expression of the rock surface crack density is as follows:
[0148]
[0149] Where ρ represents the density of cracks on the rock surface; S 岩体 The calculation method of S 裂隙 same.
[0150] In this embodiment, the curved arc is straightened and multiple straight lines are used to describe the crack center curve. In order to accurately calculate the length of the crack center line, the three-dimensional key points of the crack center line need to be encrypted by interpolation. Suppose the coordinates of the i-th and i+1-th three-dimensional key points of the crack center line are (x i ,y i , z i )、(x i+1 ,y i+1 , z i+1 ), then the expression of the centerline length L of the rock surface joint fissure is as follows:
[0151]
[0152] Where l is the number of three-dimensional key points on the crack centerline.
[0153] In this embodiment, the expression of the opening width W of the rock surface joint fissure is as follows:
[0154]
[0155] In this embodiment, the crack center curve is composed of multiple straight lines, and the inclination angle of each straight line segment is expressed as follows:
[0156]
[0157] In this embodiment, the coordinates of the two end points of a certain crack are (x l-1 ,y l-1 , z l-1 )、(x 0 ,y 0 , z 0 ), the mathematical expression of the large-scale roughness LP of the joint is as follows:
[0158]
[0159] This embodiment also provides an integrated platform for dynamic generation of rock mass fracture three-dimensional models and intelligent extraction of characteristic parameters, including:
[0160] one or more processors; and
[0161] One or more memories storing a computer executable program, when the computer executable program is executed by the processor, the aforementioned rock mass fracture three-dimensional model construction and characteristic parameter intelligent extraction method is executed.
[0162] This embodiment also provides a computer-readable storage medium on which computer-executable instructions are stored. When the instructions are executed by a processor, they are used to implement the aforementioned rock mass fracture three-dimensional model construction and characteristic parameter intelligent extraction method.
[0163] This embodiment also provides a computer program product or a computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the aforementioned rock mass fracture three-dimensional model construction and characteristic parameter intelligent extraction method.
[0164] The method and integrated platform for dynamic generation of three-dimensional rock fracture models and intelligent extraction of characteristic parameters of the present embodiment can accurately obtain the rock fracture contour and three-dimensional key point coordinates of the center line without directly contacting the dangerous rock mass, based on the collection of rock point cloud data and image information, and efficiently and dynamically generate high-precision three-dimensional rock fracture models, which can intuitively and three-dimensionally describe the development of rock fractures; automatically extract characteristic parameters of curved rock fractures, effectively making up for the defect that image recognition technology can only extract two-dimensional plane rock fracture information, and provide support for accurate and efficient evaluation of the stability of dangerous rock masses.
[0165] Many specific details are described in the above description to facilitate a full understanding of the present invention. However, the above description is only a preferred embodiment of the present invention. The present invention can be implemented in many other ways different from those described herein, so the present invention is not limited to the specific implementation disclosed above. At the same time, any person familiar with the art can make many possible changes and modifications to the technical solution of the present invention using the methods and technical contents disclosed above without departing from the scope of the technical solution of the present invention, or modify it into an equivalent embodiment of equivalent changes. Any simple modification, equivalent change and modification made to the above embodiments according to the technical essence of the present invention without departing from the content of the technical solution of the present invention still falls within the scope of protection of the technical solution of the present invention.
Claims
1. A method for constructing a three-dimensional model of rock mass fractures and intelligently extracting characteristic parameters, characterized in that: The steps include: a) Subdivide the target rock mass monitoring area into multiple regular areas and number them, collect image information of multiple regular areas and point cloud spatial data of rock mass surface, establish image data and point cloud information database, and store the collected information in a standardized manner; b) Use Python language to call the toolkit to write an image processing model and automatically retrieve the stored images for preprocessing: binarization → noise removal → crack repair → thinning; c) Using image recognition technology to identify the rock mass fracture contours, and extracting the two-dimensional coordinates of key pixel points of the contours for normalized storage; d) Processing point cloud data and obtaining the coordinates of key feature points on the surface opposite to the rock mass point cloud data collection surface; e) Obtaining the spatial coordinates of the key pixel points corresponding to the key feature points on the three-dimensional model of the rock mass, and obtaining the three-dimensional coordinates of the key points of the rock mass fracture; f) connecting the three-dimensional key point coordinates of the rock mass fracture obtained in step e) in sequence to form a closed curve, dividing the point cloud spatial data into two parts of coordinate data within the rock mass fracture range and outside the rock mass fracture range according to the closed curve, and storing them in a database system respectively; g) Retrieve the three-dimensional spatial coordinates of the rock mass cracks and the rock mass cracks outside the range, dynamically modify the three-dimensional model of the rock mass, and generate a three-dimensional refined model of the rock mass cracks; h) Calculate the parameter information of the rock surface based on the three-dimensional key points of the rock mass fracture and the point cloud data within the range of the rock mass fracture, including the joint fracture area, joint fracture density, joint fracture opening width, joint fracture centerline length and the inclination angle of each straight line segment of the fracture curve; The point cloud data processing in step d) and obtaining the coordinates of key feature points on the surface opposite to the rock mass point cloud data collection surface specifically include: d1) Using the Delaunay triangulation algorithm, the collected point cloud data are combined in groups of three according to a rule; d2) extracting the index values of the corresponding points of each combination and storing them in the database in sequence; d3) Set the rock mass thickness to H, and use H to replace the Y coordinate of the point cloud data as the coordinate of the key feature point on the opposite side of the rock mass point cloud data acquisition surface; The step e) of obtaining the three-dimensional key point coordinates of the rock mass fracture specifically includes: e1) Based on the three-dimensional coordinates established by point cloud data collection, the ratio of the image to the actual distance, the key pixel points of the fracture contour extracted are calculated one by one, corresponding to the coordinates of the pseudo three-dimensional key points of the rock fracture in reality. The specific mathematical expression is as follows: Where H is the thickness of the rock mass, x j 、z j is the coordinate of the reference point of the jth image; k is the ratio coefficient between the image and the actual distance; x ji 、z ji is the coordinate of the key pixel point i of the crack contour in the jth image; e2) Using a loop method, the coordinate data of the pseudo three-dimensional key points of the rock mass fracture calculated in step e1) are compared with the point cloud data one by one: When the x and z coordinates of the crack pseudo 3D key point are consistent with the x and z coordinates of a point in the point cloud data, the point is regarded as the crack 3D key point, and the 3D coordinates of the point are stored in the database; When the x and z coordinates of the pseudo 3D key point of the fracture are inconsistent with the x and z coordinates of any point in the point cloud data, it is necessary to determine the index value of the pseudo 3D key point of the fracture that belongs to the triangle combination opposite to the rock point cloud data acquisition surface, call the point cloud data with the determined index value, calculate the coordinates of the projection point of the pseudo 3D key point of the fracture on the rock surface, use the projection point as the 3D key point of the fracture, and store the spatial coordinates of the projection point in the database.
2. The method for constructing a three-dimensional model of rock mass fractures and intelligently extracting characteristic parameters according to claim 1 is characterized in that: The specific steps of rock mass image processing in step b) are: b1) Binarization The retrieved image is processed into a black and white image by using binarization, with black as the background color; b2) Noise Removal Based on the set width and length parameters, small noise points caused by rock protrusions and shadows are removed; b3) Crack repair Fill the small holes contained in the cracks after image processing; b4) Thinning The fracture contour is gradually refined through line thinning to obtain the center line of the rock fracture.
3. The method for constructing a three-dimensional model of rock mass fractures and intelligently extracting characteristic parameters according to claim 1 is characterized in that: The step c) uses Python to call the cv2.findContours() function to respectively detect the images processed by binarization → noise removal → crack repair and binarization → noise removal → crack repair → thinning in step b), extract the two-dimensional coordinates of the key pixel points of the crack contour and the crack center line of each image, and mark the crack contour and the crack center line of all the contours traversed and identified according to the key pixel points.
4. The method for constructing a three-dimensional model of rock mass fractures and intelligently extracting characteristic parameters according to claim 1 is characterized in that: The specific steps of determining in step e2) that the fissure pseudo 3D key point belongs to the index value of the triangle combination opposite to the rock mass point cloud data acquisition surface in step d) are: ① Use the for loop to retrieve n elements in the point cloud-triangle combination library, n = 0, 1, ..., m; ② Establish a nested loop, use the three data of the nth element as index values, and retrieve the corresponding point cloud 3D coordinates; ③ Let the three 3D coordinates retrieved in ② be B1(x n1 ,y n1 , z n1 )、B2(x n2 ,y n2 , z n2 ) and B3(x n3 ,y n3 , z n3 ), C(x, H, z) is the pseudo three-dimensional key point of rock mass fracture, and the length calculation formula of B1B2, B2B3, and B3B1 is as follows: The length calculation formula of B1C, B2C and B3C is as follows: The formula for calculating the area of a triangle is as follows: Among them, a, b, and c are the lengths of the three sides of the triangle respectively; ④ Use equations (2) to (9) to find the areas of △B1B2B3, △CB2B3, △B1CB3, and △B1B2C. △B1B2B3 =S △CB2B3 +S △B1CB3 +S △B1B2C When , point C is within △B1B2B3, and then the coordinates of the projection point of C on the surface E are calculated, and the projection point is used as the three-dimensional key point of the crack and stored in the three-dimensional key point library of the crack, otherwise it enters the next cycle.
5. The method for constructing a three-dimensional model of rock mass fractures and intelligently extracting characteristic parameters according to claim 4 is characterized in that: When calculating the coordinates of the projection point of C (x, H, z) on the surface E in step ④, first use the index value of the triangle combination on the plane F where C is located to retrieve the point cloud data; if A1, A2, and A3 are retrieved data, then use the coordinates of points A1, A2, and A3 to establish an equation group and obtain the equation Ax+By+Cz+D=0 expressing △A1A2A3; let the coordinates of the projection point of C on the surface E be (x p ,y p , z p ), then x p ,y p 、z p The mathematical expression is as follows:
6. The method for constructing a three-dimensional rock mass fracture model and intelligently extracting characteristic parameters according to claim 1, characterized in that: The specific steps for generating the three-dimensional refined model of rock mass fractures in step g) are as follows: g1) respectively call the coordinates of points outside the range of rock mass fissures and the three-dimensional key points of rock mass fissures, and the coordinates of points within the range of rock mass fissures and the three-dimensional key points of rock mass fissures and store them in the list_R and list_S lists; set the y coordinates of all points in the list_R and list_S lists to the rock mass thickness H to form new lists list_R1 and list_S1; use the Delaunay triangulation algorithm to form a combination of three points in the list_R, list_S, list_R1, and list_S1 lists according to the rules, and store the index values of each combined point in the list_R, list_S, list_R1, and list_S1 lists in order in the list_R_I, list_S_I, list_R1_I, and list_S1_I lists; g2) Based on the data in list_R, list_S, list_R_I and list_S_I, use the 3D modeling project of three.js to generate a series of triangular prisms seamlessly spliced into a 3D model named Rock; g3) Based on the data in list_R1, list_S1, list_R1_I and list_S1_I, a series of triangular prisms are seamlessly spliced into a crack 3D model named Slip using the 3D modeling project of three.js; g4) Remove the Slip model and the model where Slip and Rock overlap, and a three-dimensional refined model of rock mass fractures can be generated.
7. The method for constructing a three-dimensional rock mass fracture model and intelligently extracting characteristic parameters according to claim 1, characterized in that: In step h), the joint fissure area is formed by superimposing a series of triangular areas, and the calculation formula is as follows: Among them, a i , b i 、c i To retrieve the side length of the triangle formed by the three points in list_S using the i-th element in list_S_I as the index value, J is the length of list_S_I.
8. An integrated platform for dynamic generation of rock mass fracture three-dimensional models and intelligent extraction of characteristic parameters, characterized by: include: one or more processors; as well as One or more memories, wherein a computer executable program is stored, and when the computer executable program is executed by the processor, the method according to any one of claims 1 to 7 is performed.
