Intelligent evaluation method and system for putty scraping effect based on feature extraction

By constructing a grayscale run-length matrix through feature extraction, the putty scraping effect is analyzed, which solves the problems of low efficiency and accuracy in the evaluation of putty scraping effect and realizes low-cost evaluation of putty scraping effect.

CN118279598BActive Publication Date: 2024-10-18JIANGSU ZHONGJIE JIANZHAO INTELLIGENT EQUIP CO LTD
View PDF 9 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

In the existing technology, the evaluation methods for putty application effect are inefficient, dependent on manual conditions and costly, and traditional image processing methods are easily affected by noise, resulting in inaccurate evaluation.

Method used

A feature extraction-based method is adopted to acquire grayscale images of the wall, construct a grayscale run-length matrix, analyze the brightness feature index, residual noise interference level and texture anomaly parameters, calculate the putty scraping effect index, and evaluate the putty scraping effect in combination with image texture information.

Benefits of technology

It reduces interference from light and construction marks, improves the accuracy and applicability of the assessment, reduces costs and computational complexity, and enables accurate assessment of putty application results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118279598B_ABST
    Figure CN118279598B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of image data processing technology, and specifically to an intelligent evaluation method and system for putty scraping effect based on feature extraction, including: obtaining a wall grayscale image and constructing a grayscale run matrix, obtaining a brightness feature index of each column according to the number and grayscale value of each column of the wall grayscale image, combining the grayscale value of each column of the wall grayscale image to obtain the residual noise interference degree of the wall grayscale image, and obtaining the texture anomaly parameter of each data of the grayscale run matrix of the wall grayscale image according to the difference between the residual noise interference degree of the wall grayscale image and the grayscale value of adjacent pixels, thereby obtaining the putty scraping effect index of the wall grayscale image and evaluating the putty scraping effect of the wall. The present invention reduces the influence of noise by analyzing the putty scraping image and analyzing and processing the texture of the putty scraping construction trace, and makes an accurate evaluation of the putty scraping effect of the wall.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of image data processing, and in particular to a method and system for intelligently evaluating putty scraping effects based on feature extraction. Background Art

[0002] Puttying refers to the process of filling or overall treatment of uneven walls in home decoration to make the surface smoother. Puttying is the most important step in wall base treatment. As a base material, putty plays a vital role in wall decoration. Wall cracking, peeling, mildew and even shedding may be caused by poor quality putty, so the inspection of putty scraping effect becomes an indispensable step in wall decoration.

[0003] The traditional inspection method of scraping effect is mainly carried out by manual visual inspection. However, when using a floating putty scraping machine, the manual visual method is prone to problems such as low efficiency and the result is dependent on the working status of the inspector. In recent years, with the progress of computer vision research, the use of computer vision technology to evaluate the putty scraping effect can achieve relatively ideal results, but the existing technology usually uses deep learning methods for evaluation. For the evaluation scenario of putty scraping effect, in order to achieve the purpose of solving the problem of manual methods, the cost required for this method is too high and it is difficult to meet the growing decoration needs; and when using traditional image processing technology to design an evaluation method, since the putty scraping defects are similar to image noise, they are easily affected by noise, which may lead to inaccurate evaluation of putty scraping effect. Summary of the invention

[0004] The present invention provides a putty scraping effect intelligent evaluation method and system based on feature extraction to solve the existing problems.

[0005] The putty scraping effect intelligent evaluation method and system based on feature extraction of the present invention adopts the following technical solutions:

[0006] An embodiment of the present invention provides an intelligent evaluation method for putty scraping effect based on feature extraction, the method comprising the following steps:

[0007] Get the grayscale image of the wall;

[0008] Constructing a grayscale run-length matrix of the wall grayscale image, and obtaining a brightness characteristic index of each column of the wall grayscale image according to the number and grayscale value of each column of the wall grayscale image; wherein each data in the grayscale run-length matrix corresponds to a run-length;

[0009] According to the gray value of each column of pixel points in the wall gray image and the brightness characteristic index of each column of the wall gray image, the residual noise interference degree of the wall gray image is obtained;

[0010] According to the difference between the residual noise interference degree of the wall grayscale image and the grayscale values ​​of adjacent pixels, the texture anomaly parameter of each data of the grayscale run matrix of the wall grayscale image is obtained;

[0011] According to the data quantity of the grayscale run-length matrix of the wall grayscale image and the texture abnormality parameter of each data, the putty scraping effect index of the wall grayscale image is obtained;

[0012] According to the putty scraping index of the wall grayscale image, the putty scraping effect of the wall is evaluated.

[0013] Furthermore, according to the number and gray value of each column of the wall grayscale image, the brightness characteristic index of each column of the wall grayscale image is obtained, and the corresponding specific formula is as follows:

[0014] ;

[0015] In the formula, R u represents the brightness characteristic index of the uth column of the wall grayscale image, n u represents the number of pixels in the uth column of the wall grayscale image, Indicates the run length corresponding to a data in the grayscale run matrix corresponding to the i-th pixel point in the u-th column of the wall grayscale image. It represents the gray value of the i-th pixel in the u-th column of the wall gray image, and norm() is a linear normalization function.

[0016] Furthermore, the residual noise interference degree of the wall grayscale image is obtained according to the grayscale value of each column of pixels in the wall grayscale image and the brightness characteristic index of each column of the wall grayscale image, and the specific steps include the following:

[0017] According to the difference between the grayscale values ​​of pixels in each column of the wall grayscale image and the brightness characteristic index of each column of the wall grayscale image, the primary noise degree of each column of the wall grayscale image is obtained; according to the primary noise degree of all columns of the wall grayscale image and the size of the grayscale value of the pixels in each column, the residual noise interference degree of the wall grayscale image is obtained.

[0018] Furthermore, the residual noise interference degree of the wall grayscale image is obtained according to the primary noise degree of all columns of the wall grayscale image and the size of the grayscale value of the pixel in each column. The corresponding specific formula is as follows:

[0019] ;

[0020] Where M represents the residual noise interference degree of the wall grayscale image, U represents the total number of columns of the wall grayscale image, and H(g u) represents the information entropy of the grayscale values ​​of all pixels in the u-th column of the wall grayscale image, N is the number of different grayscale values ​​of all pixels in the u-th column of the wall grayscale image, Represents the first-order derivative of the brightness characteristic index of the uth column among all the columns of the wall grayscale image, n u represents the number of pixels in the uth column of the wall grayscale image, Indicates the run length corresponding to a data in the grayscale run matrix corresponding to the i-th pixel point in the u-th column of the wall grayscale image. represents the mean of the absolute value of the grayscale value difference between the ith pixel in the uth column of the wall grayscale image and its adjacent pixels, tanh[ ] is the hyperbolic tangent function, exp() is the exponential function with a natural constant as the base, and log() is the logarithmic function. is the primary noise level of the u-th column of the wall grayscale image.

[0021] Furthermore, the method of obtaining the texture anomaly parameter of each data of the grayscale run matrix of the wall grayscale image according to the difference between the residual noise interference degree of the wall grayscale image and the grayscale values ​​of adjacent pixels includes the following specific steps:

[0022] According to the residual noise interference degree of the wall grayscale image and the grayscale value of the pixel point, the abnormality degree of each pixel point corresponding to each data of the grayscale run matrix of the wall grayscale image is obtained;

[0023] The absolute value of the difference between the grayscale values ​​of two adjacent pixels perpendicular to the run direction of each pixel corresponding to each data of the grayscale run matrix of the wall grayscale image is recorded as the grayscale difference of each pixel corresponding to each data of the grayscale run matrix of the wall grayscale image;

[0024] According to the abnormality degree and grayscale difference of each pixel point corresponding to each data of the grayscale run matrix of the wall grayscale image, the texture abnormality parameter of each run of the grayscale run matrix of the wall grayscale image is obtained.

[0025] Furthermore, according to the abnormality degree and grayscale difference of each pixel point corresponding to each data of the grayscale run matrix of the wall grayscale image, the texture abnormality parameter of each run of the grayscale run matrix of the wall grayscale image is obtained, and the corresponding specific formula is as follows:

[0026] ;

[0027] Where Y j Represents the texture anomaly parameter of the jth data of the grayscale run matrix of the wall grayscale image, a j represents the number of pixels corresponding to the jth data of the grayscale run matrix of the wall grayscale image, M is the degree of residual noise interference in the wall grayscale image, Represents the grayscale difference of the kth pixel corresponding to the jth data of the grayscale run matrix of the wall grayscale image, δ max (g) represents the maximum value of the grayscale difference of all pixels corresponding to all data of the grayscale run matrix of the wall grayscale image, Represents the mean value of the grayscale differences of all pixels corresponding to all data of the grayscale run matrix of the wall grayscale image. norm() is a linear normalization function. Indicates the abnormality degree of the k-th pixel corresponding to the j-th data of the grayscale run-length matrix of the wall grayscale image.

[0028] Furthermore, the method of obtaining the putty scraping effect index of the wall grayscale image according to the data quantity of the grayscale run-length matrix of the wall grayscale image and the texture anomaly parameter of each data comprises the following specific steps:

[0029] According to the grayscale values ​​of all pixels of the wall grayscale image, the difference between the grayscale values ​​of all pixels corresponding to each data of the grayscale run matrix and the number of data of the grayscale run matrix, the abnormal index of each data of the grayscale run matrix is ​​obtained;

[0030] According to the abnormal index of each data in the grayscale run matrix and the texture abnormal parameter of each data, the putty scraping effect index of the wall grayscale image is obtained.

[0031] Furthermore, the putty scraping effect index of the wall grayscale image is obtained according to the abnormal index of each data in the grayscale run matrix and the texture abnormal parameter of each data. The corresponding specific formula is as follows:

[0032] ;

[0033] Where E represents the putty scraping effect index of the wall grayscale image, P is the number of all data in the grayscale run matrix of the wall grayscale image, and Y j Represents the texture anomaly parameter of the jth data of the grayscale run matrix of the wall grayscale image, a j Represents the number of pixels corresponding to the jth data of the grayscale run matrix of the wall grayscale image, g j Represents the mean grayscale value of all pixels corresponding to the jth data of the grayscale run matrix of the wall grayscale image, It represents the mean gray value of all pixels in the wall gray image, norm() is a linear normalization function, and exp() is an exponential function with a natural constant as the base. is the abnormal index of the j-th data in the grayscale run matrix, and || is the absolute value function.

[0034] Furthermore, the step of evaluating the putty scraping effect of the wall surface according to the putty scraping index of the wall surface grayscale image includes the following specific steps:

[0035] When the putty scraping effect index is greater than the preset judgment threshold, the wall putty scraping effect is judged to be qualified; when the putty scraping effect index is less than or equal to the preset judgment threshold, the wall putty scraping effect is judged to be unqualified.

[0036] The present invention also proposes a putty scraping effect intelligent evaluation system based on feature extraction, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program stored in the memory to implement the steps of the aforementioned putty scraping effect intelligent evaluation method based on feature extraction.

[0037] The beneficial effects of the technical solution of the present invention are: obtaining a grayscale image of the wall and constructing a grayscale run matrix, obtaining a brightness characteristic index of each column according to the number and grayscale value of each column of the wall grayscale image, and obtaining the residual noise interference degree of the wall grayscale image in combination with the grayscale value of each column of the wall grayscale image. Combined with the actual working process of the putty scraper, the interference of light or other normal walls on the construction trace analysis is reduced. According to the difference between the residual noise interference degree of the wall grayscale image and the grayscale values ​​of adjacent pixels, the texture anomaly parameter of each data of the grayscale run matrix of the wall grayscale image is obtained. Combined with the analysis of noise, the algorithm has a certain noise resistance and reduces the influence of noise on the texture analysis of construction traces. Thus, the putty scraping effect index of the wall grayscale image is obtained, which has low cost and calculation complexity, improves the scope of application of the algorithm, and finally makes an accurate evaluation of the putty scraping effect of the wall. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0039] Figure 1 It is a flowchart of the steps of the intelligent evaluation method of putty scraping effect based on feature extraction of the present invention;

[0040] Figure 2 This is a processing diagram of the floating putty scraping machine of this embodiment;

[0041] Figure 3 FIG. 4 is a schematic diagram of a grayscale image of a wall in this embodiment. DETAILED DESCRIPTION

[0042] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the specific implementation method, structure, characteristics and effects of the intelligent evaluation method and system for putty scraping effect based on feature extraction proposed by the present invention are described in detail below in combination with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.

[0043] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.

[0044] The specific scheme of the intelligent evaluation method and system for putty scraping effect based on feature extraction provided by the present invention is described in detail below with reference to the accompanying drawings.

[0045] See also Figure 1 , which shows a flowchart of a method for intelligent evaluation of putty scraping effect based on feature extraction provided by an embodiment of the present invention, the method comprising the following steps:

[0046] Step S001: Acquire a grayscale image of a wall.

[0047] The target wall surface is treated by a floating putty scraper, and the treatment method is as follows:

[0048] 1. Alignment: Move the machine to the location to be constructed and adjust the posture;

[0049] 2. Spatula top wall: Z axis is for horizontal feeding, and Ry axis is adaptively adjusted by the rotating module installed on the wallpaper robot; when the contact force reaches the set interval value, the Z axis stops feeding;

[0050] 3. Material feeding and scraping: Turn on the pumping motor to feed the material. When the core rotates 120°, the lifting shaft rises by one step height, and the spatula scrapes from bottom to top. The total rising displacement of the lifting shaft is determined by the total number of rotations of the core. When the lifting shaft reaches the upper limit point, the pumping motor stops.

[0051] 4. Spatula recovery: Z axis returns to the limit point;

[0052] 5. Change position: the lifting shaft descends, and the machine moves horizontally to the next construction site; adjust the posture and repeat step 2. Figure 2 , taking this as an example for description.

[0053] When the putty scraping work wall is dry, the high-resolution CCD industrial camera is used to select the lighting direction perpendicular to the main scraping direction to collect the work wall image. On the scraped wall, the defects are mainly displayed by the wall texture. In order to further reduce the calculation cost, the image is grayed and the image noise is reduced by bilateral filtering to obtain the grayscale image of the wall.

[0054] Figure 3 Schematic diagram of the grayscale image of the wall.

[0055] Step S002: construct a grayscale run-length matrix of the wall grayscale image, and obtain a brightness characteristic index of each column of the wall grayscale image according to the number and grayscale value of each column of the wall grayscale image; wherein each data in the grayscale run-length matrix corresponds to a run-length.

[0056] To evaluate the effect of wall putty scraping, it is usually necessary to evaluate and analyze construction traces such as flatness and wall cracks. In the process of analyzing the wall scraping effect through image acquisition, the above construction traces are represented by image texture information, so the texture effect of the image can be analyzed by texture feature extraction method. When the wall is processed by a floating putty scraper, the possible construction traces are usually caused by scraping with a spatula. Therefore, the direction of the construction traces in the image is mainly the scraping direction of the spatula, that is, from bottom to top. The run-length analysis of the pixel points in the image in this direction is more targeted at the construction trace texture.

[0057] The preset run direction of this embodiment is vertical upward, which is described as an example. Other implementations can be set to other values. This embodiment does not limit the setting. The setting of the number of grayscale intervals depends on the imaging conditions and the putty color. The grayscale run matrix of the wall grayscale image is constructed. The grayscale run matrix is ​​a well-known technology, and the specific method is not introduced here. Each column of data in the grayscale run matrix corresponds to a run length, that is, the number of times the pixel point appears continuously along the run direction. Each row of data corresponds to a grayscale level. The value of each data in the matrix represents the number of times the run length of the grayscale level corresponding to the data appears. In this embodiment, the grayscale value range from 0 to 255 is equally divided into 16 grayscale intervals, and each grayscale interval is a grayscale level, which contains 16 different grayscale values. This is described as an example. And one data in the grayscale run matrix corresponds to a number of pixels in the wall grayscale image, and one pixel in the wall grayscale image corresponds to one data in the grayscale run matrix.

[0058] In order to highlight the wall construction texture, the light angle is perpendicular to the scraping direction when capturing images; this method may cause differences in the overall brightness of different areas in the image. When analyzing the texture information, this difference will affect the performance of the noise pixels and interfere with the subsequent anti-noise scraping texture analysis process. Therefore, it is necessary to first determine the difference in the brightness and darkness of the image. This feature can be determined by the image position and grayscale interval of the pixel points corresponding to each data in the grayscale run matrix.

[0059] Then the calculation formula for the brightness characteristic index of the uth column of the wall grayscale image is:

[0060] ;

[0061] In the formula, R u represents the brightness characteristic index of the uth column of the wall grayscale image, n u represents the number of pixels in the uth column of the wall grayscale image, Indicates the run length corresponding to a data in the grayscale run matrix corresponding to the i-th pixel point in the u-th column of the wall grayscale image. Represents the grayscale value of the i-th pixel in the u-th column of the wall grayscale image. norm() is a linear normalization function that normalizes the data value to the [0,1] interval.

[0062] Since the brightness characteristics of the wall are mainly reflected by the light angle, when analyzing the brightness characteristics of the image, analyzing through the run direction can more clearly reflect the brightness change characteristics of the light on the wall during the image acquisition process. Generally speaking, the grayscale image of the wall with putty coating can represent its brightness characteristics through grayscale values. However, for walls with construction textures, the brightness changes directly represented by the grayscale values ​​of each column of pixels in the image run direction may be affected by the grayscale changes of the texture facing or backlit surface, and cannot accurately represent the actual brightness characteristics of the column. According to the above problems, the grayscale value mean calculation process can be adjusted by the run length of the pixel point, where: the longer the run of the pixel point, the greater the proportion of its grayscale value in the calculation process. The main logic is: the probability of a pixel point with a longer run value to represent a texture feature is relatively low. When the difference between the brightness and darkness of the pixel points in the column is large, the actual brightness characteristics of the column can be better reflected by the pixel point with a long run value. The number of pixels in the run where the i-th pixel is located is normalized by the number of pixels in the u-th column, and then used as a parameter with Multiply them as the adjusted grayscale value mean, and finally normalize the grayscale value mean.

[0063] Step S003: Obtain the residual noise interference degree of the wall grayscale image according to the grayscale value of each column of pixels in the wall grayscale image and the brightness characteristic index of each column of the wall grayscale image.

[0064] To analyze the putty scraping effect through image features, it is necessary to analyze based on the texture information in the image, and noise will have a great interference on the analysis process of image texture information. When there is some noise in the wall putty image, after the image is denoised in the preprocessing process, in order to further increase the accuracy of the image texture information analysis, it is necessary to evaluate the interference degree of the residual noise in the image on the texture information. The calculation formula for the residual noise interference degree of the wall grayscale image is:

[0065] ;

[0066] In the above formula, M represents the residual noise interference degree of the wall grayscale image, U represents the total number of columns of the wall grayscale image, and H(g u ) represents the information entropy of the grayscale values ​​of all pixels in the u-th column of the wall grayscale image, N is the number of different grayscale values ​​of all pixels in the u-th column of the wall grayscale image, Represents the first-order derivative of the brightness characteristic index of the uth column among all the columns of the wall grayscale image, n u represents the number of pixels in the uth column of the wall grayscale image, Indicates the run length corresponding to a data in the grayscale run matrix corresponding to the i-th pixel point in the u-th column of the wall grayscale image. It represents the mean of the absolute values ​​of the grayscale value differences between the ith pixel point in the uth column of the wall grayscale image and the adjacent pixel points. Tanh[ ] is a hyperbolic tangent function used for data normalization. exp() is an exponential function with a natural constant as the base. In this embodiment, exp(-) is used to present the inverse proportional relationship and normalization. The implementer can set the inverse proportional function and normalization function according to the actual situation. Log() is a logarithmic function. Log(N) is the maximum value of the information entropy of the grayscale values ​​of all pixels in the uth column of the wall grayscale image. It belongs to the well-known technology and the specific method is not introduced here.

[0067] The wall part is less affected by light in the travel direction, so its brightness difference is not too large. Its grayscale change in the wall grayscale image is relatively small, so the uncertainty of the grayscale interval corresponding to the pixel points in a column of the wall grayscale image in the travel direction is relatively small. However, image noise is random. When the pixel points in a column of the image travel direction are more disturbed by the noise pixels, the grayscale uncertainty of the pixel points in this column is greater. The larger the value is, the greater the uncertainty of the grayscale interval of the pixel point in the u-th column of the wall grayscale image is, which is used as one of the parameters of the interference degree of residual noise on texture information.

[0068] In addition, according to the above analysis, the grayscale changes in each run of a column in the direction of the image run are relatively small. The larger the difference between the pixel and the adjacent pixel, the greater the probability of being interfered by noise, especially the part with a shorter run length (a shorter run length means that the greater the difference between its grayscale interval and other pixels in the direction of the image run, the greater the possibility of being interfered by noise). It indicates the difference between the pixel point in the uth column and the adjacent pixel point in the run direction adjusted by the run length. The larger the value, the greater the probability that the pixel point in the uth column is interfered by noise. However, in areas where the brightness changes relatively drastically, the larger difference may be a normal texture (i.e., the junction between the shadow of a texture and the normal wall), so The first-order derivative of the brightness characteristic index of the u-th column among the brightness characteristic indexes of all columns of the wall grayscale image is calculated to indicate the intensity of the brightness change of the u-th column in the image. The larger the value, the more intense the brightness change of the u-th column. Relatively large pixels may be normal texture pixels, so they are corrected by exp(-) Size logic and adjust the calculation process of the average difference between adjacent pixels. is the primary noise level of the u-th column of the wall grayscale image. The primary noise level of the wall grayscale image is used as another parameter to calculate the residual noise interference level. The two parameters are then multiplied and averaged, and the average result is normalized by the tanh function.

[0069] Step S004: obtaining a texture anomaly parameter of each data of the grayscale run-length matrix of the wall grayscale image according to the difference between the residual noise interference degree of the wall grayscale image and the grayscale values ​​of adjacent pixels.

[0070] To evaluate the effect of putty scraping through images, the texture of the image that represents the traces of scraping construction is analyzed. When the image is disturbed by participating noise, its internal texture may be abnormal. Therefore, in the process of evaluating the effect of putty scraping, the texture image needs to be further analyzed and processed. After obtaining the degree of participating noise interference, the abnormality of the texture information in the image can be analyzed.

[0071] The absolute value of the difference in grayscale values ​​between two adjacent pixels of the kth pixel corresponding to the jth data of the grayscale run matrix of the wall grayscale image in a direction perpendicular to the preset run direction is recorded as the grayscale difference of the kth pixel corresponding to the jth data of the grayscale run matrix of the wall grayscale image.

[0072] It should be noted that: when the k-th pixel has only one adjacent pixel perpendicular to the preset run direction, the absolute value of the difference between the grayscale values ​​of the adjacent pixel and the k-th pixel is recorded as the grayscale difference of the k-th pixel corresponding to the j-th data of the grayscale run matrix of the wall grayscale image.

[0073] Then the calculation formula of the texture anomaly parameter of the jth data of the grayscale run matrix of the wall grayscale image is:

[0074] ;

[0075] In the above formula, Y j Represents the texture anomaly parameter of the jth data of the grayscale run matrix of the wall grayscale image, a j represents the number of pixels corresponding to the jth data of the grayscale run matrix of the wall grayscale image, M is the degree of residual noise interference in the wall grayscale image, Represents the grayscale difference of the kth pixel corresponding to the jth data of the grayscale run matrix of the wall grayscale image, δ max (g) represents the maximum value of the grayscale difference of all pixels corresponding to all data of the grayscale run matrix of the wall grayscale image, It represents the mean value of the grayscale differences of all pixels corresponding to all data of the grayscale run matrix of the wall grayscale image. norm() is a linear normalization function that normalizes the data values ​​to the interval [0,1].

[0076] It should be noted that: when the j-th data of the grayscale run matrix of the wall grayscale image is 0, it means that the data has no corresponding pixel point, and the data is irrelevant to the wall grayscale image, so the texture anomaly parameter of the data is set to 0, and the texture anomaly parameter of the data is not used in subsequent analysis.

[0077] For the construction traces of putty scraping, it can be represented by the runs contained in the grayscale run matrix of the wall grayscale image. To analyze the abnormality of texture information, it can be obtained by analyzing these runs. For a certain run, when representing the texture part, since the scraping texture on the wall is usually represented by the light-facing and back-lit surfaces of the construction traces, the grayscale value difference between the two adjacent pixels of the internal pixel points in the light direction, that is, perpendicular to the run direction, should be large, that is, the distribution of the difference is relatively concentrated; then The variance of the grayscale value difference between two adjacent pixels in the current run perpendicular to the run direction is calculated. The larger the difference, the more discrete the distribution of the grayscale value difference between two adjacent pixels in the current run perpendicular to the run direction, and the greater the degree of abnormality as a texture part.

[0078] In addition, for the grayscale value difference between two adjacent pixels of a certain pixel in the run perpendicular to the run direction, the larger the value, the greater the probability that it represents the texture area. For the disturbed texture run, in order to further enhance the difference in the degree of abnormality between it and the normal texture area, the proportion of pixels with a small probability of representing the texture area in the variance calculation should be enlarged. At the same time, for the disturbed texture run, the greater the degree of noise interference, the greater the probability that the pixels with a small probability of representing the texture area are caused by noise interference, and the higher the degree of abnormality of the texture area should be. It represents the abnormality degree of the kth pixel corresponding to the jth data of the grayscale run matrix of the wall grayscale image. The grayscale value difference between two adjacent pixels of the kth pixel perpendicular to the run direction is normalized by the maximum value. The smaller the value, the smaller the probability of it representing the texture area. Then, after adjusting it by the noise interference parameter M, the logical relationship is corrected to amplify the proportion of the pixel representing the texture area probability in the variance calculation process when the noise interference level is high. Finally, the adjusted variance is normalized by norm to obtain the texture anomaly parameter of a certain run. The larger the value, the greater the degree of anomaly as a texture part.

[0079] Step S005: obtaining a putty scraping effect index of the wall grayscale image according to the data quantity of the grayscale run-length matrix of the wall grayscale image and the texture anomaly parameter of each data.

[0080] After obtaining the abnormality degree parameters of different textures in the wall grayscale image, the putty scraping effect index is obtained by calculating the parameters about the texture density in the wall grayscale image. The calculation formula of the putty scraping effect index of the wall grayscale image is as follows:

[0081] ;

[0082] In the above formula, E represents the putty scraping effect index of the wall grayscale image, P is the number of all data in the grayscale run matrix of the wall grayscale image, and Y j Represents the texture anomaly parameter of the jth data of the grayscale run matrix of the wall grayscale image, a j Represents the number of pixels corresponding to the jth data of the grayscale run matrix of the wall grayscale image, g j Represents the mean grayscale value of all pixels corresponding to the jth data of the grayscale run matrix of the wall grayscale image, represents the mean gray value of all pixels in the gray image of the wall, norm() is a linear normalization function, which normalizes the data value to the interval [0,1], exp() is an exponential function with a natural constant as the base, and this embodiment uses exp(-) to present the inverse proportional relationship and normalization processing. The implementer can set the inverse proportional function and normalization function according to the actual situation, and || is the absolute value function.

[0083] For the putty scraping target wall image, the richer the texture information, the more obvious the wall construction traces, and the worse the scraping effect. The wall construction texture information can be reflected in the image through each run. For the construction traces, the gray value in the image is different from that of the normal wall, that is, The larger the value, the more texture information the jth data represents; in addition, in the run direction, norm(a j ) is larger, that is, the larger the normalized length of the run is, which means that the current run is longer and the more texture information it represents. Finally, the texture anomaly parameter Y after the correction of the logical relationship is j Adjust the calculation weight of the above information. The higher the texture abnormality, the lower the probability that the jth data represents the texture, so reduce its calculation weight. is the abnormal index of the jth data in the grayscale run matrix. Then The richness of the texture information representing the wall construction traces in the image was calculated. Finally, the logical relationship was corrected and normalized by exp(-) to obtain the putty scraping effect index E. The larger the value, the lower the richness of the texture information in the current image, and the better the putty scraping effect.

[0084] Step S006: Evaluate the putty scraping effect of the wall according to the putty scraping index of the wall grayscale image.

[0085] The image is processed by the above method, and after obtaining the putty scraping effect index in the image, the target wall putty scraping effect is judged, and the evaluation result is output. The preset judgment threshold of this embodiment is 0.7, which is used as an example for description. Other implementations can be set to other values, which are not limited in this embodiment. When the putty scraping effect index E is greater than the preset judgment threshold, it is considered that the current wall putty scraping effect is ideal; otherwise, the putty scraping effect needs to be repaired.

[0086] So far, the present invention is completed.

[0087] The present invention also provides an intelligent evaluation system for putty scraping effect based on feature extraction, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program stored in the memory to implement the steps of the aforementioned intelligent evaluation method for putty scraping effect based on feature extraction.

[0088] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the principles of the present invention should be included in the protection scope of the present invention.

Claims

1. An intelligent evaluation method for putty scraping effect based on feature extraction, characterized in that: The method comprises the following steps: Get the grayscale image of the wall; Constructing a grayscale run-length matrix of the wall grayscale image, and obtaining a brightness characteristic index of each column of the wall grayscale image according to the number and grayscale value of each column of the wall grayscale image; wherein each data in the grayscale run-length matrix corresponds to a run-length; According to the gray value of each column of pixel points in the wall gray image and the brightness characteristic index of each column of the wall gray image, the residual noise interference degree of the wall gray image is obtained; According to the difference between the residual noise interference degree of the wall grayscale image and the grayscale values ​​of adjacent pixels, the texture anomaly parameter of each data of the grayscale run matrix of the wall grayscale image is obtained; According to the data quantity of the grayscale run-length matrix of the wall grayscale image and the texture abnormality parameter of each data, the putty scraping effect index of the wall grayscale image is obtained; According to the putty scraping index of the wall grayscale image, the putty scraping effect of the wall is evaluated; The method of obtaining the residual noise interference degree of the wall grayscale image according to the grayscale value of each column of pixel points in the wall grayscale image and the brightness characteristic index of each column of the wall grayscale image comprises the following specific steps: According to the difference between the grayscale values ​​of the pixels in each column of the wall grayscale image and the brightness characteristic index of each column of the wall grayscale image, the primary noise level of each column of the wall grayscale image is obtained; according to the primary noise level of all columns of the wall grayscale image and the size of the grayscale value of the pixels in each column, the residual noise interference level of the wall grayscale image is obtained; According to the primary noise degree of all columns of the wall grayscale image and the size of the grayscale value of the pixel point in each column, the residual noise interference degree of the wall grayscale image is obtained, and the corresponding specific formula is as follows: ; Where M represents the residual noise interference degree of the wall grayscale image, U represents the total number of columns of the wall grayscale image, and H(g u ) represents the information entropy of the grayscale values ​​of all pixels in the u-th column of the wall grayscale image, N is the number of different grayscale values ​​of all pixels in the u-th column of the wall grayscale image, Represents the first-order derivative of the brightness characteristic index of the uth column among all the columns of the wall grayscale image, n u represents the number of pixels in the uth column of the wall grayscale image, Indicates the run length corresponding to a data in the grayscale run matrix corresponding to the i-th pixel point in the u-th column of the wall grayscale image. represents the mean of the absolute value of the grayscale value difference between the ith pixel in the uth column of the wall grayscale image and its adjacent pixels, tanh[ ] is the hyperbolic tangent function, exp( ) is the exponential function with a natural constant as the base, log( ) is the logarithmic function, is the primary noise level of the u-th column of the wall grayscale image.

2. The intelligent evaluation method for putty scraping effect based on feature extraction according to claim 1 is characterized in that: According to the number and gray value of each column of the wall grayscale image, the brightness characteristic index of each column of the wall grayscale image is obtained, and the corresponding specific formula is as follows: ; In the formula, R u represents the brightness characteristic index of the uth column of the wall grayscale image, n u represents the number of pixels in the uth column of the wall grayscale image, Indicates the run length corresponding to a data in the grayscale run matrix corresponding to the i-th pixel point in the u-th column of the wall grayscale image. represents the gray value of the i-th pixel in the u-th column of the wall gray image, and norm() is a linear normalization function.

3. The intelligent evaluation method for putty scraping effect based on feature extraction according to claim 1 is characterized in that: The specific steps of obtaining the texture anomaly parameter of each data of the grayscale run matrix of the wall grayscale image according to the difference between the residual noise interference degree of the wall grayscale image and the grayscale values ​​of adjacent pixels are as follows: According to the residual noise interference degree of the wall grayscale image and the grayscale value of the pixel point, the abnormality degree of each pixel point corresponding to each data of the grayscale run matrix of the wall grayscale image is obtained; The absolute value of the difference between the grayscale values ​​of two adjacent pixels perpendicular to the run direction of each pixel corresponding to each data of the grayscale run matrix of the wall grayscale image is recorded as the grayscale difference of each pixel corresponding to each data of the grayscale run matrix of the wall grayscale image; According to the abnormality degree and grayscale difference of each pixel point corresponding to each data of the grayscale run matrix of the wall grayscale image, the texture abnormality parameter of each run of the grayscale run matrix of the wall grayscale image is obtained.

4. The intelligent evaluation method for putty scraping effect based on feature extraction according to claim 3 is characterized in that: According to the abnormality degree and grayscale difference of each pixel point corresponding to each data of the grayscale run matrix of the wall grayscale image, the texture abnormality parameter of each run of the grayscale run matrix of the wall grayscale image is obtained, and the corresponding specific formula is as follows: ; Where Y j Represents the texture anomaly parameter of the jth data of the grayscale run matrix of the wall grayscale image, a j represents the number of pixels corresponding to the jth data of the grayscale run matrix of the wall grayscale image, M is the degree of residual noise interference in the wall grayscale image, Represents the grayscale difference of the kth pixel corresponding to the jth data of the grayscale run matrix of the wall grayscale image, δ max (g) represents the maximum value of the grayscale difference of all pixels corresponding to all data of the grayscale run matrix of the wall grayscale image, Represents the mean value of the grayscale differences of all pixels corresponding to all data of the grayscale run matrix of the wall grayscale image. norm() is a linear normalization function. Indicates the abnormality degree of the k-th pixel corresponding to the j-th data of the grayscale run-length matrix of the wall grayscale image.

5. The intelligent evaluation method for putty scraping effect based on feature extraction according to claim 1 is characterized in that: The step of obtaining the putty scraping effect index of the wall grayscale image according to the data quantity of the grayscale run matrix of the wall grayscale image and the texture abnormality parameter of each data comprises the following specific steps: According to the grayscale values ​​of all pixels of the wall grayscale image, the difference between the grayscale values ​​of all pixels corresponding to each data of the grayscale run matrix and the number of data of the grayscale run matrix, the abnormal index of each data of the grayscale run matrix is ​​obtained; According to the abnormal index of each data in the grayscale run matrix and the texture abnormal parameter of each data, the putty scraping effect index of the wall grayscale image is obtained.

6. The intelligent evaluation method for putty scraping effect based on feature extraction according to claim 5 is characterized in that: According to the abnormal index of each data in the grayscale run matrix and the texture abnormal parameter of each data, the putty scraping effect index of the wall grayscale image is obtained, and the corresponding specific formula is as follows: ; Where, E represents the putty scraping effect index of the wall grayscale image, P is the number of all data in the grayscale run matrix of the wall grayscale image, and Y j Represents the texture anomaly parameter of the jth data of the grayscale run matrix of the wall grayscale image, a j The number of pixels corresponding to the jth data of the grayscale run matrix of the wall grayscale image, g j Represents the mean grayscale value of all pixels corresponding to the jth data of the grayscale run matrix of the wall grayscale image, represents the mean gray value of all pixels in the wall grayscale image, norm( ) is a linear normalization function, exp( ) is an exponential function with a natural constant as the base, is the abnormal index of the j-th data in the grayscale run matrix, and | | is the absolute value function.

7. The intelligent evaluation method for putty scraping effect based on feature extraction according to claim 1 is characterized in that: The specific steps of evaluating the putty scraping effect of the wall surface according to the putty scraping index of the wall surface grayscale image are as follows: When the putty scraping effect index is greater than the preset judgment threshold, the wall putty scraping effect is judged to be qualified; when the putty scraping effect index is less than or equal to the preset judgment threshold, the wall putty scraping effect is judged to be unqualified.

8. An intelligent evaluation system for putty scraping effect based on feature extraction, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the computer program is executed by a processor, the steps of the intelligent evaluation method for putty scraping effect based on feature extraction as described in any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Cloth defect marking method and system based on machine vision

    CN114529549A

  • Lung shadow degree evaluation system based on X-ray film

    CN115294098A

  • Oil abrasive particle characteristic signal extraction method based on segmentation entropy

    CN115859087A

  • TFT array substrate defect detection method based on machine vision

    CN116993718A

  • Valve fault intelligent detection system

    CN117173187A