A method and system for detecting surface cracks in concrete structures

Through the law of energy conservation and image processing technology, combined with heat conduction analysis and image processing algorithms, the problem of being unable to identify deep or fine cracks in the existing technology is solved, and high-precision and efficient surface crack detection of concrete structures is achieved.

CN117830284BActive Publication Date: 2024-09-03CHINA CONSTRUCTION SIXTH ENGINEERING DIVISION CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410050130.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-01-12
Publication Date
2024-09-03
Estimated Expiration
2044-01-12

AI Technical Summary

Technical Problem

Existing methods for detecting surface cracks in concrete structures cannot effectively identify deep or subtle cracks, and have problems such as low identification accuracy, high equipment costs, and complex operations.

Method used

The law of energy conservation is used for heat conduction analysis, combined with image processing technology, including grayscale processing, morphological operations, edge detection and region growing algorithms, to extract the center line, width and length of the crack, and iterative calculations are performed through the heat conduction equation to identify the crack image , and use the seed filling algorithm for thinning and filling processing.

Benefits of technology

It achieves high-precision and high-resolution crack detection, reduces false detections and missed detections, improves detection accuracy and efficiency, and reduces detection costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117830284B
    Figure CN117830284B
Patent Text Reader

Abstract

The present invention relates to the technical field of concrete crack detection, and discloses a method and system for detecting cracks on the surface of a concrete structure, which relates to the technical field of concrete crack detection. The method comprises: obtaining regional images of multiple regions on the surface of a concrete structure to be detected, performing heat conduction analysis on the regional images according to the law of conservation of energy, and obtaining crack images in the regional images; graying the crack images, converting the gray images into binary images using a threshold segmentation algorithm, performing morphological operations on the binary images to remove noise and cracks that are broken, extracting connected binary image regions according to a regional growing algorithm to obtain crack regions and extracting crack skeleton images; extracting pixel points on the skeleton edge in the crack skeleton image by an edge detection algorithm, and judging cracks according to a connectivity analysis method and calculating the width and length of the cracks. The present invention extracts connected binary image regions according to a regional growing algorithm to obtain crack regions, thereby improving the accuracy of crack detection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of concrete crack detection, and in particular to a method and system for detecting surface cracks in a concrete structure. Background Art

[0002] Concrete surface crack detection is the process of detecting and identifying cracks on the surface of concrete structures, involving multiple disciplines and technologies, including structural engineering, building materials, non-destructive testing, etc. The main purpose of concrete surface crack detection is to evaluate the impact of cracks on structural safety, predict the development trend of cracks in the future, and provide a basis for repair and reinforcement. There are many reasons for the formation of concrete surface cracks, mainly including plastic shrinkage cracks, drying shrinkage cracks, cracks caused by construction process quality, improper formwork construction, and cracks caused by chemical reactions.

[0003] Existing methods for detecting cracks on the surface of concrete structures mainly include visual inspection, ultrasonic inspection, radar inspection, and image-based crack detection methods. Among them, visual inspection requires personnel to patrol and observe whether there are obvious cracks on the surface of the concrete structure. The advantages are simplicity, ease of operation, and low cost. The disadvantage is that it can only detect surface cracks, but cannot detect deep cracks. Ultrasonic detection is a non-destructive detection method that detects cracks in concrete structures by the propagation and reflection of ultrasonic waves in concrete structures. The advantages are high detection sensitivity and the ability to detect deep cracks. The disadvantages are high equipment cost, the need for professional operation, and high requirements for the flatness of the concrete surface. Radar detection uses the characteristics of microwaves to send short-wave pulse signals to the object being tested, and then uses an instrument to receive the waves reflected by the material interface. According to the distribution characteristics of the reflected wave and the position of the detection instrument, the crack position of the concrete structure is determined. The advantages are non-contact detection, sensitivity to crack depth, and the ability to quickly detect large-area concrete structures. The disadvantage is that it is easily affected by obstacles such as steel bars. Image-based crack detection methods are mainly based on the processing process at the whole pixel level, but cannot identify fine cracks at the sub-pixel level, and have problems with low adaptability and detection accuracy.

[0004] Therefore, a new method for detecting surface cracks in concrete structures is needed to improve the accuracy of crack identification. Summary of the invention

[0005] In view of the above problems, the present invention is proposed to provide a method and system for detecting surface cracks in a concrete structure that overcomes all or at least part of the above problems.

[0006] According to one aspect of the present invention, a method for detecting surface cracks of a concrete structure is provided, comprising:

[0007] Acquire regional images of multiple regions on the surface of the concrete structure to be tested, perform heat conduction analysis on the regional images according to the law of conservation of energy, and obtain crack images in the regional images;

[0008] Graying the crack image, converting the gray image into a binary image using a threshold segmentation algorithm, performing morphological operations on the binary image to remove noise and disconnected cracks, and extracting connected binary image regions to obtain crack regions using a region growing algorithm;

[0009] Extracting the skeleton of the crack in the crack region to obtain a crack skeleton image;

[0010] The pixel points on the skeleton edge in the crack skeleton image are extracted by an edge detection algorithm, and the starting point, end point and bifurcation point of the crack are determined according to the connectivity analysis method. The centerline coordinates of the crack are calculated according to the coordinates of the starting point, end point and bifurcation point, and the width and length of the crack are calculated according to the centerline coordinates.

[0011] Furthermore, the calculation formula for extracting the crack skeleton in the crack area is:

[0012] S=(i,j)|(E(i,j)≠E(i+1,j)∩E(i,j)≠E(i,j+1))

[0013] Among them, S is the two-dimensional matrix of the crack skeleton image, each element in the matrix represents the position of the pixel in the image, (i, j) is the coordinate of the pixel, representing the row and column respectively, and E(i, j) is the edge detection value of the pixel at the coordinate position (i, j).

[0014] Furthermore, the calculation formula for the centerline coordinates of the crack is:

[0015]

[0016] Where n is the number of coordinate points, x i and i are the horizontal and vertical coordinates of the i-th point, respectively.

[0017] O is the horizontal and vertical coordinates of the center point.

[0018] Furthermore, the calculation formula for calculating the width of the crack according to the center line coordinates is:

[0019]

[0020] Among them, (x i ,y i ) is the coordinate of each pixel, x and y are the means of x and y respectively, and n is the number of pixels;

[0021] The calculation formula for calculating the length of the crack according to the center line coordinates is:

[0022]

[0023] Among them, (x1, y1) and (x2, y2) are the two endpoints of the center line coordinates.

[0024] Furthermore, performing heat conduction analysis on the regional image according to the law of conservation of energy to obtain a crack image in the regional image further includes:

[0025] A heat conduction equation is established according to the law of conservation of energy, and the regional image is discretized to convert the image into discrete pixel points;

[0026] Applying the discretized heat conduction equation to the discrete pixel points for iterative calculation;

[0027] According to the result of iterative calculation, the temperature change and distribution of the pixel points are analyzed, and the crack image is obtained by identification based on the temperature change and distribution.

[0028] Furthermore, establishing the heat conduction equation according to the law of conservation of energy further includes:

[0029] According to the law of conservation of energy, a two-dimensional heat conduction equation is established, and the expression of the two-dimensional heat conduction equation is:

[0030] u t =α▽ 2 u

[0031] Where u is the temperature distribution, t is the time, α is the thermal diffusion coefficient, ▽ 2 is the Laplace operator.

[0032] Furthermore, after the crack image is obtained by identification, the method further includes:

[0033] The cracks in the crack image are thinned and filled to make the cracks clearer.

[0034] Furthermore, the thinning and filling processing of the cracks in the crack image further includes:

[0035] The edge information of the crack is extracted by using the Canny edge detection algorithm, and the crack is filled by using the seed filling algorithm.

[0036] Furthermore, the filling of the cracks by using a seed filling algorithm further comprises:

[0037] Select an initial seed point whose color is different from the target area;

[0038] Pixels adjacent to the seed point and having the same color are marked as target areas until no new pixels are marked as target areas.

[0039] According to another aspect of the present invention, a concrete structure surface crack detection system is provided, comprising:

[0040] A crack image extraction module is used to obtain regional images of multiple regions on the surface of the concrete structure to be tested, and to perform heat conduction analysis on the regional images according to the law of conservation of energy to obtain crack images in the regional images;

[0041] A crack region extraction module is used to grayscale the crack image, convert the grayscale image into a binary image using a threshold segmentation algorithm, perform morphological operations on the binary image to remove noise and disconnected cracks, and extract connected binary image regions according to a region growing algorithm to obtain crack regions;

[0042] A crack skeleton image extraction module, used for extracting the crack skeleton in the crack area to obtain a crack skeleton image;

[0043] The crack acquisition module is used to extract pixel points on the skeleton edge in the crack skeleton image through an edge detection algorithm, and to determine the starting point, end point and bifurcation point of the crack according to the connectivity analysis method, calculate the center line coordinates of the crack according to the coordinates of the starting point, end point and bifurcation point, and calculate the width and length of the crack according to the center line coordinates.

[0044] According to the scheme provided by the present invention, regional images of multiple regions on the surface of the concrete structure to be tested are obtained, and heat conduction analysis is performed on the regional images according to the law of conservation of energy to obtain crack images in the regional images; the crack images are grayed, and the gray images are converted into binary images using a threshold segmentation algorithm, and morphological operations are performed on the binary images to remove noise and cracks with broken connections, and connected binary image regions are extracted according to a regional growth algorithm to obtain crack regions; skeleton extraction is performed on the crack skeleton in the crack region to obtain a crack skeleton image; pixel points on the skeleton edge in the crack skeleton image are extracted by an edge detection algorithm, and the starting point, end point and bifurcation point of the crack are determined according to a connectivity analysis method, and the centerline coordinates of the crack are calculated according to the coordinates of the starting point, end point and bifurcation point, and the width and length of the crack are calculated according to the centerline coordinates. The present invention performs heat conduction analysis on the regional images according to the law of conservation of energy to obtain crack images in the regional images, and can obtain crack images with high precision and high resolution. Morphological operations are performed on the binary images to remove noise and cracks with broken connections, and image features can be maintained while improving computational efficiency. The region growing algorithm can accurately extract the connected regions in the binary image according to the predetermined growth rules, obtain the accurate crack region, and reduce the cases of false detection and missed detection. In addition, by using the coordinate information of the starting point, end point and bifurcation point, the center line of the crack can be more accurately determined, and the width and length of the crack can be calculated, thereby improving the accuracy of crack detection. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:

[0046] Figure 1 A schematic diagram showing a flow chart of a method for detecting surface cracks in a concrete structure according to an embodiment of the present invention;

[0047] Figure 2 A schematic diagram showing the structure of a concrete structure surface crack detection system according to an embodiment of the present invention DETAILED DESCRIPTION

[0048] The exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present invention and to enable the scope of the present invention to be fully conveyed to those skilled in the art.

[0049] Figure 1 The schematic diagram of the process of the concrete structure surface crack detection method according to the embodiment of the present invention is shown. Specifically, the method comprises the following steps:

[0050] Step S101, obtaining regional images of multiple regions on the surface of the concrete structure to be tested, performing heat conduction analysis on the regional images according to the law of conservation of energy, and obtaining crack images in the regional images.

[0051] Specifically, a high-resolution camera or other image acquisition device is used to shoot the surface of the concrete structure to be tested from multiple angles and in all directions to obtain regional images of multiple areas. Ensure that the image is clear and accurate and can reflect the details and features of the concrete structure surface. For example, the surface of the concrete structure to be tested is planned, the area to be photographed is determined, and each area can be completely photographed. As needed, auxiliary tools such as markers and rulers can be used to locate and reference the area. For each planned area, it is photographed from multiple angles, including different perspectives such as the front, side, top, and bottom. In this way, the multi-faceted features of the concrete structure surface can be obtained, and the integrity of the image and the accuracy of the analysis can be improved. In addition to multi-angle shooting, all-round shooting is also required. That is, at each angle, the area needs to be photographed from multiple directions, including left and right, up and down, front and back, and other different directions. In this way, more comprehensive information on the surface of the concrete structure can be obtained. According to the actual situation and needs, the shooting parameters of the camera, such as exposure time, focal length, aperture, etc., are reasonably set to ensure that the brightness and contrast of the captured image are moderate, and the details and features of the concrete structure surface can be clearly reflected.

[0052] First, the regional image is subjected to heat conduction analysis according to the law of conservation of energy to obtain a crack image in the regional image. The law of conservation of energy is applicable to the heat conduction equation of the concrete structure to be tested. The heat conduction equation describes the change of temperature in time and space and the way of heat transfer. It can be one-dimensional, two-dimensional and three-dimensional heat conduction equations. Partial differential equations can be used to establish a heat conduction model of the concrete structure to be tested. For example, the three-dimensional heat conduction equation based on the physical law of heat conduction is:

[0053]

[0054] in, is the derivative of temperature T with respect to time t, indicating the rate of temperature change at time t, ▽ is the gradient operator, used to calculate the rate of change of temperature T in space, k is the thermal conductivity, indicating the ability of the material to conduct heat. The larger the thermal conductivity, the stronger the ability of the material to conduct heat. k▽T is the diffusion and transfer of heat in space.

[0055] Then, each regional image is divided into a series of small cells or grids, each cell represents a discrete unit. This process is also called meshing or discretization. The accuracy of discretization determines the accuracy and computational complexity of numerical simulation. Set the initial temperature value for each discrete cell and define boundary conditions, such as adiabatic, heat flux or convection, which determine the limit and mode of heat transfer. Solve the equation using numerical methods (such as finite difference method, finite element method or finite volume method) to obtain the temperature value of each discrete cell at different times. Common numerical solution software such as MATLAB can be used to solve the equation. By further analyzing the numerical solution results, information related to the crack can be extracted. For example, abnormal areas of temperature distribution can be observed, which correspond to the location of the crack. In addition, the trend of temperature change over time can be analyzed to understand the development and evolution of the crack.

[0056] In this embodiment, the heat conduction model based on the law of conservation of energy can accurately simulate the heat transfer process in the object, so as to more accurately detect and locate cracks. Through numerical simulation and calculation, the temperature distribution and heat transfer in the regional image can be obtained, providing reliable data support for crack detection. It does not require physical contact or destruction of the object, so it is a non-invasive detection method that can be applied to crack detection of various materials, such as concrete, ceramics, glass, etc., as long as these materials have thermal conductivity. Compared with traditional physical detection methods, it can reduce detection costs and improve detection efficiency. Through thermal conduction analysis, not only the existence of cracks can be detected, but also the properties of the cracks (such as length, width, depth, etc.) can be understood.

[0057] Furthermore, performing heat conduction analysis on the regional image according to the law of conservation of energy to obtain a crack image in the regional image further includes:

[0058] A heat conduction equation is established according to the law of conservation of energy, and the regional image is discretized to convert the image into discrete pixel points;

[0059] Applying the discretized heat conduction equation to the discrete pixel points for iterative calculation;

[0060] According to the result of iterative calculation, the temperature change and distribution of the pixel points are analyzed, and the crack image is obtained by identification based on the temperature change and distribution.

[0061] Specifically, first, define a discrete grid, which can be a rectangular grid, a square grid, or a grid of other shapes, depending on the shape and size of the image. For each pixel, we need to determine its position, initial temperature, and the heat conduction coefficient between adjacent pixels to construct the heat conduction equation. The heat conduction equation for each pixel is established based on the law of conservation of energy. For each pixel i, its heat conduction equation can be expressed as:

[0062]

[0063] Among them, T i is the temperature of pixel i, k ij is the heat transfer coefficient between pixel i and adjacent pixel j, and T is the time.

[0064] Then, the regional image is discretized, the image is converted into discrete pixels, and the discretized heat conduction equation is applied to the discrete pixels for iterative calculation. For example, an initial temperature value is set for each pixel. The time is discretized, and a suitable time step is selected for gradually updating the temperature value of each pixel in the iterative calculation. The temperature value of each pixel is iteratively calculated using a finite difference method, a finite element method, or a finite volume method. The convergence of the temperature field is checked after each iteration, and the iteration is stopped if the change in the temperature field is less than the preset convergence criterion.

[0065] Finally, according to the results of iterative calculation, the temperature change and distribution of the pixel points are analyzed, and the crack image is obtained by identification based on the temperature change and distribution. The temperature change of each pixel point during the iteration process is detected. For normal areas, the temperature change should be relatively stable. However, due to its special structure, the crack area may cause abnormal temperature changes, which manifests as drastic fluctuations or abnormal increases in temperature. By analyzing the characteristics of these temperature changes, it can be preliminarily determined whether the pixel point may be located in the crack area. After the iterative calculation is completed, the final temperature value of each pixel point is obtained. By analyzing the distribution of these temperature values, it can be found that the crack area is usually manifested as an area with abnormal temperature. By comparing the temperature differences in different areas, the existence of cracks can be further identified. According to actual needs and experimental conditions, a suitable temperature threshold is set, and the temperature value of the pixel point is compared with the threshold. If the temperature of the pixel point is higher than the threshold, it can be considered that the pixel point is located in the crack area, and then the pixel point with abnormal temperature is extracted to form a crack image.

[0066] Furthermore, establishing the heat conduction equation according to the law of conservation of energy further includes:

[0067] According to the law of conservation of energy, a two-dimensional heat conduction equation is established, and the expression of the two-dimensional heat conduction equation is:

[0068] u t =α▽ 2 u

[0069] Among them, u is the temperature distribution, t is the time, and α is the thermal diffusion coefficient, which determines how fast the heat spreads in the material. The larger the thermal diffusion coefficient, the faster the heat spreads in the material. 2 is the Laplace operator. In two-dimensional space, the Laplace operator is defined as Represents the second derivative of the temperature distribution.

[0070] The two-dimensional heat conduction equation in this embodiment is based on the law of conservation of energy and describes the process of heat propagation in an object. When an object is affected by an external heat source or an internal heat source, heat will propagate from a high-temperature area to a low-temperature area to form a heat flow. The heat flow is described by the two-dimensional heat conduction equation, and the change of the temperature distribution inside the object over time can be obtained.

[0071] Step S102, graying the crack image, converting the gray image into a binary image using a threshold segmentation algorithm, performing morphological operations on the binary image to remove noise and disconnected cracks, and extracting connected binary image regions according to a region growing algorithm to obtain crack regions.

[0072] Specifically, first, the crack image is grayed, and the gray image is converted into a binary image using a threshold segmentation algorithm. For example, the original image containing the crack is read, which can be a color RGB image, and the original image is converted into a gray image. The gray image has only two colors, black and white, and its pixel value range is usually 0 to 255. A suitable threshold can be selected according to the Otsu method, adaptive threshold and other methods to convert the gray image into a binary image. The gray image is segmented using the selected threshold, and the pixels are divided into two categories. The area with a pixel value higher than the threshold is regarded as the foreground (or target), and the area with a pixel value lower than the threshold is regarded as the background.

[0073] Then, the binary image is subjected to morphological operations to remove noise and cracks that are broken. Performing morphological operations on the binary image can remove noise and cracks that are broken. Morphological operations are usually based on pixel neighborhood operations, including corrosion, expansion, opening operations, and closing operations. Among them, corrosion operations can help eliminate small bright areas (or dark areas) caused by noise in the image. The corrosion operation achieves this goal by comparing the pixel with its neighborhood and "eroding" the smaller area. In Python's OpenCV library, the cv2.erode() function can be used to perform corrosion operations. In contrast to corrosion operations, dilation operations can merge adjacent bright areas (or dark areas) together to connect broken cracks. By comparing the pixel with its neighborhood and "expanding" the area that meets the conditions, in OpenCV, the cv2.dilate() function can be used to perform dilation operations. Opening operations are a combination of first performing corrosion operations and then performing dilation operations, while closing operations are a combination of first performing dilation operations and then performing corrosion operations. These two operations can keep smaller bright areas or dark areas unchanged while eliminating noise. In OpenCV, you can use the cv2.morphologyEx() function to perform opening or closing operations. The effect of morphological operations depends on the size and shape of the selected structural element (such as rectangle, ellipse, cross, etc.). In order to achieve better results, you may need to apply morphological operations multiple times. For example, you can first perform an erosion operation to remove noise, then perform a dilation operation to connect cracks, and repeat this iteratively. After completing the morphological operation, other post-processing operations are required, such as filling holes, removing slender objects, etc., to further optimize the image quality.

[0074] Finally, the connected binary image regions are extracted according to the region growing algorithm to obtain the crack region. The region growing algorithm is a technique used for image segmentation, which can extract connected binary image regions. When processing crack images, the region growing algorithm can help identify and extract crack regions. The region growing algorithm includes steps such as defining seed points, determining growth rules, region growing, and connecting region extraction. For example, in the step of defining seed points, one or more seed points are selected. The seed points are usually pixels known to belong to the target area, which can be the starting point of the crack or an obvious feature point. In the step of determining the growth rule, the stop condition (growth criterion) of region growing can be determined according to the attributes of the pixels (such as gray value, color, texture, etc.). In the region growing step, starting from the seed point, adjacent pixels with similar properties to the seed point are added to the growing region according to the growth criterion until no more pixels that meet the conditions can be added. Connected binary image regions are extracted through connected regions, which represent crack regions. The following uses Python language as an example to explain how to extract connected binary image regions according to the region growing algorithm to obtain crack regions.

[0075] #Read binary image

[0076] binary_image=cv2.imread('binary.jpg',cv2.IMREAD_GRAYSCALE)

[0077] #Define seed points and growth criteria

[0078] seed_points = [np.array([10,10]),np.array([50,50])] # Example seed points

[0079] criteria=(cv2.TERM_CRITERIA_EPS+cv2.TERM_CRITERIA_MAX_ITER,100,0.2)#Growth stop condition

[0080] #Perform region growing

[0081] labels,num=cv2.connectedComponentsWithStats(binary_image,connectivity=cv2.FONT_HERSHEY_SIMPLEX,ltype=cv2.CV_32S,criteria=criteria)

[0082] #Extract crack area (connected area)

[0083] cracks=[]

[0084] for i in range(1,num):

[0085] cracks.append(np.where(labels == i))#Extract pixel coordinates based on the labels of the connected area

[0086] #Visualization

[0087] for crack in cracks:

[0088] cv2.polylines(binary_image,[crack],True,(0,255,0),2)#Draw the crack outline on the original image

[0089] Step S103, performing skeleton extraction on the crack skeleton in the crack area to obtain a crack skeleton image.

[0090] In this embodiment, the main purpose of skeleton extraction is to extract the main path of the crack and remove unnecessary details, thereby simplifying the crack representation. For example, pixels are removed layer by layer by algorithms such as Zhang-Suen thinning algorithm and Skeletonization until the skeletonized lines are reached. Since some redundant branches may be generated during the extraction process, these redundant branches are caused by noise or insufficient image resolution. These redundant branches can be removed by using distance transformation methods, path tracking methods, etc. At the same time, the skeleton may be broken for some reasons. The situation of skeleton fracture can be repaired by finding pixels near the break point and connecting these pixels according to certain rules (such as minimum path length, shortest path angle, etc.). After completing the skeleton extraction, the extracted skeleton image can be displayed using a visualization tool to better analyze the distribution and morphology of the crack.

[0091] Furthermore, the calculation formula for extracting the skeleton of the crack in the crack area is:

[0092] S=(i,j)|(E(i,j)≠E(i+1,j)∩E(i,j)≠E(i,j+1))

[0093] Where S is a two-dimensional matrix of the crack skeleton image, each element in the matrix represents the position of a pixel in the image, (i, j) is the coordinate of the pixel, representing the row and column respectively, and E(i, j) is the edge detection value of the pixel at the coordinate position (i, j), which is used to measure the edge strength or significance of the pixel in the image. When extracting the crack skeleton, the edge detection value E(i, j) can provide clues about whether the pixel belongs to the edge of the crack. By analyzing these edge detection values, it can be determined which pixels should be retained or removed, thereby gradually forming the skeleton lines of the crack.

[0094] Step S104, extracting pixel points on the skeleton edge in the crack skeleton image by an edge detection algorithm, and determining the starting point, end point and bifurcation point of the crack according to a connectivity analysis method, calculating the centerline coordinates of the crack according to the coordinates of the starting point, end point and bifurcation point, and calculating the width and length of the crack according to the centerline coordinates.

[0095] Specifically, pixel points on the skeleton edge in the crack skeleton image are extracted by edge detection algorithms, such as Sobel and Canny edge detection algorithms, that is, areas where pixel values ​​in the image change dramatically, i.e., the edges of the cracks.

[0096] and determining the starting point, end point, and bifurcation point of the crack based on the connectivity analysis method. The starting point of the crack is the point in the image where the edge is the strongest or most prominent, while the end point is the end or vanishing point of the crack. By determining the connection relationship between pixels through the connectivity analysis method, connected component analysis (e.g., region-based connectivity analysis) can be used to determine which pixels are connected and determine the main path of the crack. Based on the results of the connectivity analysis, the bifurcation point of the crack can be identified, that is, the location where the crack splits into two or more parts in the image. The bifurcation point is the location where the number of connected components suddenly increases or decreases.

[0097] The centerline coordinates of the crack are calculated based on the coordinates of the starting point, the end point and the bifurcation point. The starting point and the end point coordinates of the crack can be the positions of the pixel points or more precise geometric points. The bifurcation point can be regarded as a key point on the centerline. Of course, if the bifurcation point is not important or has little effect on the centerline, it can be ignored or used only as a reference point. The centerline of the crack is obtained by fitting the starting point, the end point and the bifurcation point coordinates by linear fitting, arc fitting and other methods. If the crack is a straight line, the centerline coordinates can be calculated using the formula for determining a straight line from two points. If the crack is curved, an arc or other curve can be used to fit the centerline.

[0098] The width and length of the crack are calculated based on the centerline coordinates. The length of the crack is obtained by calculating the distance between the center calibration coordinate points. If the centerline is represented by a discrete set of points, these points can be traversed and the distance between each pair of points can be calculated using the formula for the distance between two points, and then these distances are added to obtain the total length. If the centerline is a continuous curve, the length of the crack can be calculated using a curve length formula (such as a length formula for a parametric curve or a Bezier curve). The width of the crack is determined based on the pixel value or edge detection value in the image. The pixel value at the edge of the crack will change significantly, and the distance between the edges is calculated as the width of the crack after the edge position is determined.

[0099] Furthermore, the calculation formula of the centerline coordinates of the crack is:

[0100]

[0101] Where n is the number of coordinate points, x i and i are the horizontal and vertical coordinates of the i-th point, respectively.

[0102] O is the horizontal and vertical coordinates of the center point.

[0103] Furthermore, the calculation formula for calculating the width of the crack according to the center line coordinates is:

[0104]

[0105] Among them, (x i ,y i ) is the coordinate of each pixel, x and y are the means of x and y respectively, and n is the number of pixels;

[0106] The calculation formula for calculating the length of the crack according to the center line coordinates is:

[0107]

[0108] Among them, (x1, y1) and (x2, y2) are the two endpoints of the center line coordinates.

[0109] Furthermore, after the crack image is obtained by identification, the method further includes:

[0110] The cracks in the crack image are thinned and filled to make the cracks clearer.

[0111] For example, cracks are connected into line segments using pixel-based 8-connectivity or 4-connectivity methods to achieve the refinement of crack images. Based on the refined crack outline, the inside of the crack is filled using a pixel filling algorithm. Color or grayscale value can be used as the filling basis to fill according to the characteristics of the pixels inside the crack. Using color as the filling basis can compare the color values ​​of the surrounding pixels, gradually transition or select pixels that are consistent with the color of the crack edge for filling. Using grayscale value as the filling basis can determine whether the pixel belongs to a crack based on the grayscale threshold, and then fill it.

[0112] Furthermore, the thinning and filling processing of the cracks in the crack image further includes:

[0113] The edge information of the crack is extracted by using the Canny edge detection algorithm, and the crack is filled by using the seed filling algorithm.

[0114] Specifically, after the edge information of the crack is extracted by the Canny edge detection algorithm, the crack is filled using the seed filling algorithm. The seed filling algorithm starts from a specified seed point and gradually fills the pixels adjacent to the point until the entire crack area is filled. The seed point can be a starting point or intersection of the crack. Starting from the selected seed point, the pixels are gradually filled according to specific rules (such as 8-neighborhood or 4-neighborhood) until the entire crack area is filled. The seed filling algorithm is used to fill the crack after edge detection, which further improves the accuracy of the crack image.

[0115] Furthermore, the filling of the cracks by using a seed filling algorithm further comprises:

[0116] Select an initial seed point whose color is different from the target area;

[0117] Pixels adjacent to the seed point and having the same color are marked as target areas until no new pixels are marked as target areas.

[0118] Specifically, determine the initial seed point, which is a pixel with a different color from the target area. Starting from the seed point, traverse the pixels around it and check the pixels directly adjacent to the seed point (for example, pixels in the four directions of up, down, left and right). For each adjacent pixel, check whether its color is the same as the color of the target area. If the same, the pixel belongs to the target area. For the adjacent pixels belonging to the target area, mark them as the target area. Continue to check the pixels adjacent to the marked target area and repeat the above judgment and marking process. When no new pixels are marked as the target area, stop the traversal and marking process, and the target area has been completely filled.

[0119] According to the scheme provided by the present invention, regional images of multiple regions on the surface of the concrete structure to be tested are obtained, and heat conduction analysis is performed on the regional images according to the law of conservation of energy to obtain crack images in the regional images; the crack images are grayed, and the gray images are converted into binary images using a threshold segmentation algorithm, and morphological operations are performed on the binary images to remove noise and cracks with broken connections, and connected binary image regions are extracted according to a regional growth algorithm to obtain crack regions; skeleton extraction is performed on the crack skeleton in the crack region to obtain a crack skeleton image; pixel points on the skeleton edge in the crack skeleton image are extracted by an edge detection algorithm, and the starting point, end point and bifurcation point of the crack are determined according to a connectivity analysis method, and the centerline coordinates of the crack are calculated according to the coordinates of the starting point, end point and bifurcation point, and the width and length of the crack are calculated according to the centerline coordinates. The present invention performs heat conduction analysis on the regional images according to the law of conservation of energy to obtain crack images in the regional images, and can obtain crack images with high precision and high resolution. Morphological operations are performed on the binary images to remove noise and cracks with broken connections, and image features can be maintained while improving computational efficiency. The region growing algorithm can accurately extract the connected regions in the binary image according to the predetermined growth rules, obtain the accurate crack region, and reduce the cases of false detection and missed detection. In addition, by using the coordinate information of the starting point, end point and bifurcation point, the center line of the crack can be more accurately determined, and the width and length of the crack can be calculated, thereby improving the accuracy of crack detection.

Claims

1. A method for detecting cracks on the surface of a concrete structure, characterized in that: include: Acquire regional images of multiple regions on the surface of the concrete structure to be tested, perform heat conduction analysis on the regional images according to the law of conservation of energy, and obtain crack images in the regional images; Graying the crack image, converting the gray image into a binary image using a threshold segmentation algorithm, performing morphological operations on the binary image to remove noise and disconnected cracks, and extracting connected binary image regions to obtain crack regions using a region growing algorithm; Extracting the skeleton of the crack in the crack region to obtain a crack skeleton image; Extracting pixel points on the skeleton edge in the crack skeleton image by an edge detection algorithm, determining the starting point, end point and bifurcation point of the crack according to a connectivity analysis method, calculating the center line coordinates of the crack according to the coordinates of the starting point, end point and bifurcation point, and calculating the width and length of the crack according to the center line coordinates; The performing heat conduction analysis on the regional image according to the law of conservation of energy to obtain a crack image in the regional image further comprises: A heat conduction equation is established according to the law of conservation of energy, and the regional image is discretized to convert the image into discrete pixel points; Applying the discretized heat conduction equation to the discrete pixel points for iterative calculation; According to the result of iterative calculation, the temperature change and distribution of the pixel points are analyzed, and the crack image is obtained by identification according to the temperature change and distribution; The heat conduction equation established according to the law of conservation of energy further comprises: According to the law of conservation of energy, a two-dimensional heat conduction equation is established, and the expression of the two-dimensional heat conduction equation is: Where u is the temperature distribution, t is the time, α is the thermal diffusion coefficient, is the Laplace operator.

2. The method for detecting cracks on the surface of a concrete structure according to claim 1, characterized in that: After the crack image is obtained by identification, the method further includes: The cracks in the crack image are thinned and filled to make the cracks clearer.

3. The method for detecting surface cracks of a concrete structure according to claim 2, characterized in that: The thinning and filling process of the cracks in the crack image further includes: The edge information of the crack is extracted by using the Canny edge detection algorithm, and the crack is filled by using the seed filling algorithm.

4. The method for detecting surface cracks of a concrete structure according to claim 3, characterized in that: The filling of the cracks by a seed filling algorithm further comprises: Select an initial seed point whose color is different from the target area; Pixels adjacent to the seed point and having the same color are marked as target areas until no new pixels are marked as target areas.

5. A concrete structure surface crack detection system, the system is based on the concrete structure surface crack detection method according to any one of claims 1 to 4, characterized in that: include: A crack image extraction module is used to obtain regional images of multiple regions on the surface of the concrete structure to be tested, and to perform heat conduction analysis on the regional images according to the law of conservation of energy to obtain crack images in the regional images; A crack region extraction module is used to grayscale the crack image, convert the grayscale image into a binary image using a threshold segmentation algorithm, perform morphological operations on the binary image to remove noise and disconnected cracks, and extract connected binary image regions according to a region growing algorithm to obtain crack regions; A crack skeleton image extraction module, used for extracting the crack skeleton in the crack area to obtain a crack skeleton image; The crack acquisition module is used to extract pixel points on the skeleton edge in the crack skeleton image through an edge detection algorithm, and to determine the starting point, end point and bifurcation point of the crack according to the connectivity analysis method, calculate the center line coordinates of the crack according to the coordinates of the starting point, end point and bifurcation point, and calculate the width and length of the crack according to the center line coordinates.