Bridge structure crack length measuring method
Through the combination of image segmentation network and feature transformation algorithm, high-precision measurement of bridge structure crack length is achieved, which solves the problems of measurement error and insufficient accuracy in the existing technology, provides a bridge structure crack length measurement method, and improves the Identification accuracy and measurement accuracy.
Patent Information
- Application Number
- CN202410638809.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-22
- Publication Date
- 2024-10-01
Smart Images

Figure CN118735853A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of bridge engineering, and in particular to a method for measuring the length of cracks in a bridge structure. Background Art
[0002] Accurate identification of quantitative information such as crack length is very important for assessing crack severity and evaluating the overall performance of the bridge structure.
[0003] Since cracks in bridge structures are often small and widely distributed, manual measurement is difficult to achieve comprehensive crack measurement and repeatability of measurement results, while image-based automatic processing is also difficult to achieve accurate measurement.
[0004] The existing image segmentation method based on convolutional neural network can extract structural cracks to a large extent, but there are often large errors in the crack length calculation method based on crack skeleton pixel statistical mapping and the length value based on crack skeleton and actual engineering measurement. Summary of the invention
[0005] Based on this, it is necessary to provide a method for measuring crack length of bridge structure with high crack length identification accuracy.
[0006] The present invention provides a method for measuring the length of a crack in a bridge structure, comprising:
[0007] Through the image segmentation network, a segmented crack image is obtained, wherein the crack image includes cracks and background, and the crack image is subjected to adaptive threshold processing through the cv2.thresho function in OpenCV to obtain a binary crack image;
[0008] Using a medial axis skeleton algorithm on the cracks in the binary crack image, gradually eliminating boundary pixels in the binary image, so as to skeletonize the binary crack image, thereby obtaining a crack skeleton;
[0009] Using a discrete skeleton evolution pruning algorithm based on feature transformation to remove burrs from the skeletonized binary crack image;
[0010] After the burrs of the crack skeleton are removed, the crack skeleton is separated according to the directional continuity criterion and the shortest path criterion by combining the principles of morphology and graph theory;
[0011] After the skeleton point optimization is completed, the Euclidean length between adjacent skeleton points is calculated to obtain the Euclidean length of the corresponding skeleton segment, and then all skeleton segments are summed to obtain the crack pixel length of the corresponding area, as shown in formula (1):
[0012]
[0013] Preferably, the bridge structure crack length measurement method further comprises the following step: calculating the bridge structure crack length using a calculation method corresponding to pixel-by-pixel edge segments.
[0014] Preferably, the conversion relationship between the crack pixel length and the actual crack length is as shown in formula (2):
[0015] L i =αdL c (2)
[0016] Where, L i is the actual length of the crack, L i The unit is mm, α is the scaling factor, d is the distance between the camera and the structural plane, and Lc is the total length of the crack pixels.
[0017] Preferably, the image segmentation network adopts Deeplabv3+.
[0018] Preferably, the medial axis skeleton algorithm generates a central axis to represent the main skeleton of the crack by the distance from each pixel point to the nearest boundary in the binary crack image.
[0019] Preferably, the discrete skeleton evolutionary pruning algorithm based on feature transformation comprises the following steps:
[0020] First, the unpruned skeleton is obtained by the medial axis skeleton transformation and the distance transformation matrix composed of the maximum circle radius on each skeleton point;
[0021] The reconstructed shape is then obtained by merging the ring of each skeleton point with its corresponding radius.
[0022] Preferably, assuming that the skeleton point is s, the distance transformation matrix is S, and the maximum circle radius of the skeleton point is r, the reconstructed shape R(S) can be obtained, as shown in formula (3):
[0023]
[0024] Each branch end of the skeleton is then given a weight according to its contribution to the reconstructed shape. By setting a reasonable threshold α for the weight, the crack skeleton burrs can be removed. The crack trimming threshold α is 50.
[0025] Preferably, the separation of the crack skeleton comprises the following steps:
[0026] Firstly, the remaining skeleton point features of the crack are mapped to a tree structure, and then the crack skeleton is separated according to the directional continuity criterion and the shortest path criterion.
[0027] The separated skeleton can automatically determine the main cracks and branch cracks in complex crack situations to calculate the length of the cracks.
[0028] Preferably, the following steps are included before calculating the crack pixel length:
[0029] The skeleton points after burr removal are simplified, and all skeleton points except the intersection points and endpoints in the skeleton point set are cyclically judged. If the angle between the current skeleton point and the adjacent skeleton point is greater than 150°, the current point is deleted.
[0030] Preferably, in the crack pixel length measurement, the distance between each intersection of the crack is measured, and the distance between the intersection and the endpoint is measured, wherein the intersection refers to a skeleton point with adjacent points ≥ 3, and the endpoint refers to a skeleton point with adjacent points = 1.
[0031] The medial axis skeleton algorithm can accurately reflect the morphology of the object and has good robustness to the distortion and bending of the morphology, so that the present invention can accurately obtain the morphology of the crack; the algorithm based on feature transformation can remove unnecessary skeleton points according to the set standard, which is a more flexible pruning method for crack measurement. The discrete skeleton evolution pruning algorithm based on feature transformation is used to remove burrs to achieve accurate measurement of the crack length; through the above steps, the bridge structure crack length measurement method based on optimized skeleton point segmentation statistics of the present application has a high crack length recognition accuracy. It solves the problem that the previous crack length calculation method based on crack skeleton pixel statistical mapping of the crack binary image extraction result has a large error with the length value measured in the actual engineering. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the structures shown in these drawings without paying creative work.
[0033] Figure 1(a) to Figure 1(e) This is a schematic diagram of the skeleton solution of the medial axis skeleton algorithm;
[0034] Figure 2 Schematic diagram of crack characteristic points;
[0035] Figure 3(a) to Figure 3(c) Schematic diagram of skeleton point optimization process;
[0036] Figure 4(a) to Figure 4(c) Calculate graph for optimized segment segmentation length;
[0037] Figure 5 This is a schematic diagram of pixel value to engineering quantity conversion;
[0038] Figure 6 It is a schematic diagram of the process of the present invention;
[0039] Figure 7(a) is a scene diagram of the seam length measurement;
[0040] Figure 7(b) is a distance measurement site map;
[0041] Figure 8 This is the fitting result diagram of the seam length measurement data;
[0042] Fig. 9 For the comparison of skeletonization schemes;
[0043] Fig.10 Comparison of pruning thresholds for the DCE algorithm;
[0044] Fig.11 Complete process for seam length processing.
[0045] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0046] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0047] It should be noted that all directional indications in the embodiments of the present invention (such as up, down, left, right, front, back, etc.) are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.
[0048] In addition, the descriptions of "first", "second", etc. in the present invention are only used for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, "and / or" in the full text includes three solutions. Taking A and / or B as an example, it includes technical solution A, technical solution B, and technical solution that satisfies both A and B. In addition, the technical solutions between the various embodiments can be combined with each other, but it must be based on the ability of ordinary technicians in this field to implement. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by the present invention.
[0049] refer to Fig.11 The present invention provides a method for measuring the length of cracks in a bridge structure, comprising the following steps:
[0050] S100, obtaining a segmented crack image through an image segmentation network, wherein the crack image includes cracks and background, and performing adaptive threshold processing on the crack image through the cv2.thresho function in OpenCV to obtain a binary crack image;
[0051] S200, using a medial axis skeleton algorithm on the cracks in the binary crack image, gradually eliminating boundary pixels in the binary image, so as to skeletonize the binary crack image, thereby obtaining a crack skeleton;
[0052] S300, removing burrs from the skeletonized binary crack image using a discrete skeleton evolution pruning algorithm based on feature transformation;
[0053] S400, after the burrs of the crack skeleton are removed, the crack skeleton is separated according to the directional continuity criterion and the shortest path criterion by combining the principles of morphology and graph theory;
[0054] S500, after the skeleton point optimization is completed, the Euclidean length between adjacent skeleton points is calculated to obtain the Euclidean length of the corresponding skeleton segment, and then all skeleton segments are summed to obtain the crack pixel length of the corresponding area, as shown in formula (1):
[0055]
[0056] The medial axis skeleton algorithm can accurately reflect the morphology of the object and has good robustness to the distortion and bending of the morphology, so that the present invention can accurately obtain the morphology of the crack; the algorithm based on feature transformation can remove unnecessary skeleton points according to the set standard, which is a more flexible pruning method for crack measurement. The discrete skeleton evolution pruning algorithm based on feature transformation is used to remove burrs to achieve accurate measurement of the crack length; through the above steps, the bridge structure crack length measurement method based on optimized skeleton point segmentation statistics of the present application has a high crack length recognition accuracy. It solves the problem that the previous crack length calculation method based on crack skeleton pixel statistical mapping of the crack binary image extraction result has a large error with the length value measured in the actual engineering.
[0057] In this embodiment, OpenCV is a computer vision and machine learning library that provides a series of functions and algorithms for image and video processing, and the cv2.thresho function is an image binarization function.
[0058] Euclidean distance is a commonly used distance definition, which refers to the true distance between two points in m-dimensional space. Euclidean length calculation between adjacent skeleton points refers to calculating the true distance between adjacent skeleton points.
[0059] Furthermore, the bridge structure crack length measurement method further includes the following steps: S600, calculating the bridge structure crack length using a calculation method corresponding to pixel-by-pixel edge segments.
[0060] Furthermore, the conversion relationship between the crack pixel length and the actual crack length is shown in formula (2):
[0061] L i =αdL c (2)
[0062] Where, L i is the actual length of the crack, L i The unit is mm, α is the scaling factor, d is the distance between the camera and the structural plane, and Lc is the total length of crack pixels. The conversion relationship between pixel length and actual length is as follows: Figure 5 shown.
[0063] In the prior art, there are still large errors in the crack length calculation method based on crack skeleton pixel statistical mapping and the length value based on the crack skeleton and actual engineering measurement, and it is difficult for the segmented image to form a corresponding relationship with the actual crack measurement value. The present invention solves the problem that it is difficult for the segmented image to form a corresponding relationship with the actual crack measurement value through the above steps.
[0064] Furthermore, the image segmentation network uses Deeplabv3+. DeepLabV3 is a segmentation network developed by Google, which combines multiple advanced technologies to bring segmentation to a new level. The model has been widely used, and its entire training process has been open sourced, so that users can use the published model for testing or train based on their own data sets to obtain better results.
[0065] Furthermore, the medial axis skeleton algorithm in step S200 generates a central axis to represent the main skeleton of the crack by the distance from each pixel point to the nearest boundary in the binary crack image. The medial axis skeleton algorithm is used for the cracks in the binary crack image to gradually eliminate the boundary pixels in the binary image without destroying the overall connectivity. This method can accurately reflect the morphology of the object and has good robustness to the distortion and bending of the morphology.
[0066] The present invention selects the medial axis skeleton algorithm as the crack skeletonization algorithm. The core idea of the algorithm is that each skeleton point obtained is the center point of the largest circular ring that is tangent to the image foreground boundary at least two points, and the foreground boundary points tangent to the circular ring do not overlap with each other. Figure 1(a) to Figure 1(d) shown.
[0067] Specifically, for the medial axis skeleton algorithm of step S200, the commonly used crack skeletonization methods currently include the medial axis skeleton algorithm, Guo-Hall refinement algorithm, Lee skeleton algorithm, Zhang-Suen skeleton algorithm, etc. The medial axis skeleton algorithm calculates the distance from each pixel point to the nearest boundary in the binary image to generate a central axis to represent the main skeleton of the object. This method can accurately reflect the morphology of the object and has good robustness to distortion and bending of the morphology. The Guo-Hall refinement algorithm traverses the pixels and removes redundant pixels to obtain a refined skeleton. This method is sensitive to changes in pixel morphology and is suitable for situations where the skeleton is slender, straight, and has few bifurcations. The Lee skeleton algorithm and the Zhang-Suen skeleton algorithm are two iteration-based algorithms that obtain a refined skeleton by continuously removing pixels. The skeletonization effect diagrams of each skeletonization algorithm under different crack morphologies are shown in the following figure. Fig. 9 As shown. Based on the geometric characteristics of the crack, the present invention requires that the skeletonized crack has the ability to restore the original shape in order to measure each terminal branch and locate the local boundary point. Therefore, this paper selects the medial axis skeleton algorithm as the crack skeletonization algorithm.
[0068] Furthermore, in step S300, the discrete skeleton evolutionary pruning algorithm based on feature transformation includes the following steps:
[0069] S310, first, an unpruned skeleton obtained by medial axis skeleton transformation and a distance transformation matrix composed of the maximum circle radius of each skeleton point;
[0070] S320, then obtain the reconstructed shape by merging the ring of each skeleton point and its corresponding radius.
[0071] Specifically, let the skeleton point be s, the distance transformation matrix be S, and the maximum circle radius of the skeleton point be r, then the reconstructed shape R(S) can be obtained, as shown in formula (3):
[0072]
[0073] Each branch end of the skeleton is then given a weight according to its contribution to the reconstructed shape. By setting a reasonable threshold α for the weight, the crack skeleton burrs can be removed. The pruning threshold α for the crack is set to 50. Specifically, through testing on a public crack dataset, the pruning threshold α for the crack is set to 50, and the effect is shown in Figure 2. Fig.10 The value of the threshold α will directly affect the burr removal effect, so the burr removal effect of the algorithm under different thresholds is further verified. Fig.10Specifically, when α is 10, there are still a few burrs in the crack skeleton, and when α is 500, although all the skeleton burrs are removed, the main structure of the crack skeleton is no longer complete, which shows that when α is large, there is excessive "pruning". When α is 50, it can be seen that the burr removal is ideal, while also ensuring the accuracy and continuity of the skeleton. Therefore, we set the pruning threshold α of the algorithm for cracks to 50.
[0074] Specifically, in step S300, a discrete skeleton evolution pruning algorithm based on feature transformation is used to remove burrs. Small noise or boundary changes in binary images often produce redundant skeleton branches. The mainstream crack skeleton burr removal scheme often detects the skeleton nodes first, calculates the length between adjacent nodes through the nodes and their direction information, and removes burrs by setting a length threshold. The main burr algorithms: shape-based refinement algorithm, Voronoi-based analysis algorithm, and feature transformation-based or distance transformation-based algorithm. By comparing the three typical burr algorithms, it can be found that the shape-based refinement algorithm and the Voronoi-based analysis algorithm cannot guarantee the connectivity of the central axis and the skeleton cannot maintain the original topological structure. The algorithm based on feature transformation or distance transformation can remove unnecessary skeleton points according to the set standards, which is a more flexible pruning method for crack measurement.
[0075] Furthermore, in step S400, the separation of the crack skeleton includes the following steps:
[0076] S410, first mapping the remaining skeleton point features of the crack to a tree structure, and then completing the separation of the crack skeleton according to the directional continuity criterion and the shortest path criterion;
[0077] S420, the separated skeleton can automatically determine the main cracks and branch cracks in the case of complex cracks to calculate the length of the cracks.
[0078] Specifically, the separation of the crack skeleton in step S400 combines the principles of morphology and graph theory to transform the crack skeleton problem into a network optimization problem. First, the remaining skeleton point features of the crack are mapped to a tree structure, and then the crack skeleton is separated according to the directional continuity criterion and the shortest path criterion. The separated skeleton can automatically determine the main crack and branch crack in the case of complex cracks to better calculate the length of the crack.
[0079] Furthermore, in step S500, before calculating the crack pixel length, the following steps are included:
[0080] S501, simplify the skeleton points after burr removal, cyclically judge all skeleton points in the skeleton point set except the intersection points and the end points, and delete the current point if the angle between the current skeleton point and the adjacent skeleton point is greater than 150°, such as Figure 3(a) , 3(b) shown.
[0081] Furthermore, in the crack pixel length measurement, the distance between each intersection of the crack is measured, and the distance between the intersection and the end point is measured, where the intersection refers to the skeleton point with adjacent points ≥ 3, and the end point refers to the skeleton point with adjacent points = 1, such as Figure 2 shown.
[0082] Specifically, in step S500, the crack pixel length is calculated by performing Euclidean length calculation between adjacent skeleton points, as shown in FIG3(c), and then summing all skeleton segments to obtain the regional crack pixel length Lc, as shown in formula (2). By calculating the crack pixel length Lc of the optimized segment, we can obtain Fig.11 The total length of cracks in each image. Figure 4(a) , 4(b) , 4(c). Assume that the upper left end point of each figure is the origin of the coordinate axis, and the parameter unit in the figure is "pixel". Since the measurement method of crack images in this method is close to the actual engineering measurement, after adding the scaling factor α, a smaller error will be generated in the process of linear mapping with the actual length.
[0083] The present invention is further described in detail below with reference to specific embodiments, but the embodiments of the present invention are not limited thereto.
[0084] Embodiment 1:
[0085] This embodiment proposes a bridge structure crack length measurement method based on optimized skeleton point segmentation statistics on the basis of a bridge crack image segmented by a neural segmentation network, which is used to measure the length of a bridge crack, and includes the following steps:
[0086] Step 1: Binarize the bridge crack image output from the segmentation neural network into jpg format, and then use Python to write a binarization script. In it, the cv2.thresho function in the OpenCV package is called to perform adaptive threshold processing to obtain a binary crack image;
[0087] Step 2: Skeletonize the binary crack image. The input is a binary crack image and the output is a skeletonized crack image. First, map the remaining skeleton point features of the crack to a tree structure, and then separate the crack skeleton according to the directional continuity criterion and the shortest path criterion. The separated skeleton can automatically determine the main cracks and branch cracks in complex crack situations to better calculate the length of the cracks. Among them, use the scikit_image library in Pyton to convert the image into a grayscale image, and then output the crack image skeleton by calling the skimage.morphology.medial_axis function;
[0088] Step 3: Remove burrs by using a discrete skeleton evolution pruning algorithm based on feature transformation to maintain topological properties without changing the central axis of the discrete shape or shortening the branches, and then iteratively remove the branch ends of the skeleton. First, the unpruned skeleton is obtained by transforming the central axis skeleton and the distance transformation matrix composed of the maximum circle radius on each skeleton point. Then the reconstructed shape is obtained by merging the circle of each skeleton point with its corresponding radius. Each branch end of the skeleton is assigned a weight according to its contribution to the reconstructed shape. By setting a reasonable threshold α for the weight, the removal of crack skeleton burrs can be completed. The pruning threshold α is set to 50.
[0089] Step 4: Separation and optimization of the skeleton. In actual measurement, the distances between the intersection points of the cracks (adjacent points ≥ 3) and between the intersection points and the endpoints (adjacent points = 1) are measured, so the optimization is performed according to the following algorithm: all skeleton points except the intersection points and the endpoints in the skeleton point set are cyclically judged. If the angle between the current skeleton point and the adjacent point is greater than 150°, the current point is deleted.
[0090] Step 5: Calculate the Euclidean length of the optimized skeleton, and then sum all the skeleton segments to get the regional crack pixel length Lc, as shown in formula (1). Then complete the conversion between the local crack pixel length (pixel) and the actual crack length (mm), and the relationship is shown in formula (2).
[0091] Step 6: Use a camera and a laser rangefinder to take and measure 20 structural cracks on site, and test and compare the proposed method, as shown in Figure 7(a) and Figure 7(b). In order to minimize the error generated during the measurement process, the camera is kept perpendicular to the structural crack plane when shooting, and the laser rangefinder is used to measure the distance between the shooting point and the structural plane. At the same time, a millimeter ruler with an accuracy of 0.5 mm is used to measure the crack length. The specific measurement statistical results are shown in Table 1.
[0092] Table 1: Crack length measurement statistics
[0093]
[0094]
[0095] In order to reasonably derive the scaling factor α in formula (2), the least squares method is used to perform linear regression analysis on the data in Table 1. Figure 8 As shown, the ordinate represents the actual length of the crack L, and the abscissa represents the product of the shooting distance and the crack pixel length dL c. In the linear regression problem, R2 is an indicator used to measure the goodness of fit of the regression model. Its value range is [0,1]. When the value of R2 is closer to 1, the better the fitting effect of the regression model. As can be seen from the figure, the data scatter points are evenly distributed on both sides of the fitting curve, and the R2 value of the fitted curve is 0.98669. It can be seen that there is a significant linear correlation between the proposed crack length pixel value calculation method and the measured crack length value.
[0096] according to Figure 8 The scaling factor α is calculated to be 0.48715, and the conversion formula between the crack pixel length and the actual physical length is obtained, as shown in formula (4).
[0097] L=0.48715dL c (4)
[0098] In order to further verify the applicability of formula (4) in actual measurement, the crack length measured in the field is compared with the crack length calculated by the formula and the relative error is calculated, as shown in Table 2.
[0099] Table 2: Comparison of crack length calculation results
[0100]
[0101] According to the results in the table, the maximum absolute error between the measured crack length and the crack length calculated by the formula is 10 mm, the maximum relative error is 2.41%, the average relative error is 1.88%, and the average calculation accuracy of the crack length is 98.12%.
[0102] The above description is only a preferred embodiment of the present invention, and does not limit the patent scope of the present invention. All equivalent structural changes made by using the contents of the present invention specification and drawings under the inventive concept of the present invention, or directly / indirectly applied in other related technical fields are included in the patent protection scope of the present invention.
Claims
1. A method for measuring the length of cracks in a bridge structure, characterized in that: The following steps are involved: Through the image segmentation network, a segmented crack image is obtained, wherein the crack image includes cracks and background, and the crack image is subjected to adaptive threshold processing through the cv2.thresho function in OpenCV to obtain a binary crack image; Using a medial axis skeleton algorithm on the cracks in the binary crack image, gradually eliminating boundary pixels in the binary image, so as to skeletonize the binary crack image, thereby obtaining a crack skeleton; Using a discrete skeleton evolution pruning algorithm based on feature transformation to remove burrs from the skeletonized binary crack image; After the burrs of the crack skeleton are removed, the crack skeleton is separated according to the directional continuity criterion and the shortest path criterion by combining the principles of morphology and graph theory; Skeleton point optimization: measure the distance between each intersection of the crack and between the intersection and the endpoint. The intersection refers to the skeleton point with ≥3 adjacent points, and the endpoint refers to the skeleton point with 1 adjacent point. The optimization details are as follows: loop to judge all skeleton points except the intersection and the endpoint. If the angle between the current skeleton point and the adjacent point is greater than 150°, delete the current point. After the skeleton point optimization is completed, the Euclidean length between adjacent skeleton points is calculated to obtain the Euclidean length of the corresponding skeleton segment, and then all skeleton segments are summed to obtain the crack pixel length of the corresponding area, as shown in formula (1):
2. The method for measuring the length of cracks in a bridge structure according to claim 1, characterized in that: The bridge structure crack length measurement method further comprises the following steps: calculating the bridge structure crack length by using a pixel-by-pixel edge segment corresponding calculation method.
3. The method for measuring the length of cracks in a bridge structure according to claim 1, characterized in that: The conversion relationship between the crack pixel length and the actual crack length is shown in formula (2): L i =αdL c (2) Where, L i is the actual length of the crack, L i The unit is mm, α is the scaling factor, d is the distance between the camera and the structural plane, and Lc is the total length of the crack pixels.
4. The method for measuring the length of cracks in a bridge structure according to claim 1, characterized in that: The image segmentation network adopts Deeplabv3+.
5. The method for measuring the length of cracks in a bridge structure according to claim 1, characterized in that: The medial axis skeleton algorithm generates a central axis to represent the main skeleton of the crack by calculating the distance from each pixel point to the nearest boundary in the binary crack image.
6. The method for measuring the length of cracks in a bridge structure according to claim 1, characterized in that: The discrete skeleton evolutionary pruning algorithm based on feature transformation comprises the following steps: First, the unpruned skeleton is obtained by the medial axis skeleton transformation and the distance transformation matrix composed of the maximum circle radius on each skeleton point; The reconstructed shape is then obtained by merging the ring of each skeleton point with its corresponding radius.
7. The method for measuring the length of cracks in a bridge structure according to claim 6, characterized in that: Assume that the skeleton point is s, the distance transformation matrix is S, and the maximum circle radius of the skeleton point is r, then the reconstructed shape R(S) can be obtained, as shown in formula (3): Each branch end of the skeleton will then be assigned a weight according to its contribution to the reconstructed shape, and the burrs of the crack skeleton can be removed by setting a reasonable threshold α for the weight.
8. The method for measuring the length of cracks in a bridge structure according to claim 1, characterized in that: The separation of the crack skeleton comprises the following steps: Firstly, the remaining skeleton point features of the crack are mapped to a tree structure, and then the crack skeleton is separated according to the directional continuity criterion and the shortest path criterion. The separated skeleton can automatically determine the main cracks and branch cracks in complex crack situations to calculate the length of the cracks.
9. The method for measuring the length of cracks in a bridge structure according to claim 1, characterized in that: The following steps are included before calculating the crack pixel length: The skeleton points after burr removal are simplified, and all skeleton points except the intersection points and endpoints in the skeleton point set are cyclically judged. If the angle between the current skeleton point and the adjacent skeleton point is greater than 150°, the current point is deleted.
10. The method for measuring the length of cracks in a bridge structure according to claim 1, characterized in that: In the crack pixel length measurement, the distance between each intersection of the crack is measured, and the distance between the intersection and the end point is measured, where the intersection refers to the skeleton point with adjacent points ≥3, and the end point refers to the skeleton point with adjacent points = 1.
Citation Information
Cited By
Method for automatically marking crack semantic segmentation and improving segmentation effect
CN119251508A
Method, device and system for calculating real length of concrete crack and storage medium
CN119444828A
Post-processing optimization and quantification method, device and equipment for crack segmentation image
CN121236214A
Complex background crack image candidate optimization, continuous restoration and quantification method and system
CN122244057A
Complex background crack image candidate optimization, continuous repair and quantification method and system
CN122244057B
