Full-automatic laser vision coding machine and coding path optimization method
Through multi-view scanning and three-dimensional data processing of fully automatic laser vision coders, curvature field distribution and absorption response curves are extracted, energy compensation factors are determined, and dynamic coding paths are generated, which solves the problem of energy attenuation of complex surface lasers and improves coding clarity and stability.
Patent Information
- Application Number
- CN202510632039.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-16
- Publication Date
- 2025-06-17
- Estimated Expiration
- 2045-05-16
AI Technical Summary
When existing laser coding technologies face target items of complex surfaces or heterogeneous materials, they are prone to attenuation of laser energy due to differences in optical reflection characteristics, which in turn leads to uneven coding and blurring, affecting clarity.
A fully automatic laser vision coder is used to obtain the three-dimensional point cloud data of the target item through multi-view scanning, perform spatial calibration to obtain the three-dimensional feature model, extract the curvature field distribution and absorption response curve, determine the energy compensation factor, and generate a dynamic coding path to compensate for energy attenuation.
It significantly improves the consistency, clarity and stability of coding effects, ensuring the quality of laser coding on complex surfaces.
Smart Images

Figure CN120155669A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of laser coding, and more specifically, to a full-automatic laser vision coding machine and a coding path optimization method. Background Art
[0002] Laser coding technology is a processing technology that uses high-energy laser beams to melt, ablate, or oxidize the surface of target objects to form permanent markings. It has the advantages of non-contact, high precision, wear resistance, environmental protection, etc. With the continuous improvement of industrial manufacturing and product informatization requirements, laser coding technology has been widely used in fields such as product identification, anti-counterfeiting, and traceability.
[0003] Existing laser coding technologies usually perform laser coding with fixed coding parameters and preset paths. However, when facing target objects with complex surfaces or heterogeneous materials, due to the differences in the optical reflection characteristics of the target objects with complex surfaces in different regions, energy attenuation of the laser energy occurs during the coding process. Fixed coding parameters and preset paths are likely to cause uneven and blurred coding phenomena, thus affecting the clarity of the coded finished products. Therefore, how to optimize the laser coding path to compensate for the energy attenuation during the coding process has become a difficult problem faced by the industry. Summary of the Invention
[0004] The present application provides a full-automatic laser vision coding machine and a coding path optimization method, which can optimize the laser coding path to compensate for the energy attenuation during the coding process.
[0005] In a first aspect, the present application provides a coding path optimization method for a full-automatic laser vision coding machine, which is used to accurately code target objects with complex surfaces. The method includes: Performing multi-view scanning on the target object to be coded to obtain three-dimensional point cloud data of the target object; Performing spatial calibration on the three-dimensional point cloud data by using the point cloud distribution map of the stereo calibration block in the full-automatic laser vision coding machine to obtain a three-dimensional feature model of the target object, and then extracting the curvature field distribution required for beam path compensation for the target object from the three-dimensional feature model; Obtaining the regional boundary range when coding the target object, and then determining the absorption response curves of the laser beams in all coding regions within the regional boundary range based on the curvature field distribution and the surface material distribution of the target object; Determining the energy compensation factors for each coding region according to the energy attenuation rate of the laser energy on the complex surface of the target object in the absorption response curve and the optical reflection coefficients of each coding region in the regional boundary range during coding; When it is detected that the absorption response curve of the target object in the coding area deviates from the preset standard curve, a dynamic coding path for the target object is generated based on all energy compensation factors.
[0006] In some embodiments, spatially calibrating the three-dimensional point cloud data by the point cloud distribution map of the stereo calibration block in the full-automatic laser vision coding machine to obtain the three-dimensional feature model of the target object specifically includes: Obtain the point cloud distribution map of the stereo calibration block in the full-automatic laser vision coding machine; Based on the point cloud distribution map, construct a co-visual space domain between the stereo calibration block and the target object; Calibrate the three-dimensional point cloud data through the co-visual space domain to obtain the three-dimensional feature model of the target object.
[0007] In some embodiments, extracting the curvature field distribution required for beam path compensation of the target object from the three-dimensional feature model specifically includes: Perform neighborhood topology analysis on the feature points in the three-dimensional feature model to obtain the unit normal vectors of all feature points in the three-dimensional feature model; Determine the curvature values of each feature point in the three-dimensional feature model through all the unit normal vectors; Perform spatial interpolation on all curvature values to obtain the curvature field distribution required for beam path compensation of the target object.
[0008] In some embodiments, the area boundary range includes multiple independent coding areas.
[0009] In some embodiments, determining the absorption response curves of the laser beams in all coding areas within the area boundary range based on the curvature field distribution and the surface material distribution of the target object specifically includes: Determine the surface material distribution of the target object; Based on the curvature field distribution and the surface material distribution, establish an absorption response model of the target object's surface to the laser beam; Based on the absorption response model, determine the absorption response curves of the laser beams in all coding areas within the area boundary range.
[0010] In some embodiments, determining the energy compensation factor for each coding area according to the energy attenuation rate of the laser energy on the complex surface of the target object in the absorption response curve and the optical reflection coefficient of each coding area in the area boundary range during coding specifically includes: Determine the energy attenuation rate of the laser energy on the complex surface of the target object in the absorption response curve; For each coding area within the area boundary range, determine the optical reflection coefficient of the coding area when coding the target object; Determine the reflectivity surface of the coding area according to the optical reflection coefficient and the curvature field distribution of the coding area; Determine the energy compensation factor of the coding area according to the reflectivity surface and the energy attenuation rate, and then obtain the energy compensation factors of each coding area in the region boundary range.
[0011] In some embodiments, when it is detected that the absorption response curve of the target item in the coding area deviates from the preset standard curve, generating the dynamic coding path of the target item based on all the energy compensation factors specifically includes: Determine the preset standard curve for laser coding; When the deviation value between the absorption response curve of the target item and the preset standard curve is greater than the preset deviation threshold, generate the dynamic coding path of the target item according to all the energy compensation factors.
[0012] In a second aspect, the present application provides a full-automatic laser vision coding machine, which includes a coding path optimization unit, and the coding path optimization unit includes: An acquisition module, configured to perform multi-view scanning on the target item to be coded, and obtain the three-dimensional point cloud data of the target item; A processing module, configured to perform spatial calibration on the three-dimensional point cloud data according to the point cloud distribution map of the stereo calibration block in the full-automatic laser vision coding machine, obtain the three-dimensional feature model of the target item, and then extract the curvature field distribution required for beam path compensation for the target item from the three-dimensional feature model; The processing module is configured to obtain the region boundary range when coding the target item, and then determine the absorption response curves of the laser beams in all coding areas within the region boundary range based on the curvature field distribution and the surface material distribution of the target item; The processing module is configured to determine the energy compensation factors corresponding to each coding area according to the energy attenuation rate of the laser energy on the complex surface of the target object in the absorption response curve and the optical reflection coefficients of each coding area in the region boundary range during coding; An execution module, configured to generate the dynamic coding path of the target item based on all the energy compensation factors when it is detected that the absorption response curve of the target item in the coding area deviates from the preset standard curve.
[0013] In a third aspect, the present application provides a computer device, which includes a memory and a processor, the memory stores code, and the processor is configured to obtain the code and execute the coding path optimization method of the above full-automatic laser vision coding machine.
[0014] Fourthly, the present application provides a computer-readable storage medium storing a computer program, which when executed by a processor implements the above-mentioned method for optimizing the coding path of the full-automatic laser vision coding machine.
[0015] The technical solutions provided by the disclosed embodiments of the present application have the following beneficial effects: In the full-automatic laser vision coding machine and the coding path optimization method provided by the present application, first, multi-view scanning is performed on the target object to be coded to obtain the three-dimensional point cloud data of the target object; the three-dimensional point cloud data is spatially calibrated by the point cloud distribution map of the stereo calibration block in the full-automatic laser vision coding machine to obtain the three-dimensional feature model of the target object, and then the curvature field distribution required for beam path compensation of the target object is extracted from the three-dimensional feature model; the boundary range of the area when coding the target object is obtained, and then the absorption response curve of the laser beam in all coding areas within the boundary range is determined based on the curvature field distribution and the surface material distribution of the target object; according to the energy attenuation rate of the laser energy on the complex surface of the target object in the absorption response curve and the optical reflection coefficient of each coding area in the boundary range during coding, the energy compensation factor corresponding to each coding area is determined; when it is detected that the absorption response curve of the target object in the coding area deviates from the preset standard curve, a dynamic coding path of the target object is generated based on all the energy compensation factors.
[0016] It can be seen that the present application generates a dynamic coding path for the target item based on all energy compensation factors. First, by determining the curvature field distribution, a graph can be obtained that describes the continuous distribution of curvature values at each point on the surface of the target item in space. The determination of the curvature field distribution can accurately capture the minute geometric changes on the surface of the target item. By analyzing the curvature field distribution, key feature regions (such as protrusions, depressions, and edges) on the surface of the target item can be identified. During the laser coding process, these key feature regions may affect the focus, energy absorption, and reflection of the laser beam. Therefore, the curvature field distribution helps to adjust the laser coding parameters (such as the power and scanning speed of the laser) to adapt to different surface characteristics for beam path compensation. Then, by determining the absorption response curve, a curve can be obtained that describes the degree of laser energy absorption in different regions of the complex surface of the target item. The determination of the absorption response curve helps to adjust the laser coding parameters (such as the power and scanning speed of the laser) specifically to ensure that the laser energy is effectively absorbed by the target item and avoid unclear coding caused by over-etching or insufficient energy. Finally, by determining the energy compensation factor, a laser output power adjustment ratio can be obtained to compensate for the laser energy attenuation caused by the surface reflectivity and geometric shape of the coding region. The determination of the energy compensation factor helps to accurately adjust the laser output according to the laser energy attenuation rate and optical reflection coefficient of each coding region, realizing dynamic compensation for the uneven energy distribution on the complex surface, thereby significantly improving the consistency, clarity, and stability of the coding effect. In summary, based on the above solution, the laser coding path can be optimized to compensate for the energy attenuation during the coding process. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 is an exemplary flowchart of a method for optimizing the coding path of a full-automatic laser vision coder according to some embodiments of the present application; Figure 2 is an operation flowchart for determining a three-dimensional feature model according to some embodiments of the present application; Figure 3 is an exemplary flowchart for determining an energy compensation factor according to some embodiments of the present application; Figure 4 is a schematic structural diagram of a coding path optimization unit according to some embodiments of the present application; Figure 5 is an internal structural diagram of a computer device for implementing a method for optimizing the coding path of a full-automatic laser vision coder according to some embodiments of the present application. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0018] To better understand the technical solution of the present application, the technical solution of the present application will be described in detail below in conjunction with the accompanying drawings of the specification and specific embodiments.
[0019] Refer to Figure 1, the figure is an exemplary flowchart of a method for optimizing the coding path of a full-automatic laser vision coding machine according to some embodiments of the present application. The method 100 for optimizing the coding path of the full-automatic laser vision coding machine mainly includes the following steps: In step 101, the target item to be coded is scanned from multiple perspectives to obtain the three-dimensional point cloud data of the target item.
[0020] It should be noted that in the present application, the three-dimensional point cloud data is a set of discrete information points describing the spatial coordinate information of the target object in the full-automatic laser vision coding machine. The three-dimensional point cloud data can provide key data support for the automatic path planning of the coding area and the laser adaptive adjustment, thereby improving the accuracy and efficiency of coding; specifically, when implemented, the target item to be coded is scanned from multiple perspectives by a structured light industrial camera, and the three-dimensional point cloud data of the target item can be obtained in the following manner, that is: First, a high-precision structured light camera (such as a binocular structured light industrial camera) can be selected and the position of the structured light camera is changed through a rotary turntable to capture images of the target item from different perspectives to obtain the image data of the target item under multiple perspectives. Then, the position information on the surface of the object is extracted from the image data through an existing position extraction algorithm (such as the Steger algorithm) and the images under each perspective are stereo-matched using the position information to obtain the three-dimensional point cloud data of the target item.
[0021] In step 102, the three-dimensional point cloud data is spatially calibrated by the point cloud distribution map of the stereo calibration block in the full-automatic laser vision coding machine to obtain the three-dimensional feature model of the target item, and then the curvature field distribution required for beam path compensation for the target item is extracted from the three-dimensional feature model.
[0022] In some embodiments, refer to Figure 2 , the figure is an operation flowchart for determining the three-dimensional feature model according to some embodiments of the present application. In the present application, the three-dimensional point cloud data is spatially calibrated by the point cloud distribution map of the stereo calibration block in the full-automatic laser vision coding machine to obtain the three-dimensional feature model of the target item, which can be implemented in the following steps: Obtain the point cloud distribution map of the stereo calibration block in the full-automatic laser vision coding machine; Construct a co-visual space domain of the stereo calibration block and the target object based on the point cloud distribution map; Calibrate the three-dimensional point cloud data through the co-visual space domain to obtain the three-dimensional feature model of the target item.
[0023] It should be noted that in this application, the point cloud distribution map is a spatial density distribution map that describes the surface morphology and point density distribution of the three-dimensional calibration block. This point cloud distribution map provides accurate geometric reference information by reflecting the point cloud density of each area on the surface of the three-dimensional calibration block, thereby ensuring the accuracy of subsequent spatial calibration and laser coding path planning. Among them, the three-dimensional calibration block refers to a three-dimensional geometric object used for precise positioning and position calibration of the target object in the vision system, such as a checkerboard calibration block or a prismatic calibration block. Specifically, when implemented, the point cloud distribution map of the three-dimensional calibration block in the full-automatic laser vision coding machine can be obtained in the following way: First, a high-precision three-dimensional calibration block (such as a checkerboard calibration block or a prismatic calibration block) can be selected according to the geometric size of the target item, and its surface can be coated to ensure good laser reflection effect. Then, the structure light camera is used to collect images of the three-dimensional calibration block from multiple angles. Next, the existing position extraction algorithm (such as the Steger algorithm) is used to extract the position information of the three-dimensional calibration block in all images, and the position information is used to perform stereo matching on the images in each perspective to obtain the point cloud data of the three-dimensional calibration block. Finally, the existing visualization tool (such as the cloud visualization tool CloudCompare) is used to convert the point cloud data into a visualization image, and this visualization image is used as the point cloud distribution map of the three-dimensional calibration block.
[0024] Specifically, when implemented, the co-visual space domain of the three-dimensional calibration block and the target object can be constructed based on the point cloud distribution map in the following way: First, the point cloud data in which the three-dimensional calibration block and the target object are both within the scanning range of the laser vision coding machine can be obtained from the point cloud distribution map and the three-dimensional point cloud data. Then, the existing feature extraction method (such as the normal estimation method in the point cloud processing library) can be used to identify all the corner points by calculating the normal and curvature values of each point in the point cloud data, and the corner points of the three-dimensional calibration block and the target object are paired using the feature matching algorithm (such as the matching method based on the Manhattan distance), and the relative position relationship between the three-dimensional calibration block and the target object is calculated. Finally, the relative position relationship between the three-dimensional calibration block and the target object is fitted into a spatial transformation matrix using the fitting algorithm (such as the least squares method), and this spatial transformation matrix is used as the co-visual space domain of the three-dimensional calibration block and the target object. Among them, the co-visual space domain refers to the spatial range in which the three-dimensional calibration block and the target object are simultaneously captured by the scanning device in the same coordinate system. This co-visual space domain helps to unify the point cloud data of the three-dimensional calibration block and the target object into the same coordinate system to ensure the accuracy of the spatial relationship between the two, thereby improving the accuracy of the three-dimensional feature model.
[0025] It should be noted that in this application, the three-dimensional feature model refers to a feature model that describes the key geometric features and topological structure of the target object. This three-dimensional feature model helps to accurately identify the shape and surface characteristics of the target object, providing an accurate reference basis for subsequent laser coding path planning. When specifically implemented, the three-dimensional point cloud data is calibrated through the co-visual space domain, and the three-dimensional feature model of the target item can be obtained in the following way, that is: First, existing noise reduction algorithms (such as statistical filtering) can be used to remove the noise points in the three-dimensional point cloud data. Then, a feature matching algorithm (such as a three-dimensional point cloud stitching and registration method based on feature matching) is applied to perform initial registration on the denoised three-dimensional point cloud data through the co-visual space domain to obtain the calibrated point cloud data. Finally, the calibrated point cloud data is input into a three-dimensional reconstruction algorithm (such as a three-dimensional reconstruction algorithm in the computational geometry algorithm library) to generate the three-dimensional feature model of the target item.
[0026] In some embodiments, extracting the curvature field distribution required for beam path compensation of the target item from the three-dimensional feature model can be achieved through the following steps: Perform neighborhood topology analysis on the feature points in the three-dimensional feature model to obtain the unit normal vectors of all feature points in the three-dimensional feature model; Determine the curvature values of each feature point in the three-dimensional feature model through all the unit normal vectors; Perform spatial interpolation on all the curvature values to obtain the curvature field distribution required for beam path compensation of the target item.
[0027] When specifically implemented, performing neighborhood topology analysis on the feature points in the three-dimensional feature model to obtain the unit normal vectors of all feature points in the three-dimensional feature model can be achieved in the following way, that is: First, for each feature point in the three-dimensional feature model, K-nearest neighbor search can be used to perform neighborhood topology analysis on the feature point (for example, select the 20 nearest neighborhood points for each feature point) to obtain all the neighborhood points within the neighboring region of the feature point. Then, calculate the covariance matrix formed by the spatial coordinates of all the neighborhood points, and then use existing feature extraction methods (such as principal component analysis) to extract the eigenvector corresponding to the minimum eigenvalue in the covariance matrix, and use this eigenvector as the normal vector of the neighboring region of the feature point. Finally, use an existing vector normalization method (such as Euclidean normalization) to normalize the normal vector of the feature point to obtain the unit normal vector of the feature point. Through the above steps, the normal vectors of all feature points in the three-dimensional feature model can be obtained. Among them, the unit normal vector is a unit vector that describes the local surface direction of the feature point in the three-dimensional feature model. This unit normal vector ensures the consistency and accuracy of the normal information of each feature point in the curvature extraction process by eliminating the scale influence, thereby improving the reliability of subsequent surface feature analysis and process control.
[0028] In specific implementation, the curvature values of each feature point in the three-dimensional feature model can be determined by all the unit normal vectors in the following way: for each feature point in the three-dimensional feature model, first, an existing local modeling model (such as a quadratic surface least squares fitting modeling model) can be loaded. The unit normal vector of the feature point and the point cloud data of all neighborhood points in the neighborhood area of the feature point are used as the input of this local modeling model. Run this local modeling model, and take the mean curvature in the output of this local modeling model as the curvature value of the feature point. Through the above steps, the curvature values of each feature point in the three-dimensional feature model can be obtained; wherein, the curvature value is a quantitative index for measuring the degree of bending of the surface of the target item at the feature point, and this curvature value can accurately describe the change characteristics of the surface shape of the target item, providing accurate information support for subsequent laser coding path planning.
[0029] It should be noted that in this application, the curvature field distribution is a graph describing the continuous distribution of the curvature values of each point on the surface of the target item in space. This curvature field distribution can visually display the degree of bending of each area on the surface of the target item, providing an accurate basis for subsequent analysis of surface features for beam path compensation and laser coding path planning; in specific implementation, spatial interpolation is performed on all curvature values, and the curvature field distribution required for beam path compensation for the target item can be realized in the following way: existing spatial interpolation techniques (such as inverse distance weighted interpolation method or Kriging interpolation method) can be used to perform interpolation processing on the curvature values of all feature points and their corresponding three-dimensional spatial coordinates to obtain a continuous curvature field distribution map, and this curvature field distribution map is used as the curvature field distribution required for beam path compensation for the target item.
[0030] In step 103, obtain the regional boundary range when coding the target item, and then determine the absorption response curve of the laser beam in all coding areas within the regional boundary range based on the curvature field distribution and the surface material distribution of the target item.
[0031] It should be noted that in this application, the regional boundary range refers to the spatial range of the surface area of the target item to be processed during the laser coding process. This regional boundary range includes multiple independent coding areas, and laser energy compensation can be performed for the curvature and surface material of each coding area. Specifically, when implemented, the regional boundary range for coding the target item can be obtained in the following manner: First, obtain the three-dimensional point cloud data of the target object after denoising, and use an existing boundary detection algorithm (such as the boundary detection method based on the change of normal vector) to analyze the change of the normal vector of the data points in the three-dimensional point cloud data to determine whether they are located on the boundary, so as to obtain all the boundary points. Then, use curve fitting technology (such as B-spline curve) to smooth all the boundary points to obtain a continuous and smooth boundary curve. Finally, take the area range enclosed by this boundary curve as the regional boundary range for coding the target item.
[0032] In some embodiments, the absorption response curve of the laser beam in all coding areas within the regional boundary range can be determined based on the curvature field distribution and the surface material distribution of the target item by the following steps: Determine the surface material distribution of the target item; Based on the curvature field distribution and the surface material distribution, establish an absorption response model of the target item's surface to the laser beam; Based on the absorption response model, determine the absorption response curve of the laser beam in all coding areas within the regional boundary range.
[0033] Specifically, when implemented, the surface material distribution of the target item can be determined in the following manner: A high-resolution multispectral camera can be used to scan the surface of the target item to obtain the reflectivity images of each band of the target item at different bands. Then, apply an existing image processing algorithm (such as the K-means clustering algorithm) to perform material analysis on all the reflectivity images to obtain the spatial distribution information of the surface material of the target item, and use this spatial distribution information as the surface material distribution of the target item; where the surface material distribution refers to the spatial distribution information of the materials in different regions of the target item's surface, and this surface material distribution helps to predict the absorption characteristics of each region of the target item's surface to the laser and establish an accurate absorption response model.
[0034] In specific implementation, the absorption response model of the surface of the target item to the laser beam based on the curvature field distribution and the surface material distribution can be implemented in the following manner, i.e., first, an existing micro-surface theory modeling method (such as Trowbridge-Reitz modeling) can be used to model the surface of the target item according to the curvature field distribution and the surface material distribution to obtain the absorption response model of the surface of the target item to the laser beam; wherein, the absorption response model is a model describing the absorption characteristics of the surface of the target item to the laser beam. According to the micro-surface theory, the seemingly smooth surface of the target item is regarded as being composed of a large number of tiny planes with different orientations (i.e., micro-surfaces), each micro-surface having a specific normal direction and material properties. Then, the bidirectional reflectance distribution function is used to describe the relationship between the incident light and the reflected light of each micro-surface and calculate the reflected light intensity at different incident angles and exit angles, which helps to predict the absorption degree of different regions of the target item to the laser.
[0035] It should be noted that in this application, the absorption response curve is a curve describing the absorption degree of different regions of the complex surface of the target item to the laser energy. This absorption response curve helps to optimize the laser coding process and ensure the coding quality and consistency; in specific implementation, the absorption response curve of the laser beam in all the coding regions within the region boundary range can be determined based on the absorption response model in the following manner, i.e., the absorption response model can be used to simulate the different incident angles and reflection angles of each coding region within the region boundary range of the target item under the irradiation of the laser beam and calculate the reflected light intensity at different incident angles and exit angles, and then the existing data fitting method (such as the Fresnel equation) is used to fit all the reflected light intensities to obtain the absorption response curve of the laser beam in all the coding regions within the region boundary range.
[0036] In step 104, according to the energy attenuation rate of the laser energy on the complex surface of the target object in the absorption response curve and the optical reflection coefficient of each coding region within the region boundary range during coding, the energy compensation factor corresponding to each coding region is determined.
[0037] In some embodiments, referring to Figure 3 , this figure is an exemplary flowchart for determining the energy compensation factor according to some embodiments of the present application. In the present application, the energy compensation factor corresponding to each coding region can be determined according to the energy attenuation rate of the laser energy on the complex surface of the target object in the absorption response curve and the optical reflection coefficient of each coding region within the region boundary range during coding, which can be implemented by the following steps: In step 1041, the energy attenuation rate of the laser energy on the complex surface of the target object in the absorption response curve is determined; In step 1042, for each coding region within the region boundary range, the optical reflection coefficient of the coding region when coding the target item is determined; In step 1043, a reflectivity surface of the coding area is determined according to the optical reflection coefficient and the curvature field distribution of the coding area. In step 1044, an energy compensation factor of the coding area is determined according to the reflectivity surface and the energy attenuation rate, and then the energy compensation factors of each coding area in the area boundary range are obtained.
[0038] When specifically implemented, the energy attenuation rate of the laser energy on the complex surface of the target object in the absorption response curve can be implemented in the following manner: First, for each coding area in the area boundary range, the reflected light intensity data and the corresponding incident light intensity data of the coding area are obtained in the absorption response curve, and each reflected light intensity is matched with the corresponding incident light intensity. Then, the difference between each reflected light intensity and its matched incident light intensity is divided by the incident light intensity, and the obtained ratio is used as the energy attenuation value corresponding to each reflected light intensity. Then, the average value of all the reflected light intensity energy attenuation values is used as the energy attenuation value of the coding area. Through the above steps, the energy attenuation values of each coding area in the area boundary range can be obtained. Finally, the set composed of the energy attenuation values of all the coding areas is used as the energy attenuation rate of the laser energy on the complex surface of the target object; wherein, the energy attenuation rate is a data set describing the attenuation degree of the laser energy caused by absorption and scattering when the laser propagates in different areas of the complex surface of the target object. This energy attenuation rate helps to optimize the laser parameter settings and ensure uniform and clear coding effects in different surface areas.
[0039] When specifically implemented, the optical reflection coefficient of the coding area when coding the target item can be implemented in the following manner: First, the reflected light intensity data and the corresponding incident light intensity data of the coding area are obtained in the absorption response curve, and each reflected light intensity is matched with the corresponding incident light intensity. Then, the ratio of each reflected light intensity to its matched incident light intensity is used as the reflectivity of the reflected intensity, and the average value of all the reflectivities is used as the optical reflection coefficient of the coding area when coding the target item; wherein, the optical reflection coefficient is an index measuring the reflection characteristics of the surface of the target item to the laser, and reflects the reflection ability of the surface of the target item to the laser.
[0040] In specific implementation, the reflectivity surface of the coding area can be determined according to the optical reflection coefficient and the curvature field distribution of the coding area by the following method: First, obtain the curvature field distribution of the coding area from the curvature field distribution required for beam path compensation of the target article. Then, the optical reflection coefficient and the curvature field distribution of the coding area can be input into an existing optical simulation software (such as COMSOL Multiphysics) for simulation calculation to generate the reflectivity surface of the coding area. The reflectivity surface is a three-dimensional graph describing the distribution of reflected light intensity at different positions and angles on the coding area of the target object surface. This reflectivity surface helps to deeply understand the influence of the surface microstructure on the laser reflection characteristics, so as to optimize the energy distribution and compensation strategy in the laser coding process and ensure the uniformity and clarity of the coding effect.
[0041] In some embodiments, the energy compensation factor of the coding area can be determined according to the reflectivity surface and the energy attenuation rate by the following steps: Determine the optical response parameters of the coding area according to the reflectivity surface; Perform Monte Carlo simulation on the energy attenuation rate to obtain the energy loss distribution of laser energy transmission in the coding area; Determine the energy compensation factor of the coding area based on the optical response parameters and the energy loss distribution.
[0042] In specific implementation, the optical response parameters of the coding area can be determined according to the reflectivity surface by the following method: The reflectivity surface can be input into an existing bidirectional reflectance distribution function, and the surface reflectivity, the ratio of diffuse reflection to specular reflection, and the micro-roughness of the coding area can be calculated by curve fitting. The set of the surface reflectivity, the ratio of diffuse reflection to specular reflection, and the micro-roughness is used as the optical response parameters of the coding area. The optical response parameters are indicators describing the optical behavior (such as absorption, reflection, and scattering) exhibited by the coding area on the surface of the target object under laser irradiation.
[0043] In specific implementation, Monte Carlo simulation is performed on the energy attenuation rate to obtain the energy loss distribution of the laser energy transmitted in the coding area, which can be achieved in the following way: First, the existing Monte Carlo ray tracing technology (such as Zemax OpticStudio) can be used to randomly generate a large number of laser photon paths according to the energy attenuation value in the coding area of the energy attenuation rate, and the energy loss caused by absorption and scattering during the process of each photon path passing through the coding area is statistically analyzed to obtain the loss data of the laser energy transmitted in the coding area. Then, finally, according to the existing fitting algorithm (such as the least squares method), the loss data is fitted into an energy loss distribution map, and this energy loss distribution map is used as the energy loss distribution of the laser energy transmitted in the coding area; where the energy loss distribution refers to the spatial distribution of the energy attenuation caused by absorption and scattering of the laser in the coding area, and this energy loss distribution helps to accurately regulate the laser power and achieve a uniform and high-quality laser coding effect.
[0044] It should be noted that in this application, the energy compensation factor refers to the laser output power adjustment ratio for compensating the laser energy attenuation caused by the surface reflectivity and geometric shape of the coding area. This energy compensation factor helps to accurately adjust the laser output according to the laser energy attenuation rate and optical reflection coefficient of the coding area, achieve dynamic compensation for the uneven energy distribution on the complex surface, and thus significantly improve the consistency, clarity and stability of the coding effect; in specific implementation, determining the energy compensation factor of the coding area based on the optical response parameter and the energy loss distribution can be achieved in the following way: The optical response parameter and the energy loss distribution can be input into the existing optical simulation software (such as COMSOL Multiphysics) to construct a coupled mathematical model to numerically solve the energy transmission and reflection of the laser in the coding area, so as to calculate the adjustment ratio of the laser output power in the coding area, and this adjustment ratio of the laser output power is used as the energy compensation factor of the coding area.
[0045] In step 105, when it is detected that the absorption response curve of the target item in the coding area deviates from the preset standard curve, a dynamic coding path of the target item is generated based on all the energy compensation factors.
[0046] In some embodiments, when it is detected that the absorption response curve of the target item in the coding area deviates from the preset standard curve, generating a dynamic coding path of the target item based on all the energy compensation factors can be achieved by the following steps: Determine the preset standard curve for laser coding; When the deviation value between the absorption response curve of the target item and the preset standard curve is greater than the preset deviation threshold, a dynamic coding path of the target item is generated according to all the energy compensation factors.
[0047] It should be noted that in this application, the preset standard curve is the reference curve for real-time monitoring of whether there is a deviation in the absorption response curve of the coding area, which helps to detect and correct the deviation of the absorption response curve in a timely manner, so as to ensure the quality and consistency of the laser coding process. Specifically, when implementing, the preset standard curve for laser coding can be determined in the following way, that is: a representative target item sample that has been laser coded (such as the coding accuracy is greater than 98%) can be selected, and the absorption response curve of the target item sample is used as the preset standard curve.
[0048] Specifically, when the deviation value between the absorption response curve of the target item and the preset standard curve is greater than the preset deviation threshold, the dynamic coding path of the target item can be generated according to all the energy compensation factors in the following way, that is: First, the absorption response curve of the target item can be obtained, and the mean square error between the absorption response curve and the preset standard curve is calculated as the deviation value between the absorption response curve and the preset standard curve. If the deviation is greater than the preset deviation threshold (such as 0.1), the dynamic programming algorithm is used to re-plan the laser coding path and adjust the power and irradiation speed of the laser beam according to the pre-calculated energy compensation factors to obtain the dynamic coding path of the target item.
[0049] It should be noted that in this application, the dynamic coding path is the path used to adjust the irradiation sequence and position of the laser beam in real time during the coding process. This dynamic coding path can flexibly adjust the coding process according to the surface characteristics of the target item, compensate for the energy attenuation caused by surface non-uniformity, and ensure that the coding effect is clear and accurate.
[0050] In addition, on the other hand of this application, in some embodiments, this application provides a full-automatic laser vision coding machine, which includes a coding path optimization unit. Refer to Figure 4 , this figure is a schematic structural diagram of the coding path optimization unit shown in some embodiments of this application. The coding path optimization unit 400 includes: a collection module 401, a processing module 402, and an execution module 403, which are described as follows: Collection module 401, in this application, the collection module 401 is mainly used to perform multi-view scanning on the target item to be coded to obtain the three-dimensional point cloud data of the target item; Processing module 402, in this application, the processing module 402 is mainly used to perform spatial calibration on the three-dimensional point cloud data by using the point cloud distribution map of the stereo calibration block in the full-automatic laser vision coding machine to obtain the three-dimensional feature model of the target item, and then extract the curvature field distribution required for beam path compensation of the target item from the three-dimensional feature model; It should be noted that the processing module 402 in this application is also used to obtain the boundary range of the area when coding the target item, and then determine the absorption response curve of the laser beam in all coding areas within the boundary range based on the curvature field distribution and the surface material distribution of the target item; In addition, it should be noted that the processing module 402 in this application is also used to determine the energy compensation factor corresponding to each coding area according to the energy attenuation rate of the laser energy on the complex surface of the target object in the absorption response curve and the optical reflection coefficient of each coding area in the boundary range during coding; Execution module 403. In this application, the execution module 403 is mainly used to generate a dynamic coding path for the target item based on all the energy compensation factors when it is detected that the absorption response curve of the target item in the coding area deviates from the preset standard curve.
[0051] Each module in the above fully automatic laser vision coding machine can be implemented in whole or in part by software, hardware, and their combination. The above modules can be embedded in the processor of the computer device in hardware form or be independent of it, or can be stored in the memory of the computer device in software form, so that the processor can call and execute the operations corresponding to the above modules.
[0052] In addition, in one embodiment, this application provides a computer device, which can be a server, and its internal structure diagram can be as Figure 5 shown. The computer device includes a processor, a memory, and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data on the coding path optimization method of the fully automatic laser vision coding machine. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, it realizes a coding path optimization method for a fully automatic laser vision coding machine.
[0053] Those skilled in the art can understand that Figure 5 the structure shown in
[0054] In one embodiment, a computer device is further provided, including a memory and a processor. A computer program is stored in the memory. When the processor executes the computer program, the steps in the embodiment of the coding path optimization method of the above-mentioned full-automatic laser vision coding machine are implemented.
[0055] In one embodiment, a computer-readable storage medium is provided, storing a computer program. When the computer program is executed by a processor, the steps in the embodiment of the coding path optimization method of the above-mentioned full-automatic laser vision coding machine are implemented.
[0056] In one embodiment, a computer program product or a computer program is provided. The computer program product or the computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the steps in the embodiment of the coding path optimization method of the above-mentioned full-automatic laser vision coding machine.
[0057] Those of ordinary skill in the art can understand that all or part of the processes of implementing the methods in the above embodiments can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above methods. Among them, any reference to a memory, storage, database, or other medium used in the various embodiments provided in the present application can include at least one of non-volatile and volatile memories. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, or optical memory, etc. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc.
[0058] The technical features of the above embodiments can be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, it should be considered as the scope recorded in this specification.
[0059] The above-described embodiments merely represent several implementation manners of the present application. The description thereof is relatively specific and detailed, but it should not be construed as a limitation on the scope of the invention patent. It should be noted that for those of ordinary skill in the art, without departing from the concept of the present application, several modifications and improvements can still be made, and these all fall within the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the appended claims.
Claims
1. A coding path optimization method for a fully automatic laser vision coding machine, characterized in that: The method comprises the following steps: Perform multi-view scanning on the target object to be coded to obtain the three-dimensional point cloud data of the target object; The three-dimensional point cloud data is spatially calibrated using the point cloud distribution map of the stereo calibration block in the fully automatic laser vision coding machine to obtain a three-dimensional feature model of the target object, and then the curvature field distribution required for beam path compensation for the target object is extracted from the three-dimensional feature model; Obtaining a region boundary range when coding a target object, and then determining an absorption response curve of a laser beam in all coding regions within the region boundary range based on the curvature field distribution and the surface material distribution of the target object; Determine the energy compensation factor corresponding to each coding area according to the energy attenuation rate of the laser energy on the complex surface of the target object in the absorption response curve and the optical reflection coefficient of each coding area in the boundary range of the area during coding; When it is detected that the absorption response curve of the target object in the coding area deviates from the preset standard curve, a dynamic coding path of the target object is generated based on all energy compensation factors.
2. The method according to claim 1, characterized in that The three-dimensional point cloud data is spatially calibrated by the point cloud distribution map of the stereo calibration block in the fully automatic laser vision coding machine to obtain the three-dimensional feature model of the target object, which specifically includes: Get the point cloud distribution map of the stereo calibration block in the fully automatic laser vision coding machine; Constructing a common view space domain of a stereo calibration block and a target object based on the point cloud distribution map; The three-dimensional point cloud data is calibrated through the common view space domain to obtain a three-dimensional feature model of the target object.
3. The method according to claim 1, characterized in that Extracting the curvature field distribution required for beam path compensation for the target object from the three-dimensional feature model specifically includes: Performing neighborhood topological analysis on the feature points in the three-dimensional feature model to obtain normalized vectors of all feature points in the three-dimensional feature model; Determine the curvature value of each feature point in the three-dimensional feature model through all normalized normal vectors; All curvature values are spatially interpolated to obtain the curvature field distribution required for beam path compensation of the target object.
4. The method according to claim 1, characterized in that The area boundary range includes multiple independent coding areas.
5. The method according to claim 1, characterized in that Determining the absorption response curve of the laser beam in all coding areas within the area boundary range based on the curvature field distribution and the surface material distribution of the target object specifically includes: Determine the surface material distribution of the target object; Establishing an absorption response model of the target object surface to the laser beam based on the curvature field distribution and the surface material distribution; Based on the absorption response model, the absorption response curve of the laser beam in all the coding areas within the area boundary range is determined.
6. The method according to claim 1, characterized in that Determining the energy compensation factor corresponding to each coding area according to the energy attenuation rate of the laser energy on the complex surface of the target object in the absorption response curve and the optical reflection coefficient of each coding area in the boundary range of the area during coding specifically includes: Determining the energy attenuation rate of the laser energy on the complex surface of the target object in the absorption response curve; For each coding area within the region boundary range, determining an optical reflectance coefficient of the coding area when coding the target object; Determine the reflectivity surface of the coding area according to the optical reflection coefficient and the curvature field distribution of the coding area; The energy compensation factor of the coding area is determined according to the reflectivity surface and the energy attenuation rate, and then the energy compensation factor of each coding area in the boundary range of the area is obtained.
7. The method according to claim 1, characterized in that When it is detected that the absorption response curve of the target object in the coding area deviates from the preset standard curve, the dynamic coding path of the target object is generated based on all energy compensation factors, specifically including: Determine the preset standard curve for laser coding; When the deviation value between the absorption response curve of the target object and the preset standard curve is greater than a preset deviation threshold, a dynamic coding path of the target object is generated according to all energy compensation factors.
8. A fully automatic laser vision coding machine, the fully automatic laser vision coding machine includes a coding path optimization unit, characterized in that: The coding path optimization unit comprises: The acquisition module is used to perform multi-view scanning on the target object to be coded to obtain the three-dimensional point cloud data of the target object; A processing module is used to perform spatial calibration on the three-dimensional point cloud data using the point cloud distribution map of the stereo calibration block in the fully automatic laser vision coding machine to obtain a three-dimensional feature model of the target object, and then extract the curvature field distribution required for beam path compensation for the target object from the three-dimensional feature model; The processing module is used to obtain the region boundary range when coding the target object, and then determine the absorption response curve of the laser beam in all coding regions within the region boundary range based on the curvature field distribution and the surface material distribution of the target object; The processing module is used to determine the energy compensation factor corresponding to each coding area according to the energy attenuation rate of the laser energy on the complex surface of the target object in the absorption response curve and the optical reflection coefficient of each coding area in the boundary range of the area during coding; The execution module is used to generate a dynamic coding path for the target object based on all energy compensation factors when it is detected that the absorption response curve of the target object in the coding area deviates from the preset standard curve.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the coding path optimization method of the fully automatic laser vision coding machine according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the coding path optimization method of the fully automatic laser vision coding machine as described in any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Laser marking simulation method, parameter adjustment method and device and electronic equipment
CN117483961A
Laser processing method and system based on machine vision
CN118314138A
Full-automatic stacking method and system based on machine vision and path planning
CN119477150A
Control method and system for glass laser marking
CN119609379A
Lithography method of substrate, and electron beam lithography system
JP2004101580A
Cited By
Tire curved surface two-dimensional code laser dynamic compensation engraving method guided by three-dimensional vision
CN120619604A
Three-dimensional vision-guided tire curved surface two-dimensional code laser dynamic compensation engraving method
CN120619604B
