A method for detecting construction project quality

By calculating the fuzzy coefficient and crack direction complexity on the building ceiling, a crack characteristic index is constructed, and the image segmentation algorithm is used to identify cracks on the building, which solves the problem that traditional detection methods are difficult to identify small cracks and improves the accuracy of construction project quality detection. .

CN118379639BActive Publication Date: 2024-09-10DALIAN QIANYAO TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202410831480.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-26
Publication Date
2024-09-10
Estimated Expiration
2044-06-26

AI Technical Summary

Technical Problem

In construction engineering quality inspection, traditional image inspection methods are difficult to accurately identify small cracks in buildings, resulting in low detection accuracy.

Method used

A CMOS camera is used to collect building ceiling images. After filtering and grayscale processing, the blur coefficient and crack direction complexity of each pixel are calculated, a crack characteristic index is constructed, and the image segmentation algorithm is used to obtain a crack saliency map, thereby completing the construction project quality detection.

Benefits of technology

It improves the accuracy of quality inspection of construction projects, can more accurately identify cracks in buildings, and enhances the reliability of inspection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118379639B
    Figure CN118379639B
Patent Text Reader

Abstract

The present application relates to the technical field of image data processing, and proposes a construction engineering quality detection method, including: obtaining a ceiling grayscale image; obtaining a gradient contrast similarity index and a local gradient difference fuzzy index according to the ceiling grayscale image; obtaining a ceiling fuzzy coefficient according to the gradient contrast similarity index and the local gradient difference fuzzy index; obtaining a fuzzy coefficient matrix according to the ceiling fuzzy coefficient; obtaining crack direction complexity according to the fuzzy coefficient matrix; obtaining a crack feature index according to the crack direction complexity; obtaining a crack significance map according to the crack feature index; obtaining crack detection results based on the crack significance map using a watershed algorithm; and completing construction engineering quality detection based on the crack detection results. The present application improves the accuracy of construction engineering quality detection by analyzing fuzzy features and crack edge direction complexity features and improving the accuracy of crack detection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of image data processing, and in particular to a method for detecting the quality of a construction project. Background Art

[0002] With the development of science and technology, the construction industry is constantly updating and iterating, from the red brick and tile houses of the past to the high-rise buildings of today. But at the same time, shoddy construction, unfinished construction and other engineering quality problems have also emerged. People have gone from being amazed at China's speed to being more concerned about the quality of buildings. Nowadays, the attention to building quality comes from all aspects, but the professional one is still the quality inspection in the project acceptance stage.

[0003] In order to improve the quality of construction, all parties involved in the construction, including the construction unit, the construction unit and the supervision unit, have established a relatively complete quality management system and relevant management agencies, and actively applied the management system and management plan in practice to effectively supervise and manage the quality of the project, thereby improving the effectiveness of the quality management of construction projects. However, the quality inspection of construction projects is constantly improving and improving, but it still faces some challenges.

[0004] With the development of computer vision technology, most of the quality problems in construction projects are detected through building images, thereby realizing the quality inspection of construction projects. However, due to the different quality problems of construction projects, some quality problems are difficult to accurately identify through images. For example, cracks on buildings. Due to the complexity of cracks on buildings, the fuzzy features of smaller crack edges are stronger. Traditional image detection methods often have difficulty in accurately detecting building cracks, resulting in low accuracy of construction project quality inspection. Summary of the invention

[0005] The present application provides a construction engineering quality detection method to solve the problem of low accuracy of crack detection on buildings. The technical solution adopted is as follows:

[0006] An embodiment of the present application provides a construction project quality detection method, the method comprising the following steps:

[0007] The CMOS camera is used to collect the surface image of the building ceiling, and the surface image of the building ceiling is filtered and grayed to obtain the grayscale image of the ceiling;

[0008] The ceiling fuzzy coefficient of each pixel is obtained according to the gradient amplitude of each pixel and its neighboring pixel in the ceiling grayscale image; the fuzzy coefficient matrix is ​​obtained according to the ceiling fuzzy coefficient of each pixel and its neighboring pixel, and the extreme value, median, mean and mode of the fuzzy coefficient matrix are analyzed according to rows and columns to obtain the crack direction complexity of the pixel; the crack characteristic index of each pixel is obtained according to the crack direction complexity of each pixel; the grayscale values ​​of all pixels in the ceiling grayscale image are replaced with the crack characteristic index of the corresponding pixel to obtain the crack saliency map;

[0009] The image segmentation algorithm is used to obtain crack detection results based on the crack saliency map, and the quality inspection of the construction project is completed based on the crack detection results.

[0010] Preferably, the method for obtaining the ceiling fuzzy coefficient of each pixel point according to the gradient amplitude of each pixel point and the neighboring pixel points of each pixel point in the ceiling grayscale image is:

[0011] The ceiling grayscale image is used as the input of the Sobel edge detection algorithm, and the gradient amplitude of each pixel is obtained using the Sobel edge detection algorithm;

[0012] With each pixel as the center, a window of preset parameter size is set as the sliding window of each pixel; the sequence composed of the gradient amplitudes of all pixels in the sliding window of each pixel is used as the gradient change sequence of each pixel, and the first-order difference sequence of the gradient change sequence of each pixel is used as the gradient contrast feature sequence of each pixel;

[0013] Obtain the gradient contrast similarity index of each pixel point according to the gradient contrast feature sequence of each pixel point; obtain the local gradient difference fuzzy index of each pixel point according to the sliding window of each pixel point;

[0014] The product of the gradient contrast similarity index of each pixel and the local gradient difference fuzzy index of each pixel is taken as the ceiling fuzzy coefficient of each pixel.

[0015] Preferably, the method for obtaining the gradient contrast similarity index of each pixel point according to the gradient contrast feature sequence of each pixel point is:

[0016] The negative mapping result with the natural constant as the base and the gradient of each pixel point as the index of each element in the feature sequence is used as the numerator;

[0017] The denominator is the sum of the standard deviation of all elements in the gradient contrast feature sequence of each pixel and 1;

[0018] The average of the ratio of the numerator to the denominator accumulated over the gradient contrast feature sequence is taken as the gradient contrast similarity index of each pixel.

[0019] Preferably, the method for obtaining the local gradient difference fuzzy index of each pixel point according to the sliding window of each pixel point is:

[0020] Calculate the absolute value of the difference between the gradient amplitude of each neighboring pixel point in the sliding window of each pixel point and the gradient amplitude of each pixel point, and use the negative mapping result of the natural constant as the base and the absolute value as the exponent as the numerator;

[0021] The sum of the coefficient of variation of the gradient amplitude of all neighboring pixels in the sliding window of each pixel and 1 is used as the denominator;

[0022] The mean of the sum of the ratio of the numerator to the denominator on the sliding window is taken as the first mean, the mean of the gradient amplitudes of all neighboring pixels in the sliding window of each pixel is taken as the second mean, and the ratio of the first mean to the second mean is taken as the local gradient difference fuzzy index of each pixel.

[0023] Preferably, the method of obtaining the fuzzy coefficient matrix according to the ceiling fuzzy coefficient of each pixel and its neighboring pixels, analyzing the extreme value, median, mean and mode of the fuzzy coefficient matrix according to rows and columns to obtain the crack direction complexity of the pixel is:

[0024] The matrix composed of the ceiling fuzzy coefficients of all pixels in the sliding window of each pixel is used as the fuzzy coefficient matrix of each pixel;

[0025] The fuzzy coefficient matrix of each pixel is sampled horizontally to obtain a lateral fuzzy coefficient sequence, and the lateral fuzzy coefficient sequence is used as the input of the DFA detrending fluctuation analysis algorithm. The DFA detrending fluctuation analysis algorithm is used to obtain a lateral fuzzy coefficient random change sequence, and the first-order difference sequence of the lateral fuzzy coefficient random change sequence is used as the lateral fuzzy change sequence.

[0026] The minimum value, median, mean, mode and maximum value of all elements in the random variation sequence of the lateral fuzzy coefficient are selected as each representative element of the random variation sequence of the lateral fuzzy coefficient;

[0027] Calculate the Euclidean distance between each element and each representative element in the random variation sequence of the lateral fuzzy coefficient, and use the sequence composed of the Euclidean distances between each element and all the representative elements in ascending order as the random perturbation sequence of each element in the random variation sequence of the lateral fuzzy coefficient;

[0028] Obtain the lateral fuzzy change difference of each pixel point according to the lateral fuzzy change sequence; obtain the lateral fuzzy randomness index of each pixel point according to the random disturbance sequence of each element in the lateral fuzzy coefficient random change sequence;

[0029] The negative mapping result with the natural constant as the base and the horizontal fuzzy randomness index of each pixel as the exponent is used as the numerator, the sum of the horizontal fuzzy change difference of each pixel and 1 is used as the denominator, and the sum of the inverse of the ratio of the numerator to the denominator and 1 is used as the horizontal change information degree of each pixel;

[0030] The fuzzy coefficient matrix of each pixel is sampled longitudinally, and the longitudinal variation information degree of each pixel is obtained by adopting the same calculation method as the lateral variation information degree;

[0031] The product of the lateral variation information of each pixel and the longitudinal variation information of each pixel is taken as the crack direction complexity of each pixel.

[0032] Preferably, the method for obtaining the lateral blur change difference of each pixel point according to the lateral blur change sequence is:

[0033]

[0034] In the formula, Indicates the horizontal blur change difference of the x-th pixel point, Indicates the number of elements in the horizontal fuzzy change sequence, represents the probability of the jth element value in the lateral fuzzy change sequence appearing in the lateral fuzzy change sequence, is a logarithmic function with a natural constant as base.

[0035] Preferably, the method for obtaining the lateral fuzzy randomness index of each pixel point according to the random disturbance sequence of each element in the random variation sequence of the lateral fuzzy coefficient is:

[0036]

[0037] In the formula, Represents the horizontal fuzzy randomness index of the x-th pixel, Represents the number of elements in the random variation sequence of the lateral fuzzy coefficient, represents the number of elements in the random perturbation sequence of the wth element in the random variation sequence of the lateral fuzzy coefficient, represents the yth element in the random perturbation sequence of the wth element in the random variation sequence of the lateral fuzzy coefficient, represents the mean value of the random disturbance sequence of the wth element in the random variation sequence of the lateral fuzzy coefficient, for Distance function, and They represent the random disturbance sequences of the wth and w-1th elements in the random variation sequence of the lateral fuzzy coefficients, Represents the random disturbance sequence between the wth and w-1th elements in the random variation sequence of the lateral fuzzy coefficient distance.

[0038] Preferably, the method for obtaining the crack characteristic index of each pixel point according to the crack direction complexity of each pixel point is:

[0039] The crack direction complexity of all pixels in the sliding window of each pixel is used as the input of the adjacent grayscale difference matrix algorithm, and the cumulative direction difference value of each pixel is obtained by using the adjacent grayscale difference matrix algorithm;

[0040] The product of the crack direction complexity of each pixel and the accumulated direction difference value of each pixel is used as the numerator; the sum of the ceiling fuzzy coefficient of each pixel and 1 is used as the denominator;

[0041] The integer result of the ratio of the numerator to the denominator is taken as the crack characteristic index of each pixel.

[0042] Preferably, the method of obtaining crack detection results based on the crack saliency map using an image segmentation algorithm and completing the construction project quality inspection based on the crack detection results is:

[0043] The crack saliency map is used as the input of the image segmentation algorithm, and the crack detection result is obtained by using the image segmentation algorithm; if cracks appear in the crack detection result, it means that the quality of the construction project is poor; if no cracks appear in the crack detection result, it means that the quality of the construction project is good.

[0044] The beneficial effects of the present application are as follows: based on the analysis of the fuzzy features of the ceiling, a ceiling fuzzy coefficient is constructed to reflect the fuzzy phenomena on the ceiling that do not belong to the crack area; based on the analysis of the complexity of the crack edge direction, the crack direction complexity is constructed to reflect the complexity of the crack edge direction; based on the combination of the ceiling fuzzy coefficient and the complexity of the crack direction, a crack feature index is constructed to reflect the significance of the crack. The present application uses the crack feature index to construct a crack significance map, uses the watershed algorithm to obtain crack detection results based on the crack significance map, and completes the construction project quality inspection based on the crack detection results. The present application improves the accuracy of construction project quality inspection by improving the accuracy of crack detection through the analysis of the fuzzy features of the ceiling and the complexity features of the crack edge direction. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0046] Figure 1 A schematic diagram of a flow chart of a construction engineering quality inspection method provided by an embodiment of the present application;

[0047] Figure 2 A flowchart of an implementation method of a construction project quality inspection method provided in one embodiment of the present application. DETAILED DESCRIPTION

[0048] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0049] See also Figure 1 , which shows a flow chart of a construction engineering quality detection method provided by an embodiment of the present application, the method comprising the following steps:

[0050] Step S001, using a CMOS camera to capture a building ceiling surface image, and obtaining a ceiling grayscale image based on the building ceiling surface image.

[0051] The purpose of this application is to detect the quality of construction projects by identifying cracks in the ceiling of a building. A CMOS camera is used to capture the surface image of the building ceiling, and the surface image of the building ceiling is an image in RGB space. In order to improve the accuracy of crack detection on the ceiling of a building, it is necessary to preprocess the acquired image to eliminate the influence caused by noise and some external interference. The surface image of the building ceiling is used as the input of the Gaussian filtering algorithm, and the output of the Gaussian filtering algorithm is used as the ceiling recognition image. Subsequently, the ceiling recognition image is used as the input of the weighted average grayscale algorithm, and the output of the weighted average grayscale algorithm is used as the ceiling grayscale image, wherein the Gaussian filtering algorithm and the weighted average grayscale algorithm are both well-known technologies, and the specific process will not be repeated.

[0052] At this point, a grayscale image of the ceiling is obtained, which is used for subsequent analysis of cracks on the ceiling.

[0053] Step S002, obtaining a sliding window according to the ceiling grayscale image, obtaining a gradient contrast similarity index and a local gradient difference fuzzy index according to the sliding window, and obtaining a ceiling fuzzy coefficient according to the gradient contrast similarity index and the local gradient difference fuzzy index.

[0054] There is generally a large difference between the crack area and the background area in the ceiling grayscale image, and the crack area can be identified based on the difference between the two. However, the error factor area on the ceiling grayscale image also has a large grayscale difference with the surrounding walls. For example, there are foreign objects on the wall surface, which leads to differences in grayscale, so it is necessary to extract the features of the crack area.

[0055] Generally, due to the large difference in grayscale values ​​between the crack area and the surrounding environment, the gradient amplitude of the pixels in the crack area changes greatly, and the clarity of the regional image is higher. However, the local area of ​​the ceiling will be blurred due to dust adhesion. At this time, the gradient amplitude of the pixels in the local area changes less, and the blurred feature is greater.

[0056] Specifically, in order to more accurately identify the cracks on the ceiling, the ceiling grayscale image is used as the input of the Sobel edge detection algorithm, and the output of the Sobel edge detection algorithm is used as the gradient amplitude of each pixel. The Sobel edge detection algorithm is a well-known technology, and the specific process is not repeated here. In order to analyze the crack characteristics of the local area of ​​the pixel point, each pixel point is taken as the center and set A sliding window of size is used as the sliding window of each pixel, the sequence composed of the gradient amplitudes of all pixels in the sliding window of each pixel is used as the gradient change sequence of each pixel, and the first-order difference sequence of the gradient change sequence of each pixel is used as the gradient contrast feature sequence of each pixel.

[0057] Based on the above analysis, the ceiling fuzzy coefficient of each pixel is calculated:

[0058]

[0059]

[0060]

[0061] In the formula, Represents the gradient comparison similarity index of the x-th pixel, Indicates the number of element values ​​in the gradient contrast feature sequence of the x-th pixel. is an exponential function with a natural constant as base, Represents the value of the g-th element in the gradient contrast feature sequence of the x-th pixel. Represents the standard deviation of all element values ​​in the gradient comparison feature sequence of the x-th pixel. is the error parameter, and the denominator is avoided to be 0. The empirical value of the error parameter is 1, wherein the calculation of the standard deviation is a well-known technology, and the specific process is not repeated here;

[0062] Represents the local gradient difference fuzzy index of the x-th pixel, Represents the mean value of the gradient amplitude of all neighboring pixels in the sliding window of the x-th pixel, Represents the number of all neighboring pixels in the sliding window of the x-th pixel, Represents the gradient amplitude of the i-th neighboring pixel in the sliding window of the x-th pixel, represents the gradient magnitude of the x-th pixel, represents the coefficient of variation of the gradient amplitude of all neighboring pixels in the sliding window of the x-th pixel, wherein the calculation of the coefficient of variation is a well-known technique and the specific process will not be described in detail;

[0063] Indicates the ceiling blur coefficient of the x-th pixel.

[0064] Element Value The smaller the standard deviation The smaller it is, the closer the element value in the gradient contrast feature sequence is to 0, and the smaller the discreteness of the element value is, which to a certain extent reflects the high similarity between the gradient amplitudes in the local area. At this time, the smaller the gradient contrast result is, the more likely it is to be in the fuzzy area of ​​the ceiling, and the larger the gradient contrast similarity index is; the difference between the gradient amplitudes The smaller the coefficient of variation The smaller the value, the higher the similarity between the gradient of the pixel point and the gradient of the pixel points in its neighborhood. The gradient difference is small, and the fuzzy feature is larger. The smaller it is, to a certain extent, it reflects that the grayscale contrast of the neighborhood is small. At this time, the larger the fuzzy feature, the larger the local gradient difference fuzzy index; therefore, the gradient contrast similarity index The larger the local gradient difference fuzziness index is, the The larger it is, the greater the fuzzy feature of the local area is to a certain extent, while the fuzzy feature around the crack is smaller, which means that the pixel is less likely to be in the crack area at this time, and the larger the ceiling fuzzy coefficient is.

[0065] At this point, the ceiling blur coefficient of each pixel is obtained.

[0066] Step S003, obtaining a fuzzy coefficient matrix according to the ceiling fuzzy coefficient, obtaining crack direction complexity according to the fuzzy coefficient matrix, obtaining a crack characteristic index according to the crack direction complexity, and obtaining a crack saliency map according to the crack characteristic index.

[0067] Furthermore, the crack area has a large grayscale change, and the crack area is relatively clear, that is, the ceiling fuzziness coefficient is small. In addition, the edge of the crack is relatively complex, while the edge formed by the construction tangent is relatively standardized. Since the fuzziness coefficients of the crack area and the tangent area are both small, in order to distinguish the crack area from the tangent area, it is necessary to distinguish based on the edge features of the crack area.

[0068] Generally, tangents have clear features, their edges are relatively regular, and the directions of tangents are generally only horizontal and vertical. However, the edges of cracks are relatively messy, that is, there are more edge features, and the directions of crack edges are not unique.

[0069] Specifically, based on the feature differences between cracks and tangents, the ceiling fuzzy coefficient is sampled according to the sliding window of each pixel, and the crack direction complexity of each pixel is calculated through the lateral and longitudinal changes of the fuzzy coefficient.

[0070] For example, the ceiling fuzzy coefficient matrix of all pixels in the sliding window of the x-th pixel is used as the fuzzy coefficient matrix d of the x-th pixel, that is:

[0071]

[0072] Each element value in the fuzzy coefficient matrix d represents the ceiling fuzzy coefficient of each pixel, such as Represents the ceiling blur coefficient of the pixel at the 7th row and 1st column in the sliding window.

[0073] The fuzzy coefficient matrix d is sampled horizontally and vertically, and the sampling methods of the horizontal sampling and the vertical sampling are the same. Taking horizontal sampling as an example, a horizontal fuzzy coefficient sequence c is formed according to the random combination of different row vectors, that is:

[0074]

[0075] When the sliding window is located in the transverse tangent area, the change in the transverse blur degree is almost all 0; when the sliding window is located in the crack area, since the direction of the crack is generally tilted, the change in the transverse blur degree will show a large difference, and the change in the transverse blur degree is more random.

[0076] Specifically, in order to reduce the influence of sequence trend on the randomness analysis of lateral fuzziness degree change and to more accurately measure the changing law of lateral fuzziness degree, the lateral fuzziness coefficient sequence is used as the input of DFA detrended fluctuation analysis algorithm (Detrended Fluctuation Analysis, DFA), the output of DFA detrended fluctuation analysis algorithm is used as the random change sequence of lateral fuzziness coefficients, and the first-order difference sequence of the random change sequence of lateral fuzziness coefficients is used as the lateral fuzziness change sequence, wherein the DFA detrended fluctuation analysis algorithm is a well-known technology and the specific process will not be repeated here.

[0077] In order to measure the random fluctuation degree of the lateral ambiguity degree, the minimum value, median, mean, mode and maximum value of all elements in the random change sequence of the lateral ambiguity coefficient are selected as each representative element of the random change sequence of the lateral ambiguity coefficient, and the Euclidean distance between each element and each representative element in the random change sequence of the lateral ambiguity coefficient is calculated. The sequence composed of the Euclidean distances between each element and all representative elements in ascending order of numerical values ​​is taken as the random perturbation sequence of each element in the random change sequence of the lateral ambiguity coefficient.

[0078] Based on the above analysis, calculate the lateral change information of the x-th pixel point ,Right now:

[0079]

[0080]

[0081]

[0082] In the formula, Indicates the horizontal blur change difference of the x-th pixel point, Indicates the number of elements in the horizontal fuzzy change sequence, represents the probability of the jth element value in the lateral fuzzy change sequence appearing in the lateral fuzzy change sequence, is a logarithmic function with a natural constant as base;

[0083] Represents the horizontal fuzzy randomness index of the x-th pixel, Represents the number of elements in the random variation sequence of the lateral fuzzy coefficient, represents the number of elements in the random perturbation sequence of the wth element in the random variation sequence of the lateral fuzzy coefficient, represents the value of the yth element in the random disturbance sequence of the wth element in the random variation sequence of the lateral fuzzy coefficient, represents the mean value of the random disturbance sequence of the wth element in the random variation sequence of the lateral fuzzy coefficient, for Distance function, and They represent the random disturbance sequences of the wth and w-1th elements in the random variation sequence of the lateral fuzzy coefficients, Represents the random disturbance sequence between the wth and w-1th elements in the random variation sequence of the lateral fuzzy coefficient distance;

[0084] Indicates the lateral change information of the x-th pixel point, is an exponential function with a natural constant as base, is the error parameter. Avoid taking the denominator as 0. The empirical value of the error parameter is 1.

[0085] The difference in lateral blur changes reflects the changing law of the lateral blur information of the window. The more complex the change in the lateral blur degree in the window, the greater the difference in lateral blur changes, and the more likely it is to be in the crack area. The difference between the element value and the element mean The larger the value is, the greater the difference between the elements in the random change sequence is. To a certain extent, it reflects that the representative elements of the random change sequence of the lateral fuzzy coefficient are more different. The stronger the fuzzy random fluctuation of the elements in the random change sequence of the lateral fuzzy coefficient is. distance The larger the value is, the smaller the similarity between random change sequences is. To a certain extent, it reflects that the stronger the fuzzy random fluctuation of the elements in the random change sequence of the lateral fuzzy coefficient is, the more likely it is to be located in the crack area, and the larger the lateral fuzzy randomness index is. Therefore, the lateral fuzzy change difference is The larger the horizontal fuzzy randomness index is, the The larger it is, to a certain extent, it indicates that there is a greater difference and randomness in the lateral fuzzy changes. At this time, the more likely it is to be in the crack area, and the greater the lateral change information.

[0086] Similarly, the fuzzy coefficient matrix is ​​sampled vertically and the same calculation method is adopted to obtain the vertical change information degree of the x-th pixel point: .

[0087] Furthermore, based on the lateral change information and longitudinal change information of each pixel, the crack direction complexity of each pixel is calculated, that is:

[0088]

[0089] In the formula, represents the complexity of the crack direction of the x-th pixel, Indicates the lateral change information of the x-th pixel point, Indicates the vertical change information of the x-th pixel.

[0090] The complexity of crack direction reflects the complexity of the direction information in the sliding window, and the lateral change information Information about longitudinal changes The larger the size, the greater the complexity of the crack direction. The larger it is, the more likely it is to be in the crack area.

[0091] Furthermore, the crack direction complexity in the crack area is relatively large, while the crack direction complexity in other areas, such as the tangent area and the uniform area, is relatively small.

[0092] Specifically, in order to highlight the directional characteristics of the cracks, the crack direction complexity of all pixels in the sliding window of each pixel is used as the input of the adjacent grayscale difference matrix algorithm, and the output of the adjacent grayscale difference matrix algorithm is used as the cumulative direction difference value of each pixel. The adjacent grayscale difference matrix algorithm is a well-known technology and the specific process will not be repeated here.

[0093] Based on the above analysis, the crack characteristic index of each pixel is calculated:

[0094]

[0095] In the formula, Represents the crack characteristic index of the x-th pixel point, is the ceiling function, represents the complexity of the crack direction of the x-th pixel, Represents the cumulative directional difference value of the x-th pixel, represents the ceiling blur coefficient of the x-th pixel, is the error parameter. Avoid taking the denominator as 0. The empirical value of the error parameter is 1.

[0096] Crack direction complexity The larger the value, the greater the cumulative direction difference. The larger it is, the more likely it is to be in the crack area at this time because the crack direction in the crack area has greater complexity. At the same time, the smaller the ceiling fuzzy coefficient is, the smaller the fuzzy characteristics of the crack area are, and the more likely it is to be in the crack area at this time. That is, the clearer the crack characteristics are at this time, the larger the crack characteristic index is.

[0097] Furthermore, in order to more accurately identify cracks on the ceiling, the grayscale value of each pixel in the grayscale image of the ceiling is replaced with the crack feature index of each pixel, and all pixels in the grayscale image of the ceiling are traversed for replacement. The result after replacement is used as the crack saliency map. At this time, the crack area in the crack saliency map is particularly significant.

[0098] At this point, a crack saliency map is obtained, which is used for subsequent segmentation of cracks on the ceiling.

[0099] Step S004, obtaining crack detection results according to the crack significance map, and completing the construction project quality inspection based on the crack detection results.

[0100] Furthermore, since the crack area in the crack saliency map forms a large contrast with other areas, the significance of the crack is relatively high at this time. In order to identify cracks on the ceiling, the crack saliency map is used as the input of the watershed algorithm, and the output of the watershed algorithm is used as the crack detection result on the ceiling. The watershed algorithm is a well-known technology, and the specific process is not repeated here. The implementation flow chart of this application is as follows Figure 2 shown.

[0101] If cracks appear in the crack detection results on the ceiling, it means that the quality of the construction project is poor. If no cracks appear in the crack detection results on the ceiling, it means that the quality of the construction project is good.

[0102] At this point, the quality inspection of the construction project is completed.

[0103] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modification, equivalent replacement, improvement, etc. made within the principles of the present application shall be included in the protection scope of the present application.

Claims

1. A construction engineering quality detection method, characterized in that: The method comprises the following steps: The CMOS camera is used to collect the surface image of the building ceiling, and the surface image of the building ceiling is filtered and grayed to obtain the grayscale image of the ceiling; The ceiling fuzzy coefficient of each pixel is obtained according to the gradient amplitude of each pixel and its neighboring pixel in the ceiling grayscale image; the fuzzy coefficient matrix is ​​obtained according to the ceiling fuzzy coefficient of each pixel and its neighboring pixel, and the extreme value, median, mean and mode of the fuzzy coefficient matrix are analyzed according to rows and columns to obtain the crack direction complexity of the pixel; the crack characteristic index of each pixel is obtained according to the crack direction complexity of each pixel; the grayscale values ​​of all pixels in the ceiling grayscale image are replaced with the crack characteristic index of the corresponding pixel to obtain the crack saliency map; The crack detection results are obtained based on the crack saliency map using the image segmentation algorithm, and the quality inspection of the construction project is completed based on the crack detection results; The method for obtaining the ceiling fuzzy coefficient of each pixel point according to the gradient amplitude of each pixel point and the neighboring pixel points of each pixel point in the ceiling grayscale image is as follows: the ceiling grayscale image is used as the input of the Sobel edge detection algorithm, and the gradient amplitude of each pixel point is obtained by using the Sobel edge detection algorithm; With each pixel as the center, a window of preset parameter size is set as the sliding window of each pixel; the sequence composed of the gradient amplitudes of all pixels in the sliding window of each pixel is used as the gradient change sequence of each pixel, and the first-order difference sequence of the gradient change sequence of each pixel is used as the gradient contrast feature sequence of each pixel; Obtain the gradient contrast similarity index of each pixel point according to the gradient contrast feature sequence of each pixel point; obtain the local gradient difference fuzzy index of each pixel point according to the sliding window of each pixel point; The product of the gradient contrast similarity index of each pixel and the local gradient difference fuzzy index of each pixel is used as the ceiling fuzzy coefficient of each pixel; The method for obtaining the gradient contrast similarity index of each pixel point according to the gradient contrast feature sequence of each pixel point is: The negative mapping result with the natural constant as the base and the gradient of each pixel point as the index of each element in the feature sequence is used as the numerator; The denominator is the sum of the standard deviation of all elements in the gradient contrast feature sequence of each pixel and 1; The average of the ratio of the numerator to the denominator accumulated on the gradient contrast feature sequence is used as the gradient contrast similarity index of each pixel; The method for obtaining the local gradient difference fuzzy index of each pixel point according to the sliding window of each pixel point is: Calculate the absolute value of the difference between the gradient amplitude of each neighboring pixel point in the sliding window of each pixel point and the gradient amplitude of each pixel point, and use the negative mapping result of the natural constant as the base and the absolute value as the exponent as the numerator; The sum of the coefficient of variation of the gradient amplitude of all neighboring pixels in the sliding window of each pixel and 1 is used as the denominator; The mean of the ratio of the numerator to the denominator accumulated on the sliding window is taken as the first mean, the mean of the gradient amplitudes of all neighboring pixels in the sliding window of each pixel is taken as the second mean, and the ratio of the first mean to the second mean is taken as the local gradient difference fuzzy index of each pixel; The method of obtaining the fuzzy coefficient matrix according to the ceiling fuzzy coefficient of each pixel and its neighboring pixels, analyzing the extreme value, median, mean and mode of the fuzzy coefficient matrix according to rows and columns, and obtaining the crack direction complexity of the pixel is as follows: The matrix composed of the ceiling fuzzy coefficients of all pixels in the sliding window of each pixel is used as the fuzzy coefficient matrix of each pixel; The fuzzy coefficient matrix of each pixel is sampled horizontally to obtain a lateral fuzzy coefficient sequence, and the lateral fuzzy coefficient sequence is used as the input of the DFA detrending fluctuation analysis algorithm. The DFA detrending fluctuation analysis algorithm is used to obtain a lateral fuzzy coefficient random change sequence, and the first-order difference sequence of the lateral fuzzy coefficient random change sequence is used as the lateral fuzzy change sequence. The minimum value, median, mean, mode and maximum value of all elements in the random variation sequence of the lateral fuzzy coefficient are selected as each representative element of the random variation sequence of the lateral fuzzy coefficient; Calculate the Euclidean distance between each element and each representative element in the random variation sequence of the lateral fuzzy coefficient, and use the sequence composed of the Euclidean distances between each element and all the representative elements in ascending order as the random perturbation sequence of each element in the random variation sequence of the lateral fuzzy coefficient; Obtain the lateral fuzzy change difference of each pixel point according to the lateral fuzzy change sequence; obtain the lateral fuzzy randomness index of each pixel point according to the random disturbance sequence of each element in the lateral fuzzy coefficient random change sequence; The negative mapping result with the natural constant as the base and the horizontal fuzzy randomness index of each pixel as the exponent is used as the numerator, the sum of the horizontal fuzzy change difference of each pixel and 1 is used as the denominator, and the sum of the inverse of the ratio of the numerator to the denominator and 1 is used as the horizontal change information degree of each pixel; The fuzzy coefficient matrix of each pixel is sampled longitudinally, and the longitudinal variation information degree of each pixel is obtained by adopting the same calculation method as the lateral variation information degree; The product of the lateral variation information of each pixel and the longitudinal variation information of each pixel is taken as the crack direction complexity of each pixel; The method for obtaining the crack characteristic index of each pixel point according to the crack direction complexity of each pixel point is: The crack direction complexity of all pixels in the sliding window of each pixel is used as the input of the adjacent grayscale difference matrix algorithm, and the cumulative direction difference value of each pixel is obtained by using the adjacent grayscale difference matrix algorithm; The product of the crack direction complexity of each pixel and the accumulated direction difference value of each pixel is used as the numerator; the sum of the ceiling fuzzy coefficient of each pixel and 1 is used as the denominator; The integer result of the ratio of the numerator to the denominator is taken as the crack characteristic index of each pixel.

2. A construction engineering quality detection method according to claim 1, characterized in that: The method for obtaining the lateral blur change difference of each pixel point according to the lateral blur change sequence is: In the formula, Indicates the horizontal blur change difference of the x-th pixel point, Indicates the number of elements in the horizontal fuzzy change sequence, represents the probability of the jth element value in the lateral fuzzy change sequence appearing in the lateral fuzzy change sequence, is a logarithmic function with a natural constant as its base.

3. A construction engineering quality detection method according to claim 1, characterized in that: The method for obtaining the lateral fuzzy randomness index of each pixel point according to the random disturbance sequence of each element in the random variation sequence of the lateral fuzzy coefficient is: In the formula, Represents the horizontal fuzzy randomness index of the x-th pixel, Represents the number of elements in the random variation sequence of the lateral fuzzy coefficient, represents the number of elements in the random perturbation sequence of the wth element in the random variation sequence of the lateral fuzzy coefficient, represents the yth element in the random perturbation sequence of the wth element in the random variation sequence of the lateral fuzzy coefficient, represents the mean value of the random disturbance sequence of the wth element in the random variation sequence of the lateral fuzzy coefficient, for Distance function, and They represent the random disturbance sequences of the wth and w-1th elements in the random variation sequence of the lateral fuzzy coefficients, Represents the random disturbance sequence between the wth and w-1th elements in the random variation sequence of the lateral fuzzy coefficient distance.

4. A construction engineering quality detection method according to claim 1, characterized in that: The method of obtaining crack detection results based on the crack saliency map by using an image segmentation algorithm and completing the construction project quality inspection based on the crack detection results is as follows: The crack saliency map is used as the input of the image segmentation algorithm, and the crack detection result is obtained by using the image segmentation algorithm; if cracks appear in the crack detection result, it means that the quality of the construction project is poor; if no cracks appear in the crack detection result, it means that the quality of the construction project is good.

Citation Information

Patent Citations

  • Method for monitoring safe operation of agricultural product conveying belt

    CN115684174A

  • Bridge crack detection method and system

    CN117237368A

  • Die forging rigging die crack defect detection method based on image processing

    CN117893532A

  • Method for detecting cracks of degradable rice hull meal box

    CN118014994A

  • Visual detection method and system for surface defects of refractory bricks

    CN118134938A