A dam body crack detection method and system based on fusion of vision and point cloud
By using a method that combines vision and point cloud analysis, and employing an improved DRINet and a fixed reference ring, we can detect cracks in dam bodies. This solves the problem of crack detection accuracy in complex dam surface environments and achieves efficient 3D positioning and reliable detection results.
Patent Information
- Application Number
- CN202611329643.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-31
- Publication Date
- 2026-11-24
AI Technical Summary
Existing technologies are insufficient to accurately detect the authenticity and spatial continuity of cracks in dams under complex dam surface conditions, and are easily affected by changes in lighting and surface texture. Two-dimensional images are also difficult to fully reflect the spatial morphology of cracks.
By employing a vision-point cloud fusion approach, computer vision, 3D point cloud processing, and deep learning techniques, a crack topological cutting zone is constructed. An improved DRINet is used to characterize the crack's bi-bank separation state and geometric complementarity. A fixed reference ring is used to verify the crack's geometric changes through minimum perturbation closure recovery, and a 3D structural back projection is used for further verification.
It achieves strong resistance to interference from dam surface texture, low false crack detection rate, accurate three-dimensional positioning, and reliable detection results for dam crack detection.
Smart Images

Figure CN123160482A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computer vision technology, and in particular to a method and system for detecting cracks in dam bodies based on the fusion of vision and point clouds. Background Technology
[0002] Hydraulic structures such as dams and dikes are subjected to long-term water pressure, temperature changes, material shrinkage, foundation deformation, and environmental erosion. Cracks of varying shapes and sizes easily develop on the dam surface, and the continuous propagation of these cracks can affect the structural integrity and operational safety of the dam. Existing methods for detecting dam cracks mainly include manual inspection, contact measurement, and image-based automatic detection. Manual inspection and contact measurement are limited by the inspection range, operating conditions, and personnel experience, making it difficult to achieve large-scale, high-frequency detection. Image-based detection methods can identify crack areas using edge, texture, or grayscale features, but are easily affected by changes in lighting, surface stains, shadows, and dam surface texture. Furthermore, two-dimensional images cannot fully reflect the spatial morphology of cracks on the dam surface.
[0003] With the development of 3D laser scanning, computer vision, and point cloud processing technologies, existing techniques have begun to combine dam surface images with 3D point clouds. By establishing calibration relationships, image information is correlated with spatial coordinates, and methods such as image segmentation, edge extraction, point cloud neighborhood analysis, and 3D reconstruction are used to obtain the location, width, or spatial contour of cracks. While these methods can address the lack of depth information in single images, actual dam surface point clouds suffer from uneven sampling density, local noise, and surface undulations. Furthermore, there may be discrepancies between image crack features and point cloud geometric anomalies. Existing methods typically focus on the direct identification of crack appearance or local geometric features, and the assessment of the authenticity and spatial continuity of cracks under complex dam surface conditions remains susceptible to interference.
[0004] Therefore, how to provide a method and system for detecting cracks in dam bodies based on the fusion of vision and point cloud is a problem that urgently needs to be solved by those skilled in the art. Summary of the Invention
[0005] One objective of this invention is to propose a method and system for detecting cracks in dam bodies based on the fusion of vision and point cloud. This invention fully utilizes computer vision, 3D point cloud processing, and deep learning technologies to map the central axis and double edges of cracks in dam surface images to 3D point clouds, constructing crack topological cutting zones. Furthermore, it uses an improved DRINet to characterize the crack's separation state on both banks, geometric complementary relationships, and topological phase transition paths. A normal dam surface is further established using a fixed reference ring, and the geometric changes before and after crack closure are verified through minimum disturbance closure recovery. The authenticity of the cracks is then verified by combining the 3D structural back-projection results. This achieves continuous detection of dam body cracks from 2D visual recognition, 3D topological modeling, closure recovery verification to final spatial positioning. It possesses advantages such as strong resistance to dam surface texture interference, low false detection rate, accurate 3D positioning, and reliable detection results.
[0006] A method for detecting cracks in dam bodies based on vision and point cloud fusion according to an embodiment of the present invention includes: Collect images of the dam surface, 3D point cloud and calibration data and perform preprocessing to obtain standard visual point cloud associated data; Based on standard visual point cloud association data, the crack central axis and double edges are extracted and mapped to the point cloud to construct crack topology cutting zone and obtain three-dimensional crack candidate structure. Based on the three-dimensional crack candidate structure, the cross-crack adjacent parts are cut off, and the cut voxels are divided into left bank elements, right bank elements and interface nodes to obtain crack cutting voxels and interface chains. Based on the crack cutting voxel and interface chain input, the improved DRINet includes a crack topology state construction layer, a double-bank ordered complementary layer, a topology phase transition path layer and an observation state output layer to obtain the observation state characterization. A fixed reference loop is constructed based on the outer dam surface points of the interface chain and extended to both banks. The target closed trajectory is determined based on the extension results. The minimum disturbance closed field is obtained and the closed state characterization is obtained. A normal dam surface benchmark is established based on a fixed reference ring. The geometric residuals of the observed state characterization and the closed state characterization are compared to obtain the closed recovery gain chain and the closed verification crack segment is selected. Based on the inverse recovery of the closed verification crack segment using the minimum disturbance closed field and back projection, the three-dimensional cracks in the dam body are determined according to the correspondence between the recovery results and the crack centerline, double edges and observation state characterization, and the crack detection results are obtained.
[0007] Optionally, the dam surface image specifically includes visible light image data of the dam surface and image acquisition timestamp; the three-dimensional point cloud specifically includes three-dimensional point coordinates of the dam surface and point cloud acquisition timestamp; and the calibration data specifically includes camera intrinsic parameters, camera distortion parameters, laser scanning equipment calibration parameters, coordinate transformation parameters between the camera and the laser scanning equipment, and pose data of the acquisition equipment.
[0008] Optionally, the obtained standard visual point cloud association data includes Read the calibration data, perform distortion correction on the visible light image data of the dam surface based on the camera intrinsic parameters and camera distortion parameters, and normalize the pixel values in the corrected visible light image of the dam surface to obtain a standard dam surface image. Outliers were removed from the three-dimensional point coordinates on the dam surface, and the remaining three-dimensional point coordinates on the dam surface were transformed based on the calibration parameters of the laser scanning equipment and the pose data of the acquisition equipment to obtain a standard dam surface point cloud. Time matching is performed based on image acquisition timestamps and point cloud acquisition timestamps. Then, based on the coordinate transformation parameters between the camera and the laser scanning device and the camera intrinsic parameters, the point cloud of the standard dam surface is projected onto the image of the standard dam surface. The correspondence between image pixels and three-dimensional points is established to obtain the standard visual point cloud association data.
[0009] Optionally, obtaining the three-dimensional crack candidate structure includes: Based on standard visual point cloud association data, visible light image data of the dam surface is read, gray level difference between adjacent pixels is calculated and pixels with continuous gray level abrupt changes are selected. Adjacent gray level abrupt change pixels are connected to form crack candidate regions. Contour tracking is performed on the two sides of the crack candidate regions to obtain the crack double edges. The skeleton of the candidate crack region is refined. The two edges of the crack are read position by position along the crack extension direction. The midpoints between the two edges of the crack are connected in sequence. The skeleton offset is corrected according to the midpoint position to obtain the crack central axis. Based on the spatial correlation between the visible light image pixels on the dam surface and the three-dimensional point coordinates on the dam surface, the crack central axis and the crack double edges are mapped to the three-dimensional point cloud. The three-dimensional crack double edges on both sides of the three-dimensional crack central axis are connected to form a crack topological cutting zone. The crack topological cutting zone and the three-dimensional point coordinates of the dam surface within the crack topological cutting zone are combined to form a three-dimensional crack candidate structure.
[0010] Optionally, obtaining the crack-cutting voxel and interface chain includes: Based on the three-dimensional crack candidate structure, read the topological cutting zone of the crack and the coordinates of three-dimensional points on the dam surface, establish the adjacency relationship between three-dimensional points on the dam surface, filter the adjacent point pairs whose lines pass through the crack topological cutting zone and cut the adjacency, and obtain the cut adjacent point set. Based on the set of adjacent points of the cut, the three-dimensional point cloud is divided into voxels. The voxels through which the crack topological cutting zone passes are determined as the cut voxels. The left bank unit and the right bank unit are established according to the position of the three-dimensional points on the dam surface on both sides of the three-dimensional crack central axis. An interface node is established between the left bank unit and the right bank unit to obtain the crack cutting voxels. The interface nodes are arranged according to the extension sequence of the crack cutting voxel along the central axis of the three-dimensional crack, and the adjacent interface nodes are connected to form an interface chain, thus obtaining the crack cutting voxel and the interface chain.
[0011] Optionally, obtaining the observed state characterization includes: An improved DRINet is constructed, which includes a crack topology state construction layer, a two-bank ordered complementarity layer, a topology phase transition path layer, and an observation state output layer. The crack topology state construction layer is based on crack cutting voxels and interface chains. Iterative aggregation between three-dimensional points and voxels on the dam surface in the left bank unit and the right bank unit is performed respectively. Adjacent connections across cracks are kept broken. Separate topological connections between the left bank unit, interface nodes and the right bank unit are established according to the interface chain sequence to obtain the separated topology state sequence. The ordered complementary layer of the two banks is based on the separated topological state sequence. The transverse interval, normal height difference, dam surface normal difference and local curvature difference of the three-dimensional points on the surface of the dam on both sides of the interface node are calculated. The geometric state of the two banks is extended laterally along the crack. Candidate pairings are established according to the longitudinal order of the interface chain. Candidate pairings that change the order of the left and right banks, cross the reconnection edge of the banks and exceed the range of the two edges of the crack are deleted to obtain the ordered non-crossing complementary sequence of the two banks. The topological phase transition path layer is based on an ordered non-crossing double-bank complementary sequence. It establishes a restricted transfer edge from the left bank unit to the right bank unit through the interface node, and transforms the interface node from a separated state to a paired state. For the paired state that satisfies the position, normal and curvature continuation conditions, candidate cross-bank reconnection edges are established and transformed into closed candidate states. The topological phase transition path is formed by extending along the interface chain. The topological closure cost is calculated based on the spatial displacement, geometric change and adjacency change, and the continuous state transition path with the minimum cumulative topological closure cost is obtained. The observation state output layer is based on a continuous state transition path. It records the separation state, complementary state, pairing state, closure candidate state and topological closure cost of the interface nodes in the order of the interface chain to form the crack topological observation trajectory and obtain the observation state characterization. The improved DRINet was trained using a weighted sum of topology state reconstruction error, bilateral complementarity error, and topology phase transition path continuity error as the optimization objective. The parameters of the crack topology state construction layer, bilateral ordered complementarity layer, topology phase transition path layer, and observation state output layer were continuously optimized. When the total loss change rate of 20 consecutive training rounds did not exceed 0.001, the improved DRINet was considered to have converged.
[0012] Optionally, the step of finding the minimum perturbation closed field and obtaining the closed state characterization includes: Based on the interface chain, the coordinates of three-dimensional points on the dam surface outside the crack topological cutting zone are extracted. The points on the dam surface are continuously connected along the outer edge of the interface chain to form a fixed reference ring, and the spatial position of the fixed reference ring remains unchanged. Based on the fixed reference ring, the dam surface position, normal and curvature are read, and the extension is carried out to the left bank unit and the right bank unit respectively. The convergence position of the extension results of the two banks is determined according to the conditions of position continuity, normal continuity and curvature continuity, and the target closed trajectory is obtained. Based on the target closed trajectory, with the left bank unit and the right bank unit closing to the target closed trajectory as constraints, while keeping the arrangement order of interface nodes along the crack central axis unchanged, the left bank unit and the right bank unit are restricted to move only along the local plane formed by the crack transverse direction and the dam surface normal direction. The closed displacement result with the minimum cumulative displacement is selected to obtain the minimum disturbance closed field, and the closed state characterization is obtained based on the geometric state of the two banks after closure.
[0013] Optionally, the screening and verification of crack segments includes: Based on fitting a normal dam surface benchmark with a fixed reference ring, the normal position residual, normal direction residual, and curvature residual of the observed state characterization and the closed state characterization relative to the normal dam surface benchmark are calculated according to the interface nodes, so as to obtain the observed geometric residual sequence and the closed geometric residual sequence. Based on the observation geometric residual sequence and the closed geometric residual sequence, the residual reduction of each interface node from the observation state to the closed state is calculated in the order of the interface chain. Combined with the reduction of the lateral interval and the normal height difference, a closed recovery gain chain is formed. Based on the closed recovery gain chain, continuous interface chain segments are selected where the normal position residual, normal direction residual, and curvature residual decrease synchronously from the observed state to the closed state, the amount of residual reduction is continuously positive along the interface chain, and the lateral interval, normal height difference, normal direction difference, and curvature difference all approach the normal dam surface reference. These segments are then used to obtain the closed verification crack segments.
[0014] Optionally, obtaining the crack detection results includes: Based on the minimum disturbance closed field, reverse displacement is performed on the closed verification crack segment to restore the observation positions of the left bank unit, right bank unit and interface node, and the reverse restored crack structure is obtained; Based on the coordinate transformation parameters between the camera and the laser scanning device and the camera intrinsic parameters, the inversely restored crack structure is back-projected onto the visible light image of the dam surface to obtain the crack restored projection, and the pixel position difference between the crack restored projection and the crack central axis and double edges is calculated. Based on the reverse recovery of crack structure, the geometric difference between the geometric state of the two banks and the observed state is calculated. Closed verification crack segments that simultaneously satisfy the original crack observation state are selected, the three-dimensional cracks of the dam body are determined, and the crack detection results are obtained.
[0015] A dam crack detection system based on vision and point cloud fusion according to an embodiment of the present invention includes the following modules: The data preprocessing module is used to collect images of the dam surface, 3D point clouds and calibration data and perform preprocessing to obtain standard visual point cloud associated data; The crack candidate construction module is used to extract the crack central axis and double edges and map them to the point cloud to construct the crack topology cutting zone and obtain the three-dimensional crack candidate structure. The topology cutting module is used to cut off cross-crack adjacencies, dividing the cut voxels into left bank elements, right bank elements and interface nodes, to obtain crack cutting voxels and interface chains. The observation state generation module is used to obtain the observation state characterization based on crack cutting voxels and interface chains by improving DRINet. The closed state generation module is used to construct a fixed reference loop and extend it to both banks, determine the target closed trajectory, obtain the minimum perturbation closed field, and obtain the closed state characterization. The closure verification module is used to establish a normal dam surface benchmark, compare the geometric residuals of the observed state characterization and the closure state characterization, obtain the closure recovery gain chain, and screen the closure verification crack segments. The crack detection module is used to reverse-engineer and verify the closed crack segment and back-project it to determine the three-dimensional cracks in the dam body and obtain the crack detection results.
[0016] The beneficial effects of this invention are: This invention spatially correlates visible light images of the dam surface with three-dimensional point clouds, maps the crack central axis and double edges extracted from the image to the three-dimensional point cloud, and uses crack topological cutting zones to cut off the adjacency relationship across cracks, dividing the dam surface on both sides of the crack into left bank units, right bank units and interface nodes. This enables the two-dimensional crack appearance information to be transformed into three-dimensional crack candidate structures with spatial location and topological relationship, reducing misidentification caused by simply relying on grayscale, texture or local point cloud anomalies, and improving the accuracy of crack spatial structure representation in complex dam surface environments.
[0017] This invention utilizes an improved DRINet to jointly characterize the voxel features, interface connectivity, geometrical complementarity, and topological phase transition path of cracks on both banks. A normal dam surface benchmark is established, and constrained minimum disturbance closure recovery is performed on the cracked banks. Changes in normal position, normal direction, curvature, lateral spacing, and normal height difference before and after closure are used to verify whether the crack possesses recoverable structural fracture characteristics, thereby eliminating interference from pseudo-cracks caused by dam surface textures, stains, shadows, and local undulations. Furthermore, the 3D crack structure after closure verification is inversely recovered and back-projected onto a visible light image of the dam surface, achieving joint verification of 2D visual results, 3D geometric structure, and closure recovery results. Ultimately, the central axis, double edges, and start and end positions of the 3D crack in the dam body are obtained, improving the realism, spatial positioning accuracy, and reliability of crack detection results. Attached Figure Description
[0018] The accompanying drawings are provided to further illustrate the invention and form part of the specification. They are used in conjunction with embodiments of the invention to explain the invention and do not constitute a limitation thereof. In the drawings: Figure 1 This is a flowchart of a dam crack detection method based on vision and point cloud fusion proposed in this invention; Figure 2 This is a schematic diagram of the structure of an improved DRINet for dam crack detection based on vision and point cloud fusion proposed in this invention. Figure 3 This is a schematic diagram of the structure of a dam crack detection system based on vision and point cloud fusion proposed in this invention. Detailed Implementation
[0019] The present invention will now be described in further detail with reference to the accompanying drawings. These drawings are simplified schematic diagrams, illustrating only the basic structure of the invention, and therefore only show the components relevant to the invention.
[0020] refer to Figure 1 and Figure 2 A method for detecting cracks in dam bodies based on the fusion of vision and point cloud data, comprising: Collect images of the dam surface, 3D point cloud and calibration data and perform preprocessing to obtain standard visual point cloud associated data; Based on standard visual point cloud association data, the crack central axis and double edges are extracted and mapped to the point cloud to construct crack topology cutting zone and obtain three-dimensional crack candidate structure. Based on the three-dimensional crack candidate structure, the cross-crack adjacent parts are cut off, and the cut voxels are divided into left bank elements, right bank elements and interface nodes to obtain crack cutting voxels and interface chains. Based on the crack cutting voxel and interface chain input, the improved DRINet includes a crack topology state construction layer, a double-bank ordered complementary layer, a topology phase transition path layer and an observation state output layer to obtain the observation state characterization. A fixed reference loop is constructed based on the outer dam surface points of the interface chain and extended to both banks. The target closed trajectory is determined based on the extension results. The minimum disturbance closed field is obtained and the closed state characterization is obtained. A normal dam surface benchmark is established based on a fixed reference ring. The geometric residuals of the observed state characterization and the closed state characterization are compared to obtain the closed recovery gain chain and the closed verification crack segment is selected. Based on the inverse recovery of the closed verification crack segment using the minimum disturbance closed field and back projection, the three-dimensional cracks in the dam body are determined according to the correspondence between the recovery results and the crack centerline, double edges and observation state characterization, and the crack detection results are obtained.
[0021] In this embodiment, the dam surface image specifically includes visible light image data of the dam surface and image acquisition timestamp; the three-dimensional point cloud specifically includes three-dimensional point coordinates of the dam surface and point cloud acquisition timestamp; and the calibration data specifically includes camera intrinsic parameters, camera distortion parameters, laser scanning equipment calibration parameters, coordinate transformation parameters between the camera and the laser scanning equipment, and pose data of the acquisition equipment.
[0022] In this embodiment, obtaining standard visual point cloud association data includes The calibration data is read, and distortion correction is performed on the visible light image data of the dam surface based on the camera intrinsic parameters and camera distortion parameters. The pixel values in the corrected visible light image of the dam surface are then normalized to obtain a standard dam surface image, where: The distortion correction process is performed as follows: Read the horizontal focal length, vertical focal length, and coordinates of two principal points. Subtract the corresponding principal point coordinates from the horizontal and vertical coordinates of each pixel, then divide by the corresponding focal length to obtain two normalized imaging coordinates. Square the two normalized imaging coordinates and sum them to obtain the normalized distance squared. Multiply the normalized distance squared, its squared squared, and its cubed squared by three radial distortion coefficients, then sum them to obtain the radial correction. Multiply the normalized distance squared, its squared squared, and its cubed squared by the three radial distortion coefficients and sum them to form the radial correction. Multiply the horizontal normalized imaging coordinates, vertical normalized imaging coordinates, and two tangential distortion coefficients according to the horizontal and vertical components of the camera's tangential distortion parameters and sum them to obtain the horizontal tangential correction and the vertical tangential correction. Subtract the radial correction and the corresponding tangential correction from the two normalized imaging coordinates, then multiply by the corresponding focal length and add the corresponding principal point coordinates to obtain the corrected pixel coordinates, where: Radial distortion coefficients refer to three parameters obtained from camera calibration that represent the degree of radial offset of pixels along the imaging center, while tangential distortion coefficients refer to two parameters obtained from camera calibration that represent the degree of tangential offset caused by the positional deviation between the lens and the imaging plane. A standard dam surface image was obtained, specifically: Divide the distortion-corrected red, green and blue channel pixel values by 255 respectively, keeping the corrected pixel position and image acquisition timestamp unchanged, to obtain a standard dam surface image; Outlier points were removed from the 3D point coordinates of the dam surface. Based on the calibration parameters of the laser scanning equipment and the pose data of the acquisition equipment, the remaining 3D point coordinates of the dam surface were transformed to obtain a standard dam surface point cloud, where: Outlier removal is performed on the three-dimensional point coordinates of the dam surface, specifically as follows: Taking the coordinates of each 3D point on the dam surface as the center, calculate the coordinate differences between the center point and the coordinates of the other 3D points on the dam surface in three coordinate directions. Square the three coordinate differences, add them together, and take the square root to obtain the 3D Euclidean distance. Select the 20 closest 3D point coordinates on the dam surface according to the 3D Euclidean distance from smallest to largest. Add the 20 3D Euclidean distances together and divide by 20 to obtain the average neighborhood distance. Add the average neighborhood distances of all 3D point coordinates on the dam surface and divide by the number of 3D points on the dam surface to obtain the mean of the average neighborhood distance. Calculate the standard deviation of all average neighborhood distances relative to the mean of the average neighborhood distance. Add the mean of the average neighborhood distance to twice the standard deviation as the outlier distance threshold. Delete the 3D point coordinates of the dam surface whose average neighborhood distance is greater than the outlier distance threshold, and retain the remaining 3D point coordinates on the dam surface. The point cloud obtained from the standard dam surface is as follows: Read the rotation and translation parameters from the calibration parameters of the laser scanning equipment. Multiply and sum the values of the three coordinate directions in the rotation parameters for each retained 3D point coordinate on the dam surface. Then add the translation amount in the three coordinate directions to obtain the 3D point coordinates of the dam surface in the calibration coordinate system. Read the roll angle, pitch angle, yaw angle and spatial position in the three coordinate directions from the pose data of the acquisition equipment according to the point cloud acquisition timestamp. Rotate the 3D point coordinates of the dam surface in the calibration coordinate system according to the roll angle, pitch angle and yaw angle in sequence. Then add the spatial position of the acquisition equipment in the three coordinate directions to obtain the 3D point coordinates of the dam surface in the fixed coordinate system. Combine the 3D point coordinates of the dam surface in the fixed coordinate system and the point cloud acquisition timestamp to form a standard dam surface point cloud. Time matching is performed based on image acquisition timestamps and point cloud acquisition timestamps. Then, based on coordinate transformation parameters between the camera and laser scanning equipment and camera intrinsic parameters, the standard dam surface point cloud is projected onto the standard dam surface image. This establishes the correspondence between image pixels and 3D points, resulting in standard visual point cloud association data, where: The time matching process is as follows: The absolute values of the differences between the timestamp of one image acquisition and the timestamps of each point cloud acquisition are taken. The standard dam surface point cloud with the smallest time difference is selected. When the time difference is no more than 50 milliseconds, a time-matched data group is formed. When the time difference exceeds 50 milliseconds, the matching result is discarded. The standard visual point cloud association data is obtained as follows: The coordinates of the 3D points on the dam surface of the time-matched point cloud are multiplied by the three coefficients of the corresponding output direction in the rotation parameters between the camera and the laser scanning device, and then summed. The corresponding translation amount is added to obtain the horizontal coordinate, vertical coordinate, and depth coordinate of the camera coordinate system. The horizontal coordinate is divided by the depth coordinate, multiplied by the horizontal focal length, and the horizontal principal point coordinate is added to obtain the projected horizontal coordinate. The vertical coordinate is obtained by the same method to obtain the projected vertical coordinate. The projected pixel position, the coordinates of the 3D points on the dam surface, the image acquisition timestamp, and the point cloud acquisition timestamp are written into the same spatial association record. All spatial association records form the standard visual point cloud association data.
[0023] In this embodiment, obtaining the three-dimensional crack candidate structure includes: Based on standard visual point cloud association data, visible light image data of the dam surface is read. The gray-level difference between adjacent pixels is calculated, and pixels with continuous gray-level abrupt changes are selected. Adjacent gray-level abrupt change pixels are connected to form crack candidate regions. Contour tracing is performed on the two boundaries of the crack candidate regions to obtain the double edges of the cracks, where: Calculate the gray-level difference between adjacent pixels and filter pixels with consecutive gray-level abrupt changes, specifically as follows: Multiply the red, green, and blue channel values by 0.299, 0.587, and 0.114 respectively, and sum them to obtain the gray value. Calculate the absolute value of the gray value difference between the current pixel and the surrounding 8 pixels. If the maximum value is not less than 25, mark it as a gray value change pixel. Connect gray value change pixels whose absolute difference in horizontal and vertical coordinates is not greater than 1, and retain a connection group with not less than 8 pixels to form a crack candidate region. Contour tracing is performed on both sides of the candidate crack region, specifically as follows: The region pixels with at least one outside pixel in the surrounding 8 positions are taken as boundary pixels. The pixel distance between all boundary pixels is calculated. The pixel distance is the square root of the sum of the square of the difference in the horizontal coordinate and the square of the difference in the vertical coordinate. The pair of boundary pixels with the largest distance is selected as the first end and the second end. From the first end, the boundary pixels with absolute values of the difference in the horizontal and vertical coordinates that are not greater than 1 are connected in sequence along the two directions of the closed boundary until the second end, forming the first boundary path and the second boundary path, which constitute the double edge of the crack. The candidate crack region is refined using a skeleton. The crack edges are read position by position along the crack extension direction. The midpoints between the crack edges are connected sequentially, and the skeleton offset is corrected based on the midpoint positions to obtain the crack central axis. Where: The skeleton of the crack candidate region is refined, specifically as follows: In each round, temporarily delete boundary pixels. After deletion, check whether the surrounding pixels are still connected according to the condition that the absolute value of the difference between the horizontal and vertical coordinates is not greater than 1. If the boundary pixel is not the first end and the second end and the connection is not broken after deletion, mark it for deletion. In each round, delete all marked pixels until the number of deleted pixels is 0, and obtain the crack candidate skeleton from the first end to the second end. The midpoint between the two edges of the crack refers to the position obtained by selecting the edge pixel with the smallest distance from the current skeleton pixel from the first boundary path and the second boundary path, adding the horizontal and vertical coordinates of the two edge pixels respectively, and then dividing by 2. The central axis of the crack is obtained as follows: Read the skeleton pixels in the order from the first end to the second end, calculate the pixel distance between the skeleton pixels and each edge pixel of the two boundary paths. The pixel distance is the square root of the sum of the square of the difference between the horizontal coordinates and the square of the difference between the vertical coordinates. Read the edge pixel with the smallest distance in each boundary path and find the midpoint. Replace the skeleton pixel position with the midpoint. Then connect all the midpoints in the reading order to obtain the crack axis. Based on the spatial correlation between the visible light image pixels on the dam surface and the three-dimensional point coordinates on the dam surface, the crack central axis and the crack double edges are mapped to a three-dimensional point cloud. Connecting the three-dimensional crack double edges on both sides of the three-dimensional crack central axis forms a crack topological cutting zone. The crack topological cutting zone and the three-dimensional point coordinates of the dam surface within the crack topological cutting zone constitute a three-dimensional crack candidate structure, wherein: The crack's central axis and both edges are mapped to a 3D point cloud, specifically as follows: According to the pixel arrangement order of the crack central axis, the first boundary path and the second boundary path, the coordinates of the three-dimensional points on the dam surface at the same pixel position are read from the standard visual point cloud association data and connected in sequence to obtain the three-dimensional crack central axis, the first three-dimensional edge path and the second three-dimensional edge path. The first three-dimensional edge path and the second three-dimensional edge path form the three-dimensional crack double edge. The formation of the crack topological cutting zone is specifically as follows: Read one 3D crack axis point according to the arrangement order from the first end to the second end of the 3D crack axis. Subtract the coordinate value of the 3D crack axis point in the same coordinate direction from the three coordinate values of one 3D edge point in the first 3D edge path. Square the three coordinate differences, add them together and take the square root to obtain the 3D Euclidean distance between the 3D crack axis point and the 3D edge point. Perform the same calculation on all 3D edge points in the first 3D edge path and take the minimum value. Read the 3D edge point that produces the minimum value. Read 3D edge points from the second 3D edge path in the same way. Connect the two 3D edge points to form a transverse cutting line. Connect the four endpoints of two adjacent transverse cutting lines in sequence to form a quadrilateral cutting surface. Connect all quadrilateral cutting surfaces according to the arrangement order of the 3D crack axis to form a crack topological cutting zone. The composition of the three-dimensional crack candidate structure is as follows: Check one by one whether the three-dimensional points on the dam surface are within the quadrilateral cutting surface covered by the crack topological cutting zone, retain the coordinates of the three-dimensional points on the dam surface within the range, and form a three-dimensional crack candidate structure by combining the crack topological cutting zone, the three-dimensional crack central axis, the two edges of the three-dimensional crack, and the retained three-dimensional point coordinates on the dam surface.
[0024] In this embodiment, obtaining the crack cutting voxel and interface chain includes: Based on the three-dimensional crack candidate structure, the topological cutting zone of the crack and the coordinates of three-dimensional points on the dam surface are read. The adjacency relationship between the three-dimensional points on the dam surface is established. Adjacent point pairs whose lines pass through the crack topological cutting zone are selected and their adjacencies are cut, resulting in a set of cut adjacent points, where: Establish the adjacency relationships between three-dimensional points on the dam surface, specifically as follows: For each three-dimensional point on the dam surface, calculate the three-dimensional Euclidean distance to the other three-dimensional points on the dam surface. The three-dimensional Euclidean distance is obtained by adding the squares of the differences between the horizontal axis, vertical axis and vertical axis coordinates and taking the square root. Select the first 12 three-dimensional points on the dam surface in ascending order of distance and connect them to obtain the adjacency relationship. The set of adjacent vertices to be cut is obtained as follows: Check the spatial intersection points of each adjacent edge and each quadrilateral cutting surface of the crack topology cutting zone. If the intersection point is located both between the two ends of the adjacent edge and within the range of the quadrilateral cutting surface, delete the adjacent edge. Record the three-dimensional point coordinates of the dam surface at both ends of the deleted adjacent edge to form a set of cutting adjacent points. Based on the set of adjacent points of the cut, the 3D point cloud is divided into voxels. The voxels through which the crack topological cutting zone passes are identified as the cut voxels. Left bank elements and right bank elements are established according to the positions of the 3D points on the dam surface on both sides of the central axis of the 3D crack. Interface nodes are established between the left bank elements and the right bank elements to obtain the crack cutting voxels, where: The 3D point cloud is divided into voxels based on the cut adjacent point set, specifically as follows: Subtract the minimum coordinate value in the same direction from the coordinates of each three-dimensional point on the dam surface, divide by 5 mm and take the integer part to get 3 grid numbers. Points with the same grid number are assigned to the same voxel. When the quadrilateral cutting surface intersects with the voxel space, it is determined as the cut voxel. Based on the positions of the three-dimensional points on the dam surface located on both sides of the central axis of the three-dimensional crack, left bank elements and right bank elements are established respectively, specifically as follows: Delete the adjacent edges between the left bank element and the right bank element, average the horizontal, vertical and horizontal coordinates of all three-dimensional crack mid-axis points in the cut voxel to obtain the three-dimensional coordinates of the interface node, connect the interface node with the left bank element and the right bank element respectively, and form the crack cutting voxel by combining the left bank element, the right bank element, the interface node and the connection relationship. The fracture-cutting voxel was obtained, specifically: Check all adjacent edges within the voxel being cut. If one end of an adjacent edge belongs to a left bank element and the other end belongs to a right bank element, delete the adjacent edge to ensure that there are no direct adjacent edges between the left bank element and the right bank element. Read all the three-dimensional crack mid-axis points inside the voxel being cut. Add the first coordinate values of all the three-dimensional crack mid-axis points and divide by the number of three-dimensional crack mid-axis points to obtain the first coordinate of the interface node. Add the second coordinate values and divide by the number of three-dimensional crack mid-axis points to obtain the second coordinate of the interface node. Add the third coordinate values and divide by the number of three-dimensional crack mid-axis points to obtain the third coordinate of the interface node. Use the three coordinate values to form the three-dimensional coordinate of the interface node. Establish a connection between the interface node and the left bank element, and establish a connection between the interface node and the right bank element. Combine the left bank element, the right bank element, the interface node, and the connection relationship to form the crack cutting voxel. The interface nodes are arranged according to the extension sequence of the crack cutting voxel along the central axis of the 3D crack, and adjacent interface nodes are connected to form an interface chain, thus obtaining the crack cutting voxel and the interface chain, wherein: Connecting adjacent interface nodes to form an interface chain is specifically as follows: The three-dimensional points in the central axis of the three-dimensional crack are numbered sequentially according to the pixel reading order from the first end to the second end of the crack central axis, starting from 1 and increasing continuously. For each interface node, the three-dimensional Euclidean distance between it and all the three-dimensional crack central axis points is calculated. The three-dimensional Euclidean distance is obtained by squaring the coordinate differences of two three-dimensional points in three coordinate directions, adding them together, and then taking the square root. The minimum value among all three-dimensional Euclidean distances is taken, and the number of the three-dimensional crack central axis point that produces the minimum value is read. The number of the three-dimensional crack central axis point is used as the arrangement number of the interface node. The same process is performed on all interface nodes. The interface nodes are arranged in ascending order according to the arrangement number of the interface nodes. The two interface nodes that are adjacent to each other in the arrangement position are connected. The first interface node is connected to the last interface node in sequence to form an interface chain.
[0025] In this embodiment, obtaining the observation state characterization includes: An improved DRINet is constructed, comprising a crack topology state construction layer, a bilateral ordered complementarity layer, a topological phase transition path layer, and an observation state output layer, wherein: The improved DRINet is constructed as follows: The point representation branch, voxel representation branch, and point voxel iteration structure of the traditional DRINet are optimized by adding left bank units, right bank units, interface nodes, and cross-crack adjacency disconnection processing to obtain a crack topology state construction layer. This ensures that the three-dimensional points on the dam surface maintain the crack double-bank separation relationship during the point voxel iteration process and form a separated topology state arranged along the interface chain. By adding bi-bank geometric complementarity, ordered pairing and non-cross reconnection constraints to the point voxel iteration output of the traditional DRINet, a bi-bank ordered complementarity layer is obtained. This allows the left bank unit and the right bank unit to establish candidate pairings according to the interface chain arrangement order, and to form an ordered non-cross bi-bank complementary relationship by combining the lateral spacing, normal height difference, dam surface normal difference, local curvature difference and crack double edge range. Add interface node state transition and cross-shore candidate reconnection processing to the output end of the double-shore ordered complementary layer to obtain the topological phase change path layer, so that the interface nodes can be transformed according to the separated state, paired state and closed candidate state, and form a topological phase change path with continuous cross-shore reconnection relationship along the interface chain. The point-level semantic output structure of the traditional DRINet is optimized by adding interface chain order organization and topology state recording processing to obtain the observation state output layer. This enables the separation state, complementary state, pairing state, closure candidate state and topology closure cost of the interface node to form the crack topology observation trajectory according to the interface chain order. By combining the crack topology state construction layer, the ordered complementary layer on both banks, the topological phase transition path layer, and the observation state output layer, an improved DRINet is obtained. This model retains the iterative learning processing of point representation and voxel representation of the traditional DRINet, and integrates the crack two-bank separation topology, ordered non-crossing complementarity, and topological state transition relationship to obtain the observation state representation. The crack topology state construction layer is based on crack cutting voxels and interface chains. Iterative aggregation between 3D points and voxels on the dam surface within the left and right bank units is performed respectively, maintaining cross-crack adjacency disconnection. Separate topological connections are established between the left bank unit, interface nodes, and right bank unit according to the interface chain sequence, resulting in a separated topological state sequence, where: The crack topology state construction layer includes: Dual-bank point voxel mapper: Establishes the mapping relationship between three-dimensional points and voxels on the dam surface within the left and right bank units; Cross-bank adjacency shield: Keeps the deleted cross-crack adjacency edges between the left bank unit and the right bank unit in a disconnected state; Interface topology encoder: Generates a sequence of separated topology states according to the connection relationships between left bank units, interface nodes, and right bank units, as well as the order of the interface chains; The iterative aggregation between 3D points and voxels on the dam surface within the left and right bank units is performed separately, specifically as follows: Using the three coordinate values of three-dimensional points on the dam surface as initial point features, the first, second, and third dimension features of all three-dimensional points on the dam surface within the left bank unit are added together and divided by the number of points within the left bank unit to obtain the left bank voxel features. The right bank voxel features are obtained in the same way. The left bank voxel features are added to the same dimension features of each three-dimensional point on the dam surface within the left bank unit and divided by 2 to update the left bank point features. The right bank point features are updated in the same way. The updated point features are then used to re-obtain voxel features. This process is repeated for three rounds. The left bank unit only aggregates three-dimensional points on the dam surface within the left bank unit, and the right bank unit only aggregates three-dimensional points on the dam surface within the right bank unit. Deleted adjacent edges between the left and right bank units are not restored. This process yields the left bank voxel features and the right bank voxel features. The resulting sequence of separated topological states is as follows: Read the crack cutting voxels according to the arrangement order of the interface chain from the first interface node to the last interface node. Take the left bank point voxel features, the connection between the left bank unit and the interface node, the connection between the interface node and the right bank unit, the right bank point voxel features, and the state that there is no direct adjacent edge between the left bank unit and the right bank unit in each crack cutting voxel to form a separate topological state. Then connect all the separate topological states according to the arrangement order of the interface nodes to obtain the separate topological state sequence. The ordered complementary layer on both banks is based on a separated topological state sequence. It calculates the lateral spacing, normal height difference, dam surface normal difference, and local curvature difference of three-dimensional points on both sides of the dam surface at the interface nodes. Extending the geometric state of both banks laterally along the crack, candidate pairings are established according to the longitudinal order of the interface chain. Candidate pairings that alter the left and right bank arrangement order, cross-bank reconnection edges, or exceed the double edge range of the crack are deleted, resulting in an ordered non-crossing complementary sequence on both banks, where: The bilateral ordered complementary layer includes: Dual-bank geometry extractor: extracts the center point of the left bank, the center point of the right bank, the lateral spacing, the difference in normal height, the difference in normal direction of the dam surface, and the difference in local curvature. Lateral extension generator: generates the left bank extension position, right bank extension position, left bank extension endpoint, and right bank extension endpoint; Ordered pairing filter: Establish candidate pairings for both banks and filter candidate pairings according to the order of left and right banks, the crossover of cross-bank reconnection edges, and the range of the double edges of the three-dimensional crack, generating an ordered non-crossing complementary sequence of both banks; The calculation of the lateral spacing, normal height difference, dam surface normal difference, and local curvature difference of three-dimensional points on both sides of the interface node is as follows: Twelve 3D points on the dam surface with the smallest 3D Euclidean distance to the interface nodes were read from the left and right bank units respectively. The 3D Euclidean distance was obtained by squaring the coordinate differences of the two 3D points in three coordinate directions, adding them together, and then taking the square root. The three coordinate values of the 12 3D points on the dam surface on each side were added together and divided by 12 to obtain the center point of the left bank and the center point of the right bank. The three coordinate values of the center point on the same side were subtracted from the three coordinate values of the 12 3D points on the dam surface to obtain three coordinate differences. The average of the squares of the first coordinate difference, the first coordinate difference and the second coordinate difference were calculated. The average value of the product and the average value of the product of the first coordinate difference and the third coordinate difference are written into the first row of the matrix. The average value of the product of the second coordinate difference with the first, second and third coordinate differences is written into the second row. The average value of the product of the third coordinate difference with the first, second and third coordinate differences is written into the third row, forming a 3-row, 3-column coordinate discrete matrix. Eigenvalue decomposition is performed on the coordinate discrete matrix to obtain 3 eigenvalues and 3 eigendirections. The eigendirection associated with the smallest eigenvalue is normalized and used as the dam surface normal. The smallest eigenvalue is divided by the sum of the 3 eigenvalues to obtain the local curvature. The displacement directions of both banks are obtained by subtracting the three coordinates of the left bank center point from the three coordinates of the right bank center point. The average normal of both banks is obtained by adding the normal of the left bank dam surface and the normal of the right bank dam surface and dividing by the length of the obtained direction. The absolute value of the projection length of the displacement directions of both banks onto the average normal of both banks is obtained as the normal height difference. The longitudinal direction of the crack is obtained by subtracting the three coordinates of the adjacent interface nodes before and after the current interface node and normalizing them. The transverse direction of the crack is obtained by cross-producting the longitudinal direction of the crack with the average normal of both banks and normalizing the cross-product result. The transverse interval is obtained by taking the absolute value of the projection length of the displacement directions of both banks onto the transverse direction of the crack. The three directional components of the normal of the left bank dam surface and the normal of the right bank dam surface are multiplied and summed, divided by the product of the lengths of the two dam surface normals, and then the inverse cosine is taken to obtain the dam surface normal difference. The local curvature difference is obtained by subtracting the local curvature of the right bank from the local curvature of the left bank and taking the absolute value. The geometry of the two banks extending laterally along the crack is as follows: Starting from the center point of the left bank, set one extension position every 1 mm along the transverse direction of the crack pointing to the interface node. Starting from the center point of the right bank, set one extension position every 1 mm along the opposite transverse direction of the crack pointing to the interface node. Continue until the extension positions in both directions reach the transverse position of the interface node. Write the left bank dam surface normal and the left bank local curvature into the left bank extension position, and write the right bank dam surface normal and the right bank local curvature into the right bank extension position to obtain the left bank extension geometry and the right bank extension geometry. The ordered non-crossing bilateral complementary sequence is obtained as follows: According to the interface chain arrangement order, each left bank extension geometric state is paired with the right bank extension geometric state of the same interface node and the one adjacent interface node before and after it to form a candidate cross-bank reconnection edge. The candidate pairings are read in ascending order of the left bank interface node number. If the right bank interface node number of the next candidate pairing is not greater than the right bank interface node number of the previous candidate pairing, the next candidate pairing is deleted. If two candidate cross-bank reconnection edges have a common spatial intersection point located inside the two line segments, the next candidate pairing is deleted. If the candidate cross-bank reconnection edge exceeds the limit of the double edge of the three-dimensional crack, the candidate pairing is deleted. The left bank extension geometric state, right bank extension geometric state and candidate pairing relationship in the retained candidate pairings are combined to form a double bank complementary state. The double bank complementary states are then arranged according to the interface chain arrangement order to obtain an ordered non-crossing double bank complementary sequence. The topological phase transition path layer is based on an ordered non-crossing double-bank complementary sequence. It establishes a restricted transfer edge from the left bank unit to the right bank unit via interface nodes, transforming the interface nodes from a separated state to a paired state. For paired states satisfying position, normal, and curvature continuation conditions, candidate cross-bank reconnection edges are established and transformed into closed candidate states. This is extended along the interface chain to form a topological phase transition path. The topological closure cost is calculated based on spatial displacement, geometric change, and adjacency change, yielding the continuous state transition path with the minimum cumulative topological closure cost. The topological phase transition path layer includes: Restricted transitive edge generator: Creates restricted transitive edges from left bank cells to interface nodes and from interface nodes to right bank cells; State transition register: records the transition relationships between separated states, paired states, and closed candidate states; Closed-loop continuation comparator: compares the three-dimensional Euclidean distance, the included angle of the dam surface normal, and the local curvature difference with the continuation conditions, and generates candidate cross-bank reconnection edges; Path cost accumulator: Accumulates the topological closure cost for each candidate closure state; Minimum path selector: filters the continuous state transition paths with the minimum cumulative topological closure cost; Establish a restricted transit edge from the left bank cell to the right bank cell via the interface node, specifically as follows: Read the left bank unit, interface node and right bank unit in each candidate pair according to the ordered non-crossing double bank complementary sequence, establish the transmission edge from the left bank unit to the interface node and the transmission edge from the interface node to the right bank unit. Each interface node only connects the left bank unit and the right bank unit in the same candidate pair. Do not establish transmission edges that cross other interface nodes or direct transmission edges between the left bank unit and the right bank unit, thus obtaining restricted transmission edges. The interface nodes are changed from a separate state to a paired state, specifically as follows: Write the left bank unit identifier, right bank unit identifier, the passing edge from the left bank unit to the interface node, and the passing edge from the interface node to the right bank unit in the candidate pairing into the interface node state record. Update the separated state where the left bank unit and the right bank unit do not have a pairing relationship to the pairing state where the left bank unit and the right bank unit have established a pairing relationship but there is no direct cross-bank adjacent edge. The position, normal, and curvature continuity conditions refer to the following: the three-dimensional Euclidean distance between the end point of the left bank extension and the end point of the right bank extension is no greater than 2 mm; the angle between the normal of the left bank dam surface and the normal of the right bank dam surface is no greater than 5°; and the absolute value of the difference between the local curvature of the left bank and the local curvature of the right bank is no greater than 0.05. For paired states that satisfy the position, normal, and curvature continuation conditions, candidate cross-shore reconnection edges are established and converted into closed candidate states, specifically as follows: Read the x-axis, y-axis, and vertical coordinates of the left and right bank extension endpoints from the ordered non-crossing complementary double-bank sequence. Subtract the x-axis coordinate of the left bank extension endpoint from the x-axis coordinate of the right bank extension endpoint and square it; subtract the y-axis coordinate of the left bank extension endpoint from the y-axis coordinate of the right bank extension endpoint and square it; subtract the y-axis coordinate of the left bank extension endpoint from the vertical coordinate of the right bank extension endpoint and square it. Add the three squared values and take the square root to obtain the three-dimensional Euclidean distance between the left and right bank extension endpoints. Multiply the x-axis, y-axis, and vertical components of the left and right bank dam normals, and then multiply the three... Add the products together, divide by the product of the normal lengths of the left and right bank dam faces, and take the inverse cosine of the result to obtain the angle between the normal lengths of the left and right bank dam faces. Subtract the local curvature of the right bank from the local curvature of the left bank and take the absolute value to obtain the local curvature difference. When the three-dimensional Euclidean distance is not greater than 2 mm, the angle between the normal lengths of the dam faces is not greater than 5°, and the local curvature difference is not greater than 0.05, connect the endpoints of the left and right bank extensions to form a candidate cross-bank reconnection edge. Write the candidate cross-bank reconnection edge into the interface node connection relationship and update the pairing state to the closed candidate state. If any one of the continuation conditions is not met, no candidate cross-bank reconnection edge is established. The calculation of the topological closure cost is as follows: Read the horizontal, vertical, and y-axis coordinates of the left bank center point and the left bank extension endpoint, respectively, and subtract them in the same coordinate direction. Square the differences of the horizontal, vertical, and y-axis coordinates, add them together, and take the square root to obtain the spatial displacement distance of the left bank. Process the right bank center point and the right bank extension endpoint in the same way to obtain the spatial displacement distance of the right bank. Add the spatial displacement distances of the left bank and the right bank, and then divide by the lateral spacing of the current interface node to obtain the spatial displacement. The lateral spacing of the current interface node is formed by subtracting the center point of the left bank from the center point of the right bank to form the displacement direction of both banks. Multiply the horizontal, vertical, and longitudinal components of the displacement direction of both banks by the components in the same direction as the crack's lateral direction, add the three products and take the absolute value. Divide the dam surface normal difference by 5° and the local curvature difference by 0.05. Add the two quotients and divide by 2 to obtain the geometric change. Statistically count the number of newly added candidate cross-bank reconnection edges and the number of deleted original adjacent edges when the paired state is converted to a closed candidate state. Add the two quantities and divide by the sum of the original adjacent edges of the left bank unit and the right bank unit to obtain the adjacency change. Multiply the spatial displacement by 0.5, the geometric change by 0.3, and the adjacency change by 0.2 and add them together to obtain the topological closure cost. The continuous state transition path with the minimum cumulative topological closure cost is obtained as follows: Following the interface chain, read the closed candidate states sequentially from the first interface node to the last interface node. Use the topological closure cost of each closed candidate state in the first interface node as the initial cumulative topological closure cost. Starting from the second interface node, for each closed candidate state, read the closed candidate states in the previous interface node that maintain the left and right bank arrangement order and do not have intersecting candidate cross-bank reconnection edges. Add the topological closure cost of the current closed candidate state to the cumulative topological closure cost of each closed candidate state in the previous interface node. Select the minimum value among the added values as the cumulative topological closure cost of the current closed candidate state and record the closed candidate state that produces the minimum value. After processing to the last interface node, select the terminal closure candidate state with the smallest cumulative topology closure cost, read the previous closure candidate state one by one in reverse order to the first interface node, and then arrange the reading results according to the interface chain order to obtain the continuous state transition path with the smallest cumulative topology closure cost. The observation state output layer, based on a continuous state transition path, records the separation state, complementary state, paired state, closure candidate state, and topological closure cost of interface nodes in the order of the interface chain, forming a crack topological observation trajectory and obtaining the observation state characterization, wherein: The observation state output layer includes: Status register: records the separated state, the dual-bank complementary state, the paired state, and the closed candidate state; Geometric feature register: records lateral spacing, normal height difference, dam surface normal difference, and local curvature difference; Topology trajectory generator: Organizes state information, geometric information, candidate cross-shore reconnection edges and topological closure costs according to the interface chain order to form crack topology observation trajectory and output observation state representation; The complementary state of two banks refers to the topological state in which the left bank extension geometry and the right bank extension geometry have been formed on both sides of the interface node, and an ordered non-crossing candidate pairing relationship has been established, but there is no direct cross-bank adjacency edge between the left bank unit and the right bank unit. The crack topological observation trajectory is formed as follows: Read the interface nodes sequentially from the first interface node to the last interface node according to the continuous state transition path. Arrange the separation state, dual-bank complementary state, pairing state and closure candidate state of each interface node in the order of state formation. Record the topological closure cost of the current interface node in the closure candidate state. Then connect the state records of adjacent interface nodes according to the arrangement order of the interface nodes in the interface chain to form the crack topological observation trajectory. The observed state characterization is obtained as follows: The voxel features of the left bank point, voxel features of the right bank point, lateral interval, normal height difference, dam surface normal difference, local curvature difference, separation state, double bank complementary state, pairing state, closure candidate state, candidate cross-bank reconnection edge and topological closure cost of the interface node are read one by one from the crack topology observation trajectory. All records are organized according to the arrangement order of the interface node in the interface chain to obtain the observation state characterization. The improved DRINet was trained using a weighted sum of topology state reconstruction error, bilateral complementarity error, and topology phase transition path continuity error as the optimization objective. The parameters of the crack topology state construction layer, bilateral ordered complementarity layer, topology phase transition path layer, and observation state output layer were continuously optimized. The improved DRINet was considered converged when the total loss change rate over 20 consecutive training rounds did not exceed 0.001. The improved DRINet is trained as follows: The training samples containing crack cutting voxels, interface chains, and manually labeled interface node states, bilateral pairing relationships, and continuous state transition paths are input into the improved DRINet to obtain predicted interface node states, predicted bilateral pairing relationships, and predicted topological phase transition paths. Each predicted interface node state is compared with the manually marked interface node states. A value of 0 is recorded when the states of separation, complementary states, pairing, or closed candidate states are the same, and 1 is recorded when they are different. The sum of all recorded values for the interface nodes is divided by the number of interface nodes to obtain the topology state reconstruction error. The three-dimensional points on the left and right bank dam surfaces in the predicted and manually marked pairing relationships are read one by one. A value of 0 is recorded when the predicted pairing of the left and right bank dam surfaces is completely identical to the manually marked pairing. When the points are inconsistent, it is recorded as 1. The sum of all the recorded values of the pairing relationships of the two banks is divided by the number of manually marked pairing relationships of the two banks to obtain the pairing error of the two banks. The predicted topological phase transition path is checked according to the arrangement order of the interface chain. When the state transition relationship between adjacent interface nodes in the predicted path is consistent with the manually marked continuous state transition path, it is recorded as 0. When it is inconsistent, it is recorded as 1. At the same time, one path error is added for each change in the arrangement order of the left and right banks or the intersection of the candidate cross-bank reconnection edge. The total number of path errors is divided by the number of adjacent interface nodes connected to obtain the topological phase transition path continuity error. The total training loss is obtained by multiplying the topology state reconstruction error by 0.4, the bilateral complementarity error by 0.35, and the topology phase transition path continuity error by 0.25. Backpropagation is then performed based on the total training loss to update the trainable parameters of the crack topology state construction layer, the bilateral ordered complementarity layer, the topology phase transition path layer, and the observation state output layer. The initial learning rate is set to 0.001. After each training round, the total training loss of the current round is subtracted from the total training loss of the previous round, and the absolute value is divided by the total training loss of the previous round to obtain the rate of change of the total training loss. When the rate of change of the total training loss does not exceed 0.001 for 20 consecutive rounds, parameter updates are stopped and the improved DRINet is considered to have converged.
[0026] In this embodiment, the step of obtaining the minimum perturbation closed field and acquiring the closed state characterization includes: Based on the interface chain, the three-dimensional point coordinates of the dam surface outside the crack topological cutting zone are extracted. A fixed reference loop is formed by continuously connecting the dam surface points along the outer edge of the interface chain, while maintaining the spatial position of the fixed reference loop unchanged. Wherein: The formation of the fixed reference ring is as follows: Sampling positions are set every 5 mm along the closed outer boundary formed by the double edges of the three-dimensional crack and the transverse cutting lines at both ends of the crack. The differences in the horizontal, vertical, and axial coordinates between the three-dimensional points on the dam surface outside the crack topological cutting zone and the sampling positions are squared, added together, and the square root is taken to obtain the three-dimensional Euclidean distance. The three-dimensional point on the dam surface with the smallest three-dimensional Euclidean distance is selected. All selected points are connected in the order of sampling positions. The last selected point is connected to the first selected point to form a fixed reference ring. The horizontal, vertical, and axial coordinates of the three-dimensional points on the dam surface within the fixed reference ring are recorded. The recorded coordinates remain unchanged during the closure process. Based on the fixed reference ring, the dam face position, normal direction, and curvature are read, and the extensions are made to the left and right bank units respectively. The convergence point of the bi-bank extension results is determined according to the conditions of positional continuity, normal continuity, and curvature continuity, thus obtaining the target closed trajectory, where: The dam face position, normal, and curvature are read based on a fixed reference ring, specifically as follows: Using the x-axis, y-axis, and vertical coordinates of three-dimensional points on the dam surface within a fixed reference ring as the dam face position, 12 three-dimensional points on the dam surface with the smallest three-dimensional Euclidean distance are selected for each dam surface. The x-axis, y-axis, and vertical coordinates of these 12 points are averaged to obtain the local center point. Then, the coordinates of the local center point in the same direction are subtracted from the coordinates of each of the 12 points to obtain the x-axis, y-axis, and vertical coordinate differences. Following the order of x-axis to x-axis, x-axis to y-axis, x-axis to vertical, y-axis to x-axis, y-axis to y-axis, y-axis to vertical, vertical to x-axis, vertical to x-axis, vertical to y-axis, vertical to x-axis, vertical to y-axis, and vertical to vertical, the average value of the corresponding coordinate difference products of the 12 points is written into a 3x3 coordinate discrete matrix. Eigenvalue decomposition is performed on the coordinate discrete matrix. The directional components of the characteristic direction associated with the minimum eigenvalue are divided by the length of the characteristic direction to obtain the dam face normal. The minimum eigenvalue is divided by the sum of the three eigenvalues to obtain the local curvature. Extending to the left bank unit and the right bank unit respectively, specifically as follows: The three-dimensional points on the dam surface with the smallest three-dimensional Euclidean distance to the center point of the left bank and the center point of the right bank in the fixed reference ring are selected as the reference points for the left bank and the right bank, respectively. The horizontal, vertical and vertical coordinates of the latter interface node and the former interface node are subtracted respectively. The longitudinal direction of the crack is obtained by dividing each coordinate difference by the square root of the sum of the three coordinate differences. The components of the normal of the dam surface at the left bank reference point and the normal of the dam surface at the right bank reference point in the same direction are added together and divided by the square root of the sum of the three additions respectively to obtain the average normal of both banks. Multiply the longitudinal component of the crack by the vertical component of the average normal of both banks, then subtract the product of the longitudinal component of the crack and the longitudinal component of the average normal of both banks to obtain the transverse component of the crack. Multiply the vertical component by the transverse component and subtract the transverse component by the vertical component to obtain the longitudinal component. Multiply the transverse component by the vertical component and subtract the transverse component by the vertical component to obtain the vertical component. Multiply the transverse component by the longitudinal component and subtract the longitudinal component by the transverse component to obtain the vertical component. Then divide the transverse, longitudinal, and vertical components of the crack by the square root of the three components respectively to obtain the length. Generate an extension position every 1 mm along the transverse direction of the crack pointing to the interface node from the reference point on the left bank and the reference point on the right bank. Multiply the extension distance by the transverse component of each direction of the crack and add it to the same direction coordinate of the reference point to obtain the transverse, longitudinal, and vertical coordinates of the extension position. Record the normal and local curvature of the dam face on the same side. The target closed trajectory is obtained as follows: For each interface node, combine the left bank extension position and the right bank extension position one by one. Square the difference in the horizontal axis coordinate, the difference in the vertical axis coordinate, and the difference in the horizontal axis coordinate of the two extension positions, add them together, and take the square root to obtain the position distance. Multiply the components of the normal direction of the left bank dam face and the normal direction of the right bank dam face respectively, sum them, and take the inverse cosine to obtain the normal angle. Subtract the local curvature of the right bank from the local curvature of the left bank and take the absolute value to obtain the curvature difference. Retain the extension position combination with a position distance of no more than 2 mm, a normal angle of no more than 5°, and a curvature difference of no more than 0.05. Select the group with the smallest position distance from the retained extension position combination. Add the horizontal axis coordinate, the vertical axis coordinate, and the horizontal axis coordinate of the two extension positions respectively and divide by 2 to obtain the merging position. Connect the merging positions of each interface node according to the interface chain order to obtain the target closed trajectory. Based on the target closed trajectory, and constrained by the closure of the left and right bank units to the target closed trajectory, while maintaining the arrangement order of interface nodes along the crack central axis, the left and right bank units are restricted to move only along the local plane formed by the transverse direction of the crack and the normal direction of the dam face. The closed displacement result with the minimum cumulative displacement is selected to obtain the minimum disturbance closed field. Based on the geometric state of the two banks after closure, the closed state characterization is obtained, where: The closure of the left bank unit and the right bank unit to the target closure trajectory means that, according to the interface chain sequence, the left bank center point and the right bank center point associated with each interface node are moved to form the same closure position on the target closure trajectory, and the arrangement order of each interface node from the first end to the second end of the crack is not changed. The left and right bank units are restricted to moving only along the local plane formed by the transverse direction of the crack and the normal direction of the dam face, specifically as follows: The target displacement on the left bank is obtained by subtracting the coordinates of the center point on the left bank in the same direction from the horizontal, vertical, and axial coordinates of the target closed position. The horizontal displacement length is obtained by multiplying each directional component of the target displacement on the left bank with the horizontal component of the crack and summing the results. The normal displacement length is obtained by multiplying each directional component of the target displacement on the left bank with the normal component of the dam face and summing the results. The horizontal displacement length and the normal displacement length are then multiplied by the corresponding horizontal, vertical, and axial components, and the components in the same direction are added together to obtain the allowable displacement on the left bank. The allowable displacement on the right bank is obtained in the same way, so that the allowable displacement on the left bank and the allowable displacement on the right bank only include the displacement in the horizontal direction of the crack and the displacement in the normal direction of the dam face. The minimum perturbation closed field is obtained as follows: Candidate closure positions are set every 1 mm along the target closed trajectory. Candidate closure positions are selected for each interface node in sequence according to the interface chain. All selected combinations with increasing candidate closure position numbers are taken as a candidate closure position sequence. For each candidate closure position sequence, the allowable displacement of the left bank and the allowable displacement of the right bank are calculated according to the crack transverse direction and the dam surface normal direction, respectively. The directional components of the allowable displacement of the left bank are added to the same directional coordinates of the three-dimensional points on the dam surface in the left bank unit, and the directional components of the allowable displacement of the right bank are added to the same directional coordinates of the three-dimensional points on the dam surface in the right bank unit to obtain the closure displacement result. The closure displacement results where the center point of the left bank and the center point of the right bank do not reach the same candidate closure position after the movement are deleted. For the retained closure displacement results, the differences of the horizontal axis coordinate, vertical axis coordinate, and vertical axis coordinate before and after the movement of each three-dimensional point on the dam surface are squared, added together, and the square root is taken to obtain the single-point displacement distance. All single-point displacement distances are added together to obtain the cumulative displacement. The closure displacement result with the smallest cumulative displacement is selected. The spatial coordinates of each three-dimensional point on the dam surface before and after the movement are recorded to obtain the minimum disturbance closure field. The closed state characterization is obtained based on the geometric state of the two banks after closure, specifically as follows: Update the coordinates of the three-dimensional points on the dam surface in the left and right bank units according to the spatial coordinates after the movement recorded by the minimum disturbance closed field. Average the horizontal, vertical and axial coordinates of the three-dimensional points on the dam surface on both sides of each interface node to obtain the center point of the left bank and the center point of the right bank after closure. The displacement of both banks is obtained by subtracting the center point of the left bank from the center point of the right bank. The lateral spacing is obtained by multiplying the components of each directional displacement of both banks with the components of the same directional displacement of the crack in the lateral direction and summing them and taking the absolute value. The normal height difference is obtained by multiplying the components of each directional displacement of both banks with the components of the normal of the dam face in the same directional direction and summing them and taking the absolute value. The normal of the dam face and the local curvature after closure are obtained again according to the coordinate discrete matrix and eigendecomposition method. Then, the center point of the left bank, the center point of the right bank, the lateral spacing, the normal height difference, the normal of the dam face, the local curvature, and the connection status between the left bank unit, the interface node and the right bank unit are recorded in the order of the interface chain to obtain the closed state characterization.
[0027] In this embodiment, the screening and verification of the closed crack segment includes: Based on fitting a normal dam surface datum using a fixed reference ring, the normal position residual, normal direction residual, and curvature residual of the observed state characterization and closed state characterization relative to the normal dam surface datum are calculated at each interface node, resulting in the observed geometric residual sequence and the closed geometric residual sequence, where: The normal dam surface benchmark is fitted based on a fixed reference ring, specifically as follows: For each interface node, 12 three-dimensional points on the dam surface with the smallest three-dimensional Euclidean distance in the fixed reference ring are selected. The average of the horizontal, vertical and triangular coordinates of the 12 points is used to obtain the reference center point. The coordinate discrete matrix of the 12 points is calculated using the reference center point and eigenvalue decomposition is performed. The eigendirection associated with the smallest eigenvalue is divided by the length of the eigendirection to obtain the reference normal. The smallest eigenvalue is divided by the sum of the three eigenvalues to obtain the reference curvature. The reference center point, the reference normal and the reference curvature form the normal dam surface reference. The observed geometric residual sequence and the closed geometric residual sequence are obtained as follows: The left bank center point, right bank center point, dam surface normal, and local curvature of the same interface node in the observation state representation and the closed state representation are read respectively. The state center point is obtained by averaging the coordinates of the center points of both banks in each direction. The state normal is obtained by adding the components of the normal of both banks in the same direction and dividing by the length of the obtained direction. The state curvature is obtained by averaging the local curvature of both banks. The absolute value of the projection of the coordinate difference between the state center point and the reference center point onto the reference normal is used as the normal position residual. The normal direction residual is obtained by multiplying the components of the normal and the reference normal in the same direction and taking the inverse cosine. The curvature residual is obtained by subtracting the state curvature from the reference curvature and taking the absolute value. The normal position residual, normal direction residual, and curvature residual of the observation state and the closed state are arranged according to the interface chain order to obtain the observation geometric residual sequence and the closed geometric residual sequence. Based on the observed geometric residual sequence and the closed geometric residual sequence, the residual reduction of each interface node from the observed state to the closed state is calculated in the order of the interface chain. Combined with the reduction in lateral spacing and normal height difference, a closed recovery gain chain is formed, where: The residual reduction of each interface node from the observed state to the closed state is calculated according to the interface chain order, specifically as follows: For each interface node, the reduction in normal position residual is obtained by subtracting the normal position residual of the closed state from the normal position residual of the observed state; the reduction in normal direction residual is obtained by subtracting the normal direction residual of the closed state from the normal direction residual of the observed state; and the reduction in curvature residual is obtained by subtracting the curvature residual of the closed state from the curvature residual of the observed state. To form a closed recovery gain chain, specifically: The reduction in lateral spacing is obtained by subtracting the lateral spacing of the closed state from the lateral spacing of the observed state. The reduction in normal height difference is obtained by subtracting the normal height difference of the closed state from the normal height difference of the observed state. The reduction in normal position residual, normal direction residual, curvature residual, lateral spacing, and normal height difference of the same interface node are combined to form a closed recovery gain record. All closed recovery gain records are connected in the order of the interface chain to form a closed recovery gain chain. Based on the closed recovery gain chain, continuous interface chain segments are selected where the normal position residual, normal direction residual, and curvature residual decrease synchronously from the observed state to the closed state, the amount of residual reduction is continuously positive along the interface chain, and the lateral interval, normal height difference, normal direction difference, and curvature difference all approach the normal dam surface reference. These segments are used to obtain the closed verification crack segments, where: The closed verification crack segment was obtained, specifically as follows: According to the interface chain sequence, retain interface nodes where the reduction in normal position residual, normal direction residual, curvature residual, lateral interval reduction, and normal height difference are all greater than 0. Sum the products of the components of the same normal direction on both banks of the closed dam and take the inverse cosine to obtain the normal direction difference. Subtract the local curvatures on both banks and take the absolute value to obtain the curvature difference. Further retain interface nodes with a lateral interval of no more than 2 mm, a normal height difference of no more than 2 mm, a normal direction difference of no more than 5°, and a curvature difference of no more than 0.05. Form a closed verification crack segment by connecting the interface nodes directly and continuously in the interface chain that meet the screening conditions.
[0028] In this embodiment, obtaining the crack detection result includes: Based on the minimum disturbance closed field, reverse displacement is performed on the closed verification crack segment to recover the observation positions of the left bank element, right bank element, and interface node, thus obtaining the reverse recovered crack structure, where: The reverse-recovery crack structure is obtained as follows: Read the spatial coordinates of the three-dimensional points on the dam surface before and after movement in the minimum disturbance closed field. Subtract the coordinates before movement from the coordinates after movement to obtain the displacement in each direction. Subtract the displacement in the same direction from the coordinates after movement to restore the observation coordinates of the three-dimensional points on the dam surface in the left bank unit and the right bank unit. For each interface node, average the horizontal, vertical and longitudinal displacements of the three-dimensional points on the dam surface of the associated left bank unit and the right bank unit to obtain the interface node displacement. Subtract the interface node displacement from the closed position to obtain the interface node observation coordinates. Connect the restored interface nodes according to the interface chain sequence, and retain the separation and connection relationship between the left bank unit and the right bank unit to obtain the reverse restored crack structure. Based on the coordinate transformation parameters between the camera and the laser scanning device and the camera's intrinsic parameters, the inversely reconstructed crack structure is back-projected onto the visible light image of the dam surface to obtain the crack reconstruction projection. The pixel position differences between the crack reconstruction projection and the crack's central axis and double edges are then calculated, where: The crack restoration projection is obtained as follows: For the restored interface nodes, the three-dimensional points on the dam surface with the smallest three-dimensional Euclidean distance in the left and right bank units are selected as the left bank restoration edge points and right bank restoration edge points, respectively. The rotation coefficients of the horizontal axis, vertical axis, and vertical axis, as well as the translation amounts in three directions, are read from the coordinate transformation parameters. The horizontal axis coordinates, vertical axis coordinates, and vertical axis coordinates of the restored points are multiplied by the three rotation coefficients in each output direction and summed. Then, the translation amount in the same direction is added to obtain the horizontal coordinates, vertical coordinates, and depth coordinates of the camera coordinate system. The horizontal pixel coordinates are obtained by multiplying the horizontal coordinates by the horizontal focal length, dividing by the depth coordinates, and adding the horizontal principal point coordinates. The vertical pixel coordinates are obtained by multiplying the vertical coordinates by the vertical focal length, dividing by the depth coordinates, and adding the vertical principal point coordinates. The pixel positions of the interface nodes, the left bank restoration edge points, and the right bank restoration edge points are connected according to the interface chain order to obtain the restored central axis projection and two restored edge projections, forming the crack restoration projection. The pixel position difference between the crack restoration projection and the crack's central axis and two edges is calculated as follows: Square the differences in the horizontal and vertical coordinates between each restored central axis projection pixel and each pixel in the crack central axis, add them together, and take the square root. Take the minimum value as the central axis pixel position difference. Calculate the minimum pixel distance between the left bank restored edge projection and the first edge of the crack, and between the right bank restored edge projection and the second edge of the crack, in the same way, to obtain the pixel position difference of the first edge and the pixel position difference of the second edge. Based on the inverse reconstruction of the crack structure, the geometric difference between the geometric state and the observed state of the two banks is calculated. Closed verification crack segments whose pixel position difference and geometric difference simultaneously satisfy the original crack observation state are selected. This process determines the three-dimensional cracks in the dam body and obtains the crack detection results, including: The geometric difference between the geometric state of the two banks and the observed state characterization is calculated based on the reverse recovery of the crack structure. Specifically: For each restored interface node, select 12 three-dimensional points on the dam surface with the smallest three-dimensional Euclidean distance from the interface node in the left bank unit and the right bank unit respectively. Average the horizontal axis coordinates, vertical axis coordinates and vertical axis coordinates of the 12 three-dimensional points on the dam surface of each side to obtain the restored left bank center point and the restored right bank center point. Subtract the coordinates of the center point on the same side in the same direction from the x-axis, y-axis, and vertical coordinates of the 12 three-dimensional points on the dam surface on each side to obtain the differences in x-axis, y-axis, and vertical coordinates. Multiply the differences in x-axis, y-axis, and vertical coordinates pairwise and average them respectively. Arrange them according to the three coordinate directions to form a 3x3 coordinate discrete matrix. Perform eigenvalue decomposition on the left bank coordinate discrete matrix and the right bank coordinate discrete matrix respectively. Divide each directional component of the characteristic direction associated with the minimum eigenvalue on each side by the length of the characteristic direction to obtain the restored normal of the left bank dam surface and the restored normal of the right bank dam surface. Divide the minimum eigenvalue on each side by the sum of the three eigenvalues on the same side to obtain the restored local curvature of the left bank and the restored local curvature of the right bank. The displacement of both banks is obtained by subtracting the center point of the left bank from the center point of the right bank. The components of each direction of the displacement of both banks are multiplied by the component of the same direction in the transverse direction of the crack, and the sum is taken as the absolute value to obtain the transverse interval. The components of each direction of the displacement of both banks are multiplied by the component of the same direction in the normal direction of the dam face, and the sum is taken as the absolute value to obtain the normal height difference. The components of the normal direction of the left bank dam face and the normal direction of the right bank dam face are multiplied by the components of the same direction in the normal direction of the right bank dam face, and the sum is taken as the inverse cosine to obtain the normal direction difference. The local curvature of the left bank is subtracted from the local curvature of the right bank and the absolute value is taken to obtain the curvature difference. The lateral interval difference, normal height difference, dam surface normal difference, and local curvature difference of the same interface node in the observation state characterization are subtracted from the restored lateral interval, restored normal height difference, restored normal direction difference, and restored curvature difference, respectively, and the absolute values are taken to obtain the lateral interval difference, normal height difference, normal direction difference, and curvature difference. The original crack observation state refers to the crack geometry state recorded in the observation state characterization before closure treatment, consisting of the lateral interval, normal height difference, dam surface normal difference, local curvature difference, and interface chain arrangement relationship. The three-dimensional cracks in the dam body were identified and the crack detection results were obtained, specifically as follows: Interface nodes with a central axis pixel position difference, a first edge pixel position difference, and a second edge pixel position difference of no more than 2 pixels, a lateral interval difference, a normal height difference of no more than 2 mm, a normal direction difference of no more than 5°, and a curvature difference of no more than 0.05 are retained. The interface nodes that are directly connected and continuously retained in the interface chain are connected sequentially to form the central axis of the dam's three-dimensional crack. The left bank restored edge point and the right bank restored edge point associated with each interface node are connected to form the double edge of the dam's three-dimensional crack. The interface node with the smallest interface chain number among the continuously retained interface nodes is determined as the crack initiation interface node, and the interface node with the largest interface chain number is determined as the crack termination interface node. The central axis of the dam's three-dimensional crack, the double edge of the dam's three-dimensional crack, the crack initiation interface node, and the crack termination interface node constitute the crack detection result.
[0029] refer to Figure 3 A dam crack detection system based on vision and point cloud fusion includes the following modules: The data preprocessing module is used to collect images of the dam surface, 3D point clouds and calibration data and perform preprocessing to obtain standard visual point cloud associated data; The crack candidate construction module is used to extract the crack central axis and double edges and map them to the point cloud to construct the crack topology cutting zone and obtain the three-dimensional crack candidate structure. The topology cutting module is used to cut off cross-crack adjacencies, dividing the cut voxels into left bank elements, right bank elements and interface nodes, to obtain crack cutting voxels and interface chains. The observation state generation module is used to obtain the observation state characterization based on crack cutting voxels and interface chains by improving DRINet. The closed state generation module is used to construct a fixed reference loop and extend it to both banks, determine the target closed trajectory, obtain the minimum perturbation closed field, and obtain the closed state characterization. The closure verification module is used to establish a normal dam surface benchmark, compare the geometric residuals of the observed state characterization and the closure state characterization, obtain the closure recovery gain chain, and screen the closure verification crack segments. The crack detection module is used to reverse-engineer and verify the closed crack segment and back-project it to determine the three-dimensional cracks in the dam body and obtain the crack detection results.
[0030] Example 1: To verify the feasibility of this invention in practice, it was applied to a concrete dam inspection area with minor cracks, water stains, shadows, construction joints, and surface undulations. Before inspection, 1600 sets of similar visual point cloud associated samples were used to train the improved DRINet, including 800 sets of real cracks, 220 sets of construction joints, 220 sets of shadow edges, 180 sets of water stain edges, and 180 sets of rough textures, divided into 1120 sets of training data, 240 sets of validation data, and 240 sets of test data. One set of real crack training samples had a crack width of 1.3 mm, a lateral spacing of 2.8 mm between the two banks, a normal height difference of 1.7 mm, a dam surface normal difference of 7.1°, and a local curvature difference of 0.069. One set of water stain samples, although having a grayscale difference of 44, had a lateral spacing of only 0.7 mm, a normal height difference of 0.4 mm, a dam surface normal difference of 1.2°, and a local curvature difference of 0.011. Training was stopped after the rate of change of the total training loss did not exceed 0.001 for 20 consecutive rounds.
[0031] A 6000×4000 pixel visible light image of the dam surface and approximately 1.76 million 3D points on the dam surface were acquired in the detection area. The image and point cloud acquisition timestamps differed by 16 milliseconds, and the average point spacing in the point cloud was approximately 2.9 mm. After distortion correction, coordinate unification, and visual point cloud association, 150 feature points on the dam surface were randomly inspected. The average deviation between the image and point cloud projection was 0.82 pixels. Image grayscale analysis yielded four continuous linear candidate regions with maximum grayscale differences of 45, 40, 37, and 34, respectively. The first candidate region was approximately 1.31 meters long. Edge tracing yielded 1386 first edge pixels and 1402 second edge pixels. Skeleton thinning and double edge midpoint correction resulted in 1341 crack midline pixels.
[0032] Mapping the first candidate region to a 3D point cloud yielded 1298 3D crack central axis points, 1351 first 3D edge points, and 1364 second 3D edge points. Connecting the nearest edge points on both sides of the crack central axis formed transverse cutting lines, and connecting adjacent transverse cutting lines formed a crack topological cutting zone approximately 1.28 meters long. Establishing 12 nearest neighbor relationships for 3D points on the dam surface near the cutting zone resulted in approximately 316,000 adjacent edges, of which 693 edges passed through the crack topological cutting zone and were cut. After dividing the zone into 5 mm voxels, 263 cut voxels and 263 interface nodes were formed. These interface nodes were then connected sequentially along the crack central axis to form an interface chain.
[0033] After improving DRINet to process 263 interface nodes, the lateral spacing of the 118th interface node is 2.83 mm, the normal height difference is 1.66 mm, the dam surface normal difference is 7.3°, and the local curvature difference is 0.072. The corresponding data for the 119th interface node are 2.76 mm, 1.61 mm, 7.0°, and 0.069. Extending laterally along the crack at 1 mm intervals on both banks, after extending the 119th interface node by 2 mm on the left bank and 1 mm on the right bank, the distance between the two banks is 1.58 mm, the included normal angle is 3.1°, and the curvature difference is 0.027, satisfying the conditions that the distance between the two banks is no greater than 2 mm, the included normal angle is no greater than 5°, and the curvature difference is no greater than 0.05. 250 of the 263 interface nodes enter the candidate state for closure. After accumulating the topological closure cost, a minimum cumulative cost state transition path consisting of 246 consecutive interface nodes is obtained.
[0034] After establishing a fixed reference ring around the crack, the normal dam surface geometry was extended along the reference ring towards both banks, obtaining 246 continuous convergence points and forming a target closed trajectory. Candidate closure positions were set at 1-m intervals along the target closed trajectory. Through sequential interface node arrangement and joint closure constraints on both banks, 31 sets of effective closure displacement results were obtained, with cumulative displacements ranging from 405.7 mm to 526.9 mm. The closure displacement corresponding to 405.7 mm was selected to form the minimum disturbance closed field. After closure, the average lateral interval of the 246 interface nodes decreased from 2.61 mm to 0.88 mm, the average normal height difference decreased from 1.49 mm to 0.63 mm, the average normal direction difference decreased from 6.8° to 2.6°, and the average local curvature difference decreased from 0.066 to 0.028.
[0035] After establishing a normal dam surface benchmark using a fixed reference ring, the normal position residual, normal direction residual, and curvature residual of 237 out of 246 interface nodes decreased simultaneously. For example, the normal position residual of the 119th interface node decreased from 2.18 mm to 0.74 mm, the normal direction residual decreased from 7.2° to 2.7°, and the curvature residual decreased from 0.070 to 0.026. Ultimately, 231 continuous interface nodes were formed that met the following criteria: lateral interval no greater than 2 mm, normal height difference no greater than 2 mm, normal direction difference no greater than 5°, and curvature difference no greater than 0.05. These were identified as the closed verification crack segments. The second water stain candidate area, which was considered an interference, had a grayscale difference of 40, but the average reduction in normal position residual before and after closure was only 0.11 mm, and the average reduction in curvature residual was only 0.003. It could not form a continuous positive recovery segment and was therefore excluded.
[0036] Minimum disturbance closed-field inverse displacement was performed on 231 interface nodes, and the results were back-projected onto a visible light image of the dam surface, yielding a restored central axis projection and two restored edge projections. The average pixel position difference for the central axis was 0.94 pixels, for the first edge it was 1.18 pixels, and for the second edge it was 1.21 pixels. After recalculating and restoring the geometry of both banks, 224 continuous interface nodes simultaneously satisfied three conditions: pixel position difference not exceeding 2 pixels, lateral spacing difference and normal height difference not exceeding 2 mm, normal direction difference not exceeding 5°, and curvature difference not exceeding 0.05. This resulted in a central axis and two edges of a three-dimensional crack in the dam body, each approximately 1.09 meters long, and the crack initiation and termination interface nodes were determined.
[0037] For comparison, traditional methods use visible light image grayscale thresholding, edge connectivity, and morphological screening to identify cracks, without utilizing three-dimensional geometric closure verification. In 120 manually verified linear dam surface structures, 64 were identified as genuine cracks and 56 as non-cracks. The traditional method identified 75 cracks (55 genuine cracks, 20 false positives, and 9 missed detections), achieving an accuracy of 75.8% and a genuine crack detection rate of 85.9%. This invention identified 70 cracks (60 genuine cracks, 10 false positives, and 4 missed detections), achieving an accuracy of 88.3% and a genuine crack detection rate of 93.8%. When performing three-dimensional verification on 40 genuine cracks, the traditional method had an average spatial error of 6.4 mm in the crack midline, while this invention had an error of 3.8 mm. The traditional method had an average processing time of 18.2 seconds per detection area, while this invention had a processing time of 23.7 seconds. The comparative results show that this invention, with a limited increase in processing time, can reduce false detections caused by water stains, shadows, and construction joints, and improve the genuine crack detection rate and three-dimensional spatial positioning accuracy.
[0038] The above description is only a preferred embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any equivalent substitutions or modifications made by those skilled in the art within the scope of the technology disclosed in the present invention, based on the technical solution and inventive concept of the present invention, should be covered within the scope of protection of the present invention.
Claims
1. A method for detecting cracks in dam bodies based on the fusion of vision and point cloud data, characterized in that, include: Collect images of the dam surface, 3D point cloud and calibration data and perform preprocessing to obtain standard visual point cloud associated data; Based on standard visual point cloud association data, the crack central axis and double edges are extracted and mapped to the point cloud to construct crack topology cutting zone and obtain three-dimensional crack candidate structure. Based on the three-dimensional crack candidate structure, the cross-crack adjacent parts are cut off, and the cut voxels are divided into left bank elements, right bank elements and interface nodes to obtain crack cutting voxels and interface chains. Based on the crack cutting voxel and interface chain input, the improved DRINet includes a crack topology state construction layer, a double-bank ordered complementary layer, a topology phase transition path layer and an observation state output layer to obtain the observation state characterization. A fixed reference loop is constructed based on the outer dam surface points of the interface chain and extended to both banks. The target closed trajectory is determined based on the extension results. The minimum disturbance closed field is obtained and the closed state characterization is obtained. A normal dam surface benchmark is established based on a fixed reference ring. The geometric residuals of the observed state characterization and the closed state characterization are compared to obtain the closed recovery gain chain and the closed verification crack segment is selected. Based on the inverse recovery of the closed verification crack segment using the minimum disturbance closed field and back projection, the three-dimensional cracks in the dam body are determined according to the correspondence between the recovery results and the crack centerline, double edges and observation state characterization, and the crack detection results are obtained.
2. The method for detecting cracks in dam bodies based on vision and point cloud fusion as described in claim 1, characterized in that, The dam surface image specifically includes visible light image data of the dam surface and image acquisition timestamp; the three-dimensional point cloud specifically includes three-dimensional point coordinates of the dam surface and point cloud acquisition timestamp; and the calibration data specifically includes camera intrinsic parameters, camera distortion parameters, laser scanning equipment calibration parameters, coordinate transformation parameters between the camera and the laser scanning equipment, and pose data of the acquisition equipment.
3. The method for detecting cracks in dam bodies based on vision and point cloud fusion as described in claim 1, characterized in that, The obtained standard visual point cloud association data includes Read the calibration data, perform distortion correction on the visible light image data of the dam surface based on the camera intrinsic parameters and camera distortion parameters, and normalize the pixel values in the corrected visible light image of the dam surface to obtain a standard dam surface image. Outliers were removed from the three-dimensional point coordinates on the dam surface, and the remaining three-dimensional point coordinates on the dam surface were transformed based on the calibration parameters of the laser scanning equipment and the pose data of the acquisition equipment to obtain a standard dam surface point cloud. Time matching is performed based on image acquisition timestamps and point cloud acquisition timestamps. Then, based on the coordinate transformation parameters between the camera and the laser scanning device and the camera intrinsic parameters, the point cloud of the standard dam surface is projected onto the image of the standard dam surface. The correspondence between image pixels and three-dimensional points is established to obtain the standard visual point cloud association data.
4. The method for detecting cracks in dam bodies based on vision and point cloud fusion as described in claim 1, characterized in that, The obtained three-dimensional crack candidate structure includes: Based on standard visual point cloud association data, visible light image data of the dam surface is read, gray level difference between adjacent pixels is calculated and pixels with continuous gray level abrupt changes are selected. Adjacent gray level abrupt change pixels are connected to form crack candidate regions. Contour tracking is performed on the two sides of the crack candidate regions to obtain the crack double edges. The skeleton of the candidate crack region is refined. The two edges of the crack are read position by position along the crack extension direction. The midpoints between the two edges of the crack are connected in sequence. The skeleton offset is corrected according to the midpoint position to obtain the crack central axis. Based on the spatial correlation between the visible light image pixels on the dam surface and the three-dimensional point coordinates on the dam surface, the crack central axis and the crack double edges are mapped to the three-dimensional point cloud. The three-dimensional crack double edges on both sides of the three-dimensional crack central axis are connected to form a crack topological cutting zone. The crack topological cutting zone and the three-dimensional point coordinates of the dam surface within the crack topological cutting zone are combined to form a three-dimensional crack candidate structure.
5. The method for detecting cracks in dam bodies based on vision and point cloud fusion as described in claim 1, characterized in that, The process of obtaining the crack cutting voxel and interface chain includes: Based on the three-dimensional crack candidate structure, read the topological cutting zone of the crack and the coordinates of three-dimensional points on the dam surface, establish the adjacency relationship between three-dimensional points on the dam surface, filter the adjacent point pairs whose lines pass through the crack topological cutting zone and cut the adjacency, and obtain the cut adjacent point set. Based on the set of adjacent points of the cut, the three-dimensional point cloud is divided into voxels. The voxels through which the crack topological cutting zone passes are determined as the cut voxels. The left bank unit and the right bank unit are established according to the position of the three-dimensional points on the dam surface on both sides of the three-dimensional crack central axis. An interface node is established between the left bank unit and the right bank unit to obtain the crack cutting voxels. The interface nodes are arranged according to the extension sequence of the crack cutting voxel along the central axis of the three-dimensional crack, and the adjacent interface nodes are connected to form an interface chain, thus obtaining the crack cutting voxel and the interface chain.
6. The method for detecting cracks in dam bodies based on vision and point cloud fusion according to claim 1, characterized in that, The obtained observation state characterization includes: An improved DRINet is constructed, which includes a crack topology state construction layer, a two-bank ordered complementarity layer, a topology phase transition path layer, and an observation state output layer. The crack topology state construction layer is based on crack cutting voxels and interface chains. Iterative aggregation between three-dimensional points and voxels on the dam surface in the left bank unit and the right bank unit is performed respectively. Adjacent connections across cracks are kept broken. Separate topological connections between the left bank unit, interface nodes and the right bank unit are established according to the interface chain sequence to obtain the separated topology state sequence. The ordered complementary layer of the two banks is based on the separated topological state sequence. The transverse interval, normal height difference, dam surface normal difference and local curvature difference of the three-dimensional points on the surface of the dam on both sides of the interface node are calculated. The geometric state of the two banks is extended laterally along the crack. Candidate pairings are established according to the longitudinal order of the interface chain. Candidate pairings that change the order of the left and right banks, cross the reconnection edge of the banks and exceed the range of the two edges of the crack are deleted to obtain the ordered non-crossing complementary sequence of the two banks. The topological phase transition path layer is based on an ordered non-crossing double-bank complementary sequence. It establishes a restricted transfer edge from the left bank unit to the right bank unit through the interface node, and transforms the interface node from a separated state to a paired state. For the paired state that satisfies the position, normal and curvature continuation conditions, candidate cross-bank reconnection edges are established and transformed into closed candidate states. The topological phase transition path is formed by extending along the interface chain. The topological closure cost is calculated based on the spatial displacement, geometric change and adjacency change, and the continuous state transition path with the minimum cumulative topological closure cost is obtained. The observation state output layer is based on a continuous state transition path. It records the separation state, complementary state, pairing state, closure candidate state and topological closure cost of the interface nodes in the order of the interface chain to form the crack topological observation trajectory and obtain the observation state characterization. The improved DRINet was trained using a weighted sum of topology state reconstruction error, bilateral complementarity error, and topology phase transition path continuity error as the optimization objective. The parameters of the crack topology state construction layer, bilateral ordered complementarity layer, topology phase transition path layer, and observation state output layer were continuously optimized. When the total loss change rate of 20 consecutive training rounds did not exceed 0.001, the improved DRINet was considered to have converged.
7. The method for detecting cracks in dam bodies based on vision and point cloud fusion according to claim 1, characterized in that, The process of finding the minimum perturbation closed field and obtaining the closed state characterization includes: Based on the interface chain, the coordinates of three-dimensional points on the dam surface outside the crack topological cutting zone are extracted. The points on the dam surface are continuously connected along the outer edge of the interface chain to form a fixed reference ring, and the spatial position of the fixed reference ring remains unchanged. Based on the fixed reference ring, the dam surface position, normal and curvature are read, and the extension is carried out to the left bank unit and the right bank unit respectively. The convergence position of the extension results of the two banks is determined according to the conditions of position continuity, normal continuity and curvature continuity, and the target closed trajectory is obtained. Based on the target closed trajectory, with the left bank unit and the right bank unit closing to the target closed trajectory as constraints, while keeping the arrangement order of interface nodes along the crack central axis unchanged, the left bank unit and the right bank unit are restricted to move only along the local plane formed by the crack transverse direction and the dam surface normal direction. The closed displacement result with the minimum cumulative displacement is selected to obtain the minimum disturbance closed field, and the closed state characterization is obtained based on the geometric state of the two banks after closure.
8. The method for detecting cracks in dam bodies based on vision and point cloud fusion as described in claim 1, characterized in that, The screening and verification of the crack segment closure includes: Based on fitting a normal dam surface benchmark with a fixed reference ring, the normal position residual, normal direction residual, and curvature residual of the observed state characterization and the closed state characterization relative to the normal dam surface benchmark are calculated according to the interface nodes, so as to obtain the observed geometric residual sequence and the closed geometric residual sequence. Based on the observation geometric residual sequence and the closed geometric residual sequence, the residual reduction of each interface node from the observation state to the closed state is calculated in the order of the interface chain. Combined with the reduction of the lateral interval and the normal height difference, a closed recovery gain chain is formed. Based on the closed recovery gain chain, continuous interface chain segments are selected where the normal position residual, normal direction residual, and curvature residual decrease synchronously from the observed state to the closed state, the amount of residual reduction is continuously positive along the interface chain, and the lateral interval, normal height difference, normal direction difference, and curvature difference all approach the normal dam surface reference. These segments are then used to obtain the closed verification crack segments.
9. The method for detecting cracks in dam bodies based on vision and point cloud fusion according to claim 1, characterized in that, The obtained crack detection results include: Based on the minimum disturbance closed field, reverse displacement is performed on the closed verification crack segment to restore the observation positions of the left bank unit, right bank unit and interface node, and the reverse restored crack structure is obtained; Based on the coordinate transformation parameters between the camera and the laser scanning device and the camera intrinsic parameters, the inversely restored crack structure is back-projected onto the visible light image of the dam surface to obtain the crack restored projection, and the pixel position difference between the crack restored projection and the crack central axis and double edges is calculated. Based on the reverse recovery of crack structure, the geometric difference between the geometric state of the two banks and the observed state is calculated. Closed verification crack segments that simultaneously satisfy the original crack observation state are selected, the three-dimensional cracks of the dam body are determined, and the crack detection results are obtained.
10. A dam crack detection system based on vision and point cloud fusion, comprising the dam crack detection method based on vision and point cloud fusion as described in any one of claims 1 to 9, characterized in that, Includes the following modules: The data preprocessing module is used to collect images of the dam surface, 3D point clouds and calibration data and perform preprocessing to obtain standard visual point cloud associated data; The crack candidate construction module is used to extract the crack central axis and double edges and map them to the point cloud to construct the crack topology cutting zone and obtain the three-dimensional crack candidate structure. The topology cutting module is used to cut off cross-crack adjacencies, dividing the cut voxels into left bank elements, right bank elements and interface nodes, to obtain crack cutting voxels and interface chains. The observation state generation module is used to obtain the observation state characterization based on crack cutting voxels and interface chains by improving DRINet. The closed state generation module is used to construct a fixed reference loop and extend it to both banks, determine the target closed trajectory, obtain the minimum perturbation closed field, and obtain the closed state characterization. The closure verification module is used to establish a normal dam surface benchmark, compare the geometric residuals of the observed state characterization and the closure state characterization, obtain the closure recovery gain chain, and screen the closure verification crack segments. The crack detection module is used to reverse-engineer and verify the closed crack segment and back-project it to determine the three-dimensional cracks in the dam body and obtain the crack detection results.
