Laser cleaning power optimization adjusting method
By grayscale and depth estimation of the stainless steel surface image, the laser cleaning power is dynamically adjusted, which solves the problem of poor results caused by fixed power in laser cleaning technology and achieves a more effective cleaning effect.
Patent Information
- Application Number
- CN202411035334.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-31
- Publication Date
- 2024-09-06
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Due to the fixed laser power, the existing laser cleaning technology cannot automatically adjust according to the distribution of oxide layer and dirt on the stainless steel surface, resulting in poor cleaning effect or risk of ablation.
By collecting the stainless steel surface image after laser cleaning, grayscale processing and monocular depth estimation are performed to obtain the smooth feature value and depth change difference value of the pixel points. Combined with the depth change difference degrees of different rows in the grayscale image, the laser is dynamically adjusted. Cleaning power to optimize cleaning results.
It is possible to dynamically adjust the laser cleaning power according to the specific conditions of the stainless steel surface, avoiding the risk of incomplete cleaning and ablation, and ensuring a clean and smooth surface.
Smart Images

Figure CN118595082A
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of laser cleaning regulation, and in particular to a method for optimizing and regulating laser cleaning power. Background Art
[0002] Laser cleaning has the advantages of low environmental pollution, high cleaning integrity and non-contact. Laser cleaning can be used to clean the oxide layer and dirt on the surface of stainless steel. High-energy laser is used to irradiate the surface of stainless steel, so that the oxide layer and dirt on the surface of stainless steel are melted and vaporized by heat and separated from the surface of stainless steel. At the same time, vibration is generated to further clean the surface of stainless steel, so as to achieve the purpose of cleaning the surface of stainless steel. The effect of using laser cleaning to clean the surface of stainless steel is affected by the laser power. When the actual cleaning power is lower than the cleaning power required for the oxide layer and dirt on the surface of stainless steel, the oxide layer and dirt on the surface of stainless steel cannot be completely cleaned; when the actual cleaning power is higher than the cleaning power required for the oxide layer and dirt on the surface of stainless steel, there is a risk of ablating the surface of stainless steel.
[0003] However, the oxide layer and dirt on the surface of stainless steel are not evenly distributed. The existing laser cleaning of the oxide layer and dirt on the surface of stainless steel often relies on preset power parameters, that is, the laser power of laser cleaning is fixed, and the laser power cannot be automatically adjusted according to the distribution of the oxide layer and dirt on the surface of the stainless steel, which often leads to incomplete laser cleaning of the stainless steel surface or ablation. Summary of the invention
[0004] The present invention provides a method for optimizing and adjusting laser cleaning power to solve the problem of poor laser cleaning effect caused by fixed laser power in laser cleaning of rusted steel surface. The technical solution adopted is as follows: An embodiment of the present invention provides a method for optimizing and adjusting laser cleaning power, the method comprising the following steps: Collecting the stainless steel surface image after laser cleaning, and graying the stainless steel surface image to obtain the stainless steel surface grayscale image; Any pixel point in the grayscale image of the stainless steel surface is recorded as a target pixel point, and a smooth feature value of the target pixel point is obtained according to the data distribution of the grayscale value in the local area of the target pixel point and the distribution of high-frequency information and low-frequency information in the local area of the target pixel point; Perform monocular depth estimation on the stainless steel surface image to obtain depth estimation values of all pixels, record the row where the target pixel is located as the target row, obtain the depth change difference value of the target pixel based on the difference and data distribution between the depth estimation values of adjacent pixels in the target row, and the smooth characteristic value of the target pixel, and obtain the laser cleaning efficiency characteristic value of the target row based on the similarity of the depth change difference values of the pixels contained in different image rows in the grayscale image of the rusty steel surface and the data distribution of the depth change difference values of all pixels contained in the target row; The laser cleaning power is adjusted according to the laser cleaning efficiency characteristic values of all image rows in the grayscale image of the rusted steel surface.
[0005] Further, the method of obtaining the smooth feature value of the target pixel point according to the data distribution of the grayscale value in the local area of the target pixel point and the distribution of the high-frequency information and the low-frequency information in the local area of the target pixel point includes the following specific methods: A feature window with a target pixel as the central pixel and a preset window side length is recorded as the feature window of the target pixel, a grayscale histogram of the target pixel is established according to the grayscale values of all pixels included in the feature window of the target pixel, and the kurtosis of the grayscale histogram of the target pixel is recorded as the kurtosis characteristic value of the target pixel; According to the distribution of high-frequency information and low-frequency information in the local area of the target pixel and the kurtosis eigenvalue of the target pixel, the smooth eigenvalue of the target pixel is obtained.
[0006] Further, the method of obtaining the smooth eigenvalue of the target pixel point according to the distribution of the high-frequency information and the low-frequency information in the local area of the target pixel point and the kurtosis eigenvalue of the target pixel point includes the following specific methods: Obtain the two-dimensional spectrum graph corresponding to the feature window of the target pixel point, take the center position of the two-dimensional spectrum graph as the coordinate origin, take the horizontal right direction as the positive direction of the x-axis, and take the vertical upward direction as the positive direction of the y-axis to establish a plane rectangular coordinate system; For any pixel point in the two-dimensional spectrum graph, the product of the Manhattan distance between the pixel point and the coordinate origin of the plane rectangular coordinate system and the amplitude of the pixel point is recorded as the information feature value of the pixel point, and the cumulative sum of the information feature values of all pixels in the two-dimensional spectrum graph is recorded as the high-frequency information significance of the target pixel point; According to the kurtosis eigenvalue and high-frequency information significance of the target pixel, the smooth eigenvalue of the target pixel is obtained.
[0007] Further, the method of obtaining the smooth eigenvalue of the target pixel point according to the kurtosis eigenvalue of the target pixel point and the significance of the high-frequency information includes the following specific methods: The ratio of the kurtosis eigenvalue of the target pixel to the significance of the high-frequency information is recorded as the smooth eigenvalue of the target pixel.
[0008] Further, the depth change difference value of the target pixel is obtained according to the difference and data distribution between the depth estimation values of adjacent pixels in the target row and the smooth characteristic value of the target pixel, including the specific method of: The absolute value of the difference between the depth estimation value of the target pixel and the depth estimation value of the pixel adjacent to the left of the target pixel is recorded as the absolute value of the change of the target pixel; The depth change difference value of the target pixel is obtained according to the absolute value of the change and the smooth eigenvalue of the target pixel and the data distribution of the depth estimation values of all pixels in the target row.
[0009] Further, the depth change difference value of the target pixel is obtained according to the absolute value of the change and the smooth characteristic value of the target pixel, and the data distribution of the depth estimation values of all the pixels in the target row, including the specific method of: Record the mean of the depth estimation values of all pixels in the target row as the first mean of the target pixel, record the absolute value of the difference between the depth estimation value of the target pixel and the first mean as the first difference of the target pixel, and record the sum of the first difference of the target pixel and the absolute value of the change as the first sum of the target pixel; The ratio of the first sum value of the target pixel to the smooth eigenvalue is recorded as the depth change difference value of the target pixel.
[0010] Further, the laser cleaning efficiency characteristic value of the target row is obtained according to the similarity of the depth change difference values of the pixels contained in different image rows in the grayscale image of the rusted steel surface and the data distribution of the depth change difference values of all the pixels contained in the target row, including the specific method of: Arrange the depth change difference values of all pixels in the same image row in the grayscale image of the rusted steel surface according to the arrangement order of the pixels to obtain a depth change difference value sequence of the same image row; The sum of the absolute values of the similarities between the depth change difference value sequences of the target row and all other image rows in the grayscale image of the stainless steel surface is recorded as the cleaning similarity of the target row; According to the data distribution of the depth change difference values of all pixels included in the target row and the cleaning similarity of the target row, the laser cleaning efficiency characteristic value of the target row is obtained.
[0011] Further, the laser cleaning efficiency characteristic value of the target row is obtained according to the data distribution of the depth change difference values of all pixels included in the target row and the cleaning similarity of the target row, including the specific method of: The sum of the mean and standard deviation of the depth change difference values of all pixels included in the target row is recorded as the second sum value of the target row; The ratio of the cleaning similarity of the target row to the second sum value is recorded as the laser cleaning efficiency characteristic value of the target row.
[0012] Furthermore, the laser cleaning power is adjusted according to the laser cleaning efficiency characteristic values of all image rows in the grayscale image of the rusted steel surface, including the specific method of: The average of the normalized values of the laser cleaning efficiency characteristic values of all image rows in the grayscale image of the rusted steel surface is recorded as the cleaning effect evaluation characteristic value of the grayscale image of the rusted steel surface; When the cleaning effect evaluation characteristic value of the grayscale image of the rusted steel surface is greater than or equal to the preset comparison threshold, the power of the laser cleaning is not adjusted; when the cleaning effect evaluation characteristic value of the grayscale image of the rusted steel surface is less than the preset comparison threshold, the power of the laser cleaning is adjusted.
[0013] Furthermore, the power of the laser cleaning is adjusted, including the specific method of: When the average of the depth estimation values of all pixels in the grayscale image of the stainless steel surface is greater than or equal to the distance between the CMOS camera and the stainless steel surface, the power of the laser cleaning is reduced; When the mean of the depth estimation values of all pixels in the grayscale image of the stainless steel surface is smaller than the distance between the CMOS camera and the stainless steel surface, the power of the laser cleaning is increased; Among them, the adjustment value of the laser cleaning power is , Z is the cleaning effect evaluation characteristic value of the grayscale image of the rusted steel surface; is a preset comparison threshold; is the rounding function.
[0014] The beneficial effects of the present invention are: According to the present invention, both the pollutants that are not cleaned clean and the damage caused by excessive cleaning force will cause the stainless steel surface to show obvious gullies and stripes, but the cleaned stainless steel surface is smooth and clean. According to the data distribution of grayscale values in the local area of the target pixel point and the distribution of high-frequency information and low-frequency information in the local area of the target pixel point, the significance of the gullies and stripes presented in the local area of the target pixel point is evaluated, and the smooth characteristic value of the target pixel point is obtained; then, the image of the stainless steel surface after laser cleaning is performed with a monocular depth estimation to obtain the depth estimation value of each pixel point. The depth estimation value of the pixel point is the distance between the pixel point position and the camera position, which can characterize the local convexity and local concave condition of the pixel point position. According to the two situations that the pollutants on the stainless steel surface are not cleaned clean and the stainless steel surface is damaged due to excessive cleaning force, the local convexity and local concave condition of the pixel point position are respectively obtained. The characteristics of protrusions and local depressions are determined. According to the difference and data distribution between the depth estimation values of adjacent pixels in the target row and the smooth characteristic value of the target pixel, the depth change difference value of the target pixel is obtained. Furthermore, combined with the characteristics of laser cleaning that is performed row by row, the cleaning effect difference of different rows is evaluated. According to the similarity of the depth change difference values of the pixels contained in different image rows in the grayscale image of the rusty steel surface and the data distribution of the depth change difference values of all pixels contained in the target row, the laser cleaning efficiency characteristic value of the target row is obtained, and the cleaning effect of the stainless steel corresponding to the target row of the grayscale image of the rusty steel surface is obtained. Finally, the laser cleaning power is adjusted according to the laser cleaning efficiency characteristic values of all image rows in the grayscale image of the rusty steel surface, so as to solve the problem of poor laser cleaning effect caused by fixed laser power in laser cleaning of the rusty steel surface. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] 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 labor.
[0016] Figure 1 A schematic diagram of a process flow of a laser cleaning power optimization adjustment method provided by an embodiment of the present invention; Figure 2 A flowchart for obtaining characteristic values for cleaning effect evaluation provided by one embodiment of the present invention. DETAILED DESCRIPTION
[0017] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0018] See also Figure 1 , which shows a flow chart of a laser cleaning power optimization adjustment method provided by an embodiment of the present invention, the method comprising the following steps: Step S001, collecting an image of the stainless steel surface after laser cleaning, and graying the stainless steel surface image to obtain a grayscale image of the stainless steel surface.
[0019] Laser cleaning of stainless steel surface means irradiating the stainless steel surface with laser in the form of linear beam. When the irradiator scans the stainless steel surface, the laser cleaning operation is completed. Stainless steel is the base material for laser cleaning.
[0020] A CMOS camera is used to photograph the stainless steel surface after a laser cleaning operation to obtain a stainless steel surface image, which is an RGB image.
[0021] In order to improve the image quality and reduce the interference of noise on subsequent analysis, the stainless steel surface image is converted into a grayscale image, and the grayscale image is denoised using Gaussian filtering to obtain the stainless steel surface grayscale image.
[0022] Step S002: record any pixel in the grayscale image of the stainless steel surface as a target pixel, and obtain a smooth feature value of the target pixel according to the data distribution of the grayscale value in the local area of the target pixel and the distribution of high-frequency information and low-frequency information in the local area of the target pixel.
[0023] The contaminants are firmly adsorbed on the surface of stainless steel, and the oxide layer is fixed on the surface of stainless steel. During the laser cleaning process, the laser irradiates the stainless steel surface to absorb the laser energy. The oxide layer and contaminants are affected by the transient thermal effect of the laser and expand outward due to the heat. When the expansion force is greater than the adsorption force, the oxide layer and contaminants escape from the stainless steel surface, that is, the oxide layer and contaminants are cleaned by the laser. During the laser cleaning process, the adsorption force of contaminants at different positions is different. The adsorption force of some contaminants is larger and more difficult to remove. When the adsorption force of the contaminants is significantly greater than the expansion force generated by laser cleaning, the contaminants cannot be completely cleaned. When the adsorption force of the contaminants is significantly smaller than the expansion force generated by laser cleaning, laser irradiation may damage the stainless steel surface and cause ablation defects. Therefore, the stainless steel surface cleaned by laser may contain contaminants that are not completely cleaned, damage caused by excessive cleaning force, and stainless steel surface that is normally cleaned.
[0024] Among them, the pollutants on the surface of stainless steel include grease, rust, solder joints, oxide layers, etc. The surface of these pollutants is dull, rough and uneven, with obvious grooves and stripes. Damage caused by excessive cleaning force will also cause obvious grooves and stripes on the surface of stainless steel. The surface of stainless steel that is cleaned normally has a metallic luster, is smooth and clean. Therefore, the stainless steel cleaning effect corresponding to the grayscale image of the stainless steel surface can be evaluated according to the roughness and texture distribution characteristics of the stainless steel surface.
[0025] Any pixel point in the grayscale image of the stainless steel surface is recorded as a target pixel point. This embodiment is described by taking any pixel point in the grayscale image of the stainless steel surface as an example.
[0026] According to the data distribution of the grayscale value in the local area of the target pixel, the kurtosis characteristic value of the target pixel is obtained.
[0027] Taking the target pixel as the central pixel, a feature window with a preset window side length is established to obtain the feature window of the target pixel. A grayscale histogram of the target pixel is established according to the grayscale values of all pixels contained in the feature window of the target pixel, wherein the number of different grayscale values contained in all grayscale values is set as the number of bins of the grayscale histogram. The kurtosis of the grayscale histogram of the target pixel is recorded as the kurtosis characteristic value of the target pixel.
[0028] Among them, in this embodiment, the value of the preset window side length is 11. The implementer can also select an odd number greater than or equal to 3 as the value of the preset window side length as needed, and this application does not make any special restrictions; it should be noted that when there are missing pixels in the feature window of the target pixel point, the mirror filling technology is used to supplement the missing pixels. The use of mirror filling technology to supplement the missing pixels is a well-known technology and will not be repeated; establishing a grayscale histogram and calculating the kurtosis of the grayscale histogram are both well-known technologies and will not be repeated.
[0029] When the gray value distribution of all pixels contained in the feature window of the target pixel is more concentrated, the kurtosis eigenvalue of the target pixel is larger. At this time, the area near the target pixel is relatively smooth without obvious gully stripes, and the target pixel is more likely to correspond to a normally cleaned stainless steel surface.
[0030] According to the distribution of high-frequency information and low-frequency information in the local area of the target pixel, the saliency of the high-frequency information of the target pixel is obtained.
[0031] The two-dimensional Fourier transform technology is used to obtain the two-dimensional spectrum corresponding to the feature window of the target pixel. The center position in the two-dimensional spectrum corresponds to low-frequency information, and the edge position in the two-dimensional spectrum corresponds to high-frequency information. From the center position to the edge position in the two-dimensional spectrum, the information represented is transformed from low-frequency information to high-frequency information. In the two-dimensional spectrum, the amplitude of each position corresponds to the amount of information at this position. The larger the amplitude, the greater the amount of information at the position corresponding to the amplitude.
[0032] A plane rectangular coordinate system is established with the center of the two-dimensional spectrum as the origin of the coordinates, the horizontal right direction as the positive direction of the x-axis, and the vertical upward direction as the positive direction of the y-axis. For any pixel point in the two-dimensional spectrum, the product of the Manhattan distance between the pixel point and the origin of the coordinate system of the plane rectangular coordinate system and the amplitude of the pixel point is recorded as the information feature value of the pixel point, and the cumulative sum of the information feature values of all the pixels in the two-dimensional spectrum is recorded as the high-frequency information significance of the target pixel point.
[0033] When the contaminants on the stainless steel surface are not cleaned or the cleaning force is too strong and damage occurs, the stainless steel surface will show obvious gullies and stripes. When the high-frequency information significance of the target pixel is smaller, the gray value of the pixel in the feature window of the target pixel changes less, the gullies and stripes in the feature window of the target pixel are less obvious, and the target pixel corresponds to a normally cleaned stainless steel surface. The greater the possibility.
[0034] According to the kurtosis eigenvalue and high-frequency information significance of the target pixel, the smooth eigenvalue of the target pixel is obtained.
[0035] The ratio of the kurtosis eigenvalue of the target pixel to the significance of the high-frequency information is recorded as the smooth eigenvalue of the target pixel. The calculation formula of the smooth eigenvalue of the target pixel is: In the formula, Represents the smooth eigenvalue of the target pixel i; Represents the kurtosis eigenvalue of the target pixel i; Indicates the saliency of high-frequency information of the target pixel.
[0036] When the kurtosis eigenvalue of the target pixel is larger, the high-frequency information significance of the target pixel is smaller, and the smoothness eigenvalue of the target pixel is larger, at this time, the gray value of the pixel in the feature window of the target pixel changes less, the gully stripes in the feature window of the target pixel are less obvious, and the target pixel corresponds to a normally cleaned stainless steel surface. The greater the possibility.
[0037] The same method can be used to obtain the smooth eigenvalue of any pixel in the grayscale image of the stainless steel surface. That is, each pixel in the grayscale image of the stainless steel surface has a corresponding smooth eigenvalue.
[0038] At this point, the smooth feature value of each pixel in the grayscale image of the stainless steel surface is obtained.
[0039] Step S003, perform monocular depth estimation on the stainless steel surface image, obtain depth estimation values of all pixels, record the row where the target pixel is located as the target row, and obtain the depth change difference value of the target pixel based on the difference and data distribution between the depth estimation values of adjacent pixels in the target row and the smooth eigenvalue of the target pixel. According to the similarity of the depth change difference values of the pixels contained in different image rows in the grayscale image of the rusty steel surface and the data distribution of the depth change difference values of all pixels contained in the target row, obtain the laser cleaning efficiency characteristic value of the target row.
[0040] Furthermore, when the contaminants on the stainless steel surface are not cleaned, some contaminants are still attached to the stainless steel surface, which will cause local protrusions on the stainless steel surface; when the cleaning force is too strong and causes damage to the stainless steel surface, the damaged position is a concave position relative to the stainless steel surface. Therefore, the two situations of the contaminants on the stainless steel surface not being cleaned and the stainless steel surface being damaged due to excessive cleaning force correspond to local protrusions and local depressions, respectively, and these two situations can be distinguished based on the depth characteristics.
[0041] The DORN (Deep Ordinal Regression Network) neural network is used to perform monocular depth estimation on the stainless steel surface image to obtain the depth estimation value of each pixel.
[0042] Among them, the loss function of the DORN (Deep Ordinal Regression Network) neural network is the ordinal regression loss, the optimizer adopts Adam, and the process of using the DORN (Deep Ordinal Regression Network) neural network to perform monocular depth estimation and obtain the depth estimation value is a well-known technology and will not be repeated here.
[0043] The absolute value of the difference between the depth estimation value of the target pixel and the depth estimation value of the pixel adjacent to the left of the target pixel is recorded as the absolute value of the change of the target pixel.
[0044] When the pixel point adjacent to the left side of the target pixel point does not exist, the missing value is filled using the mean filling method. Using the mean filling method to fill the missing value is a well-known technology and will not be described in detail.
[0045] Since laser cleaning is performed by scanning and cleaning line by line through a linear beam, the depth estimation value of the target pixel is compared with the depth estimation value of the pixel adjacent to the left of the target pixel to obtain the absolute value of the change of the target pixel. When the absolute value of the change of the target pixel is larger, the depth estimation value of the target pixel position changes more, so the position of the target pixel is more likely to be at the depth change position of the convex or concave position on the stainless steel surface.
[0046] The depth change difference value of the target pixel is obtained based on the absolute value of the change and the smooth eigenvalue of the target pixel and the data distribution of the depth estimation values of all pixels in the row where the target pixel is located.
[0047] The mean of the depth estimation values of all pixels in the row where the target pixel is located is recorded as the first mean of the target pixel, and the absolute value of the difference between the depth estimation value of the target pixel and the first mean is recorded as the first difference of the target pixel; the sum of the first difference of the target pixel and the absolute value of the change is recorded as the first sum value of the target pixel, and the ratio of the first sum value of the target pixel to the smooth eigenvalue is recorded as the depth change difference value of the target pixel.
[0048] When the difference between the depth estimation value of the target pixel and the mean of the depth estimation values of all pixels in the row where the target pixel is located is greater, the difference between the depth estimation value of the target pixel and the depth estimation value of the cleaned stainless steel position is greater, and the first difference of the target pixel is greater. When the first difference and the absolute value of the change of the target pixel are greater, and the smooth eigenvalue of the target pixel is smaller, the depth change difference value of the target pixel is greater. At this time, the possibility that the target pixel corresponds to a normally cleaned stainless steel surface is smaller, and the possibility that the contaminant at the target pixel position is not cleaned and the stainless steel surface is damaged due to cleaning is greater.
[0049] According to the similarity of the depth change difference values of the pixels contained in different image rows in the grayscale image of the rusted steel surface, the cleaning similarity of the target row is obtained.
[0050] Arrange the depth change difference values of all pixels in the same image row in the grayscale image of the stainless steel surface according to the arrangement order of the pixels to obtain the depth change difference value sequence of the same image row. Record the row where the target pixel is located as the target row, and record the absolute value of the similarity between the target row and the depth change difference value sequence of all other image rows in the grayscale image of the stainless steel surface as the cleaning similarity of the target row.
[0051] Among them, this embodiment selects the Spearman correlation coefficient as the similarity measure of different depth change difference value sequences. The implementer can use other existing methods such as Pearson correlation coefficient, cosine similarity, etc. to measure the similarity of different depth change difference value sequences. This application does not impose any special restrictions. The calculation of the Spearman correlation coefficient is a well-known technology and will not be repeated here.
[0052] When the cleaning similarity of the target row is greater, the difference between the cleaning cleanliness corresponding to the target row and all image rows except the target row in the grayscale image of the rusty steel surface is smaller. At this time, the cleaning effect of the stainless steel corresponding to the target row of the grayscale image of the rusty steel surface is better.
[0053] The second sum value of the target row is obtained according to the data distribution of the depth change difference values of all pixels included in the target row.
[0054] The sum of the mean and standard deviation of the depth change difference values of all pixels included in the target row is recorded as the second sum value of the target row.
[0055] When the second sum value of the target row is larger, the depth change difference value of all pixels contained in the target row is larger and the difference is larger. At this time, the cleaning effect of the stainless steel corresponding to the target row of the grayscale image of the stainless steel surface is worse.
[0056] According to the cleaning similarity and the second sum value of the target row, the laser cleaning efficiency characteristic value of the target row is obtained.
[0057] The ratio of the cleaning similarity of the target row to the second sum is recorded as the laser cleaning efficiency characteristic value of the target row. In the process of calculating the ratio, in order to avoid the denominator being zero, a preset value needs to be added to the denominator, and the preset value is 1 in the embodiment.
[0058] The calculation formula for the characteristic value of the laser cleaning efficiency of the target row is: In the formula, represents the characteristic value of laser cleaning efficiency of target row j in the grayscale image of rusted steel surface; represents the cleaning similarity of target row j; Represents the second sum of target row j.
[0059] When the cleaning similarity of the target row is greater and the second sum is smaller, the laser cleaning efficiency characteristic value of the target row is greater. At this time, the number of uncleaned contaminants and clear damaged locations in the target row is smaller. At this time, the cleaning effect of the stainless steel corresponding to the target row of the grayscale image of the rusty steel surface is better.
[0060] At this point, the laser cleaning efficiency characteristic value of the target row is obtained. The laser cleaning efficiency characteristic value of any image row in the grayscale image of the rusted steel surface can be obtained in the same way, that is, each image row in the grayscale image of the rusted steel surface has a corresponding laser cleaning efficiency characteristic value.
[0061] Step S004: adjusting the laser cleaning power according to the laser cleaning efficiency characteristic values of all image rows in the grayscale image of the rusted steel surface.
[0062] The average of the normalized values of the laser cleaning efficiency characteristic values of all image rows in the grayscale image of the rusted steel surface is recorded as the cleaning effect evaluation characteristic value of the grayscale image of the rusted steel surface. The flowchart for obtaining the cleaning effect evaluation characteristic value is shown in the figure: Figure 2 shown.
[0063] The cleaning effect evaluation characteristic value of the grayscale image of the rusted steel surface is compared with a preset comparison threshold. When the cleaning effect evaluation characteristic value of the grayscale image of the rusted steel surface is greater than or equal to the preset comparison threshold, there is no need to adjust the power of the laser cleaning; when the cleaning effect evaluation characteristic value of the grayscale image of the rusted steel surface is less than the preset comparison threshold, the power of the laser cleaning needs to be adjusted.
[0064] When the power of laser cleaning needs to be adjusted, the mean of the depth estimation values of all pixels in the grayscale image of the rusted steel surface is calculated. When the mean of the depth estimation values of all pixels in the grayscale image of the rusted steel surface is greater than or equal to the distance between the CMOS camera and the stainless steel surface, the power of laser cleaning is reduced; when the mean of the depth estimation values of all pixels in the grayscale image of the rusted steel surface is less than the distance between the CMOS camera and the stainless steel surface, the power of laser cleaning is increased. The adjustment value of the laser cleaning power is . Where Z is the cleaning effect evaluation feature value of the grayscale image of the rusted steel surface; is a preset comparison threshold value, and in this embodiment, the preset comparison threshold value is 0.6; is a rounding function; the distance between the CMOS camera and the stainless steel surface is obtained through actual measurement.
[0065] At this point, the laser cleaning power optimization adjustment is achieved.
[0066] 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 optimizing and adjusting laser cleaning power, characterized in that: The method comprises the following steps: Collecting the stainless steel surface image after laser cleaning, and graying the stainless steel surface image to obtain the stainless steel surface grayscale image; Any pixel point in the grayscale image of the stainless steel surface is recorded as a target pixel point, and a smooth feature value of the target pixel point is obtained according to the data distribution of the grayscale value in the local area of the target pixel point and the distribution of high-frequency information and low-frequency information in the local area of the target pixel point; Perform monocular depth estimation on the stainless steel surface image to obtain depth estimation values of all pixels, record the row where the target pixel is located as the target row, obtain the depth change difference value of the target pixel based on the difference and data distribution between the depth estimation values of adjacent pixels in the target row, and the smooth characteristic value of the target pixel, and obtain the laser cleaning efficiency characteristic value of the target row based on the similarity of the depth change difference values of the pixels contained in different image rows in the grayscale image of the rusty steel surface and the data distribution of the depth change difference values of all pixels contained in the target row; The laser cleaning power is adjusted according to the laser cleaning efficiency characteristic values of all image rows in the grayscale image of the rusted steel surface.
2. The method for optimizing and adjusting laser cleaning power according to claim 1, characterized in that: The method of obtaining the smooth characteristic value of the target pixel point according to the data distribution of the grayscale value in the local area of the target pixel point and the distribution of the high-frequency information and the low-frequency information in the local area of the target pixel point includes: A feature window with a target pixel as the central pixel and a preset window side length is recorded as the feature window of the target pixel, a grayscale histogram of the target pixel is established according to the grayscale values of all pixels included in the feature window of the target pixel, and the kurtosis of the grayscale histogram of the target pixel is recorded as the kurtosis characteristic value of the target pixel; According to the distribution of high-frequency information and low-frequency information in the local area of the target pixel and the kurtosis eigenvalue of the target pixel, the smooth eigenvalue of the target pixel is obtained.
3. The method for optimizing and adjusting the laser cleaning power according to claim 2, characterized in that: The specific method of obtaining the smooth eigenvalue of the target pixel point according to the distribution of the high-frequency information and the low-frequency information in the local area of the target pixel point and the kurtosis eigenvalue of the target pixel point includes: Obtain the two-dimensional spectrum graph corresponding to the feature window of the target pixel point, take the center position of the two-dimensional spectrum graph as the coordinate origin, take the horizontal right direction as the positive direction of the x-axis, and take the vertical upward direction as the positive direction of the y-axis to establish a plane rectangular coordinate system; For any pixel point in the two-dimensional spectrum graph, the product of the Manhattan distance between the pixel point and the coordinate origin of the plane rectangular coordinate system and the amplitude of the pixel point is recorded as the information feature value of the pixel point, and the cumulative sum of the information feature values of all pixels in the two-dimensional spectrum graph is recorded as the high-frequency information significance of the target pixel point; According to the kurtosis eigenvalue and high-frequency information significance of the target pixel, the smooth eigenvalue of the target pixel is obtained.
4. The method for optimizing and adjusting the laser cleaning power according to claim 3, characterized in that: The method of obtaining the smooth eigenvalue of the target pixel point according to the kurtosis eigenvalue of the target pixel point and the significance of the high-frequency information includes the following specific methods: The ratio of the kurtosis eigenvalue of the target pixel to the significance of the high-frequency information is recorded as the smooth eigenvalue of the target pixel.
5. The method for optimizing and adjusting laser cleaning power according to claim 1, characterized in that: The method of obtaining the depth change difference value of the target pixel point according to the difference and data distribution between the depth estimation values of adjacent pixels in the target row and the smooth characteristic value of the target pixel point includes the following specific methods: The absolute value of the difference between the depth estimation value of the target pixel and the depth estimation value of the pixel adjacent to the left of the target pixel is recorded as the absolute value of the change of the target pixel; The depth change difference value of the target pixel is obtained according to the absolute value of the change and the smooth eigenvalue of the target pixel and the data distribution of the depth estimation values of all pixels in the target row.
6. The method for optimizing and adjusting the laser cleaning power according to claim 5, characterized in that: The method of obtaining the depth change difference value of the target pixel point according to the absolute value of the change and the smooth characteristic value of the target pixel point and the data distribution of the depth estimation values of all the pixels of the target row includes: Record the mean of the depth estimation values of all pixels in the target row as the first mean of the target pixel, record the absolute value of the difference between the depth estimation value of the target pixel and the first mean as the first difference of the target pixel, and record the sum of the first difference of the target pixel and the absolute value of the change as the first sum of the target pixel; The ratio of the first sum value of the target pixel to the smooth eigenvalue is recorded as the depth change difference value of the target pixel.
7. The method for optimizing and adjusting laser cleaning power according to claim 1, characterized in that: The specific method of obtaining the laser cleaning efficiency characteristic value of the target row according to the similarity of the depth change difference values of the pixels contained in different image rows in the grayscale image of the rusted steel surface and the data distribution of the depth change difference values of all the pixels contained in the target row is as follows: Arrange the depth change difference values of all pixels in the same image row in the grayscale image of the rusted steel surface according to the arrangement order of the pixels to obtain a depth change difference value sequence of the same image row; The sum of the absolute values of the similarities between the depth change difference value sequences of the target row and all other image rows in the grayscale image of the stainless steel surface is recorded as the cleaning similarity of the target row; According to the data distribution of the depth change difference values of all pixels included in the target row and the cleaning similarity of the target row, the laser cleaning efficiency characteristic value of the target row is obtained.
8. The method for optimizing and adjusting laser cleaning power according to claim 7, characterized in that: The specific method of obtaining the laser cleaning efficiency characteristic value of the target row according to the data distribution of the depth change difference values of all pixels included in the target row and the cleaning similarity of the target row includes: The sum of the mean and standard deviation of the depth change difference values of all pixels included in the target row is recorded as the second sum value of the target row; The ratio of the cleaning similarity of the target row to the second sum value is recorded as the laser cleaning efficiency characteristic value of the target row.
9. The method for optimizing and adjusting laser cleaning power according to claim 1, characterized in that: The specific method of adjusting the laser cleaning power according to the laser cleaning efficiency characteristic values of all image rows in the grayscale image of the rusted steel surface includes: The average of the normalized values of the laser cleaning efficiency characteristic values of all image rows in the grayscale image of the rusted steel surface is recorded as the cleaning effect evaluation characteristic value of the grayscale image of the rusted steel surface; When the cleaning effect evaluation characteristic value of the grayscale image of the rusted steel surface is greater than or equal to the preset comparison threshold, the power of the laser cleaning is not adjusted; when the cleaning effect evaluation characteristic value of the grayscale image of the rusted steel surface is less than the preset comparison threshold, the power of the laser cleaning is adjusted.
10. The method for optimizing and adjusting laser cleaning power according to claim 9, characterized in that: The specific method of adjusting the power of laser cleaning includes: When the average of the depth estimation values of all pixels in the grayscale image of the stainless steel surface is greater than or equal to the distance between the CMOS camera and the stainless steel surface, the power of the laser cleaning is reduced; When the mean of the depth estimation values of all pixels in the grayscale image of the stainless steel surface is smaller than the distance between the CMOS camera and the stainless steel surface, the power of the laser cleaning is increased; Among them, the adjustment value of the laser cleaning power is , Z is the cleaning effect evaluation characteristic value of the grayscale image of the rusted steel surface; is a preset comparison threshold; is the rounding function.
