Laser marking control method and system for adaptively marking workpiece surface properties

Through adaptive control methods and image processing technology, laser marking parameters are optimized, marking efficiency and quality problems under different surface properties are solved, adaptive selection of materials and efficiency improvement are achieved, and waste and process cycle are reduced.

CN115837520BActive Publication Date: 2024-09-17ZHONGKONG TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111110386.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-18
Publication Date
2024-09-17
Estimated Expiration
2041-09-18

AI Technical Summary

Technical Problem

When faced with different surface properties of marked workpieces, laser marking machines need to spend a lot of time re-determining the optimal process parameters, and lack a unified quality evaluation system, resulting in material waste and extended process cycles.

Method used

The control method of adaptive marking workpiece surface properties is adopted. By presetting and adjusting marking parameters, image processing algorithms are used for quality assessment and parameter optimization, including calculation of color difference deviation values ​​and image enhancement, until the expected quality standards are reached.

Benefits of technology

It realizes quality evaluation and parameter adaptive selection of laser marking, reduces material waste, shortens the process cycle, improves efficiency, and has a simple structure and high robustness.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115837520B
    Figure CN115837520B
Patent Text Reader

Abstract

The present invention discloses a laser marking control method and system for self-adaptively marking the surface properties of a workpiece in the field of laser marking. The laser marking control method comprises: a preset step: loading a standard template image with a number of marking parameters, recorded as a first image; a pre-marking step: pre-marking on the object to be marked according to the standard template image, obtaining the image of the object to be marked after marking, recorded as a second image; an adjustment step: performing a quality assessment including a color difference deviation value on the second image, adjusting the marking parameters according to the preset parameter adaptation value based on the comparison between the quality assessment including the color difference deviation value and the expected value, resetting the standard template image according to the adjusted marking parameters, recorded as a new first image, and repeating the adjustment step; a marking step: until the quality assessment reaches the set expected value, the object to be marked is marked according to the latest first image. This process forms an objective and specific quality evaluation for the laser marking effect, can quickly adjust the marking parameters of the printing material, realize the self-adaptive selection of the material, greatly reduce the material waste of the initial process of laser marking, and shorten the initial process cycle of laser marking of new materials.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of laser marking, in particular to a laser marking machine with automatic optimization of laser parameters based on digital image processing technology. Background Art

[0002] Laser marking refers to the generation of a high-energy continuous laser beam by a laser generator. The focused laser acts on the printing material, causing the surface material to melt or even vaporize instantly. By controlling the path of the laser on the surface of the material, the required graphic mark is formed.

[0003] Laser marking machines use laser beams to mark items. Any item that needs to be marked needs to be labeled accordingly. Common food and beverage production dates, writing on chassis boxes, and brand logos on hardware accessories are all achieved through marking machines. The marking scope of laser marking machines includes but is not limited to: electronic devices, electronic and communication products, home appliances, food packaging, molds, wires and cables, cookers, jewelry, luggage buckles, solar vacuum tubes, solar marking, mobile communications, integrated circuits (ICs), electrical appliances, glasses and watches, hardware products, aerospace devices, precision instruments, plastic buttons, auto parts, PVC pipes, building materials, computer accessories, stainless steel products, industrial bearings, watches, UV laser marking machines and other industries. These products will involve different surface properties of the marking workpiece surface, including materials.

[0004] The different surface properties of the workpiece being marked are sensitive to laser marking parameters. For example, when the material changes, it takes a lot of time to re-determine the optimal process parameters, and a lot of printing consumables will be wasted on process experiments. There is currently no unified and objective quality evaluation system for the effect of laser marking. Summary of the invention

[0005] In view of this, an embodiment of the present invention provides a laser marking control method and system that can adaptively mark the surface properties of a workpiece, so as to achieve adaptive selection of laser marking substrates, improve the quality and efficiency of laser marking, and greatly reduce material waste and shorten the marking process cycle.

[0006] To achieve the above objectives, the embodiments of the present invention provide the following technical solutions:

[0007] A laser marking control method for adaptively marking the surface properties of a workpiece, the method comprising:

[0008] Preset step: loading a standard template image with a number of marking parameters, recorded as the first image;

[0009] Pre-marking step: pre-marking the object to be marked according to the standard template image, and obtaining an image of the object to be marked after marking, which is recorded as a second image;

[0010] Adjustment step: performing a quality assessment including a color difference deviation value on the second image, adjusting the marking parameters according to a preset parameter adaptation value based on a comparison between the quality assessment including the color difference deviation value and an expected value, resetting the standard template image according to the adjusted marking parameters, recording it as a new first image, and repeating the adjustment step;

[0011] Marking step: until the quality assessment reaches the set expected value, the object to be marked is marked according to the latest first image.

[0012] Optionally, the pre-marking step further includes:

[0013] Preprocessing the second image including using an image noise reduction algorithm and an image distortion correction algorithm;

[0014] An image enhancement algorithm is used to enhance the separability of the marked area and the non-marked area of ​​the second image;

[0015] Calculate the boundaries of the marked area in the second image.

[0016] Optionally, the adopting of an image enhancement algorithm to enhance the separability of the marked area and the non-marked area of ​​the second image includes:

[0017] At least one of a color space transformation algorithm and an adaptive histogram equalization algorithm is used to enhance the separability of the marked area and the non-marked area of ​​the second image.

[0018] Optionally, calculating the boundary of the marking area of ​​the second image includes:

[0019] Perform feature detection on the second image, use the SIFT algorithm to extract SIFT feature points of the second image compared with the preset first image, determine the area with the highest similarity, and construct a descriptor of the area;

[0020] Template matching is performed on the second image, and the feature points captured by the SIFT algorithm are matched with the constructed descriptors using the FLANN fast nearest neighbor search feature matching algorithm. The RANSAC algorithm is then used to eliminate mismatched point pairs, complete the correct matching of feature points, and calculate the transformation matrix. The boundary of the marking area of ​​the second image is determined by calculating the transformation matrix.

[0021] Optionally, the adjusting step further comprises:

[0022] Perform color block matrix segmentation on the second image into a number of color blocks, and calculate the average CIELAB value of each color block;

[0023] Calculate the CIELAB mean value of each color block and the CIELAB value of the area not laser marked in the second image, select the color block with the largest color difference deviation value and obtain the index value of the color block with the largest color difference deviation value;

[0024] According to the obtained index value of the color block with the maximum color difference value, the marking parameters used by the color block with the maximum value are returned, and the marking parameters of the standard template image are adjusted and stored as a new first image.

[0025] Optionally, adjusting the marking parameters according to preset parameter adaptation values ​​based on the comparison between the quality evaluation including the color difference deviation value and the expected value includes:

[0026] The color difference deviation value calculation formula is shown in Formula 1:

[0027]

[0028] In the formula,

[0029] ΔL' is the lightness difference, ΔC' is the chroma difference, and ΔH' is the hue difference;

[0030] S L is the brightness weight function, S C is the chroma weight function, S H is the hue difference weight function, which is used to correct the uniformity of color space;

[0031] R T is a rotation function used to correct the deflection of the main axis direction of the tolerance ellipse in the blue area of ​​the color space;

[0032] K L , K C and K H It is a constant parameter factor, and its value is customized according to different measurement objects or color quality control requirements to obtain a more flexible color difference calculation method.

[0033] Optionally, the constant parameter factor K L , K C and K H Under the standard observation conditions given by CIE: D65 light source, illuminance 1000lx, more than 4 viewing fields, uniform color, CIELAB color difference between 0 and 5, and medium-brightness gray background, K L =K C =K H =1.

[0034] Optionally, when the surface property of the marked workpiece is gray PC+ABS plastic, the expected value range of the color difference deviation value is 0.5 to 3.0.

[0035] Optionally, it is characterized in that setting the marking parameters at least includes:

[0036] Set the routing speed: the speed of the galvanometer during marking, which includes the setting of routing speed = effective vector step length / effective vector step delay;

[0037] Set laser power: The output power of the laser, which is used to set the laser power percentage or laser current when marking the current layer;

[0038] Set the fill spacing: the distance between the laser traces on the marking layer.

[0039] A laser marking control system for adaptively marking the surface properties of a workpiece, the system comprising: a laser, an image acquisition module, a light source module, a host computer, and a controller connected to the laser, the image acquisition module, the light source module, and the host computer;

[0040] The laser is used to receive a marking instruction from a controller and perform a marking operation on an object to be marked;

[0041] The image acquisition module is used to obtain the marking area image of the object to be marked;

[0042] The light source module is used to emit different types of light waves such as white light, red light, blue light, etc.

[0043] The host computer is loaded with several algorithms including image processing algorithm, image feature detection algorithm, template matching algorithm, contour detection algorithm, and color difference calculation algorithm for loading and processing images;

[0044] The controller is used to receive images captured by the image acquisition module and transmit them to the host computer for analysis and processing; it is also used to receive control instructions issued by the host computer to control the type of light waves emitted by the light source module.

[0045] The laser marking control method and system for adaptively marking the surface properties of a workpiece described in the present invention have the beneficial effect of forming an objective and specific quality evaluation of the laser marking effect, being able to quickly adjust the marking parameters of the printing material, realizing adaptive selection of the material, greatly reducing the material waste in the initial process of laser marking, and shortening the initial process cycle of laser marking of new materials. The device has a simple structure, strong robustness, and better practical value. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] 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 embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0047] Figure 1 A schematic flow chart of a laser marking control method for adaptively marking the surface properties of a workpiece provided in an embodiment of the present invention.

[0048] Figure 2 A schematic diagram of a process for processing a marking image provided by an embodiment of the present invention.

[0049] Figure 3 A schematic diagram of a process of performing feature detection and template matching on a marking image provided by an embodiment of the present invention.

[0050] Figure 4 A schematic diagram of a process for evaluating the quality of a marking image and adjusting marking parameters provided by an embodiment of the present invention.

[0051] Figure 5 A schematic structural diagram of a laser marking control system for adaptively marking the surface properties of a workpiece provided by an embodiment of the present invention.

[0052] Figure 6 A laser marking control method and a color block matrix of a system for adaptively marking the surface properties of a workpiece provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0053] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0054] Embodiment 1

[0055] like Figure 1 FIG. 1 is a flow chart of a laser marking control method for adaptively marking the surface properties of a workpiece provided by an embodiment of the present invention. The laser marking control method for adaptively marking the surface properties of a workpiece comprises the following steps:

[0056] Step S101: a preset step. A standard template image with a number of marking parameters is loaded, which is recorded as the first image.

[0057] In step S101, setting the marking parameters includes setting the line speed, laser power, filling spacing and other parameters, specifically:

[0058] Set the routing speed: the speed of the galvanometer during marking, which includes the setting of routing speed = effective vector step length / effective vector step delay;

[0059] Set laser power: The output power of the laser, which is used to set the laser power percentage or laser current when marking the current layer;

[0060] Set the fill spacing: the distance between the laser traces on the marking layer.

[0061] In step S101, the standard template image also includes position parameters of a preset non-marking area.

[0062] Step S102: Pre-marking step: Pre-marking is performed on the object to be marked according to the standard template image, and an image of the object to be marked after pre-marking is obtained, which is recorded as a second image.

[0063] The standard template image is used to pre-mark the object to be marked, and the printed image is formed as follows. Figure 6 A matrix of several color blocks of varying shades is shown.

[0064] The method of obtaining the image of the object to be marked after pre-marking also includes processing the image and recording the processed image as the second image. The specific implementation process is as follows: Figure 2 As shown, it mainly includes the following steps:

[0065] Steps S201 to S203 are to process the second image, specifically:

[0066] Step S201: pre-processing the second image.

[0067] The image preprocessing specifically includes:

[0068] Image denoising: Image denoising algorithms are used to reduce image noise, including Gaussian filtering, bilateral filtering, median filtering and other algorithms to eliminate random image noise and system noise.

[0069] Image correction processing: Image distortion correction algorithm is used for image correction, including the use of translational affine transformation compensation for horizontal correction to eliminate image distortion caused by the image acquisition module.

[0070] Step S202: using an image enhancement algorithm to enhance the separability of the marked area and the non-marked area of ​​the second image.

[0071] In the specific implementation of step S202, an image enhancement algorithm is used for image enhancement, including using a color space transformation algorithm (such as a three-dimensional table lookup interpolation method, a polynomial regression method, etc.) and an adaptive histogram equalization algorithm (Adaptive histgram equalization / AHE) to enhance the separability of the marking area and the non-marking area on the surface of the object to be marked. The adaptive histogram equalization algorithm calculates the local histogram of the image and redistributes the brightness to change the image contrast, which is suitable for improving the local contrast of the image and obtaining more image details, thereby achieving the effect of enhancing the recognition of the marking area.

[0072] Step S203: Calculate the boundary of the marking area of ​​the second image. The specific implementation process is as follows: Figure 3 As shown, it mainly includes the following steps:

[0073] Step S301 and step S302 are to detect the features of the second image and perform template matching, specifically:

[0074] Step S301: performing feature detection on the second image, specifically comprising: using SIFT (Scale-invariant feature transform) algorithm to extract SIFT feature points of the second image compared with a preset first image, determining a region with the highest similarity, and constructing a descriptor of the region.

[0075] The specific implementation steps are:

[0076] 1. Scale space extrema detection: Search for image locations at all scales. Use Gaussian derivative functions to identify potential scale- and rotation-invariant points of interest.

[0077] 2. Keypoint localization: At each candidate location, a fine-tuned model is used to determine the location and scale. Keypoints are selected based on their stability.

[0078] 3. Direction determination: Based on the local gradient direction of the image, one or more directions are assigned to each key point position. All subsequent operations on the image data are transformed relative to the direction, scale and position of the key point, thereby providing invariance to these transformations.

[0079] 4. Construct descriptors: In the neighborhood around each keypoint, the local gradients of the image are measured at a selected scale. These gradients are transformed into a representation that allows for large local shape deformations and lighting changes.

[0080] Step S302: performing template matching on the second image, specifically including: using the FLANN (Fast Approximate Nearest Neighbor Search Library) fast nearest neighbor search feature matching algorithm to match the feature points captured by the SIFT algorithm with the descriptor, and then using the RANSAC (Random Sample Consensus) algorithm to eliminate the wrong matching point pairs, and finally completing the correct matching of the feature points, and calculating the transformation matrix. The boundary of the area to be marked is calculated and determined through the transformation matrix, and the image within the boundary of the marking area is obtained, which is recorded as the second image.

[0081] Step S103: Adjustment step. Perform a quality assessment including the color difference deviation value on the second image, and adjust the marking parameters according to the preset parameter adaptation value based on the comparison between the quality assessment including the color difference deviation value and the expected value. Reset the standard template image according to the adjusted marking parameters, record it as the new first image, and repeat the adjustment step. The specific implementation process is as follows: Figure 4 As shown, it mainly includes the following steps:

[0082] Steps S401 to S403 are to evaluate the quality of the marking image and adjust the marking parameters to determine the final marking standard template.

[0083] Step S401: Use a contour detection algorithm to divide the color block matrix of the second image into individual color blocks one by one and sort them, and calculate the average CIELAB value of all pixels of a single color block (CIELAB is a color system and color representation system of CIE [Commission Internationale d'Eclairage, International Commission on Illumination], which is used to determine the numerical information of a certain color, and includes three parameters L, a, and b, where L represents illumination, a represents a range from magenta to green, and b represents a range from yellow to blue).

[0084] In the second image, the three parameters of the CIELAB values ​​of the workpiece surface color of the laser-marked portion are recorded as L'1, a1, and b1.

[0085] In the second image, the three parameters of the CIELAB value of the laser unmarked workpiece surface color are recorded as L'2, a2, b2. The position information of the laser unmarked workpiece surface color area is read according to the corresponding position parameters of the unmarked area preset in the standard template image in step S101.

[0086] Step S402: using the CIEDE2000 (Hue and Lightness Dependent Correction to Industrial Colour Difference Evaluation Technical Committee TC1-47 [Hue and Lightness Dependent Correction to Industrial Colour Difference Evaluation] proposed a new color evaluation formula in 2000, referred to as CIEDE2000) algorithm to calculate the average CIELAB value of each color block and the CIELAB value of the laser unmarked area, select the color block with the largest color difference deviation value and obtain the index value of the color block with the largest color difference deviation value.

[0087] The CIEDE2000 algorithm is shown in Formula 1, where ΔE is the color difference deviation value obtained by the CIEDE2000 algorithm.

[0088]

[0089] In the formula, ΔL' is the lightness difference, ΔC' is the chroma difference, ΔH' is the hue difference, S L is the brightness weight function, S C is the chroma weight function, S H is the hue difference weight function, R T is the rotation function, K L , K C and K H is the constant parameter factor.

[0090] The calculation process of each parameter is as follows:

[0091] ΔL' = L1' - L2';

[0092] ΔC' = C1' - C2';

[0093] in:

[0094]

[0095] Wherein: Δh'=h1'-h2'; h1'=arcsin(b1 / a1), h2'=arcsin(b2 / a2).

[0096] Luminance weight function S L , chroma weight function S C , Hue difference weight function S H , hue angle function T, used to correct the uniformity of color space, the calculation process is as follows:

[0097]

[0098]

[0099]

[0100]

[0101]

[0102] Rotation function R T , which is used to correct the deflection of the main axis direction of the tolerance ellipse in the blue area of ​​the color space. The calculation process is as follows:

[0103]

[0104]

[0105] R T = -sin(2Δθ)R C .

[0106] Constant parameter factor K L , K C and K H , you can customize their values ​​according to different measurement objects or color quality control requirements to obtain a more flexible color difference calculation method. For example: in the textile industry, K L Select 2.0, K C and K H Select 1.0. In this embodiment, the surface property of the marking workpiece is a mixed material of gray PC (polycarbonate material, a tough thermoplastic resin) + ABS plastic (a terpolymer of acrylonitrile (A), butadiene (B), and styrene (S). The relative content of the three monomers can be changed arbitrarily to make various resins). L , K C , K H All three parameters are set to 1.0.

[0107] In this embodiment, the surface property of the marked workpiece is gray PC+ABS plastic, and the expected value range of its color difference deviation value ΔE is 0.5 to 3.0. The larger the ΔE value calculated by the average CIELAB value of each color block and the CIELAB value of the laser unmarked area, the better the marking quality assessment. Because the CIEDE2000 formula is based on visual comparison experience color evaluation data, the larger the ΔE value in the formula, the greater the color difference between the laser marked area and the unmarked area under the human eye. In other words, the larger the ΔE value in the formula, the better the laser marking quality. In this embodiment, the preset parameter adaptation value selects the marking parameters used by the color block with the largest color difference deviation value ΔE, and obtains the index value of the color block.

[0108] Step S403: according to the obtained index value of the color block with the maximum color difference, the marking parameters used by the color block with the maximum color difference are returned, and the marking parameters of the standard template are adjusted and stored as a new first image.

[0109] Repeat the above adjustment steps from step S401 to step S403.

[0110] Step S104: marking step: until the marking quality evaluation reaches the set expected value, the object to be marked is marked according to the latest first image.

[0111] In this embodiment, after one adjustment from step S401 to step S403, the expected value can be achieved, and a better marking quality can be achieved. Therefore, the self-adaptation of the surface properties of the workpiece can be quickly achieved, the material waste of the initial laser marking process can be greatly reduced, and the initial process cycle of laser marking of new materials can be shortened.

[0112] Embodiment 2

[0113] like Figure 1 As shown, a second embodiment is given for step S103. The other steps refer to the first embodiment and will not be described in detail.

[0114] Step S103: Adjustment step. Perform a quality assessment including the color difference deviation value on the second image, and adjust the marking parameters according to the preset parameter adaptation value based on the comparison between the quality assessment including the color difference deviation value and the expected value. Reset the standard template image according to the adjusted marking parameters, record it as the new first image, and repeat the adjustment step. It mainly includes the following steps:

[0115] Steps S501 and S502 are to evaluate the quality of the marking image and adjust the marking parameters to determine the final marking standard template.

[0116] Step S501: Use a contour detection algorithm to divide the color block matrix of the second image into individual color blocks one by one and sort them, and calculate the average CIELAB value of all pixels of the individual color blocks.

[0117] In the second image, the three parameters of the CIELAB values ​​of the surface color of the workpiece marked by the laser beam are recorded as L1', a1, and b1.

[0118] In the second image, the three parameters of the CIELAB value of the laser unmarked workpiece surface color are recorded as L2', a2, b2. The position information of the laser unmarked workpiece surface color area is read according to the corresponding position parameters of the unmarked area preset in the standard template image in step S101.

[0119] Step S502: Use the CIEDE2000 algorithm to calculate the average CIELAB value of each color block and the CIELAB value of the laser unmarked area, select the value with the largest color difference deviation ΔE, and adjust the marking parameters of the standard template according to the preset parameter adaptation value, and store it as a new first image.

[0120] The color difference deviation value ΔE is a color difference deviation value obtained according to the CIEDE2000 algorithm, and is calculated by referring to the calculation method of Formula 1 in Embodiment 1, which will not be repeated here.

[0121] In this embodiment, the workpiece surface property still selects the gray PC+ABS plastic mixed material, and the preset parameter adaptation values ​​are shown in Table 1 below:

[0122]

[0123] (Table 1)

[0124] In this embodiment, according to the DOE (design of experience, process verification) design method, it is obtained that:

[0125] When ΔE=3.0, select: routing speed (mm / s)=1000, laser power (%)=12, filling spacing (mm)=0.05.

[0126] Based on the laser marking control method for adaptively marking the surface properties of a workpiece disclosed in the above-mentioned embodiment of the present invention, the embodiment of the present invention also correspondingly discloses a laser marking control system for adaptively marking the surface properties of a workpiece.

[0127] like Figure 5 , which is a schematic diagram of a structure of a laser marking control system for self-adapting the surface properties of a workpiece disclosed in an embodiment of the present invention. The laser marking control system for self-adapting the surface properties of a workpiece mainly includes: a laser 501, an image acquisition module 502, a light source module 503, a host computer 504, and a controller 505.

[0128] The laser 501 is used to receive a marking instruction from a controller and perform a marking operation on a workpiece to be marked.

[0129] The image acquisition module 502 is composed of a high-resolution industrial camera and a lens, and is used to acquire the image of the marking area of ​​the workpiece to be marked.

[0130] The light source module 503 is used to emit different types of light waves such as white light, red light, and blue light.

[0131] The host computer 504 is loaded with several algorithms including image processing algorithm, image feature detection algorithm, template matching algorithm, contour detection algorithm, and color difference calculation algorithm, for loading and processing images.

[0132] The image processing algorithms include image noise reduction algorithms, image correction algorithms, image enhancement algorithms, etc.

[0133] The image feature detection and template matching algorithms include SIFT fast feature point matching algorithm, FLANN fast nearest neighbor search feature matching algorithm, RANSAC random sampling consensus algorithm, etc.

[0134] The controller 504 is connected to the laser 501, the image acquisition module 502, the light source module 503, and the host computer 504, respectively, and is used to receive the image acquired by the image acquisition module 502 and transmit it to the host computer 504 for analysis and processing; it is also used to receive the control instruction issued by the host computer 504 to control the type of light wave emitted by the light source module 503, so as to control the laser to mark the color block matrix of the marking template (such as Figure 6 ) Perform marking operation on the workpiece to be marked.

[0135] The above-mentioned embodiment of the present invention discloses a laser marking control method and system for adaptively marking the surface properties of a workpiece, which forms an objective and specific quality evaluation for the laser marking effect, can quickly adjust the marking parameters of the printing material, realize adaptive selection of materials, greatly reduce material waste in the initial process of laser marking, and shorten the initial process cycle of laser marking of new materials. The device has a simple structure, strong robustness, and good practical value.

[0136] Although the subject matter has been described in language specific to structural features and / or method logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims. The above is only an embodiment of the present invention and does not limit the scope of the invention. For those of ordinary skill in the technical field to which the present invention belongs, without departing from the concept of the present invention, several simple deductions or substitutions can be made, which should all be regarded as the scope of protection of the present invention.

Claims

1. A laser marking control method for adaptively marking the surface properties of a workpiece, characterized in that: The method comprises: Preset step: loading a standard template image with a number of marking parameters, recorded as the first image; Pre-marking step: pre-marking the object to be marked according to the standard template image, and obtaining an image of the object to be marked after marking, which is recorded as a second image; Adjustment step: performing a quality assessment including a color difference deviation value on the second image, adjusting the marking parameters according to a preset parameter adaptation value based on a comparison between the quality assessment including the color difference deviation value and an expected value, resetting the standard template image according to the adjusted marking parameters, recording it as a new first image, and repeating the adjustment step; Marking step: until the quality evaluation reaches the set expected value, the object to be marked is marked according to the latest first image; the pre-marking step further includes: Preprocessing the second image including using an image noise reduction algorithm and an image distortion correction algorithm; An image enhancement algorithm is used to enhance the separability of the marked area and the non-marked area of ​​the second image; Calculating the boundary of the marking area of ​​the second image; The calculating the boundary of the marking area of ​​the second image includes: Perform feature detection on the second image, use the SIFT algorithm to extract SIFT feature points of the second image compared with the preset first image, determine the area with the highest similarity, and construct a descriptor of the area; Performing template matching on the second image, using the FLANN fast nearest neighbor search feature matching algorithm to match the feature points captured by the SIFT algorithm with the constructed descriptors, and then using the RANSAC algorithm to eliminate mismatched point pairs, complete the correct matching of feature points, and calculate the transformation matrix. The boundary of the marking area of ​​the second image is determined by calculating the transformation matrix; The feature detection of the second image is performed by using the SIFT algorithm to extract SIFT feature points of the second image compared with the preset first image, determine the area with the highest similarity, and construct a descriptor of the area. The specific implementation steps are as follows: 1) Scale space extrema detection: Search image locations at all scales and identify potential scale- and rotation-invariant points of interest through Gaussian derivative functions; 2) Keypoint localization: At each candidate location, a fine-tuned model is used to determine the location and scale. Keypoints are selected based on their stability. 3) Direction determination: Based on the local gradient direction of the image, one or more directions are assigned to each key point position. All subsequent operations on the image data are transformed relative to the direction, scale and position of the key point, thereby providing invariance to these transformations; 4) Construct descriptors: In the neighborhood around each keypoint, the local gradients of the image are measured at a selected scale, and these gradients are transformed into a representation that allows for relatively large local shape deformations and illumination changes; The adjusting step further comprises: Perform color block matrix segmentation on the second image into a number of color blocks, and calculate the average CIELAB value of each color block; Calculate the CIELAB mean value of each color block and the CIELAB value of the area not laser marked in the second image, select the color block with the largest color difference deviation value and obtain the index value of the color block with the largest color difference deviation value; According to the obtained index value of the color block with the maximum color difference value, the marking parameters used by the color block with the maximum value are returned, and the marking parameters of the standard template image are adjusted and stored as a new first image.

2. The method according to claim 1, characterized in that The method of using an image enhancement algorithm to enhance the separability of the marking area and the non-marking area of ​​the second image includes: At least one of a color space transformation algorithm and an adaptive histogram equalization algorithm is used to enhance the separability of the marked area and the non-marked area of ​​the second image.

3. The method according to claim 1 or 2, characterized in that The step of adjusting the marking parameters according to the preset parameter adaptation value based on the comparison between the quality evaluation including the color difference deviation value and the expected value includes: The color difference deviation value calculation formula is shown in Formula 1: In the formula, ΔL' is the lightness difference, ΔC' is the chroma difference, and ΔH' is the hue difference; S L is the brightness weight function, S C is the chroma weight function, S H is the hue difference weight function, which is used to correct the uniformity of color space; R T is a rotation function used to correct the deflection of the main axis direction of the tolerance ellipse in the blue area of ​​the color space; K L , K C and K H It is a constant parameter factor, and its value is customized according to different measurement objects or color quality control requirements to obtain a more flexible color difference calculation method.

4. The method according to claim 3, characterized in that The constant parameter factor K L , K C and K H Under the standard observation conditions given by CIE: D65 light source, illuminance 1000lx, more than 4 viewing fields, uniform color, CIELAB color difference between 0 and 5, and medium-brightness gray background, K L =K C =K H= 1.

5. The method according to claim 1, characterized in that The expected value, when the surface property of the marked workpiece is gray PC+ABS plastic, the expected value range of the color difference deviation value is 0.5 to 3.

0.

6. The method according to claim 1, characterized in that Setting the marking parameters at least includes: Set the routing speed: the speed of the galvanometer during marking, which includes the setting of routing speed = effective vector step length / effective vector step delay; Set laser power: The output power of the laser, which is used to set the laser power percentage or laser current when marking the current layer; Set the fill spacing: the distance between the laser traces on the marking layer.

7. A laser marking control system for adaptively marking the surface properties of a workpiece, which implements the laser marking control method according to any one of claims 1 to 6, characterized in that: The system comprises: a laser, an image acquisition module, a light source module, a host computer, and a controller connected to the laser, the image acquisition module, the light source module, and the host computer; The laser is used to receive a marking instruction from a controller and perform a marking operation on an object to be marked; The image acquisition module is used to obtain the marking area image of the object to be marked; The light source module is used to emit different types of light waves such as white light, red light and blue light; The host computer is loaded with several algorithms including image processing algorithm, image feature detection algorithm, template matching algorithm, contour detection algorithm, and color difference calculation algorithm, which are used to load and process images; the controller is used to receive images collected by the image acquisition module and transmit them to the host computer for analysis and processing; it is also used to receive control instructions issued by the host computer to control the type of light waves emitted by the light source module.