A method for concrete crack identification based on computer image processing

Through computer image processing technology, combined with high-resolution photography, histogram equalization, morphological operations and deep learning, the problem of difficult edge detection in concrete crack identification is solved, achieving accurate identification of cracks and the reliability of identification data.

CN118505701BActive Publication Date: 2024-10-18GUANGZHOU MARITIME INST
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410963049.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-18
Publication Date
2024-10-18
Estimated Expiration
2044-07-18

AI Technical Summary

Technical Problem

In the process of identifying concrete cracks, traditional edge detection algorithms are difficult to accurately distinguish cracks from other texture features, and cracks are not prominent enough in the image and are easily covered by other texture features, making identification difficult.

Method used

Computer image processing-based methods are adopted, including high-resolution camera equipment shooting, histogram equalization, morphological operator design, Canny and Sobel algorithm edge detection, deep learning semantic segmentation model and logical judgment and voting mechanism, and comprehensive analysis to achieve accurate identification.

Benefits of technology

It improves the visual difference between cracks and background, eliminates noise, highlights the structural characteristics of cracks, accurately extracts crack edges and geometric parameters, and enhances the accuracy and reliability of identification.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118505701B_ABST
    Figure CN118505701B_ABST
Patent Text Reader

Abstract

The present invention discloses a concrete crack recognition method based on computer image processing, comprising the following steps: S1, obtaining a clear and colorful surface image; S2, applying image enhancement technology to the acquired concrete surface image; S3, designing a special morphological operation operator according to the morphological characteristics of concrete cracks; S4, performing multi-scale and multi-directional crack edge extraction; S5, performing morphological analysis on the crack edges; S6, using a semantic segmentation model in deep learning to analyze the original image; S7, integrating the results of edge detection and semantic segmentation; using the semantic segmentation model of deep learning to classify cracks at the pixel level, combining the results of edge detection and semantic segmentation for comprehensive analysis and optimization, which helps to more finely distinguish cracks from other texture features and solve the problem of inconsistent crack feature patterns.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of concrete structure detection, in particular to a concrete crack recognition method based on computer image processing. Background Art

[0002] In the process of concrete crack identification, crack extraction is a key and challenging step. There are often a lot of texture features on the concrete surface, such as rough surface, bubbles, impurities, and noise caused by light and shadow.

[0003] These texture features and cracks present similar visual features in the image, such as edges and grayscale changes, resulting in low differentiation between cracks and background.

[0004] Traditional edge detection algorithms have difficulty accurately distinguishing cracks from other texture features, often misidentifying some non-crack textures as cracks, or ignoring some minor cracks. At the same time, cracks occupy a small proportion of pixels in the image, the features are not significant enough, and are easily obscured by other texture features.

[0005] In addition, cracks are irregular and random in shape, with large variations in width, length and direction, and lack of consistent feature patterns, which makes feature extraction more difficult. Therefore, how to accurately separate crack features from complex concrete surface textures and eliminate interference from other textures is a technical problem that needs to be solved urgently.

[0006] This requires the development of more intelligent and sophisticated crack extraction algorithms, in-depth analysis of the morphological and texture characteristics of cracks, and the establishment of effective mathematical models and strategies to achieve accurate identification and extraction of cracks. Summary of the invention

[0007] In order to solve the above-mentioned technical problems, the present invention provides a concrete crack identification method based on computer image processing.

[0008] The technical solution of the present invention is achieved in this way:

[0009] A concrete crack identification method based on computer image processing comprises the following steps:

[0010] S1. Use high-resolution camera equipment to shoot the concrete surface to obtain clear and colorful surface images, which will serve as basic data input for concrete crack identification;

[0011] S2, applying image enhancement technology to the acquired concrete surface image, selecting the histogram equalization method to improve the image contrast and strengthen the visual difference between the cracks and the background;

[0012] S3, designing a special morphological operation operator according to the morphological characteristics of concrete cracks, and performing opening and closing operations on the image enhanced by histogram equalization;

[0013] S4. Using the morphologically processed image, the crack edge is extracted by edge detection algorithm. Specifically, Canny algorithm and Sobel algorithm are used to extract the crack edge in multiple scales and multiple directions to obtain a clear and continuous crack outline.

[0014] S5, performing morphological analysis on the crack edge extracted from the previous step, measuring and calculating the width, length and direction geometric parameters of the crack by means of connected domain marking and skeleton extraction;

[0015] S6. Use the semantic segmentation model in deep learning to analyze the original image and select the classic U-Net model to classify the cracks at the pixel level;

[0016] S7. Based on the results of edge detection and semantic segmentation, the crack area is optimized using logical judgment and voting mechanisms to eliminate the errors generated by a single technology, and ultimately accurate and reliable concrete crack identification data is obtained.

[0017] Compared with the prior art, the present invention has the following beneficial effects:

[0018] 1. The present invention uses a high-resolution camera to shoot the concrete surface and applies a histogram equalization method to improve the image contrast, so that the visual difference between the crack and the background is more obvious, which helps to enhance the recognizability of the crack, thereby providing better basic data input for subsequent crack detection;

[0019] 2. Through opening and closing operations, image noise is eliminated and the structural characteristics of cracks are emphasized, which helps to smooth the crack area and highlight the morphological characteristics of cracks, laying the foundation for subsequent crack detection and solving the problem that cracks are similar to other texture features;

[0020] 3. Using the morphologically processed image, combined with the Canny algorithm and the Sobel algorithm, the crack edge is extracted to obtain a clear and continuous crack outline, which helps to distinguish cracks from other texture features and solve the problem that the crack features are not significant enough;

[0021] 4. Perform morphological analysis and measurement on the extracted crack edges and calculate the key geometric parameters of the cracks, such as width, length and direction, which can help better understand the morphological characteristics of the cracks and solve the problems of irregularity and randomness in the cracks’ morphology;

[0022] 5. Use the semantic segmentation model of deep learning to classify cracks at the pixel level, and combine the results of edge detection and semantic segmentation for comprehensive analysis and optimization, which helps to more finely distinguish cracks from other texture features and solve the problem of inconsistent crack feature patterns. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Figure 1 The present invention is a flowchart of a method for identifying concrete cracks based on computer image processing. DETAILED DESCRIPTION

[0024] In order to make the purpose, features and advantages of the present invention more obvious and easy to understand, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the embodiments described below 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. Example 1

[0025] A method for identifying concrete cracks based on computer image processing comprises the following steps:

[0026] S1. Use high-resolution camera equipment to shoot the concrete surface to obtain clear and colorful surface images, which will serve as basic data input for concrete crack identification;

[0027] S2. Apply image enhancement technology to the acquired concrete surface image and select the histogram equalization method to improve the contrast of the image and strengthen the visual difference between the crack and the background, so that the subsequent crack detection process is more obvious and easy to identify;

[0028] S3. Design a special morphological operation operator based on the morphological characteristics of concrete cracks, and perform opening and closing operations on the image enhanced by histogram equalization to eliminate image noise and emphasize the structural characteristics of cracks, laying the foundation for accurate detection of cracks;

[0029] The specific process of designing a special morphological operation operator based on the morphological characteristics of concrete cracks is as follows:

[0030] Morphological operation operator design:

[0031] Analyze the morphological characteristics of concrete cracks, including the shape, length, width, and contrast between the cracks and the background. Design morphological operation operators based on these characteristics, such as defining appropriate structural element shapes and sizes to highlight the structural characteristics of cracks.

[0032] In morphological operations, erosion and dilation are basic image processing operations used for foreground and background segmentation and feature enhancement of images:

[0033] Erosion operation: Select a suitable structural element B, usually a small core such as a rectangle or a circle, whose size is adapted to the scale characteristics of the crack. For small cracks, a small core is selected to define the shape and size of the corrosion operation;

[0034] The image enhanced by histogram equalization is eroded by applying the erosion operation formula: {Erosion}(I) = I \ominus B; the image processed by histogram equalization is eroded by applying the erosion operation formula to eliminate small noise and highlight the detailed features of the cracks;

[0035] The erosion operation slides the structural element B on the image I, shrinking the boundary of the foreground object in the image inward, eliminating small details and noise, and highlighting the structural features of the cracks;

[0036] Dilation operation: Continue to select the same or different structural elements B to define the shape and size of the dilation operation, select a large kernel to adapt to the morphological characteristics of the cracks, and apply the dilation operation formula: {Dilation}(I) = I \oplus B; Apply the dilation operation formula to dilate the eroded image to fill the gaps between the cracks and enhance the structural characteristics of the cracks;

[0037] The dilation operation slides the structural element B over the image I, enlarging the boundaries of foreground objects in the image, filling holes and enhancing foreground objects.

[0038] For the image processing task of concrete cracks, it is very important to select a suitable structural element B. Cracks are usually slender and have certain directional characteristics. When processing concrete cracks, the following factors can be considered to select a suitable structural element B: Select a suitable structural element B based on shape, size, directionality and flexibility characteristics.

[0039] ① Shape: Since concrete cracks are usually thin and long linear features, you can select a linear structural element B to highlight the cracks. For example, you can select a thin horizontal linear structural element or a vertical linear structural element;

[0040] ② Size: The size of the structural element B should be suitable for the size of the crack. When the crack is thin, choose a slender structural element; when the crack is wide, you can consider increasing the width of the structural element, but still need to maintain a certain length to ensure that the crack is covered;

[0041] ③ Directionality: The crack may have a specific direction, so the linear structural element of the corresponding direction can be selected according to the direction of the crack. If the crack is horizontal, select the horizontal linear structural element; if the crack is vertical, select the vertical linear structural element;

[0042] ④Flexibility: Considering that cracks have certain twists and turns or changes, curved linear structural elements or multi-segment combined structural elements can be selected to better match the shape of the cracks.

[0043] Specifically, for slender and horizontal concrete cracks, a slender and horizontal linear structural element can be selected as B; for vertical cracks, a linear structural element in the corresponding direction can be selected; for cracks with certain tortuosity, a slightly curved linear structural element or a multi-segment combination of structural elements can be considered. Considering the shape, size and direction of the cracks, selecting the appropriate structural element B can effectively highlight and detect concrete cracks.

[0044] Open operation processing:

[0045] The eroded image is then dilated to remove noise and smooth the crack boundaries: {Opening}(I) =({Erosion}(I)) \oplus B, which helps to refine the morphological features of the cracks, highlight the crack structure, and make it easier to identify;

[0046] Closing operation processing:

[0047] The dilated image is eroded to fill the small holes or breaks inside the cracks: {Closing}(I) =({Dilation}(I)) \ominus B. The closing operation can emphasize the edge features of the cracks, further highlight the structural features of the cracks, and help form a continuous and clear crack outline.

[0048] Among them, I represents image, B represents structure element, which is used to define the shape and size of corrosion and expansion operations, \ominus represents corrosion operation, and \oplus represents expansion operation. By designing appropriate structure elements and combining morphological operations, image noise can be effectively eliminated and the structural characteristics of cracks can be highlighted.

[0049] S4. Using the morphologically processed image, the crack edge is extracted by edge detection algorithm. Specifically, the Canny algorithm and Sobel algorithm are used to extract the crack edge in multiple scales and multiple directions to obtain a clear and continuous crack outline, which provides a basis for accurate crack identification.

[0050] Using Canny algorithm to extract crack edges:

[0051] Gaussian filtering: Gaussian filtering is performed on the concrete image to reduce noise and smooth the image;

[0052] Calculate gradient: Use the Sobel operator to calculate the gradient magnitude and direction of the image;

[0053] Non-maximum suppression: Non-maximum suppression is performed in the gradient direction to refine the edges;

[0054] Dual threshold detection: According to the high and low thresholds, the gradient amplitude is classified into strong edges and weak edges;

[0055] Edge connection: The strong edge and the weak edge connected to it are connected through the edge connection algorithm to form a complete edge;

[0056] Using Sobel algorithm to extract crack edges:

[0057] Grayscale: Convert the concrete image into a grayscale image;

[0058] Sobel operator: Use the Sobel operator to calculate the gradient values ​​of the image in the horizontal and vertical directions;

[0059] Gradient merging: Integrate the gradient values ​​in the horizontal and vertical directions to calculate the total gradient value and direction of each pixel;

[0060] Threshold processing: According to the set threshold, the gradient value is binarized to obtain edge pixels;

[0061] Edge connection: connect edge pixels to form a continuous crack edge;

[0062] S5. Perform morphological analysis on the crack edges extracted from the previous step, measure and calculate the width, length and direction geometric parameters of the cracks through the methods of connected domain labeling and skeleton extraction, so as to provide detailed crack data for structural health assessment of concrete;

[0063] Morphological analysis of crack edges:

[0064] ① Connected domain marking:

[0065] The connected domains of the crack edges are marked, and each crack area is marked as a different connected domain. The connected domain marking is realized by using the pixel connectivity and region filling algorithm.

[0066] ② Skeleton extraction:

[0067] Perform skeleton extraction on the crack edge to obtain the main structure of the crack. The thinning algorithm can be used to extract the skeleton of the crack.

[0068] Calculate the geometric parameters of the crack:

[0069] ①Width measurement:

[0070] The width of the crack can be calculated by measuring the distance from the crack edge to the skeleton along the main structure of the crack. The width can be measured at different positions to obtain the change of the crack width.

[0071] ②Length measurement:

[0072] Calculate the length of the main structure of the crack, that is, the overall length of the crack. Pixel counting or path length measurement can be performed along the main structure of the crack to obtain the length information of the crack.

[0073] ③Direction measurement:

[0074] The direction of the crack can be determined by the direction of the main structure of the crack. The direction angle of the main structure of the crack can be calculated or the principal component analysis method can be used to determine the direction of the crack.

[0075] Data analysis and evaluation:

[0076] ①Statistics:

[0077] Statistical analysis of geometric parameters such as crack width, length and direction is performed to understand the overall characteristics of the crack. Statistical indicators such as mean and standard deviation can be calculated to describe the distribution of crack parameters.

[0078] ②Structural health assessment:

[0079] Based on the geometric parameter data of the cracks and combined with the design requirements of the concrete structure, the impact of the cracks on the health and safety of the structure is evaluated, and corresponding repair and maintenance suggestions are put forward.

[0080] S6. Use the semantic segmentation model in deep learning to analyze the original image, select the classic U-Net model to classify the cracks at the pixel level, extract the precise crack area, and use it as a data source to assist crack detection and identification;

[0081] Use the U-Net model to classify cracks at the pixel level:

[0082] Data preparation: Prepare a crack image dataset with annotations, including the original image and the corresponding crack area labels. These labels are used to indicate whether each pixel belongs to the crack area.

[0083] Model construction: Build a U-Net model, including an encoder (for feature extraction) and a decoder (for pixel-level classification). The encoder and decoder parts of the model will learn to extract the features of cracks in concrete images and implement pixel-level classification tasks.

[0084] Model training: The U-Net model is trained using the prepared dataset to learn the features and boundaries of the crack area by minimizing the loss function. The model gradually improves the accuracy of crack classification by learning the features and boundaries of cracks in concrete images and minimizing the loss function.

[0085] In the model training process, the cross entropy loss function is usually used to measure the difference between the model output and the true label: Cross Entropy Loss = - ∑_{i=1}^{N} y_i log(p_i) where N is the number of categories, y_i is the true label, and p_i is the probability value predicted by the model;

[0086] The pixel-level accuracy of the model can be calculated, that is, the proportion of correctly classified pixels to the total number of pixels: Accuracy = (TP + TN) / (TP + TN + FP + FN) where TP is the number of true positives, indicating the number of pixels correctly identified as crack areas by the model, that is, the number of pixels that the model correctly classifies as crack areas when there are actual crack areas; TN is the number of true negatives, indicating the number of pixels correctly identified as non-crack areas by the model, that is, the number of pixels that the model correctly classifies as non-crack areas when there are actual non-crack areas; FP is the number of false positives, indicating the number of pixels that the model mistakenly identifies as crack areas, that is, the number of pixels that the model mistakenly classifies as crack areas when there are actual non-crack areas; FN is the number of false negatives, indicating the number of pixels that the model mistakenly identifies as non-crack areas, that is, the number of pixels that the model mistakenly classifies as non-crack areas;

[0087] Crack extraction: The trained U-Net model is applied to the original concrete image to achieve pixel-level classification and extraction of cracks. The trained U-Net model is applied to the original concrete image to achieve pixel-level classification and extraction of cracks. The model will accurately identify and extract crack areas in the concrete image based on the learned crack features and boundaries.

[0088] IoU: used to measure the coverage of the prediction results: IoU = Intersection / Union, where Intersection is the intersection area of ​​the prediction result and the true label, and Union is the union area of ​​the prediction result and the true label. By calculating the cross entropy loss, accuracy, and IoU indicators, the accuracy and performance of the U-Net model for pixel-level classification of cracks can be evaluated, and the precise area of ​​the crack can be extracted.

[0089] S7. Based on the results of edge detection and semantic segmentation, the crack area is optimized using logical judgment and voting mechanisms to eliminate the errors generated by a single technology, and ultimately accurate and reliable concrete crack identification data is obtained, providing important information for concrete structure safety assessment.

[0090] Optimization of comprehensive edge detection and semantic segmentation results:

[0091] Integration of edge detection and semantic segmentation results: Integrate the results of edge detection and semantic segmentation to obtain preliminary identification results of crack areas;

[0092] Logical judgment: Use logical judgment methods to comprehensively analyze the results of edge detection and semantic segmentation, consider their respective advantages and disadvantages, and make judgments and screening;

[0093] ① Logical judgment method: Based on the results of edge detection and semantic segmentation, logical judgment can be performed, which can be done by rule logic, conditional judgment, etc. For example, judgment can be made based on the following rules: if edge detection and semantic segmentation simultaneously identify a crack, then it is determined to be a crack;

[0094] If only edge detection or only semantic segmentation identifies a crack, further analysis or trade-offs can be considered.

[0095] This embodiment improves the contrast of the image through image enhancement technology and histogram equalization method, making the visual difference between the crack and the background more obvious, providing better image quality for subsequent crack detection; at the same time, a special morphological operation operator is designed, which eliminates image noise through opening and closing operations, emphasizes the structural characteristics of the crack, and lays a foundation for accurate crack detection. The corrosion and expansion operations further highlight the detailed features and structure of the cracks. The Canny algorithm and Sobel algorithm are used to extract crack edges to obtain obvious and continuous crack contours, which provide reliable edge information for subsequent crack identification and make cracks easier to identify and detect. Through morphological analysis, connected domain labeling and skeleton extraction, geometric parameters such as crack width, length and direction are measured and calculated, providing detailed crack data for the health assessment of concrete structures and helping to quantitatively evaluate the characteristics and impact of cracks. The semantic segmentation model in deep learning (such as U-Net) is used to classify cracks at the pixel level, and the extraction of precise crack areas is achieved, providing reliable data support for crack detection and identification and improving the accuracy of crack identification. Through logical judgment and voting mechanisms, the results of edge detection and semantic segmentation are integrated to eliminate the errors that may be caused by a single technology, and ultimately accurate and reliable concrete crack identification data is obtained, providing important information for the safety assessment of concrete structures. Example 2

[0096] This embodiment provides a concrete structure safety assessment method, the steps of which include:

[0097] Sa1. Comprehensive edge detection and semantic segmentation results: Combine the edge detection and semantic segmentation results to obtain preliminary crack identification data, integrate the crack identification results of two different methods, and lay the foundation for subsequent optimization processing;

[0098] Sa2, logical judgment: Use the logical judgment method to comprehensively analyze the results of edge detection and semantic segmentation, consider their respective advantages and disadvantages, and make judgments and screening. The logical judgment results will serve as the basis for the subsequent voting mechanism to determine the final crack identification results;

[0099] Sa3, Voting mechanism: Introduce a voting mechanism, such as majority voting or weighted voting, to vote based on the results of different methods to further improve the accuracy of the crack area. The voting results will comprehensively consider the identification results of different methods, eliminate errors, and ultimately obtain accurate and reliable crack identification data;

[0100] Sa4. Optimize crack identification data: Through the optimization of logical judgment and voting mechanism, the errors that may be caused by a single technology are eliminated, and accurate and reliable crack identification data is obtained. As the ultimate goal of the entire optimization process, it provides important information for the safety assessment of concrete structures and ensures the accuracy and reliability of crack identification results.

[0101] This embodiment obtains preliminary crack recognition data by integrating the results of edge detection and semantic segmentation, thereby combining the advantages of two different methods and improving the accuracy and robustness of crack recognition; comprehensively analyzes the results of edge detection and semantic segmentation through a logical judgment method, considers their respective advantages and disadvantages, and makes judgments and screenings, which helps to eliminate erroneous results and improve the reliability of recognition results; introduces a voting mechanism, such as majority voting or weighted voting, and votes according to the results of different methods to further improve the accuracy of crack areas, and obtains more reliable crack recognition data through comprehensive judgment from multiple perspectives; eliminates errors that may be caused by a single technology through optimization of logical judgment and voting mechanisms, obtains accurate and reliable crack recognition data, provides important information for concrete structure safety assessment, and ensures the accuracy and reliability of crack recognition results.

Claims

1. A method for identifying concrete cracks based on computer image processing, characterized in that: The following steps are involved: S1. Use high-resolution camera equipment to shoot the concrete surface to obtain clear and colorful surface images, which will be used as basic data input for concrete crack identification; S2, applying image enhancement technology to the acquired concrete surface image, selecting the histogram equalization method to improve the image contrast and strengthen the visual difference between the cracks and the background; S3, designing a special morphological operation operator according to the morphological characteristics of concrete cracks, and performing opening and closing operations on the image enhanced by histogram equalization; S4. Using the morphologically processed image, the crack edge is extracted by edge detection algorithm. Specifically, Canny algorithm and Sobel algorithm are used to extract the crack edge in multiple scales and multiple directions to obtain a clear and continuous crack outline. S5, performing morphological analysis on the crack edge extracted from the previous step, measuring and calculating the width, length and direction geometric parameters of the crack by means of connected domain marking and skeleton extraction; S6. Use the semantic segmentation model in deep learning to analyze the original image and select the classic U-Net model to classify the cracks at the pixel level; S7, combining the results of edge detection and semantic segmentation, using logic judgment and voting mechanism to optimize the crack area, eliminating the errors generated in a single technology, and obtaining concrete crack identification data; The specific process of designing a special morphological operation operator according to the morphological characteristics of concrete cracks in S3 includes: corrosion operation, expansion operation, opening operation processing and closing operation processing; The process of the corrosion operation is: Select a suitable structural element B, usually a small core, including rectangle and circle, whose size is adapted to the scale characteristics of the crack. For small cracks, a small core is selected to define the shape and size of the corrosion operation; The image enhanced by histogram equalization is eroded by applying the erosion operation formula: {Erosion}(I) =I \ominus B; the image processed by histogram equalization is eroded by applying the erosion operation formula to eliminate small noise and highlight the detailed features of the cracks; The erosion operation slides the structural element B on the image I, shrinking the boundary of the foreground object in the image inward, eliminating small details and noise, and highlighting the structural features of the cracks; The process of the expansion operation is: Continue to select the same or different structural elements B to define the shape and size of the dilation operation, select a large kernel to adapt to the morphological characteristics of the crack, and apply the dilation operation formula: {Dilation}(I) = I \oplus B; Apply the dilation operation formula to dilate the eroded image, fill the gaps between the cracks, and enhance the structural characteristics of the cracks; The dilation operation slides the structural element B on the image I, expanding the boundaries of the foreground objects in the image, filling holes and enhancing the foreground objects; The selection process of the structural element B is as follows: Select a suitable structural element B according to the shape, size, directionality and flexibility characteristics, specifically: Shape: Since concrete cracks are usually thin and long linear features, the linear shape of structural element B is selected to highlight the cracks; Size: The size of the structural element B should be appropriate to the size of the crack; Directionality: The crack has a specific direction, and the linear structural elements in the corresponding direction are selected according to the direction of the crack; Flexibility: Consider the tortuosity or changes of the cracks and choose curved linear structural elements or multi-segment structural elements; The process of extracting crack edges using the Canny algorithm in S4 is as follows: Gaussian filtering: Gaussian filtering is performed on the concrete image to reduce noise and smooth the image; Calculate gradient: Use the Sobel operator to calculate the gradient magnitude and direction of the image; Non-maximum suppression: Non-maximum suppression is performed in the gradient direction to refine the edges; Dual threshold detection: According to the high and low thresholds, the gradient amplitude is classified into strong edges and weak edges; Edge connection: The strong edge and the weak edge connected to it are connected through the edge connection algorithm to form a complete edge; The process of using the Sobel algorithm to extract crack edges in S4 is as follows: grayscale: converting the concrete image into a grayscale image; Sobel operator: Use the Sobel operator to calculate the gradient values ​​of the image in the horizontal and vertical directions; Gradient merging: Integrate the gradient values ​​in the horizontal and vertical directions to calculate the total gradient value and direction of each pixel; Threshold processing: According to the set threshold, the gradient value is binarized to obtain edge pixels; Edge connection: connect edge pixels to form a continuous crack edge; Wherein, the crack edge is analyzed by morphology in S5, including connected domain labeling and skeleton extraction; the geometric parameters of the crack are calculated in S5, including width measurement, length measurement and direction measurement; The S5 also includes data analysis and evaluation of the geometric parameters of the cracks, the process of which includes data statistics and structural health evaluation; The connected domain marking is to mark the crack edge with connected domains, mark each crack area as a different connected domain, and use pixel connectivity and area filling algorithm to achieve connected domain marking: The skeleton extraction is to extract the skeleton of the crack edge to obtain the main structure of the crack, and use the thinning algorithm to extract the skeleton of the crack, wherein the crack edge is thinned by the thinning algorithm to gradually reduce the width of the edge pixel; the iterative thinning process is repeated until the thinning of the crack edge meets the stop condition, that is, the pixel no longer changes or reaches a preset thinning degree, and the image edge is gradually reduced to a single pixel width through iteration, specifically, using the Zhang-Suen thinning algorithm, when the image changes, for each pixel p in the image, when p is a crack pixel, the 8 neighborhood pixel values ​​of p are calculated, and according to the thinning condition, p is set as a background pixel; The data statistics process is to perform statistical analysis on the width, length and direction geometric parameters of the cracks, understand the overall characteristics of the cracks, calculate the mean and standard deviation statistical indicators, and describe the distribution of the crack parameters; The structural health assessment process is to assess the impact of cracks on structural health and safety based on the geometric parameter data of cracks and in combination with the design requirements of the concrete structure, and to put forward repair and maintenance suggestions.

Citation Information

Patent Citations

  • Intelligent sweeping system and method for road edge detection

    CN114815822A

  • Lightweight crack segmentation method based on convolutional neural network

    CN116993737A