A method and system for testing the corrosion resistance of fine steel anti-corrosion steel plastic plate
Through image processing technology, the distribution and edge ambiguity of the corrosion spot area on the surface of stainless steel anti-corrosion steel plastic plates is solved, and the traditional testing methods are not intuitive enough and the error is large, achieving a more accurate and efficient corrosion resistance evaluation.
Patent Information
- Application Number
- CN202411547272.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-01
- Publication Date
- 2025-05-23
- Estimated Expiration
- 2044-11-01
AI Technical Summary
The traditional corrosion resistance testing method is not intuitive enough, and the corrosion spots caused by material aging may make the corrosion resistance of stainless steel anti-corrosion steel-plastic plates inaccurate.
By obtaining the grayscale image of the surface of the stainless steel anti-corrosion steel-plastic plate, identifying and analyzing the distribution discreteness and area changes of the corrosion spot area, and correcting it with edge ambiguity to calculate the degree of corrosion and corrosion resistance.
Improves testing efficiency, provides more intuitive results, and reduces errors caused by material aging, making the evaluation of corrosion resistance more accurate.
Smart Images

Figure CN119067966B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of image processing, and in particular to a method and system for testing the corrosion resistance of a refined steel anti-corrosion steel plastic plate. Background Art
[0002] Fine steel anti-corrosion steel plastic plate is an anti-corrosion factory roof tile, with 0.5mm thick galvanized steel plate as the substrate, and a composite anti-corrosion functional film on both sides. It is used for factory roofs and walls in corrosive environments. It has the characteristics of no rust and no water leakage, high strength and long service life; however, with long-term exposure to corrosive environmental conditions, its corrosion resistance may decrease, so an effective method is needed to test and evaluate the corrosion resistance of fine steel anti-corrosion steel plastic plate;
[0003] Traditional corrosion resistance testing methods usually include salt spray tests, which are not intuitive enough. With the development of image processing technology, it has become feasible to use computer vision technology to analyze the surface state of fine steel anti-corrosion steel-plastic panels and obtain their corrosion resistance. This method not only improves the test efficiency, but also provides more intuitive results. However, due to material aging, rust spots may appear on the surface of fine steel anti-corrosion steel-plastic panels, which may be mistakenly believed to be corroded, making the corrosion resistance of fine steel anti-corrosion steel-plastic panels inaccurate. Summary of the invention
[0004] In order to solve the above problems, the present invention provides a method and system for testing the corrosion resistance of fine steel anti-corrosion steel plastic plate.
[0005] One embodiment of the present invention provides a method for testing the corrosion resistance of a refined steel anti-corrosion steel plastic plate, the method comprising the following steps:
[0006] Obtain grayscale images of the surface of the refined steel anti-corrosion steel plastic plate at several sampling time points and at several sampling moments;
[0007] Obtain all rust spots in the grayscale image of the surface of the steel anti-corrosion steel-plastic plate at each sampling moment; obtain the distribution discreteness of the rust spots in the grayscale image of the surface of the steel anti-corrosion steel-plastic plate at each sampling moment according to the number and position distribution of the rust spots; obtain the degree of corrosion of the steel anti-corrosion steel-plastic plate at each sampling time point according to the distribution discreteness of the rust spots and the change in the area of each rust spot in the grayscale image of the surface of the steel anti-corrosion steel-plastic plate at different sampling moments;
[0008] According to the edge features of the edge pixels in the rust spot area, the edge fuzziness of the rust spot area is obtained; according to the edge fuzziness of the rust spot area, the corrosion degree of the fine steel anti-corrosion steel-plastic plate is corrected to obtain the corrected corrosion degree of the fine steel anti-corrosion steel-plastic plate at each sampling time point; according to the change of the corrected corrosion degree of the fine steel anti-corrosion steel-plastic plate at different sampling time points, the corrosion resistance of the fine steel anti-corrosion steel-plastic plate is obtained;
[0009] The quality of the fine steel anti-corrosion steel-plastic plate is tested according to its anti-corrosion performance.
[0010] Preferably, the specific method of obtaining all rust spots in the grayscale image of the surface of the refined steel anti-corrosion steel plastic plate at each sampling moment includes:
[0011] For the grayscale image of the surface of the refined steel anti-corrosion steel-plastic plate at any sampling moment under any sampling time point, obtain the gradient image of the grayscale image of the surface of the refined steel anti-corrosion steel-plastic plate at the sampling moment, perform a watershed segmentation algorithm on the gradient image of the grayscale image of the surface of the refined steel anti-corrosion steel-plastic plate at the sampling moment, and obtain multiple areas of the grayscale image of the surface of the refined steel anti-corrosion steel-plastic plate at the sampling moment, and record each area as a rust spot area.
[0012] Preferably, the method of obtaining the distribution discreteness of the rust spot area in the grayscale image of the surface of the fine steel anti-corrosion steel plastic plate at each sampling moment according to the number and position distribution of the rust spot area includes the following specific methods:
[0013] For a grayscale image of the surface of a refined steel anti-corrosion steel-plastic plate at any sampling time point, all rust spot areas in the grayscale image of the surface of the refined steel anti-corrosion steel-plastic plate at the sampling time point are arbitrarily combined in pairs to obtain a number of rust spot area combinations;
[0014] For any rust spot area combination, the Euclidean distance between the centroid position of the first rust spot area and the centroid position of the second rust spot area in the rust spot area combination is recorded as the distribution discrete factor of the rust spot area combination;
[0015] The mean value of the distribution discrete factors of all rust spot area combinations is used as the distribution discreteness of the rust spot area in the grayscale image of the surface of the refined steel anti-corrosion steel plastic plate at the sampling moment.
[0016] Preferably, the method of obtaining the corrosion degree of the fine steel anti-corrosion steel plastic plate at each sampling time point according to the distribution discreteness of the rust spot area and the area change of each rust spot area in the grayscale image of the surface of the fine steel anti-corrosion steel plastic plate at different sampling times includes the following specific methods:
[0017] According to the area change of each rust spot area in the grayscale image of the surface of the fine steel anti-corrosion steel plastic plate at different sampling times, the corrosion rate consistency of each rust spot area is obtained;
[0018] For any rust spot area in the grayscale image of the surface of the refined steel anti-corrosion steel-plastic plate at any sampling moment at any sampling time point, the product of the corrosion rate consistency of the rust spot area and the number of all pixels in the rust spot area is recorded as the corrosion rate factor of the rust spot area; the cumulative sum of the corrosion rate factors of all rust spot areas in the grayscale image of the surface of the refined steel anti-corrosion steel-plastic plate at the sampling moment is recorded as the corrosion rate degree of the refined steel anti-corrosion steel-plastic plate at the sampling moment; the product of the corrosion rate degree of the refined steel anti-corrosion steel-plastic plate at the sampling moment, the number of all rust spot areas in the grayscale image of the surface of the refined steel anti-corrosion steel-plastic plate at the sampling moment, and the distribution discreteness of the rust spot areas in the grayscale image of the surface of the refined steel anti-corrosion steel-plastic plate at the sampling moment is used as the corrosion factor of the refined steel anti-corrosion steel-plastic plate at the sampling moment; the mean of the corrosion factors of the refined steel anti-corrosion steel-plastic plates at all sampling moments at the sampling time point is used as the corrosion degree of the refined steel anti-corrosion steel-plastic plate at the sampling time point.
[0019] Preferably, the method of obtaining the consistency of the corrosion rate of each rust spot area includes:
[0020] The first The next acquisition time of the sampling time is recorded as The reference collection time of each collection time;
[0021] The first The grayscale image of the surface of the fine steel anti-corrosion steel plastic plate at the sampling moment The number of all pixels in the rust spot area is The grayscale image of the surface of the fine steel anti-corrosion steel plastic plate at the sampling moment The absolute value of the difference between the number of all pixels in the rust spot area is recorded as The grayscale image of the surface of the fine steel anti-corrosion steel plastic plate at the sampling moment The pixel number difference of the rust spot area; The grayscale image of the surface of the fine steel anti-corrosion steel plastic plate at the sampling moment The difference between the number of pixels in the rust spot area and the The grayscale image of the surface of the fine steel anti-corrosion steel plastic plate at the sampling moment The absolute value of the difference between the number of pixels in the rust spot area is recorded as The grayscale image of the surface of the fine steel anti-corrosion steel plastic plate at the sampling moment The corrosion rate consistency of the rust spot area.
[0022] Preferably, the step of obtaining the edge fuzziness of the rust spot area according to the edge features of the edge pixels in the rust spot area includes the following specific methods:
[0023] For any rust spot area in the grayscale image of the surface of the fine steel anti-corrosion steel plastic plate at any sampling time point, the Canny edge detection algorithm is used to obtain all edge pixels in each rust spot area;
[0024] Get the first edge pixels except the The Euclidean distance between each edge pixel except the edge pixels, and the edge pixel corresponding to the minimum Euclidean distance is recorded as the The nearest edge point of edge pixels;
[0025] According to The difference in gradient direction and grayscale value between the edge pixel and its nearest edge point is used to obtain the The edge representation degree of each edge pixel point is calculated; and the variance of the edge representation degree of all edge pixels in the rust spot area is used as the edge fuzziness of the rust spot area.
[0026] Preferably, the corrosion degree of the fine steel anti-corrosion steel-plastic plate is corrected according to the edge fuzziness of the rust spot area to obtain the corrected corrosion degree of the fine steel anti-corrosion steel-plastic plate at each sampling time point, including the specific method of:
[0027] For any sampling time point, the average of the edge fuzziness of all rust spot areas in the grayscale image of the surface of the fine steel anti-corrosion steel-plastic plate at all sampling moments at the sampling time point is recorded as the correction factor; the normalized value of the product of the correction factor and the degree of corrosion of the fine steel anti-corrosion steel-plastic plate at the sampling time point is used as the corrected degree of corrosion of the fine steel anti-corrosion steel-plastic plate at the sampling time point.
[0028] Preferably, the method of obtaining the corrosion resistance of the fine steel anti-corrosion steel plastic plate according to the change of the corrected corrosion degree of the fine steel anti-corrosion steel plastic plate at different sampling time points includes the following specific methods:
[0029] For any sampling time point, the ratio of the corrected corrosion degree of the fine steel anti-corrosion steel-plastic plate at the sampling time point to the sampling time point is recorded as the anti-corrosion factor at the sampling time point; the inverse proportional value of the cumulative sum of the anti-corrosion factors of all sampling time points is taken as the anti-corrosion performance of the fine steel anti-corrosion steel-plastic plate.
[0030] Preferably, the quality inspection of the fine steel anti-corrosion steel plastic plate according to the anti-corrosion performance of the fine steel anti-corrosion steel plastic plate includes the following specific methods:
[0031] Preset a parameter threshold If the corrosion resistance of the fine steel anti-corrosion steel plastic plate is greater than or equal to the parameter threshold , the corrosion resistance of the fine steel anti-corrosion steel-plastic plate will be recorded as qualified.
[0032] The present invention also proposes a system for testing the corrosion resistance of fine steel anti-corrosion steel-plastic plates, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements any step of the method for testing the corrosion resistance of fine steel anti-corrosion steel-plastic plates.
[0033] The beneficial effects of the technical solution of the present invention are: the present invention obtains all rust spot areas in the grayscale image of the surface of the fine steel anti-corrosion steel-plastic plate at each sampling moment; obtains the edge fuzziness of the rust spot area according to the edge characteristics of the edge pixels in the rust spot area; corrects the corrosion degree of the fine steel anti-corrosion steel-plastic plate according to the edge fuzziness of the rust spot area, and obtains the corrected corrosion degree of the fine steel anti-corrosion steel-plastic plate at each sampling time point; obtains the corrosion resistance of the fine steel anti-corrosion steel-plastic plate according to the change of the corrected corrosion degree of the fine steel anti-corrosion steel-plastic plate at different sampling time points; performs quality inspection on the fine steel anti-corrosion steel-plastic plate according to the corrosion resistance of the fine steel anti-corrosion steel-plastic plate; thereby reducing the influence of rust spots caused by material aging, so that the obtained corrosion resistance of the fine steel anti-corrosion steel-plastic plate is more accurate. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] 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.
[0035] Figure 1 A flowchart of the steps of a method for testing the corrosion resistance of a refined steel anti-corrosion steel plastic plate according to the present invention;
[0036] Figure 2 The present invention is a characteristic relationship flow chart of a method for testing the corrosion resistance of a refined steel anti-corrosion steel plastic plate. DETAILED DESCRIPTION
[0037] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the following is a detailed description of the method and system for testing the corrosion resistance of a fine steel anti-corrosion steel plastic plate proposed by the present invention, its specific implementation method, structure, features and effects, 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.
[0038] 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.
[0039] The specific scheme of the method and system for testing the corrosion resistance of fine steel anti-corrosion steel plastic plate provided by the present invention is described in detail below with reference to the accompanying drawings.
[0040] See also Figure 1 , which shows a flowchart of a method for testing the corrosion resistance of a fine steel anti-corrosion steel plastic plate provided by an embodiment of the present invention, the method comprising the following steps:
[0041] Step S001: Obtain grayscale images of the surface of the fine steel anti-corrosion steel plastic plate at several sampling moments at several sampling time points.
[0042] It should be noted that since high-quality steel anti-corrosion steel-plastic panels are usually used in steel mills, smelters and chemical plants, the air in these areas often contains a large amount of chloride ions. Therefore, the corrosion resistance of high-quality steel anti-corrosion steel-plastic panels can be tested using a solution containing chloride ions; the solution containing chloride ions is applied to the surface of the high-quality steel anti-corrosion steel-plastic panel, and the corrosion resistance of the high-quality steel anti-corrosion steel-plastic panel is obtained by observing the changes in the surface of the high-quality steel anti-corrosion steel-plastic panel at different time sequences.
[0043] Specifically, it is necessary to first collect grayscale images of the surface of the fine steel anti-corrosion steel plastic plate at several sampling time points and at several sampling moments. The specific process is as follows:
[0044] Pour the sodium chloride solution into a container made of polyethylene, and then completely immerse the fine steel anti-corrosion steel plastic plate sample in the chloride ion solution, and record the start time; ensure that the sample is in a fixed position in the solution to avoid floating or moving; take every other day as a sampling time point, and sample for a total of 30 days; at each sampling time point, take every 2 hours as a sampling moment, and at each sampling moment, take out the sample and use a high-definition digital camera to shoot the sample to obtain an image of the surface of the fine steel anti-corrosion steel plastic plate;
[0045] For the surface image of the steel anti-corrosion steel plastic plate at any sampling time point, median filtering denoising and grayscale operations are performed on it to obtain the surface grayscale image of the steel anti-corrosion steel plastic plate at the sampling time point.
[0046] Among them, median filtering and grayscale conversion are existing technologies, and will not be described in detail in this embodiment.
[0047] So far, the grayscale images of the surface of the refined steel anti-corrosion steel plastic plate at several sampling moments at several sampling time points are obtained through the above method.
[0048] Step S002: Obtain all rust spot areas in the grayscale image of the surface of the fine steel anti-corrosion steel-plastic plate at each sampling moment; obtain the distribution discreteness of the rust spot areas in the grayscale image of the surface of the fine steel anti-corrosion steel-plastic plate at each sampling moment according to the number and position distribution of the rust spot areas; obtain the degree of corrosion of the fine steel anti-corrosion steel-plastic plate at each sampling time point according to the distribution discreteness of the rust spot areas and the change in the area of each rust spot area in the grayscale image of the surface of the fine steel anti-corrosion steel-plastic plate at different sampling moments.
[0049] It should be noted that when the fine steel anti-corrosion steel-plastic plate is corroded, rust spots will appear on the surface of the fine steel anti-corrosion steel-plastic plate; that is, there will be a certain amount of rust spot areas in the surface image of the fine steel anti-corrosion steel-plastic plate; and the more rust spot areas, the larger the area, and the more discrete the distribution, the greater the degree of corrosion of the fine steel anti-corrosion steel-plastic plate.
[0050] Preferably, for the grayscale image of the surface of the refined steel anti-corrosion steel-plastic plate at any sampling moment at any sampling time point, the gradient image of the grayscale image of the surface of the refined steel anti-corrosion steel-plastic plate at the sampling moment is obtained, and the watershed segmentation algorithm is performed on the gradient image of the grayscale image of the surface of the refined steel anti-corrosion steel-plastic plate at the sampling moment to obtain multiple areas of the grayscale image of the surface of the refined steel anti-corrosion steel-plastic plate at the sampling moment, and each area is recorded as a rust spot area.
[0051] Among them, the watershed segmentation algorithm is a prior art and will not be described in detail in this embodiment.
[0052] 1. Obtain the distribution discreteness of the rust spot area in the grayscale image of the surface of the fine steel anti-corrosion steel-plastic plate at each sampling moment.
[0053] It should be noted that if in the grayscale image of the surface of the fine steel anti-corrosion steel-plastic plate, any rust spot area is far away from other rust spot areas, it means that the more discrete the distribution of the rust spot areas in the surface image of the fine steel anti-corrosion steel-plastic plate, the greater the degree of corrosion of the fine steel anti-corrosion steel-plastic plate.
[0054] Preferably, in some implementations of the embodiments of the present invention, according to the number and position distribution of the rust spot areas, the specific method for obtaining the distribution discreteness of the rust spot areas in the grayscale image of the surface of the fine steel anti-corrosion steel plastic plate at each sampling moment is:
[0055] For the surface gray-scale image of the corrosion-resistant steel-plastic plate made of fine steel at any sampling moment of any sampling time point, all the rusty spot regions in the surface gray-scale image of the corrosion-resistant steel-plastic plate made of fine steel at the sampling moment are combined pairwise arbitrarily to obtain a number of combinations of rusty spot regions;
[0056] For any combination of rusty spot regions, the Euclidean distance between the centroid position of the first rusty spot region and the centroid position of the second rusty spot region in the combination of rusty spot regions is denoted as the distribution dispersion factor of the combination of rusty spot regions;
[0057] The mean value of the distribution dispersion factors of all combinations of rusty spot regions is taken as the distribution dispersion of the rusty spot regions in the surface gray-scale image of the corrosion-resistant steel-plastic plate made of fine steel at the sampling moment;
[0058] The specific formula is:
[0059]
[0060] In the formula, represents the distribution dispersion of the rusty spot regions in the surface image of the corrosion-resistant steel-plastic plate made of fine steel; represents the number of all combinations of rusty spot regions in the surface image of the corrosion-resistant steel-plastic plate made of fine steel; represents the th distribution dispersion factor of the combination of rusty spot regions in the surface image of the corrosion-resistant steel-plastic plate made of fine steel.
[0061] Thus, the distribution dispersion of the rusty spot regions in the surface gray-scale image of the corrosion-resistant steel-plastic plate made of fine steel at each sampling moment is obtained.
[0062] 2. Obtain the degree of corrosion of the corrosion-resistant steel-plastic plate made of fine steel at each sampling time point.
[0063] It should be noted that if the corrosion effects of each rusty spot region in different images at the same sampling time point are more consistent, it indicates a problem with the corrosion resistance of the corrosion-resistant steel-plastic plate made of fine steel, rather than being caused by the uneven texture of the corrosion-resistant steel-plastic plate made of fine steel. Therefore, by analyzing the differences in the corrosion effects of each rusty spot region in different images at the same sampling time point, the degree of corrosion of the corrosion-resistant steel-plastic plate made of fine steel at this time point is obtained.
[0064] Preferably, in some implementation manners of the embodiments of the present invention, the specific method for obtaining the degree of corrosion of the corrosion-resistant steel-plastic plate made of fine steel at each sampling time point according to the distribution dispersion of the rusty spot regions and the area change of each rusty spot region in the surface gray-scale images of the corrosion-resistant steel-plastic plate made of fine steel at different sampling moments is as follows:
[0065] According to the area change of each rusty spot region in the surface gray-scale images of the corrosion-resistant steel-plastic plate made of fine steel at different sampling moments, obtain the corrosion rate consistency of each rusty spot region;
[0066] For any rust spot area in the grayscale image of the surface of the refined steel anti-corrosion steel-plastic plate at any sampling time point, the product of the corrosion rate consistency of the rust spot area and the number of all pixels in the rust spot area is recorded as the corrosion rate factor of the rust spot area; the cumulative sum of the corrosion rate factors of all rust spot areas in the grayscale image of the surface of the refined steel anti-corrosion steel-plastic plate at the sampling time is recorded as the corrosion rate degree of the refined steel anti-corrosion steel-plastic plate at the sampling time; the product of the corrosion rate degree of the refined steel anti-corrosion steel-plastic plate at the sampling time, the number of all rust spot areas in the grayscale image of the surface of the refined steel anti-corrosion steel-plastic plate at the sampling time, and the distribution discreteness of the rust spot areas in the grayscale image of the surface of the refined steel anti-corrosion steel-plastic plate at the sampling time is used as the corrosion factor of the refined steel anti-corrosion steel-plastic plate at the sampling time; the mean of the corrosion factors of the refined steel anti-corrosion steel-plastic plates at all sampling times at the sampling time point is used as the corrosion degree of the refined steel anti-corrosion steel-plastic plate at the sampling time point;
[0067] The specific formula is:
[0068]
[0069] In the formula, Indicates the degree of corrosion of the refined steel anti-corrosion steel plastic plate at the sampling time point; Indicates the number of all sampling moments at each sampling time point; Indicates The distribution discreteness of the rust spot area in the grayscale image of the surface of the fine steel anti-corrosion steel plastic plate at the sampling time; Indicates The number of rust spots in the grayscale image of the surface of the stainless steel anti-corrosion steel plastic plate at the sampling moment; Indicates The grayscale image of the surface of the fine steel anti-corrosion steel plastic plate at the sampling moment The number of all pixels in the rust spot area; Indicates The grayscale image of the surface of the steel anti-corrosion steel plastic plate at the sampling moment The corrosion rate consistency of the rust spot area.
[0070] It should be noted that represents the corrosion rate factor; Indicates the corrosion rate of the fine steel anti-corrosion steel plastic plate at the sampling time.
[0071] Preferably, in some implementations of the embodiments of the present invention, when the area changes of different rust spot regions in the images at adjacent sampling moments at the sampling time point are more consistent, it means that the corrosion rates of different rust spot regions are consistent, and the corrosion degree of the steel anti-corrosion steel-plastic plate is obtained more accurately. The specific method for obtaining the consistency of the corrosion rate of each rust spot region is:
[0072] The first The next acquisition time of the sampling time is recorded as The reference collection time of each collection time;
[0073] The first The grayscale image of the surface of the fine steel anti-corrosion steel plastic plate at the sampling moment The number of all pixels in the rust spot area is The grayscale image of the surface of the fine steel anti-corrosion steel plastic plate at the sampling moment The absolute value of the difference between the number of all pixels in the rust spot area is recorded as The grayscale image of the surface of the fine steel anti-corrosion steel plastic plate at the sampling moment The pixel number difference of the rust spot area; The grayscale image of the surface of the fine steel anti-corrosion steel plastic plate at the sampling moment The difference between the number of pixels in the rust spot area and the The grayscale image of the surface of the fine steel anti-corrosion steel plastic plate at the sampling moment The absolute value of the difference between the number of pixels in the rust spot area is recorded as The grayscale image of the surface of the fine steel anti-corrosion steel plastic plate at the sampling moment The corrosion rate consistency of each rust spot area;
[0074] The specific formula is:
[0075]
[0076] In the formula, Indicates The grayscale image of the surface of the fine steel anti-corrosion steel plastic plate at the sampling moment The corrosion rate consistency of each rust spot area; Indicates The grayscale image of the surface of the fine steel anti-corrosion steel plastic plate at the sampling moment The difference in the number of pixels in the rust spot area; Indicates The grayscale image of the surface of the fine steel anti-corrosion steel plastic plate at the sampling moment The difference in the number of pixels in the rust spot area; Indicates taking the absolute value.
[0077] At this point, the corrosion degree of the refined steel anti-corrosion steel-plastic plate at each sampling time point is obtained through the above method.
[0078] Step S003: According to the edge features of the edge pixels in the rust spot area, the edge fuzziness of the rust spot area is obtained; according to the edge fuzziness of the rust spot area, the corrosion degree of the fine steel anti-corrosion steel-plastic plate is corrected to obtain the corrected corrosion degree of the fine steel anti-corrosion steel-plastic plate at each sampling time point; according to the change of the corrected corrosion degree of the fine steel anti-corrosion steel-plastic plate at different sampling time points, the corrosion resistance of the fine steel anti-corrosion steel-plastic plate is obtained.
[0079] It should be noted that due to the aging and corrosion of the fine steel anti-corrosion steel-plastic plate, rust spots will appear on the surface of the fine steel anti-corrosion steel-plastic plate; however, the edges of the rust spots formed by solution corrosion are blurred; therefore, the degree of corrosion can be corrected according to the edge characteristics of the rust spot area to obtain the corrected corrosion degree of the fine steel anti-corrosion steel-plastic plate.
[0080] 1. Obtain the edge fuzziness of the rust spot area.
[0081] It should be noted that since the surface of the rust spot area may become dented, pitted or peeled off over time, showing irregular fuzzy edges, the degree of edge expression of each edge pixel point can be obtained based on the difference in gradient direction and grayscale value between each edge point and its nearest edge point, thereby obtaining the edge fuzziness of the rust spot area.
[0082] Preferably, in some implementations of the embodiments of the present invention, the specific method for obtaining the edge fuzziness of the rust spot area according to the edge features of the edge pixels in the rust spot area is:
[0083] For any rust spot area in the grayscale image of the surface of the fine steel anti-corrosion steel plastic plate at any sampling time point, the Canny edge detection algorithm is used to obtain all edge pixels in each rust spot area;
[0084] Get the first edge pixels except the The Euclidean distance between each edge pixel except the edge pixels, and the edge pixel corresponding to the minimum Euclidean distance is recorded as the The nearest edge point of edge pixels;
[0085] According to The difference in gradient direction and grayscale value between the edge pixel and its nearest edge point is used to obtain the The edge representation degree of each edge pixel point is calculated; the variance of the edge representation degree of all edge pixels in the rust spot area is used as the edge fuzziness of the rust spot area;
[0086] The specific formula is:
[0087]
[0088]
[0089] In the formula, Indicates the edge fuzziness of the rust spot area; The first The degree of edge representation of edge pixels; Represents the number of all edge pixels in the rust spot area; Represents the average value of the edge performance of all edge pixels in the rust spot area; Indicates The difference in gradient direction between an edge pixel and its nearest edge point; Indicates The grayscale value difference between an edge pixel and its nearest edge point.
[0090] Among them, the Canny edge detection algorithm is an existing technology and will not be described in detail in this embodiment.
[0091] At this point, the edge fuzziness of the rust spot area is obtained.
[0092] 2. Obtain the corrected corrosion degree of the fine steel anti-corrosion steel plastic plate at each sampling time point.
[0093] It should be noted that the edges of the rust spots formed by solution corrosion present fuzzy features; therefore, the degree of corrosion can be corrected by the fuzziness of the edges of the rust spots to obtain the corrected degree of corrosion of the refined steel anti-corrosion steel-plastic plate.
[0094] Preferably, in some implementations of the embodiments of the present invention, the corrosion degree of the fine steel anti-corrosion steel-plastic plate is corrected according to the edge fuzziness of the rust spot area, and the specific method for obtaining the corrected corrosion degree of the fine steel anti-corrosion steel-plastic plate at each sampling time point is:
[0095] For any sampling time point, the average of the edge fuzziness of all rust spot areas in the grayscale image of the surface of the fine steel anti-corrosion steel plastic plate at all sampling moments at the sampling time point is recorded as the correction factor; the normalized value of the product of the correction factor and the degree of corrosion of the fine steel anti-corrosion steel plastic plate at the sampling time point is used as the corrected degree of corrosion of the fine steel anti-corrosion steel plastic plate at the sampling time point;
[0096] The specific formula is:
[0097]
[0098] In the formula, Indicates the corrected corrosion degree of the fine steel anti-corrosion steel plastic plate at the sampling time point; Indicates the number of all sampling moments at each sampling time point; Indicates The number of rust spots in the grayscale image of the surface of the stainless steel anti-corrosion steel plastic plate at the sampling moment; Indicates The grayscale image of the surface of the fine steel anti-corrosion steel plastic plate at the sampling moment The edge fuzziness of each rust spot area; Indicates the degree of corrosion of the refined steel anti-corrosion steel plastic plate at the sampling time point; represents the linear normalization function.
[0099] At this point, the corrected corrosion degree of the refined steel anti-corrosion steel-plastic plate at each sampling time point is obtained.
[0100] 3. Obtain the anti-corrosion properties of fine steel anti-corrosion steel plastic plate.
[0101] It should be noted that the normal performance of the corrosion resistance of fine steel anti-corrosion steel-plastic plates in the time series should be: the initial corrosion rate is low, and the degree of corrosion gradually increases with the passage of time; therefore, when obtaining the corrosion resistance of fine steel anti-corrosion steel-plastic plates, the earlier the sampling time point, the greater the weight should be given to the corrected corrosion degree.
[0102] Preferably, in some implementations of the embodiments of the present invention, according to the change of the corrected corrosion degree of the fine steel anti-corrosion steel plastic plate at different sampling time points, the specific method for obtaining the corrosion resistance of the fine steel anti-corrosion steel plastic plate is:
[0103] For any sampling time point, the ratio of the corrected corrosion degree of the fine steel anti-corrosion steel plastic plate at the sampling time point to the sampling time point is recorded as the anti-corrosion factor at the sampling time point; the inverse proportional value of the cumulative sum of the anti-corrosion factors at all sampling time points is taken as the anti-corrosion performance of the fine steel anti-corrosion steel plastic plate;
[0104] The specific formula is:
[0105] In the formula, Indicates the corrosion resistance of steel anti-corrosion steel plastic plate; Represents the total number of all sampling time points; Indicates Sampling time points; Indicates Corrected corrosion degree of steel anti-corrosion steel plastic plate at each sampling time point; Represents an exponential function with a natural constant as base.
[0106] So far, the corrosion resistance of the refined steel anti-corrosion steel-plastic plate is obtained through the above method.
[0107] Step S004: Perform quality inspection on the fine steel anti-corrosion steel plastic plate according to its anti-corrosion performance.
[0108] Preset a parameter threshold , wherein this embodiment is based on This example is described as an example, and this embodiment is not specifically limited. Depends on the specific implementation situation;
[0109] If the corrosion resistance of the fine steel anti-corrosion steel plastic plate is greater than or equal to the parameter threshold , the corrosion resistance of the fine steel anti-corrosion steel-plastic plate will be recorded as qualified.
[0110] See also Figure 2 , which shows a characteristic relationship flow chart of a test of the corrosion resistance of a refined steel anti-corrosion steel plastic plate;
[0111] Through the above steps, a method for testing the corrosion resistance of fine steel anti-corrosion steel-plastic plate is completed.
[0112] The present invention also proposes a system for testing the corrosion resistance of fine steel anti-corrosion steel-plastic plates, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements steps S001 to S004 of a method for testing the corrosion resistance of fine steel anti-corrosion steel-plastic plates when executing the computer program.
[0113] 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. A method for testing the corrosion resistance of fine steel anti-corrosion steel plastic plate, characterized in that: The method comprises the following steps: Obtain grayscale images of the surface of the refined steel anti-corrosion steel plastic plate at several sampling time points and at several sampling moments; Obtain all rust spots in the grayscale image of the surface of the steel anti-corrosion steel-plastic plate at each sampling moment; obtain the distribution discreteness of the rust spots in the grayscale image of the surface of the steel anti-corrosion steel-plastic plate at each sampling moment according to the number and position distribution of the rust spots; obtain the degree of corrosion of the steel anti-corrosion steel-plastic plate at each sampling time point according to the distribution discreteness of the rust spots and the change in the area of each rust spot in the grayscale image of the surface of the steel anti-corrosion steel-plastic plate at different sampling moments; According to the edge features of the edge pixels in the rust spot area, the edge fuzziness of the rust spot area is obtained; according to the edge fuzziness of the rust spot area, the corrosion degree of the fine steel anti-corrosion steel-plastic plate is corrected to obtain the corrected corrosion degree of the fine steel anti-corrosion steel-plastic plate at each sampling time point; according to the change of the corrected corrosion degree of the fine steel anti-corrosion steel-plastic plate at different sampling time points, the corrosion resistance of the fine steel anti-corrosion steel-plastic plate is obtained; Conduct quality inspection on the fine steel anti-corrosion plastic plate according to its anti-corrosion performance; The method of obtaining the edge fuzziness of the rust spot area according to the edge features of the edge pixels in the rust spot area includes: For any rust spot area in the grayscale image of the surface of the fine steel anti-corrosion steel plastic plate at any sampling time point, the Canny edge detection algorithm is used to obtain all edge pixels in each rust spot area; Get the first edge pixels except the The Euclidean distance between each edge pixel except the edge pixels, and the edge pixel corresponding to the minimum Euclidean distance is recorded as the The nearest edge point of edge pixels; According to The difference in gradient direction and grayscale value between the edge pixel and its nearest edge point is used to obtain the The edge representation degree of each edge pixel point is calculated; and the variance of the edge representation degree of all edge pixels in the rust spot area is used as the edge fuzziness of the rust spot area.
2. According to the method for testing the corrosion resistance of refined steel anti-corrosion steel plastic plate according to claim 1, it is characterized in that: The specific method of obtaining all rust spots in the grayscale image of the surface of the fine steel anti-corrosion steel plastic plate at each sampling moment includes: For the grayscale image of the surface of the refined steel anti-corrosion steel-plastic plate at any sampling moment under any sampling time point, obtain the gradient image of the grayscale image of the surface of the refined steel anti-corrosion steel-plastic plate at the sampling moment, perform a watershed segmentation algorithm on the gradient image of the grayscale image of the surface of the refined steel anti-corrosion steel-plastic plate at the sampling moment, and obtain multiple areas of the grayscale image of the surface of the refined steel anti-corrosion steel-plastic plate at the sampling moment, and record each area as a rust spot area.
3. According to the method for testing the corrosion resistance of fine steel anti-corrosion steel plastic plate according to claim 1, it is characterized in that: The specific method of obtaining the distribution discreteness of the rust spot area in the grayscale image of the surface of the fine steel anti-corrosion steel plastic plate at each sampling moment according to the number and position distribution of the rust spot area includes: For a grayscale image of the surface of a refined steel anti-corrosion steel-plastic plate at any sampling time point, all rust spot areas in the grayscale image of the surface of the refined steel anti-corrosion steel-plastic plate at the sampling time point are arbitrarily combined in pairs to obtain a number of rust spot area combinations; For any rust spot area combination, the Euclidean distance between the centroid position of the first rust spot area and the centroid position of the second rust spot area in the rust spot area combination is recorded as the distribution discrete factor of the rust spot area combination; The mean value of the distribution discrete factors of all rust spot area combinations is used as the distribution discreteness of the rust spot area in the grayscale image of the surface of the refined steel anti-corrosion steel plastic plate at the sampling moment.
4. According to the method for testing the corrosion resistance of refined steel anti-corrosion steel plastic plate according to claim 1, it is characterized in that: According to the distribution discreteness of the rust spot area and the area change of each rust spot area in the grayscale image of the surface of the fine steel anti-corrosion steel-plastic plate at different sampling times, the corrosion degree of the fine steel anti-corrosion steel-plastic plate at each sampling time point is obtained, and the specific method includes: According to the area change of each rust spot area in the grayscale image of the surface of the fine steel anti-corrosion steel plastic plate at different sampling times, the corrosion rate consistency of each rust spot area is obtained; For any rust spot area in the grayscale image of the surface of the refined steel anti-corrosion steel-plastic plate at any sampling moment at any sampling time point, the product of the corrosion rate consistency of the rust spot area and the number of all pixels in the rust spot area is recorded as the corrosion rate factor of the rust spot area; the cumulative sum of the corrosion rate factors of all rust spot areas in the grayscale image of the surface of the refined steel anti-corrosion steel-plastic plate at the sampling moment is recorded as the corrosion rate degree of the refined steel anti-corrosion steel-plastic plate at the sampling moment; the product of the corrosion rate degree of the refined steel anti-corrosion steel-plastic plate at the sampling moment, the number of all rust spot areas in the grayscale image of the surface of the refined steel anti-corrosion steel-plastic plate at the sampling moment, and the distribution discreteness of the rust spot areas in the grayscale image of the surface of the refined steel anti-corrosion steel-plastic plate at the sampling moment is used as the corrosion factor of the refined steel anti-corrosion steel-plastic plate at the sampling moment; the mean of the corrosion factors of the refined steel anti-corrosion steel-plastic plates at all sampling moments at the sampling time point is used as the corrosion degree of the refined steel anti-corrosion steel-plastic plate at the sampling time point.
5. According to claim 4, a method for testing the corrosion resistance of fine steel anti-corrosion steel plastic plate is characterized in that: The specific method of obtaining the consistency of the corrosion rate of each rust spot area includes: The first The next acquisition time of the sampling time is recorded as The reference collection time of each collection time; The first The grayscale image of the surface of the fine steel anti-corrosion steel plastic plate at the sampling moment The number of all pixels in the rust spot area is The grayscale image of the surface of the fine steel anti-corrosion steel plastic plate at the sampling moment The absolute value of the difference between the number of all pixels in the rust spot area is recorded as The grayscale image of the surface of the fine steel anti-corrosion steel plastic plate at the sampling moment The pixel number difference of the rust spot area; The grayscale image of the surface of the fine steel anti-corrosion steel plastic plate at the sampling moment The difference between the number of pixels in the rust spot area and the The grayscale image of the surface of the fine steel anti-corrosion steel plastic plate at the sampling moment The absolute value of the difference between the number of pixels in the rust spot area is recorded as The grayscale image of the surface of the fine steel anti-corrosion steel plastic plate at the sampling moment The corrosion rate consistency of the rust spot area.
6. According to the method for testing the corrosion resistance of refined steel anti-corrosion steel plastic plate in claim 1, it is characterized in that: The method of correcting the corrosion degree of the fine steel anti-corrosion steel-plastic plate according to the edge fuzziness of the rust spot area to obtain the corrected corrosion degree of the fine steel anti-corrosion steel-plastic plate at each sampling time point includes: For any sampling time point, the average value of the edge fuzziness of all rust spot areas in the grayscale image of the surface of the refined steel anti-corrosion steel plastic plate at all sampling moments at the sampling time point is recorded as the correction factor; The normalized value of the product of the correction factor and the corrosion degree of the fine steel anti-corrosion steel-plastic plate at the sampling time point is used as the corrected corrosion degree of the fine steel anti-corrosion steel-plastic plate at the sampling time point.
7. According to claim 1, a method for testing the corrosion resistance of fine steel anti-corrosion steel plastic plate is characterized in that: The method of obtaining the corrosion resistance of the fine steel anti-corrosion steel plastic plate according to the change of the corrected corrosion degree of the fine steel anti-corrosion steel plastic plate at different sampling time points includes the following specific methods: For any sampling time point, the ratio of the corrected corrosion degree of the fine steel anti-corrosion steel-plastic plate at the sampling time point to the sampling time point is recorded as the anti-corrosion factor at the sampling time point; the inverse proportional value of the cumulative sum of the anti-corrosion factors of all sampling time points is taken as the anti-corrosion performance of the fine steel anti-corrosion steel-plastic plate.
8. According to claim 1, a method for testing the corrosion resistance of fine steel anti-corrosion steel plastic plate is characterized in that: The quality inspection of the fine steel anti-corrosion steel plastic plate according to the anti-corrosion performance of the fine steel anti-corrosion steel plastic plate includes the following specific methods: Preset a parameter threshold If the corrosion resistance of the fine steel anti-corrosion steel plastic plate is greater than or equal to the parameter threshold , the corrosion resistance of the fine steel anti-corrosion steel-plastic plate will be recorded as qualified.
9. A corrosion resistance test system for fine steel anti-corrosion steel plastic plate, comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that: When the processor executes the computer program, the steps of a method for testing the corrosion resistance of fine steel anti-corrosion steel plastic plate as described in any one of claims 1-8 are implemented.
Citation Information
Patent Citations
Metal or coating corrosion detection method based on image processing technology
CN111028229A
Stainless steel product surface quality detection method
CN115060754A