A method for detecting uneven sandblasting of steel plates based on image processing

By calculating the grayscale co-occurrence matrix confusion and row-column pixel similarity of the steel plate sandblasting image, the surface uniformity of the steel plate is judged, which solves the problem of difficulty in identifying local uneven locations in the existing technology and achieves more efficient sandblasting detection and processing. .

CN118365644BActive Publication Date: 2024-09-10XIAN LIANRUI TECH IND CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

It is difficult to accurately identify the local uneven position of the steel plate after sandblasting with the existing technology, resulting in unsatisfactory detection results.

Method used

By obtaining the sandblasted image of the steel plate surface, denoising it and converting it into a grayscale image, calculating the degree of confusion of the grayscale co-occurrence matrix in multiple directions and the similarity between rows and rows of pixels, calculating instability and correlation, and judging the surface Uniformity, locating uneven areas of blasting.

Benefits of technology

It improves the accuracy and efficiency of detection, can more accurately judge the uniformity of sandblasting, locate local uneven areas, reduce the probability of uneven sandblasting, and improve production efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118365644B
    Figure CN118365644B
Patent Text Reader

Abstract

The present invention relates to the field of steel plate sandblasting, and more specifically, the present invention relates to a method for detecting uneven sandblasting of steel plates based on image processing, the method comprising: obtaining a surface sandblasting image of a historical steel plate and performing denoising; converting the denoised surface sandblasting image into a grayscale image, calculating the grayscale co-occurrence matrix in multiple directions of the grayscale image, and obtaining the instability of the surface sandblasting image; calculating the similarity between row and column pixels in the grayscale image, and calculating the mean of the similarity as the correlation of row and column pixel distribution; calculating the ratio of the correlation of row and column pixel distribution and the instability as the uniformity of the surface sandblasting image, and judging that the surface sandblasting image is uneven in response to the uniformity being less than or equal to a uniform threshold, and taking the area with a similarity less than the mean of all similarities as an uneven area. The present invention obtains the position of the local uneven sandblasting by calculating the uniformity to achieve the effect of unevenness detection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of steel plate sandblasting, and more specifically, to a method for detecting uneven steel plate sandblasting based on image processing. Background Art

[0002] Sandblasting is a surface treatment technology, usually used for cleaning, removing oxide layers, scratches or old coatings, and increasing surface roughness. During the sandblasting process, abrasives (usually silica sand, glass sand, aluminum sand, etc.) are sprayed through a nozzle using a high-pressure airflow onto the surface of the object to be treated, thereby achieving the effect of frosting, polishing or cleaning. Sandblasting can be applied to the surface treatment of various materials, such as metal, glass, plastic, etc. Common applications include automotive surface treatment, building materials manufacturing, steel plate manufacturing and other fields.

[0003] The existing Chinese patent application document with publication number CN112767400A discloses a defect detection method and device, including the steps of: obtaining a target detection image of a product to be detected; evenly dividing a plurality of starting points in the column direction of the target detection image; obtaining a brightness curve in the horizontal direction corresponding to each starting point; and detecting whether the product to be detected has an uneven sandblasting defect according to the brightness curve.

[0004] In the above scheme, the left column direction of the target detection image is divided into multiple starting points, the mean brightness of each row of sub-areas is calculated, the range of each row of sub-areas is 3×3, and the brightness curve is fitted and analyzed through the brightness mean of the sub-areas. However, there may be many uneven phenomena on the surface of the steel plate. Using the brightness curve of each row for identification can only identify the uneven sandblasting that may exist in each row, but cannot accurately identify the location of the local unevenness, so that the detection effect is not ideal. Summary of the invention

[0005] In order to solve the problem that the position of local unevenness cannot be accurately identified due to the complex surface texture of the steel plate after sandblasting, the present invention provides a solution as follows.

[0006] A method for detecting uneven sandblasting of steel plates based on image processing comprises: obtaining a historical surface sandblasting image of a steel plate and performing denoising; converting the denoised surface sandblasting image into a grayscale image, calculating the degree of disorder of a grayscale co-occurrence matrix in multiple directions of the grayscale image, calculating the average of the sum of squares of the differences between the disorder degree in each direction and the mean of the disorder degree in each direction, and obtaining the instability of the surface sandblasting image; calculating the similarity between row and column pixels in the grayscale image, , where Indicates Line The similarity between the pixels in the columns, Indicates the maximum value of pixel value. Indicates the size of the pixel value. Indicates The row pixel value is The number of pixels, Indicates The column pixel value is The number of pixels, Indicates The number of pixels in a row, Indicates The number of pixels in a column, Indicates taking the minimum value, It means taking the maximum value, taking the mean of the similarity as the correlation of row and column pixel distribution; taking the ratio of the correlation of row and column pixel distribution and the instability as the uniformity of the surface sandblasting image, in response to the uniformity being less than or equal to the uniformity threshold, judging that the surface sandblasting image is uneven, and taking the area in the uneven surface sandblasting image whose corresponding similarity is less than the similarity mean as the uneven sandblasting area.

[0007] The effect is as follows: the instability of sandblasting is calculated by the degree of disorder of the surface sandblasting image in a preset direction, reflecting the unevenness of sandblasting, and the correlation of row and column pixel distribution of the surface sandblasting image is calculated according to the similarity between rows and columns in the surface sandblasting image, and the uniformity effect of the surface sandblasting image is further analyzed through the correlation of rows and columns. The greater the similarity value of row and column pixel values, and the closer the number of occurrences of the same pixel value in the rows and columns, the better the sandblasting uniformity, and the smaller the row and column similarity value, the worse the sandblasting uniformity; the uniformity of sandblasting is calculated according to the correlation between the instability and the row and column pixel distribution, which is conducive to more accurate judgment of uniformity through the consistency of row and column pixel distribution. According to the judgment result, the area whose similarity corresponding to the uniformity is less than the average of all similarities is judged as the uneven sandblasting area, which is conducive to obtaining the location of local uneven sandblasting, facilitating the processing of local uneven sandblasting, and improving the detection accuracy.

[0008] In one embodiment, the step of calculating the gray level co-occurrence matrix of the gray level image in multiple directions comprises the steps of:

[0009] Traverse all the pixels in the grayscale image, for a pixel, use it as a reference pixel, combine other pixels at a preset distance from the reference pixel in any direction into a pixel pair, and obtain the pixel values ​​of the corresponding pixel pair;

[0010] The frequency of occurrence of pixel values ​​of pixel pairs in any direction is counted to construct the gray-level co-occurrence matrix in multiple directions.

[0011] The effect is that by statistically analyzing the gray-level co-occurrence matrix, texture feature information in multiple directions is obtained, which is beneficial to the processing of texture feature information.

[0012] In one embodiment, the calculation formula of the instability of the surface sandblasting image is:

[0013] ,

[0014] In the formula, Indicates the instability of the surface sandblasting image, Indicates the number of directions, Indicated in The degree of disorder of the blasted image on the surface in terms of direction, Indicates the mean value of the disorder degree of the surface sandblasting image in different directions.

[0015] The effect is that by calculating and comparing the degree of disorder in a preset direction, the non-uniformity in the image can be determined, thereby helping to locate the non-uniform area.

[0016] In one embodiment, it further includes:

[0017] Obtaining the unblasted image and the surface blasted image of the historical steel plate;

[0018] Preprocessing the unsandblasted image to obtain a connected domain of surface defects of the steel plate; calculating the difference between the pixel value of the connected domain and the pixel value of other regions except the connected domain to obtain the roughness of the unsandblasted image;

[0019] For the surface sandblasting image, obtain the corresponding uniformity;

[0020] For each steel plate, a mapping relationship between the unevenness before sandblasting and the uniformity after sandblasting is constructed, and an optimal unevenness threshold is obtained according to the mapping relationship and in combination with the uniformity threshold required for sandblasting;

[0021] For a steel plate to be sandblasted, its un-sandblasted image is obtained, and its unevenness is calculated. When the unevenness is less than or equal to the optimal unevenness threshold, the steel plate surface is sandblasted. Otherwise, the steel plate surface is sandwashed before sandblasting.

[0022] The effect is: by collecting the unsandblasted image of the steel plate for processing, the unevenness of the steel plate surface is obtained, the characteristics of the unsandblasted image are extracted, the uneven areas on the steel plate surface are reflected, the optimal threshold is obtained according to the mapping relationship, and the unevenness of the image to be sandblasted is used to judge whether the steel plate surface meets the sandblasting standard, thereby reducing the probability of uneven sandblasting and improving production efficiency.

[0023] In one embodiment, the unsandblasted image is preprocessed, including:

[0024] The unsandblasted image is converted into a grayscale image, edge detection is performed on the grayscale image to obtain an image of the edge of the steel plate surface, a connected domain is extracted from the image of the edge of the steel plate surface, and denoising is performed on the connected domain to obtain a connected domain of the surface defects of the steel plate.

[0025] In one embodiment, the step of calculating the difference between the pixel value of the connected domain and the pixel value of other regions except the connected domain to obtain the roughness of the unsandblasted image further includes:

[0026] The ratio of the product of the number of connected domains of defects on the steel plate surface and the area of ​​each connected domain and the product of the number of pixels in rows and columns of the unsandblasted image on the steel plate surface is counted respectively to obtain the roughness of the unsandblasted image.

[0027] In one embodiment, the optimal roughness threshold is obtained according to the mapping relationship and in combination with the uniformity threshold required for sandblasting, including the steps of:

[0028] Using statistical methods, 80% of the historical steel plate roughness and uniformity data are used as training data and 20% as verification data to train the preset model and obtain the mapping function;

[0029] In response to the mapping function reaching a maximum, the roughness threshold in the mapping function is the optimal roughness threshold.

[0030] In one embodiment, the mapping function satisfies the following relationship:

[0031] ,

[0032] In the formula, represents the mapping function, Indicates the total number of tags. Indicates Steel plates, Indicates The unevenness of the steel plate before sandblasting, represents the roughness threshold, represents a Boolean function, Indicates Label value of a steel plate after sandblasting.

[0033] The effect is that the uniformity of the surface sandblasting image is used as the adjustment value of the mapping function, so that the optimal sandblasting threshold of the steel plate surface is obtained more representatively, and the possibility of uneven sandblasting is reduced.

[0034] The present invention has the following effects:

[0035] 1. The present invention calculates the correlation and instability ratio of row and column pixel distribution as the sandblasting uniformity index, uses the uniformity index as the judgment standard, and adaptively judges the uniformity of sandblasting according to each surface sandblasting image, thereby improving the accuracy and efficiency of detection.

[0036] 2. The present invention obtains the instability of the surface sandblasting image by calculating the entropy value of the grayscale co-occurrence matrix in multiple directions. The entropy value represents the degree of confusion between gray levels. A higher entropy value indicates that the surface sandblasting image is more unstable in this direction, which is beneficial to the comprehensive evaluation of the surface sandblasting image.

[0037] 3. The present invention can quantitatively evaluate the correlation of row and column pixel distribution in a grayscale image by calculating the similarity between row and column pixel values, and can further understand the degree of association between rows and columns, which is beneficial to the surface sandblasting image analysis and feature extraction. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] By reading the following detailed description with reference to the accompanying drawings, the above and other objects, features and advantages of the exemplary embodiments of the present invention will become readily understood. In the accompanying drawings, several embodiments of the present invention are shown in an exemplary and non-limiting manner, and the same or corresponding reference numerals represent the same or corresponding parts, wherein:

[0039] Figure 1 It is a method flow chart of steps S1 to S4 in a method for detecting uneven sandblasting of a steel plate based on image processing in an embodiment of the present invention.

[0040] Figure 2 It is a method flow chart of steps S20 to S23 in a method for detecting uneven sandblasting of a steel plate based on image processing in an embodiment of the present invention. DETAILED DESCRIPTION

[0041] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0042] The specific embodiments of the present invention are described in detail below with reference to the accompanying drawings.

[0043] Reference Figure 1 A method for detecting uneven sandblasting of a steel plate based on image processing includes steps S1 to S4, which are specifically as follows:

[0044] S1: Obtain the surface sandblasting image of the historical steel plate and perform denoising.

[0045] To further illustrate, the images of the historical steel plate before and after sandblasting are obtained by shooting with a CCD camera. In this embodiment, Gaussian filtering can be used to denoise the image, and the denoised surface sandblasting image can also be obtained by using mean filtering, median filtering, non-local mean denoising and other methods.

[0046] S2: Convert the denoised surface sandblasting image into a grayscale image, calculate the degree of disorder of the grayscale co-occurrence matrix in multiple directions of the grayscale image, calculate the average of the sum of squares of the differences between the disorder degree in each direction and the mean of the disorder degree in each direction, and obtain the instability of the surface sandblasting image.

[0047] It should be noted that, since the surface image of the steel plate after sandblasting presents complex texture and structure, it is not conducive to image segmentation when extracting texture features. This scheme combines the gray-level co-occurrence matrix to further analyze the surface sandblasting image.

[0048] It is further explained that the pixel value of any pixel point in the grayscale image is taken as the starting point, wherein the multiple directions include: 0 degree, 45 degree, 90 degree, and 135 degree directions, the pixel values ​​of the corresponding positions of the pixel points in each direction are obtained, the co-occurrence frequency of each pixel level is counted, and the entropy value of the grayscale co-occurrence matrix in multiple directions is calculated to evaluate the instability of sandblasting.

[0049] Reference Figure 2 , including steps S20 to S23:

[0050] S20: traverse all pixel points in the grayscale image, for a pixel point, use it as a reference pixel point, form pixel pairs with other pixel points at a preset distance from the reference pixel point in any direction, and obtain pixel values ​​of the corresponding pixel pairs.

[0051] S21: Count the frequency of occurrence of pixel values ​​of pixel pairs in any direction, and construct gray-level co-occurrence matrices in multiple directions.

[0052] For example, count any pixel in the grayscale image The pixel value is , the preset distances in the directions of 0 degrees, 45 degrees, 90 degrees, and 135 degrees are point The pixel value is Probability, statistics The frequency of occurrence is obtained and the gray-level co-occurrence matrix is ​​obtained.

[0053] because Traversing all pixel values ​​in the image has a large amount of calculation. In another embodiment, 8 pixel levels can be set for the pixel values ​​of the pixel points in the grayscale image.

[0054] Specifically, the pixel level satisfies the following relationship:

[0055] ,

[0056] In the formula, Indicates the grayscale image after being divided into levels Line Grayscale value of the column position, Indicates the grayscale image Line Grayscale value of the column position, Indicates the floor symbol;

[0057] Exemplarily, after the grayscale image is divided into levels, the frequencies of (1, 1), (1, 2), (1, 3), ..., (2, 1), ..., (8, 8) in the directions of 0 degrees, 45 degrees, 90 degrees, and 135 degrees are counted to obtain the grayscale co-occurrence matrix in different directions.

[0058] It is further explained that the purpose of dividing the pixel values ​​of the grayscale image into 8 pixel levels in the present invention is to reduce the number of grayscale levels, thereby simplifying the calculation of the grayscale co-occurrence matrix, effectively reducing the amount of data and improving calculation efficiency.

[0059] S22: traverse and calculate the entropy values ​​of the pixel values ​​of the gray level co-occurrence matrix in multiple directions to obtain the degree of confusion.

[0060] Specifically, the degree of chaos satisfies the following relationship:

[0061] ,

[0062] In the formula, Indicates the degree of disorder of the surface sandblasting image, Represents the gray level co-occurrence matrix Line The value of the column, Represents a logarithmic function.

[0063] S23: Calculate the average of the sum of squares of the differences between the disorder degree in each direction and the mean of the disorder degree in each direction, obtain the instability of the surface sandblasting image, and perform normalization processing on the instability.

[0064] Specifically, the instability of the surface sandblasting image satisfies the following relationship:

[0065] ,

[0066] In the formula, Indicates the instability of the surface sandblasting image, Indicates the number of directions, Indicated in The degree of disorder of the blasted image on the surface in terms of direction, Indicates the average degree of disorder of the surface sandblasting image in multiple directions.

[0067] By calculating the instability of the sandblasting image of the present invention, the influence of the disorder degree in each direction on the surface sandblasting image is reflected, so that the instability result is more accurate.

[0068] S3: Calculate the similarity between row and column pixels in the grayscale image, and calculate the mean of the similarity between row and column pixels as the correlation of row and column pixel distribution.

[0069] The similarity between row and column pixels satisfies the following relationship:

[0070] ,

[0071] In the formula, Indicates Line The similarity between the pixels in the columns, Indicates the maximum value of pixel value. Indicates the size of the pixel value. Indicates The pixel value in the row is The number of pixels, Indicates The pixel value in the column is The number of pixels, Indicates The number of pixels in a row, Indicates The number of pixels in a column, Indicates taking the minimum value, Indicates taking the maximum value;

[0072] Further explanation: the greater the similarity of row and column pixels of the surface sandblasting image of the steel plate, the closer the number of occurrences of the same pixel value in the row and column, indicating that the uniformity of the sandblasting is better, and the smaller the row and column similarity, the worse the uniformity of the sandblasting. The greater the correlation of row and column pixel distribution, the better the uniformity of the sandblasting of the steel plate.

[0073] S4: taking the ratio of the correlation and instability of the row and column pixel distribution as the uniformity of the surface sandblasting image, in response to the uniformity being less than or equal to the uniformity threshold, judging that the surface sandblasting image is uneven, and taking the area in the uneven surface sandblasting image where the corresponding similarity is less than the similarity mean as the uneven sandblasting area.

[0074] Specifically, the sandblasting uniformity satisfies the following relationship:

[0075] ,

[0076] In the formula, Indicates the uniformity of sandblasting. Represents the row and column pixel distribution correlation of the steel plate image after sandblasting, Indicates the instability of the surface sandblasting image.

[0077] In the above embodiments, the smaller the instability of the surface sandblasting image of the steel plate, the more uniform the sandblasting; the greater the correlation between the row and column pixel distribution, the more uniform the sandblasting; the uniform threshold is set to 2, and after the uniform judgment result is obtained, the area whose similarity in the row and column similarity matrix is ​​less than the mean of all similarities is the sandblasting uneven area. Thus, the sandblasting uneven area is further processed, such as: for the local uneven area, local repair can be considered, such as using manual grinding or other surface treatment methods to trim the uneven area to make it more uniform with the surrounding area.

[0078] It should be noted that when detecting uneven sandblasting on the surface of a steel plate, defects in the steel plate itself can also cause uneven sandblasting. Defects on the surface of the steel plate can cause inconsistent adhesion of the sandblasting material in different areas, thereby affecting the uniformity of the surface after sandblasting.

[0079] Some common surface defects of steel plates include dents, bulges, cracks, bubbles, etc. During the sandblasting process, the sandblasting material may adhere more to the defects and less to other areas. This will cause problems with the quality and uniformity of the surface after sandblasting, so as to facilitate comprehensive evaluation.

[0080] In one embodiment, the steps further include:

[0081] Obtaining the unblasted image and the surface blasted image of the historical steel plate;

[0082] Preprocess the unblasted image to obtain the connected domain of surface defects of the steel plate;

[0083] It is further explained that the unsandblasted image is converted into a grayscale image, edge detection is performed on the grayscale image to obtain an image of the edge of the steel plate surface, and a connected domain is extracted from the image of the edge of the steel plate surface, and the connected domain is denoised to obtain a connected domain of the steel plate surface defects.

[0084] The difference between the pixel value of the connected domain and the pixel value of other regions except the connected domain is calculated to obtain the roughness of the unsandblasted image;

[0085] For the surface sandblasting image, obtain the corresponding uniformity;

[0086] Since it is historical data, the unevenness and uniformity of each steel plate are known, so a mapping relationship between the unevenness before sandblasting and the uniformity after sandblasting can be constructed. According to the mapping relationship, combined with the uniformity threshold that needs to be given to sandblasting, the optimal unevenness threshold is obtained.

[0087] For a steel plate to be sandblasted, its un-sandblasted image is obtained, and its unevenness is calculated. When the unevenness is less than or equal to the optimal unevenness threshold, the steel plate surface is sandblasted. Otherwise, the steel plate surface is sand washed before sandblasting.

[0088] At this point, the sandblasting process is completed.

[0089] It is further explained that the roughness of the unsandblasted image can be calculated in the form of grayscale variance. Specifically, the average value of all pixel values ​​in the connected domain is calculated, and the ratio of the sum of the squares of the difference between the grayscale value of each pixel and the average value to the total number of pixels is calculated to obtain the roughness of the unsandblasted image.

[0090] In another embodiment, a set formula is used for calculation: the ratio of the product of the number of connected domains of defects on the steel plate surface and the area of ​​each connected domain and the product of the number of pixels in the rows and columns of the unsandblasted image on the steel plate surface is counted respectively to obtain the unevenness of the unsandblasted image;

[0091] Specifically, the unevenness satisfies the following relationship:

[0092] ,

[0093] In the formula, Indicates the unevenness of the unblasted image. represents the number of connected domains on the steel plate surface, Indicates the size of the connected domain area on the steel plate surface. and Respectively represent the number of pixels in the rows and columns of the steel plate image;

[0094] Calculated by the above-set formula, the number of connected domains on the steel plate surface reflects the surface defects of the steel plate. The more connected domains there are, the worse the uniformity of the corresponding surface sandblasting image after sandblasting. According to the area occupied by the connected domains on the steel plate surface, it is helpful to analyze the relationship between the surface defects of the steel plate and the row and column pixels, and then obtain the unevenness of the un-sandblasted image.

[0095] According to the mapping relationship, combined with the uniformity threshold required for sandblasting, the optimal roughness threshold is obtained, including the following steps:

[0096] Using statistical methods, 80% of the historical steel plate roughness and uniformity data are used as training data and 20% as verification data to train the preset model and obtain the mapping function;

[0097] In response to the mapping function reaching a maximum, the roughness threshold in the mapping function is the optimal roughness threshold.

[0098] It is further explained that in addition to using statistical methods, linear regression, polynomial regression, support vector regression, decision tree, random forest, neural network and other methods can also be used to construct the mapping relationship.

[0099] Specifically, the mapping function satisfies the following relationship:

[0100] ,

[0101] In the formula, represents the mapping function, Indicates the total number of tags. Indicates Steel plates, Indicates The unevenness of the steel plate before sandblasting, represents the roughness threshold, represents a Boolean function, Indicates Label value of a steel plate after sandblasting.

[0102] Further explanation: If the formula is established, the value of the Boolean function is 1. Otherwise, if the formula is not established, the value of the Boolean function is 0. All the unsandblasted steel plate images in the historical data set are traversed to obtain the roughness threshold when the mapping function is maximum, and then determine whether the surface of the steel plate is flat.

[0103] Exemplarily, five historical steel plates are acquired to obtain the corresponding unevenness of the unsandblasted image and the uniformity of the surface sandblasted image, wherein labels are set according to the uniformity, and the labels include: uniform is 1, and uneven is 0.

[0104] The unevenness is: 3, 5, 7, 9, 6;

[0105] The uniformity labels are: 1, 1, 0, 0, 1;

[0106] According to the numerical range of the roughness, the roughness threshold is set, and the range of the roughness threshold is between (3-9). When the roughness threshold is set to 3, the roughness of the five historical steel plates is introduced in turn. When the roughness is 3, then The formula is valid, and the Boolean function value is 1; when the roughness is 5, then The formula is not valid, and the Boolean function value is 0; when the roughness is 7, then The formula is valid, and the Boolean function value is 1; when the roughness is 9, then The formula is valid, and the Boolean function value is 1; when the roughness is 6, then The formula is not valid, the Boolean function value is 0, and according to the mean of the sum of the Boolean function values ​​of the five steel plates, we get , and similarly, when the roughness threshold is 5, , when the roughness threshold is 6, , when the roughness threshold is 7, , when the roughness threshold is 9, ;in, When , the value is the largest, the corresponding threshold 6 is taken as the optimal roughness threshold.

[0107] Further explanation: If the formula is established, it means that the predicted label is consistent with the true label result. When the mapping function value is larger, the proportion of the predicted label and the true label result that are consistent is higher, which means that the accuracy of the roughness threshold is higher.

[0108] Through the above embodiment, based on the unevenness of the historical steel plate before sandblasting and the uniformity of the historical steel plate after sandblasting, the optimal unevenness threshold is determined to judge whether the steel plate to be sandblasted meets the sandblasting standard, reduce the probability of uneven sandblasting, and thus improve production efficiency.

[0109] In the description of this specification, "plurality" or "several" means at least two, such as two, three or more, etc., unless otherwise clearly and specifically defined.

[0110] Although this specification has shown and described a number of embodiments of the present invention, it will be apparent to those skilled in the art that such embodiments are provided by way of example only. Those skilled in the art will conceive of many modifications, changes and alternatives without departing from the ideas and spirit of the present invention. It should be understood that in the practice of the present invention, various alternatives to the embodiments of the present invention described herein may be employed.

Claims

1. A method for detecting uneven sandblasting of steel plates based on image processing. It is characterized in that include: Obtain the surface sandblasting image of the historical steel plate and perform denoising; Convert the denoised surface sandblasting image into a grayscale image, traverse all the pixels in the grayscale image, and for a pixel point, use it as a reference pixel point, form a pixel pair with other pixels at a preset distance from the reference pixel point in any direction, and obtain the pixel values ​​of the corresponding pixel pairs; Count the frequency of occurrence of pixel values ​​of pixel pairs in any direction and construct gray-level co-occurrence matrices in multiple directions; Traversing and calculating the entropy values ​​of the pixel values ​​of the gray level co-occurrence matrix of the gray level image in multiple directions to obtain the degree of disorder, calculating the average value of the sum of squares of the differences between the degree of disorder in each direction and the mean value of the degree of disorder in each direction to obtain the instability of the surface sandblasting image; Calculate the similarity between rows and columns of pixels in a grayscale image, , where Indicates Line The similarity between the pixels in the columns, Indicates the maximum value of pixel value. Indicates the size of the pixel value. Indicates The row pixel value is The number of pixels, Indicates The column pixel value is The number of pixels, Indicates The number of pixels in a row, Indicates The number of pixels in a column, Indicates taking the minimum value, It means taking the maximum value and taking the mean of the similarity as the correlation of the row and column pixel distribution; The ratio of the correlation of the row and column pixel distribution and the instability is used as the uniformity of the surface sandblasting image. In response to the uniformity being less than or equal to a uniformity threshold, the surface sandblasting image is judged to be uneven. The area in the uneven surface sandblasting image whose corresponding similarity is less than the similarity mean is taken as the uneven sandblasting area.

2. According to the method for detecting uneven sandblasting of steel plates based on image processing according to claim 1, It is characterized in that The calculation formula of the instability of the surface sandblasting image is: , In the formula, Indicates the instability of the surface sandblasting image, Indicates the number of directions, Indicated in The degree of disorder of the blasted image on the surface in terms of direction, Indicates the mean value of the disorder degree of the surface sandblasting image in different directions.

3. The method for detecting uneven sandblasting of a steel plate based on image processing according to claim 1, It is characterized in that Also includes: Obtaining the unblasted image and the surface blasted image of the historical steel plate; Preprocessing the non-sandblasted image to obtain a connected domain of surface defects of the steel plate; The difference between the pixel value of the connected domain and the pixel value of other regions except the connected domain is calculated to obtain the roughness of the unsandblasted image; For the surface sandblasting image, obtain the corresponding uniformity; For each steel plate, a mapping relationship between the unevenness before sandblasting and the uniformity after sandblasting is constructed, and an optimal unevenness threshold is obtained according to the mapping relationship and in combination with the uniformity threshold required for sandblasting; For a steel plate to be sandblasted, its un-sandblasted image is obtained, and its unevenness is calculated. When the unevenness is less than or equal to the optimal unevenness threshold, the steel plate surface is sandblasted. Otherwise, the steel plate surface is sandwashed before sandblasting.

4. The method for detecting uneven sandblasting of a steel plate based on image processing according to claim 3, It is characterized in that The non-sandblasted image is preprocessed, including: The unsandblasted image is converted into a grayscale image, edge detection is performed on the grayscale image to obtain an image of the edge of the steel plate surface, a connected domain is extracted from the image of the edge of the steel plate surface, and denoising is performed on the connected domain to obtain a connected domain of the surface defects of the steel plate.

5. The method for detecting uneven sandblasting of a steel plate based on image processing according to claim 3, It is characterized in that The method of calculating the difference between the pixel value of the connected domain and the pixel value of other regions except the connected domain to obtain the roughness of the unsandblasted image further includes: The ratio of the product of the number of connected domains of defects on the steel plate surface and the area of ​​each connected domain and the product of the number of pixels in rows and columns of the unsandblasted image on the steel plate surface is counted respectively to obtain the roughness of the unsandblasted image.

6. The method for detecting uneven sandblasting of a steel plate based on image processing according to claim 3, It is characterized in that The method of obtaining the optimal roughness threshold value according to the mapping relationship and the uniformity threshold value required for sandblasting comprises the following steps: Using statistical methods, 80% of the historical steel plate roughness and uniformity data are used as training data and 20% as verification data to train the preset model and obtain the mapping function; In response to the mapping function reaching a maximum, the roughness threshold in the mapping function is the optimal roughness threshold.

7. The method for detecting uneven sandblasting of a steel plate based on image processing according to claim 6, It is characterized in that The mapping function satisfies the following relationship: , In the formula, represents the mapping function, Indicates the total number of tags. Indicates Steel plates, Indicates The unevenness of the steel plate before sandblasting, represents the roughness threshold, represents a Boolean function, Indicates Label value of a steel plate after sandblasting.