Outer wall crack target detection method and system

Through the drone collecting the external wall crack images, performing denoising pre-processing and feature extraction, combining convolutional neural network and Haar features, accurate detection of external wall cracks is achieved, and the problem of low detection accuracy in the existing technology is solved. Improves the maintenance efficiency and safety of buildings.

CN118887564AInactive Publication Date: 2024-11-01GUANGDONG DALI CONSTR ENG CO LTD

Patent Information

Application Number
CN202410902682.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-08
Publication Date
2024-11-01
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In the existing technology, the external wall crack detection technology means are single, and the crack-related target features are inaccurately extracted, resulting in low accuracy in crack target detection.

Method used

The external wall crack images were collected by drones, image denoising and pre-processing were performed, target features were extracted using computer vision, convolutional neural network training model was used, combined with Haar features and deep learning methods, and crack targets in the image were searched through sliding windows. Perform positioning and identification.

Benefits of technology

It improves the accuracy and robustness of exterior wall crack detection, can promptly detect and evaluate cracks, ensure the safety and durability of buildings, and reduces the labor and time costs of manual inspections.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118887564A_ABST
    Figure CN118887564A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of computer vision, and discloses an outer wall crack target detection method and system, and the method comprises the steps: collecting an image of an outer wall crack through an unmanned plane, and carrying out the image denoising preprocessing; extracting features from the preprocessed image by using computer vision; the method comprises the following steps: training a convolutional neural network by adopting historical outer wall crack images containing cracks and non-cracks to obtain a crack target detection model, and optimizing parameters of the convolutional neural network through a back propagation algorithm; selecting a feature-based Haar feature method and a convolutional neural network deep learning method, and performing target detection on the image; searching a crack target in the image through a sliding window, namely positioning and identifying the crack; and the identification result is analyzed and evaluated. The system comprises an image processing module, a model construction module and an identification result module. The building maintenance efficiency and accuracy are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer vision technology, and in particular to a method and system for detecting exterior wall crack targets. Background Art

[0002] Exterior wall cracks refer to cracks or damages that appear on the exterior walls of buildings. These cracks or damages may be caused by the aging of the building, structural problems, earthquakes or other external forces. In order to improve the structural safety of buildings, etc., it is necessary to detect exterior wall cracks; timely detection and repair of exterior wall cracks can ensure the structural safety of the building and avoid accidents, such as wall collapse. Cracks may cause water penetration and moisture to enter the interior of the building, which in turn causes wall corrosion, mildew and other damage. Detecting cracks allows maintenance measures to be taken in time to extend the service life of the building. Exterior wall cracks have a negative impact on the appearance of the building and affect the overall aesthetics. By detecting and repairing cracks, the integrity and beauty of the building's appearance can be maintained. Regular exterior wall crack detection and repair can maintain the value of the building, prevent the crack problem from further deteriorating, and reduce the cost of later repairs. Therefore, the detection of exterior wall cracks is of great significance to the safety, maintenance, beauty and value preservation of the building.

[0003] Prior art 1, application number: CN202410092797.6 discloses a building exterior wall defect detection method based on a frequency domain feature extraction deep network, which uses an infrared camera and an environmental camera to respectively obtain the infrared image information and visible light image information of the target for detection, which can greatly improve the accuracy of detection. Using the frequency domain information of the target image for feature extraction and enhancement, it is possible to effectively obtain frequency domain feature information that cannot be obtained by traditional methods, which can provide the performance of the model. Static images and dynamic videos can be detected at the same time, and based on the information obtained, they can be intuitively viewed in a map-based information system. Although the existing building exterior wall defect detection method can detect building exterior wall defects to a certain extent, it is still limited to image space features in the feature extraction stage, and the frequency domain features of the existing data cannot be effectively used to further improve the accurate identification of defects. However, the feature extraction of cracks is not very accurate, resulting in poor accuracy of some processing results.

[0004] Prior art 2, application number: CN 202410348031.X discloses a wall defect detection method and system based on a target detection algorithm, including collecting an ordinary image of an exterior wall and an infrared polarization image, and annotating the position information to obtain a first image to be detected and a second image to be detected; performing an opening operation on the second image to be detected; performing comparative learning on the first image to be detected and the opening operation image through a twin network, and fitting the loss values ​​of the two sub-networks to obtain a fusion loss value; introducing a YOLO network and performing pre-training to obtain a pre-trained model; inputting the opening operation image into the pre-trained model, guiding the pre-trained model to extract the semantic information of the target environment based on the fusion loss value, and interacting the semantic information of the target environment with the convolutional layer in the pre-trained model to obtain a defect detection model; performing defect detection to obtain the detection result. Although the semantic information of the image is enriched, the detection accuracy of the external insulation wall defect detection is guaranteed. However, the image processing process is relatively complicated, which increases the time for wall defect detection.

[0005] Prior art three, application number: CN 202210946913.7 discloses a multi-target crack defect detection method and device based on an AI smart camera, a first image covering multiple detection areas on the same detection station is captured by a single AI smart camera, and a segmentation image and workpiece type of multiple target workpieces are obtained from the first image using a deep learning segmentation model, and an opening contour area image is obtained from the segmentation image of each target workpiece in parallel according to the workpiece type, and then a group of detection images are cut along the opening contour with a sliding window of a predetermined image size and step length, and the deep learning defect classification model corresponding to the workpiece type of each target workpiece is sequentially input to identify whether there is a crack defect in a group of detection images. Although it can significantly reduce the cost of opening crack defect detection of multiple types of target workpieces, improve the efficiency of opening crack defect detection of multiple types of target workpieces, and improve the detection accuracy of small crack defects in the opening contour of the target workpiece. However, it is only for small crack detection, and the scope of use is limited, and it cannot detect walls with multiple cracks.

[0006] At present, the existing technologies 1, 2 and 3 have the problem that the crack detection technology is single and the extraction of crack-related target features is inaccurate, resulting in low crack target detection accuracy. Therefore, the present invention provides a method and system for detecting crack targets on an exterior wall. Summary of the invention

[0007] The main purpose of the present invention is to provide a method and system for detecting crack targets on exterior walls, so as to solve the problem that the existing crack detection technology has a single means and the extraction of crack-related target features is inaccurate, resulting in low crack target detection accuracy.

[0008] To achieve the above object, the present invention provides the following technical solutions:

[0009] A method for detecting an external wall crack target, the method comprising:

[0010] Collect images of exterior wall cracks through drones and perform image denoising preprocessing; use computer vision to extract target features from the preprocessed images;

[0011] The convolutional neural network is trained using historical exterior wall crack images containing cracks and non-cracks to obtain a crack target detection model. The parameters of the convolutional neural network are optimized through the back propagation algorithm. The feature-based method Haar feature and the convolutional neural network deep learning method are selected to perform target detection on the image.

[0012] The crack target in the image is searched through a sliding window, that is, the crack is located and identified; the identification results are analyzed and evaluated.

[0013] As a further improvement of the present invention, the process of extracting features from the preprocessed image using computer vision includes the following steps:

[0014] Perform denoising preprocessing on the image to obtain a denoised image;

[0015] Edge, texture and shape are selected as target features. Edge features are extracted by edge detection algorithm, color features are calculated by color histogram, and texture features are extracted by local binary pattern.

[0016] Represent the extracted target features as a descriptive data structure.

[0017] As a further improvement of the present invention, the process of descriptive data structure representation includes the following steps:

[0018] Convert the output of each feature extraction algorithm into numerical form according to the selected feature type;

[0019] The features are weighted according to their importance, and the features are combined into a single vector according to the rule of combining the weighted eigenvalues. The vector is called a feature vector, in which each element corresponds to a feature;

[0020] Calculate the statistical value of each element of the eigenvector, normalize each element in the eigenvector, subtract the minimum value from each element in the eigenvector, and divide it by the difference between the maximum and minimum values.

[0021] As a further improvement of the present invention, the process of performing target detection on an image includes the following steps:

[0022] Prepare cracked and non-cracked historical exterior wall crack images, use the Haar feature method to convert the historical exterior wall crack images into feature vectors, and use the feature vectors as training data sets; design the network structure of the convolutional neural network, including convolutional layer, pooling layer, and fully connected layer; initialize the weights and biases of the convolutional neural network;

[0023] Use the training data set to train the convolutional neural network. Through forward propagation, the input image passes through the convolution layer and the pooling layer to obtain the feature map, and then passes through the fully connected layer to obtain the classification result. Use the loss function to calculate the difference between the network output and the actual label, and use the back propagation algorithm to update the network parameters and optimize the network performance. Until the predetermined number of training iterations is reached or the network converges, save the trained crack target detection model for subsequent crack target detection tasks.

[0024] The descriptive data structure of the image conversion of the exterior wall cracks collected by the drone is input into the trained crack target detection model to perform target detection on the image.

[0025] As a further improvement of the present invention, the process of converting the historical exterior wall crack image into a feature vector includes the following steps:

[0026] Prepare a Haar feature classifier, which is trained on a large number of positive and negative sample images to detect different features such as edges and corners in the image; convert the historical exterior wall crack image into a grayscale image, slide a fixed-size window on the image, and extract Haar features from the image area in each window;

[0027] For each Haar feature extracted from the window, its eigenvalue is calculated. The eigenvalue indicates whether there is a target object or crack in the window, as well as the characteristics of the target object.

[0028] The eigenvalues ​​extracted from all windows are combined to form a feature vector, which is used to indicate whether there is a target object or crack in the entire image and the characteristics of the target object.

[0029] As a further improvement of the present invention, the process of updating network parameters by back propagation algorithm includes the following steps:

[0030] The input image is passed into the input layer of the network; in the convolution layer, the input image is subjected to feature extraction using convolution operations; the convolution operation uses the convolution kernel to perform product and summation with the local area of ​​the input image to obtain a feature map; in the pooling layer, the feature map is downsampled to reduce the size of the feature map by extracting the maximum or average value of the image;

[0031] After multiple convolution and pooling operations, the final feature map is expanded into a one-dimensional vector; the expanded feature vector is passed to the fully connected layer for classification; the fully connected layer multiplies and sums each feature with the network weight, and outputs the classification result through an activation function;

[0032] In the back-propagation algorithm, the gradient information is obtained by calculating the difference between the network output and the actual label of the loss function; based on the gradient information, the network parameters are updated using gradient descent to make the network output closer to the actual label; the training process will iterate multiple times and continuously update the parameters until the predetermined number of training iterations is reached or the network converges.

[0033] As a further improvement of the present invention, the process of updating the network parameters using gradient descent includes the following steps:

[0034] By comparing the network output with the actual label, the difference between the predicted result and the actual result is calculated, that is, the loss value. The expression of the loss function is:

[0035] The output of the model is y pred , the actual label is y true , the expression of the loss function L is:

[0036] L=(1 / n)*Σ(y pred -y true ) 2 ;

[0037] Where n is the number of samples, and Σ represents the sum of all samples;

[0038] According to the loss value obtained by the loss function, back propagation transfers this loss value from the output layer to the input layer, and the partial derivative of each parameter with respect to the loss function is calculated by the chain rule;

[0039] The expression of partial derivative is:

[0040]

[0041] in, Represents the partial derivative of the model output with respect to the parameter w;

[0042] Use the gradient descent method to update the network parameters. According to the gradient direction of the parameters, update the parameters with the learning rate so that the value of the loss function gradually decreases. The formula for updating the parameters is: parameter = parameter - learning rate * gradient. By updating the parameters through multiple iterations, the network's prediction results are closer to the actual labels.

[0043] As a further improvement of the present invention, the process of locating and identifying cracks includes the following steps:

[0044] The exterior wall image to be detected is input into the crack target detection model, and the window is applied to the image to be detected according to the preset sliding window size and step size; for each sliding window position, the image block within the window is extracted as input;

[0045] Use the pre-trained crack target detection model to classify the image block to determine whether it is a crack target; if the classification result is a crack target, record the window position and classification confidence; continue to slide the window until the entire image is traversed;

[0046] For overlapping windows, non-maximum suppression is performed according to the classification confidence to remove repeated crack target frames; cracks are located and identified based on the final crack target frame; and crack targets are further analyzed and evaluated, such as measuring the length and width parameters of the cracks and extracting the morphological features of the cracks.

[0047] As a further improvement of the present invention, the process of further analyzing and evaluating the crack target includes the following steps:

[0048] According to the location and size information of the crack target, accurate size information is obtained by calculating the pixel distance; the morphological characteristics of the crack are obtained using the contour;

[0049] Among them, according to the position and size information of the crack target, the boundary box or outline of the crack is determined; the pixel coordinates of the area where the crack is located are obtained through the crack boundary box or outline; according to the pixel coordinates of the area where the crack is located, the size information such as the length and width of the crack is calculated; the pixel distance is calculated using the following formula: pixel distance = actual distance / pixel length, wherein the actual distance is the known actual length, and the pixel length is the pixel length measured from the image; according to the known actual length and the measured pixel length, the pixel distance can be solved to obtain the accurate size information of the crack;

[0050] According to the position information of the crack target, the specific position of the crack in the exterior wall image is determined, and the outline of the crack is marked;

[0051] Cracks are assessed and classified using predefined evaluation criteria to determine their extent.

[0052] To achieve the above object, the present invention also provides the following technical solutions:

[0053] An external wall crack target detection system is applied to the external wall crack target detection method, and the external wall crack target detection system comprises:

[0054] The image processing module is used to collect images of cracks on the exterior wall through drones and perform image denoising preprocessing; computer vision is used to extract features from the preprocessed images, including edges, textures, and shapes;

[0055] The model building module is used to train the convolutional neural network using historical exterior wall crack images containing cracks and non-cracks to obtain a crack target detection model, and optimize the parameters of the convolutional neural network through the back propagation algorithm; select the feature-based method Haar feature and the convolutional neural network deep learning method to perform target detection on the new exterior wall image;

[0056] The recognition result module is used to search for crack targets in the image through a sliding window, that is, to locate and identify the cracks; and to analyze and evaluate the recognition results.

[0057] The image denoising preprocessing and feature extraction of the present invention can improve the image quality and accuracy. Denoising can reduce the interference in the image and make the cracks more clearly visible; feature extraction can extract the shape, edge and texture of the cracks for subsequent target detection. Both feature-based methods and deep learning methods can be used for crack target detection. Feature-based methods such as Haar features can make judgments by extracting the features of the cracks, while deep learning methods such as convolutional neural networks can learn the feature representation of cracks through training samples. These methods can improve the accuracy and robustness of crack target detection. Using the trained crack target detection model to perform target detection on a new exterior wall image can achieve crack positioning and identification; by searching for crack targets in the image through a sliding window, the crack area in the image can be found. The recognition results are analyzed and evaluated, and subsequent maintenance and processing work can be carried out to repair the exterior wall cracks in time to ensure the safety and durability of the building. BRIEF DESCRIPTION OF THE DRAWINGS

[0058] Figure 1 A schematic diagram of the steps of an embodiment of a method for detecting cracks in an exterior wall according to the present invention;

[0059] Figure 2 A schematic diagram of the steps of an embodiment of a method for detecting cracks in an exterior wall according to the present invention;

[0060] Figure 3 A schematic diagram of the steps of an embodiment of a method for detecting cracks in an exterior wall according to the present invention;

[0061] Figure 4 A schematic diagram of the steps of an embodiment of a method for detecting cracks in an exterior wall according to the present invention;

[0062] Figure 5 It is a functional module schematic diagram of an embodiment of an exterior wall crack target detection system of the present invention;

[0063] Figure 6 It is a structural schematic diagram of an embodiment of an electronic device of the present invention;

[0064] Figure 7 It is a schematic structural diagram of an embodiment of the storage medium of the present invention. DETAILED DESCRIPTION

[0065] 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.

[0066] The terms "first", "second" and "third" in the present invention are only used for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Therefore, the features defined as "first", "second" and "third" can explicitly or implicitly include at least one of the features. In the description of the present invention, the meaning of "multiple" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined. All directional indications (such as up, down, left, right, front, back...) in the embodiments of the present invention are only used to explain the relative position relationship, movement, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication also changes accordingly. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units that are not listed, or optionally also includes other steps or units inherent to these processes, methods, products or devices.

[0067] Reference to an "embodiment" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiment may be included in at least one embodiment of the present invention. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0068] like Figure 1 As shown, this embodiment provides an embodiment of a method for detecting a crack target on an exterior wall. In this embodiment, the method for detecting a crack target on an exterior wall specifically includes the following steps:

[0069] Step S1: collect images of exterior wall cracks through drones and perform image denoising preprocessing; extract target features from the preprocessed images using computer vision;

[0070] Step S2: using historical exterior wall crack images containing cracks and non-cracks, training the convolutional neural network to obtain a crack target detection model, optimizing the parameters of the convolutional neural network through a back propagation algorithm; selecting a feature-based method, Haar feature, and a convolutional neural network deep learning method to perform target detection on the image;

[0071] Step S3: Searching for crack targets in the image through a sliding window, that is, locating and identifying the cracks; analyzing and evaluating the identification results.

[0072] Preferably, the image denoising preprocessing and feature extraction in step S1 of this embodiment can improve the image quality and accuracy. Denoising can reduce interference in the image and make the cracks more clearly visible; feature extraction can extract features such as the shape, edge and texture of the cracks for subsequent target detection. Step S2 Both feature-based methods and deep learning methods can be used for crack target detection. Feature-based methods such as Haar features can make judgments by extracting the features of the cracks, while deep learning methods such as convolutional neural networks can learn the feature representation of cracks through training samples. These methods can improve the accuracy and robustness of crack target detection. Step S3 searches for crack targets in the image through a sliding window to find the crack area in the image. The recognition results are analyzed and evaluated, and subsequent maintenance and processing work can be carried out to repair the exterior wall cracks in a timely manner to ensure the safety and durability of the building.

[0073] In summary, the entire exterior wall crack target detection process of this embodiment improves the efficiency and accuracy of building maintenance. Through the automated crack target detection method, exterior wall cracks can be detected quickly and accurately, avoiding the labor and time costs of manual inspections. Timely discovery and repair of exterior wall cracks can prevent crack expansion and further damage to the building structure, ensuring the safety and stability of the building. At the same time, it can also provide a large amount of data and statistical analysis, providing a scientific basis for building maintenance and management.

[0074] Furthermore, if Figure 2 As shown, the process of extracting features from the preprocessed image using computer vision in step S1 specifically includes the following steps:

[0075] Step S11: performing denoising preprocessing on the image to obtain a denoised image;

[0076] Step S12: Select edge, texture and shape as target features, edge features are extracted by edge detection algorithm, color features are calculated by color histogram, and texture features are extracted by local binary pattern;

[0077] Step S13: Represent the extracted target features as a descriptive data structure.

[0078] Preferably, step S11 of this embodiment performs denoising preprocessing on the image to obtain a denoised image; removes noise in the image, improves image quality, and reduces interference in subsequent processing steps; denoising can make subsequent feature extraction and analysis processes more accurate, and improve the accuracy and reliability of computer vision algorithms. Step S12 selects edges, textures, shapes, etc. as target features, edge features are extracted by edge detection algorithms, color features are calculated using color histograms, and texture features are extracted by local binary patterns; extracts edge, texture and shape features in the image, edge features can be used for object boundary detection and edge connection, color features can be used for object recognition and classification, and texture features can be used for texture analysis and recognition; extracting target features can help the computer vision system understand the image content and perform tasks such as target detection, recognition, classification and tracking. Step S13 represents the extracted target features as a descriptive data structure; converts the target features into a data structure that a computer can understand and process, such as a vector, matrix or feature vector; representing the target features as a descriptive data structure can facilitate subsequent feature matching, classification and machine learning tasks, and improve the efficiency and performance of computer vision algorithms.

[0079] Edge feature extraction of this embodiment: The image is processed by an edge detection algorithm, such as the Canny algorithm or the Sobel algorithm, to obtain edge information in the image. These algorithms detect brightness changes or gradient changes in the image and mark them as edges. Color feature extraction: The distribution of each color channel in the image is calculated using a color histogram. First, the image is converted to an HSV (hue, saturation, brightness) or RGB (red, green, blue) color space, and then the number or proportion of pixels in each color channel in the image is counted to generate a color histogram. Texture feature extraction: The local binary pattern (LBP) method is used to extract the texture features of the image. The LBP algorithm compares each pixel in the image with its surrounding pixels and encodes the result into a binary number. Then, the frequency or histogram of binary patterns in different local areas is counted as a texture feature representation.

[0080] Furthermore, the process of descriptive data structure representation in step S13 specifically includes the following steps:

[0081] Step S131: converting the output of each feature extraction algorithm into a numerical form according to the selected feature type;

[0082] Step S132: weighting the features according to their importance, combining the features into a single vector according to the rule of combining the weighted feature values, the vector is called a feature vector, in which each element corresponds to a feature;

[0083] Step S133: Calculate the statistical value of each element of the feature vector, perform normalization processing on each element in the feature vector, subtract the minimum value from each element in the feature vector, and divide the result by the difference between the maximum value and the minimum value.

[0084] Preferably, the purpose of converting the output of the feature extraction algorithm in step S131 of this embodiment into a numerical form is to convert non-numerical features into numerical forms, to facilitate subsequent calculations and analysis, and to unify the representation of different types of features; step S132 weights the features according to their importance, and the purpose of combining the features into a feature vector according to certain rules is to consider the importance of different features to the problem and perform weighted processing on them; through weighting, the influence of important features can be highlighted, the influence of minor features can be reduced, and the expressive power of the feature vector can be improved. The purpose of normalizing the feature vector in step S133 is to unify features of different ranges and scales into the same range; normalization can eliminate the dimensional differences between features, so that the features have better comparability in subsequent calculations and analysis.

[0085] In summary, this embodiment converts the original data into a unified numerical representation, highlights the influence of important features, reduces the influence of secondary features, and eliminates the dimensional differences between features; better performs feature analysis, model building and problem solving; through descriptive data structure representation, it is possible to better understand the characteristics of the data, extract key information, and assist decision-making and analysis.

[0086] Furthermore, if Figure 3 As shown, the process of performing target detection on the image in step S2 specifically includes the following steps:

[0087] Step S21: prepare cracked and non-cracked historical exterior wall crack images, use the Haar feature method to convert the historical exterior wall crack images into feature vectors, and use the feature vectors as training data sets; design the network structure of the convolutional neural network, including convolutional layers, pooling layers, fully connected layers, etc.; initialize the weights and biases of the convolutional neural network;

[0088] Step S22: Use the training data set to train the convolutional neural network, pass the input image through the convolution layer and the pooling layer through forward propagation to obtain a feature map, and then pass it through the fully connected layer to obtain the classification result; use the loss function to calculate the difference between the network output and the actual label, and update the network parameters through the back propagation algorithm to optimize the network performance; until the predetermined number of training iterations is reached or the network converges, save the trained crack target detection model for subsequent crack target detection tasks;

[0089] Step S23: The drone collects the descriptive data structure of the image conversion of the exterior wall cracks, inputs it into the trained crack target detection model, and performs target detection on the image.

[0090] Preferably, in step S21 of this embodiment, the historical external wall crack image is converted into a feature vector by the Haar feature method, and the feature vector is used as a training data set; the network structure of the convolutional neural network is designed, and the weight and bias of the network are initialized; the image is converted into a data set that can be used for convolutional neural network training, and the structure and initial parameters of the network are prepared. In step S22, the training data set is used to train the convolutional neural network, and the input image is passed through the convolution layer and the pooling layer to obtain a feature map through forward propagation, and then the classification result is obtained through the fully connected layer; the difference between the network output and the actual label is calculated using the loss function, and the network parameters are updated through the back propagation algorithm to optimize the network performance; the weight and bias of the network are continuously adjusted through the training data, so that the network can accurately identify the crack target. In step S23, the trained crack target detection model is used to detect the external wall crack image collected by the drone; the image is converted into a descriptive data structure and input into the trained model, and the model will output the location and recognition result of the crack target; the trained model is used to realize automatic detection of external wall cracks, and improve detection efficiency and accuracy.

[0091] To sum up, the entire target detection process of this embodiment is to realize the automated detection of exterior wall cracks, which can improve the efficiency and accuracy of detection and reduce the workload and error rate of manual detection; it is very important for the maintenance and safety of buildings, and can timely discover and repair exterior wall crack problems to avoid potential safety hazards.

[0092] Furthermore, the process of converting the historical exterior wall crack image into a feature vector in step S21 specifically includes the following steps:

[0093] Step S211: prepare a Haar feature classifier, which is obtained by training on a large number of positive and negative sample images, and detects different features such as edges and corners in the image; convert the historical exterior wall crack image into a grayscale image, slide a fixed-size window on the image, and extract Haar features from the image area in each window;

[0094] Step S212: for each Haar feature extracted in the window, calculate its feature value, the feature value indicates whether there is a target object or crack in the window, and the feature of the target object;

[0095] Step S213: The eigenvalues ​​extracted from all windows are combined to form a eigenvector, which is used to indicate whether there is a target object or a crack in the entire image and the characteristics of the target object.

[0096] Preferably, in step S211 of this embodiment, a Haar feature classifier is prepared. The classifier obtained through training can detect different features such as edges and corners in the image. The purpose of converting the historical exterior wall crack image into a grayscale image is to simplify the image processing process. The grayscale image has only one channel, which reduces the amount of calculation and memory usage. The sliding window can move on the image and extract Haar features from the image area in each window for subsequent eigenvalue calculation. In step S212, for the Haar features extracted in each window, its eigenvalue is calculated. The eigenvalue indicates whether there is a target object or crack and the characteristics of the target object in the window. By calculating the eigenvalue, the image can be classified and identified to determine whether there is a crack. In step S213, the eigenvalues ​​extracted from all windows are combined to form a eigenvector. The eigenvector is used to indicate whether there is a target object or crack and the characteristics of the target object in the entire image. By combining the eigenvalues ​​into a eigenvector, the characteristics of the image can be described more comprehensively, providing more accurate judgment and recognition results.

[0097] In summary, this embodiment converts the crack information in the image into a numerical feature vector. By analyzing and processing the feature vector, the detection and identification of the crack target in the image can be achieved. This is very important for the task of exterior wall crack detection, as it can improve the accuracy and efficiency of detection and provide guidance and support for subsequent processing and repair.

[0098] Furthermore, the process of updating the network parameters by the back propagation algorithm in step S22 specifically includes the following steps:

[0099] Step S221: passing the input image into the input layer of the network; in the convolution layer, using the convolution operation to extract features of the input image; the convolution operation uses the convolution kernel to perform product and summation with the local area of ​​the input image to obtain a feature map; in the pooling layer, the feature map is downsampled to reduce the size of the feature map by extracting the maximum value or average value of the image;

[0100] Step S222: After multiple convolution and pooling operations, the final feature map is expanded into a one-dimensional vector; the expanded feature vector is passed to the fully connected layer for classification; the fully connected layer multiplies and sums each feature with the weight of the network, and outputs the classification result through an activation function;

[0101] Step S223: In the back propagation algorithm, the gradient information is obtained by calculating the difference between the network output and the actual label of the loss function; based on the gradient information, the network parameters are updated using gradient descent so that the network output is closer to the actual label; the training process will iterate multiple times and continuously update the parameters until the predetermined number of training iterations is reached or the network converges.

[0102] Preferably, the convolution and pooling operations in step S221 of this embodiment can effectively extract local features of the image and reduce the size of the feature map for subsequent classification tasks. The fully connected layer in step S222 multiplies and sums the expanded feature vector with the weight of the network, and obtains the classification result through an activation function; the fully connected layer can combine and abstract the features for better classification. The back propagation algorithm in step S223 obtains gradient information by calculating the difference between the network output and the actual label of the loss function. According to the gradient information, the network parameters are updated using gradient descent so that the network output is closer to the actual label; through the iterative update of the back propagation algorithm, the network performance can be continuously optimized, and the accuracy and generalization ability of the model can be improved.

[0103] In summary, this embodiment constructs a convolutional neural network model that can effectively extract image features and accurately classify; by training and updating network parameters, the model can better learn and understand image data, thereby achieving the purpose of accurately detecting and classifying targets.

[0104] Further, the process of updating the network parameters using gradient descent in step S223 specifically includes the following steps:

[0105] Step S2231: By comparing the network output with the actual label, the difference between the predicted result and the actual result, that is, the loss value, is calculated. The expression of the loss function is:

[0106] The output of the model is y pred , the actual label is y true , the expression of the loss function L is:

[0107] L=(1 / n)*Σ(y pred -y true ) 2 ;

[0108] Where n is the number of samples, and Σ represents the sum of all samples;

[0109] Step S2232: According to the loss value obtained by the loss function, the loss value is transferred from the output layer to the input layer by back propagation, and the partial derivative of each parameter with respect to the loss function is calculated by the chain rule;

[0110] The expression of partial derivative is:

[0111]

[0112] in, Represents the partial derivative of the model output with respect to the parameter w;

[0113] Step S2233: Use the gradient descent method to update the network parameters. According to the gradient direction of the parameters, update the parameters with the learning rate so that the value of the loss function gradually decreases. The formula for updating the parameters is: parameter = parameter - learning rate * gradient. Update the parameters through multiple iterations so that the network's prediction results are closer to the actual labels.

[0114] Preferably, the purpose of calculating the loss function in step S2231 of this embodiment is to measure the difference between the model prediction result and the actual label. By minimizing the loss function, the prediction result of the model can be made closer to the actual label, thereby improving the accuracy and performance of the model. The purpose of calculating the partial derivative of the parameter in step S2232 is to determine the degree of influence of the parameter on the loss function, that is, the gradient. By calculating the partial derivative of the parameter, the direction of the gradient can be determined to guide the update direction of the parameter so that the loss function gradually decreases. The purpose of using the gradient descent method to update the network parameters in step S2233 is to update the parameters by continuous iteration so that the prediction result of the model is closer to the actual label, thereby achieving the effect of minimizing the loss function; the learning rate determines the step size of the parameter update. A learning rate that is too large may cause the parameter to be updated too quickly and miss the optimal solution. A learning rate that is too small may cause the parameter to be updated too slowly and converge slowly.

[0115] In summary, this embodiment can continuously optimize network parameters and improve the performance and accuracy of the model, so that the model can better adapt to the training data and have better generalization ability, and can accurately predict unseen data.

[0116] Furthermore, if Figure 4 As shown, the process of locating and identifying cracks in step S3 specifically includes the following steps:

[0117] Step S31: input the exterior wall image to be detected into the crack target detection model, and apply the window to the image to be detected according to the preset sliding window size and step size; for each sliding window position, extract the image block in the window as input;

[0118] Step S32: Use the pre-trained crack target detection model to classify the image block to determine whether it is a crack target; if the classification result is a crack target, record the position of the window and the classification confidence; continue to slide the window until the entire image is traversed;

[0119] Step S33: For overlapping windows, non-maximum suppression is performed according to the classification confidence to remove repeated crack target frames; cracks are located and identified based on the final crack target frame; and the crack targets are further analyzed and evaluated, such as measuring parameters such as crack length and width, and extracting morphological features of cracks.

[0120] Preferably, step S31 of this embodiment traverses all possible window positions on the exterior wall image to be detected by means of a sliding window, extracts the image blocks in the window as input, and divides the image into multiple small blocks for subsequent classification and identification. Step S32 uses a pre-trained crack target detection model to classify the image blocks to determine whether they are crack targets, and uses a machine learning model to judge the image blocks to determine which image blocks contain crack targets; achieves preliminary identification of crack targets, and provides a basis for subsequent crack location and identification. Step S33 For overlapping windows, non-maximum suppression is performed according to the classification confidence, and repeated crack target frames are removed; then cracks are located and identified based on the final crack target frame; by removing repeated crack target frames, the most accurate crack target location information is obtained; accurate crack location and identification are achieved, providing a basis for subsequent analysis and evaluation.

[0121] In summary, this embodiment can locate and identify cracks in the exterior wall through the combination of the above steps; it is of great significance for the safety assessment and maintenance of the building, and can timely discover and repair crack problems to avoid further damage and safety hazards.

[0122] Furthermore, the process of further analyzing and evaluating the crack target in step S33 specifically includes the following steps:

[0123] Step S331: according to the position and size information of the crack target, accurate size information is obtained by calculating the pixel distance; and the morphological characteristics of the crack are obtained using the contour;

[0124] Among them, according to the position and size information of the crack target, the boundary box or outline of the crack is determined; the pixel coordinates of the area where the crack is located are obtained through the crack boundary box or outline; according to the pixel coordinates of the area where the crack is located, the size information such as the length and width of the crack is calculated; the pixel distance can be calculated using the following formula: pixel distance = actual distance / pixel length, wherein the actual distance is the known actual length, and the pixel length is the pixel length measured from the image; according to the known actual length and the measured pixel length, the pixel distance can be solved to obtain the accurate size information of the crack;

[0125] Step S332: determining the specific position of the crack in the exterior wall image according to the position information of the crack target, and marking the outline of the crack;

[0126] Step S333: Use predefined evaluation criteria to determine the extent of the cracks, and evaluate and classify the cracks.

[0127] Preferably, step S331 of this embodiment can accurately measure the length, width and other dimensional information of the crack by calculating the pixel distance, so as to obtain more accurate crack features, and the morphological features of the crack, such as shape, curvature, etc., can be obtained by using contour extraction. Step S332 can accurately mark the location and contour of the crack on the exterior wall image according to the location information of the crack target, which is helpful for subsequent analysis and processing. Step S333 can evaluate and classify the cracks by using predefined evaluation criteria, such as judging the severity and stability of the cracks, further understand the situation of the cracks, and provide guidance for subsequent repair and maintenance.

[0128] In summary, this embodiment can obtain accurate size information and morphological characteristics of cracks by further analyzing and evaluating crack targets, evaluate the extent of cracks, and provide guidance for subsequent repair and maintenance work. At the same time, analyzing and evaluating cracks also helps to understand the health status of the exterior wall structure, timely discover and deal with crack problems, and improve the safety and reliability of buildings.

[0129] like Figure 5 As shown, this embodiment also provides an embodiment of an external wall crack target detection system. In this embodiment, the external wall crack target detection system is applied to the external wall crack target detection method in the above embodiment. The external wall crack target detection system includes an image processing module 1, a model building module 2, and a recognition result module 3 which are electrically connected in sequence;

[0130] Among them, the image processing module 1 is used to collect images of exterior wall cracks through drones and perform image denoising preprocessing; computer vision is used to extract features from the preprocessed images, and the features include edges, textures, shapes, etc.; the model building module 2 is used to use historical exterior wall crack images containing cracks and non-cracks to train the convolutional neural network to obtain a crack target detection model, and optimize the parameters of the convolutional neural network through the back propagation algorithm; the feature-based method Haar feature and the convolutional neural network deep learning method are selected to perform target detection on new exterior wall images; the recognition result module 3 is used to search for crack targets in the image through a sliding window, that is, to locate and identify cracks; and the recognition results are analyzed and evaluated.

[0131] Preferably, the image processing module 1 of this embodiment performs denoising preprocessing on the collected exterior wall crack images, and extracts features such as edges, textures and shapes to provide clear and accurate image data to the model building module 2 for processing, thereby improving the accuracy of subsequent model training and target detection. The model building module 2 selects a suitable target detection method, such as Haar features and convolutional neural networks, to perform target detection on new exterior wall images; a crack target detection model is obtained by training samples containing cracks and non-cracks, and the parameters of the model are optimized by a back propagation algorithm. The significance of this step is to build a model that can accurately identify cracks and improve the accuracy and efficiency of target detection. The recognition result module 3 uses the trained crack target detection model to perform target detection on new exterior wall images, and searches for crack targets in the image through a sliding window to locate and identify cracks. Analyzing and evaluating the recognition results can help users to promptly discover exterior wall crack problems, take corresponding repair measures, and improve the safety and reliability of building structures.

[0132] Furthermore, the image processing module 1 specifically includes:

[0133] The denoising processing submodule is used to perform denoising preprocessing on the image to obtain a denoised image;

[0134] The feature processing submodule is used to select edge, texture and shape as target features. The edge feature is extracted by edge detection algorithm, the color feature is calculated by color histogram, and the texture feature is extracted by local binary pattern.

[0135] The feature representation submodule is used to represent the extracted target features as a descriptive data structure.

[0136] Preferably, the denoising processing submodule of this embodiment can reduce noise interference in the image by performing denoising preprocessing on the image, obtain a clear image, and improve the accuracy and effect of subsequent processing. The feature processing submodule selects edges, textures, shapes, etc. as target features, extracts edge features through edge detection algorithms, calculates color features using color histograms, and extracts texture features through local binary patterns. The features can provide information about the morphology, color, and texture of the cracks, which is helpful for subsequent analysis and identification. Feature representation submodule: The extracted target features are represented as descriptive data structures, which can facilitate subsequent analysis and processing. The descriptive data structure can better express the characteristics of the cracks and provide a basis for subsequent evaluation and classification.

[0137] In summary, the image processing module 1 of this embodiment can extract clear crack features through steps such as denoising, feature extraction and feature representation, and represent them as a data structure that can be used for analysis and evaluation; it helps to improve the accuracy and efficiency of crack analysis and provide important reference and guidance for subsequent maintenance and repair work.

[0138] Furthermore, the model building module 2 specifically includes:

[0139] The image conversion submodule is used to prepare cracked and non-cracked historical exterior wall crack images, and use the Haar feature method to convert the historical exterior wall crack images into feature vectors, which are used as training data sets; design the network structure of the convolutional neural network, including convolutional layers, pooling layers, fully connected layers, etc.; initialize the weights and biases of the convolutional neural network;

[0140] The model training submodule is used to train the convolutional neural network using the training data set. The input image is passed through the convolution layer and the pooling layer through forward propagation to obtain the feature map, and then through the fully connected layer to obtain the classification result; the difference between the network output and the actual label is calculated using the loss function, and the network parameters are updated through the back propagation algorithm to optimize the network performance; until the predetermined number of training iterations is reached or the network converges, the trained crack target detection model is saved for subsequent crack target detection tasks;

[0141] The image detection submodule is used to convert the descriptive data structure of the image of the exterior wall cracks collected by the drone, input it into the trained crack target detection model, and perform target detection on the image.

[0142] Preferably, the image conversion submodule of this embodiment converts the historical exterior wall crack image into a feature vector: the image is converted into a feature vector by the Haar feature method for use in the subsequent training process; the feature vector is used as a training data set: the converted feature vector is used as a training data set for training the crack target detection model; by converting the image into a feature vector, the dimension and redundancy of the data can be reduced, the key features of the image can be extracted, and input can be provided for subsequent model training. Model training submodule convolutional neural network structure design: a network structure composed of a convolution layer, a pooling layer, a fully connected layer, etc. is designed to extract image features and perform classification; network parameters are initialized: the weights and biases of the convolutional neural network are initialized to provide an initial state for the subsequent training process; training with a training data set: the network is trained with a training data set through forward propagation and back propagation algorithms, and the network parameters are optimized so that it can accurately classify cracks and non-crack targets; saving the trained model: during the training process, the trained crack target detection model is saved for use in subsequent crack target detection tasks; through model training, the convolutional neural network can learn the characteristics of the crack target and improve the accuracy and robustness of crack target detection. The image detection submodule uses a descriptive data structure for target detection: the exterior wall crack images collected by the drone are converted into the input of a descriptive data structure, and target detection is performed through a trained crack target detection model; through the crack target detection model, crack targets in the image can be automatically identified, and cracks can be detected quickly and accurately, thereby improving the efficiency and accuracy of detection and providing guidance and decision-making basis for subsequent crack repair.

[0143] In summary, the various sub-modules in the model building module 2 of this embodiment realize the functions of feature extraction, model training and target detection of crack targets through different technical means and methods, thereby improving the accuracy, efficiency and automation of crack target detection, and providing strong support for the monitoring and repair of exterior wall cracks.

[0144] Furthermore, the recognition result module 3 specifically includes:

[0145] The window application submodule is used to input the exterior wall image to be detected into the crack target detection model, and apply the window to the image to be detected according to the preset sliding window size and step size; for each sliding window position, the image block in the window is extracted as input;

[0146] The image classification submodule is used to classify the image block using the pre-trained crack target detection model to determine whether it is a crack target; if the classification result is a crack target, the window position and classification confidence are recorded; the window is continued to slide until the entire image is traversed;

[0147] The target recognition submodule is used to perform non-maximum suppression on overlapping windows according to the classification confidence and remove duplicate crack target frames; locate and identify cracks based on the final crack target frame; and further analyze and evaluate crack targets, such as measuring parameters such as crack length and width and extracting morphological features of cracks.

[0148] Preferably, the window application submodule of this embodiment segments the exterior wall image to be detected according to the preset sliding window size and step size, extracts the image block in the window as input, and can traverse the entire image for subsequent crack target detection. The image classification submodule uses the pre-trained crack target detection model to classify the image block to determine whether it is a crack target; through the classifier, it can be determined whether there is a crack in the image block, thereby identifying the crack target. For overlapping windows, the target recognition submodule performs non-maximum suppression according to the classification confidence, removes repeated crack target frames, eliminates redundant detection results, and obtains the final crack target frame. Then, the crack can be located and identified, and the parameters and morphological characteristics of the crack can be further analyzed and evaluated.

[0149] In summary, this embodiment realizes automatic detection and identification of crack targets in exterior wall images; through these technical effects, cracks can be quickly and accurately located and identified, improving work efficiency and reducing labor costs. At the same time, cracks can be further analyzed and evaluated to provide reference and guidance for subsequent maintenance and repair work.

[0150] like Figure 6 As shown, this embodiment provides an embodiment of an electronic device. In this embodiment, the electronic device 4 includes a processor 41 and a memory 42 coupled to the processor 41.

[0151] The memory 42 stores program instructions for implementing the exterior wall crack target detection method of any of the above-mentioned embodiments.

[0152] The processor 41 is used to execute program instructions stored in the memory 42 to perform external wall crack target detection.

[0153] The processor 41 may also be referred to as a CPU (Central Processing Unit). The processor 41 may be an integrated circuit chip having signal processing capabilities. The processor 41 may also be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0154] Further, Figure 7The schematic diagram of the structure of the storage medium of an embodiment of the present application is that the storage medium 5 of the embodiment of the present application stores program instructions 51 that can implement all the above methods, wherein the program instructions 51 can be stored in the above storage medium in the form of a software product, including several instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) or a processor to execute all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, or terminal devices such as a computer, a server, a mobile phone, and a tablet.

[0155] In the several embodiments provided by the present invention, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0156] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit may be implemented in the form of hardware or in the form of software functional units. The above is only an implementation mode of the present invention, and does not limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made by using the contents of the present invention specification and drawings, or directly or indirectly used in other related technical fields, is also included in the patent protection scope of the present invention.

[0157] The specific implementation methods of the invention are described in detail above, but they are only examples, and the invention is not limited to the specific implementation methods described above. For those skilled in the art, any equivalent modification or substitution of the invention is also within the scope of the invention, therefore, the equalization, modification, improvement, etc. made without departing from the spirit and principle of the invention should be included in the scope of the invention.

Claims

1. A method for detecting exterior wall cracks, characterized in that: The exterior wall crack target detection method comprises: Collect images of exterior wall cracks through drones and perform image denoising preprocessing; use computer vision to extract target features from the preprocessed images; The convolutional neural network is trained using historical exterior wall crack images containing cracks and non-cracks to obtain a crack target detection model. The parameters of the convolutional neural network are optimized through the back propagation algorithm. The feature-based method Haar feature and the convolutional neural network deep learning method are selected to perform target detection on the image. The crack target in the image is searched through a sliding window, that is, the crack is located and identified; the identification results are analyzed and evaluated.

2. The exterior wall crack target detection method according to claim 1, characterized in that: The process of extracting features from preprocessed images using computer vision includes the following steps: Perform denoising preprocessing on the image to obtain a denoised image; Edge, texture and shape are selected as target features. Edge features are extracted by edge detection algorithm, color features are calculated by color histogram, and texture features are extracted by local binary pattern. Represent the extracted target features as a descriptive data structure.

3. The exterior wall crack target detection method according to claim 2, characterized in that: The process of descriptive data structure representation includes the following steps: Convert the output of each feature extraction algorithm into numerical form according to the selected feature type; The features are weighted according to their importance, and the features are combined into a single vector according to the rule of combining the weighted eigenvalues. The vector is called a feature vector, in which each element corresponds to a feature; Calculate the statistical value of each element of the eigenvector, normalize each element in the eigenvector, subtract the minimum value from each element in the eigenvector, and divide it by the difference between the maximum and minimum values.

4. The exterior wall crack target detection method according to claim 1, characterized in that: The process of object detection on an image includes the following steps: Prepare cracked and non-cracked historical exterior wall crack images, use the Haar feature method to convert the historical exterior wall crack images into feature vectors, and use the feature vectors as training data sets; design the network structure of the convolutional neural network, including convolutional layer, pooling layer, and fully connected layer; initialize the weights and biases of the convolutional neural network; Use the training data set to train the convolutional neural network. Through forward propagation, the input image passes through the convolution layer and the pooling layer to obtain the feature map, and then passes through the fully connected layer to obtain the classification result. Use the loss function to calculate the difference between the network output and the actual label, and use the back propagation algorithm to update the network parameters and optimize the network performance. Until the predetermined number of training iterations is reached or the network converges, save the trained crack target detection model for subsequent crack target detection tasks. The descriptive data structure of the image conversion of the exterior wall cracks collected by the drone is input into the trained crack target detection model to perform target detection on the image.

5. The exterior wall crack target detection method according to claim 4, characterized in that: The process of converting the historical exterior wall crack image into a feature vector includes the following steps: Prepare a Haar feature classifier, which is trained on a large number of positive and negative sample images to detect different features of edges and corners in the image; convert the historical exterior wall crack image into a grayscale image, slide a fixed-size window on the image, and extract Haar features from the image area in each window; For each Haar feature extracted from the window, its eigenvalue is calculated. The eigenvalue indicates whether there is a target object or crack in the window, as well as the characteristics of the target object. The eigenvalues ​​extracted from all windows are combined to form a feature vector, which is used to indicate whether there is a target object or crack in the entire image and the characteristics of the target object.

6. The exterior wall crack target detection method according to claim 4, characterized in that: The process of updating network parameters through the back-propagation algorithm includes the following steps: The input image is passed into the input layer of the network; in the convolution layer, the input image is subjected to feature extraction using convolution operations; the convolution operation uses the convolution kernel to perform product and summation with the local area of ​​the input image to obtain a feature map; in the pooling layer, the feature map is downsampled to reduce the size of the feature map by extracting the maximum or average value of the image; After multiple convolution and pooling operations, the final feature map is expanded into a one-dimensional vector; the expanded feature vector is passed to the fully connected layer for classification; the fully connected layer multiplies and sums each feature with the network weight, and outputs the classification result through an activation function; In the back-propagation algorithm, the gradient information is obtained by calculating the difference between the network output and the actual label of the loss function; based on the gradient information, the network parameters are updated using gradient descent to make the network output closer to the actual label; the training process will iterate multiple times and continuously update the parameters until the predetermined number of training iterations is reached or the network converges.

7. The exterior wall crack target detection method according to claim 6, characterized in that: The process of updating network parameters using gradient descent includes the following steps: By comparing the network output with the actual label, the difference between the predicted result and the actual result is calculated, that is, the loss value. The expression of the loss function is: The output of the model is y pred , the actual label is y true , the expression of the loss function L is: L=(1 / n)*Σ(y pred -y true ) 2 ; Where n is the number of samples, and Σ represents the sum of all samples; According to the loss value obtained by the loss function, back propagation transfers this loss value from the output layer to the input layer, and the partial derivative of each parameter with respect to the loss function is calculated by the chain rule; The expression of partial derivative is: in, Represents the partial derivative of the model output with respect to the parameter w; Use the gradient descent method to update the network parameters. According to the gradient direction of the parameters, update the parameters with the learning rate so that the value of the loss function gradually decreases. The formula for updating the parameters is: parameter = parameter - learning rate * gradient. By updating the parameters through multiple iterations, the network's prediction results are closer to the actual labels.

8. The exterior wall crack target detection method according to claim 1, characterized in that: The process of crack location and identification includes the following steps: The exterior wall image to be detected is input into the crack target detection model, and the window is applied to the image to be detected according to the preset sliding window size and step size; for each sliding window position, the image block within the window is extracted as input; Use the pre-trained crack target detection model to classify the image block to determine whether it is a crack target; if the classification result is a crack target, record the window position and classification confidence; continue to slide the window until the entire image is traversed; For overlapping windows, non-maximum suppression is performed according to the classification confidence to remove repeated crack target frames; cracks are located and identified based on the final crack target frame; and crack targets are further analyzed and evaluated, such as measuring the length and width parameters of the cracks and extracting the morphological features of the cracks.

9. The exterior wall crack target detection method according to claim 8, characterized in that: The process of further analysis and evaluation of the crack target includes the following steps: According to the location and size information of the crack target, accurate size information is obtained by calculating the pixel distance; the morphological characteristics of the crack are obtained using the contour; Among them, according to the position and size information of the crack target, the boundary box or outline of the crack is determined; the pixel coordinates of the area where the crack is located are obtained through the crack boundary box or outline; according to the pixel coordinates of the area where the crack is located, the length and width size information of the crack are calculated; the pixel distance is calculated using the following formula: pixel distance = actual distance / pixel length, wherein the actual distance is the known actual length and the pixel length is the pixel length measured from the image; according to the known actual length and the measured pixel length, the pixel distance is solved to obtain the accurate size information of the crack; According to the position information of the crack target, the specific position of the crack in the exterior wall image is determined, and the outline of the crack is marked; Cracks are assessed and classified using predefined evaluation criteria to determine their extent.

10. An external wall crack target detection system, applied to the external wall crack target detection method according to any one of claims 1 to 9, characterized in that: The exterior wall crack target detection system comprises: The image processing module is used to collect images of cracks on the exterior wall through drones and perform image denoising preprocessing; computer vision is used to extract features from the preprocessed images, including edges, textures, and shapes; The model building module is used to train the convolutional neural network using historical exterior wall crack images containing cracks and non-cracks to obtain a crack target detection model, and optimize the parameters of the convolutional neural network through the back propagation algorithm; select the feature-based method Haar feature and the convolutional neural network deep learning method to perform target detection on the new exterior wall image; The recognition result module is used to search for crack targets in the image through a sliding window, that is, to locate and identify the cracks; and to analyze and evaluate the recognition results.

Citation Information

Patent Citations

  • License plate detection method based on convolutional neural network

    CN104298976A

  • Customer satisfaction acquisition method based on facial expression recognition

    CN110399821A

  • Wind turbine blade image damage detection and positioning method

    CN112233091A

  • Building surface crack detection method based on deep learning network

    CN112330593A

  • Deep learning concrete bridge crack real-time detection method based on domain adaptation

    CN114693615A

Cited By

  • Crack detection method based on automatic pseudo label filling

    CN115880224A

  • A crack detection method based on automatic filling pseudo-labels

    CN115880224B

  • Concrete building outer wall detection method and system, computer equipment and storage medium

    CN119360219A

  • Intelligent detection system for house outer wall cracks

    CN119394191A

  • Building material surface defect detection method based on infrared polarization imaging

    CN119559183A