Three-dimensional laser marking method, device, apparatus and storage medium

By acquiring the target focal plane of the initial three-dimensional laser point and using a preset measurement and calibration table for compensation and correction, the problems of low accuracy and slow speed of focal plane correction are solved, and fast and high-precision laser marking is achieved.

CN118635679BActive Publication Date: 2026-05-29SHENZHEN TETELASER TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
SHENZHEN TETELASER TECH CO LTD
Filing Date
2024-06-27
Publication Date
2026-05-29

Smart Images

  • Figure CN118635679B_ABST
    Figure CN118635679B_ABST
Patent Text Reader

Abstract

The application discloses a three-dimensional laser marking method, device, equipment and storage medium, and relates to the technical field of laser control. The method comprises the following steps: acquiring an initial three-dimensional laser point input by a user, and determining a target focal plane corresponding to the initial three-dimensional laser point; determining a target focal plane compensation value according to the target focal plane and a preset measurement correction table; compensating and correcting the initial three-dimensional laser point through the target focal plane compensation value, obtaining a target three-dimensional laser point, and performing laser marking based on the target three-dimensional laser point. The application can correct each focal plane in advance, and can collect corresponding correction compensation values into the preset measurement correction table. When actually performing laser marking, the application can automatically position a laser marking position, that is, a focal plane corresponding to the initial three-dimensional laser point, and then compensate and correct the initial three-dimensional laser point according to the determined target focal plane and the preset measurement correction table, so that fast and high-precision laser marking is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of laser control technology, and in particular to a three-dimensional laser marking method, apparatus, device and storage medium. Background Technology

[0002] Currently, dynamic focusing galvanometer 3D marking systems sometimes encounter issues during the marking process due to problems with optical lenses and structure, such as laser correction not being on the same focal plane. This leads to inconsistent processing results on the same focal plane within the marking area. Therefore, it is necessary to correct the focal plane during the marking process.

[0003] However, existing manual measurement and calibration methods are time-consuming, and the inaccuracy of the measurement results increases with the increase of laser focal depth. Therefore, the calibration accuracy is low and the calibration speed is slow, which in turn leads to the final laser marking speed being slow and the marking accuracy being poor.

[0004] The above content is only used to help understand the technical solution of this application and does not represent an admission that the above content is prior art. Summary of the Invention

[0005] The main objective of this application is to provide a three-dimensional laser marking method, apparatus, device, and storage medium, aiming to solve the technical problems of low correction accuracy and slow correction speed in existing three-dimensional laser marking methods, which result in slow laser marking speed and poor marking accuracy.

[0006] To achieve the above objectives, this application proposes a three-dimensional laser marking method, the method comprising:

[0007] Obtain the initial three-dimensional laser point input by the user, and determine the target focal plane corresponding to the initial three-dimensional laser point;

[0008] The target focal plane compensation value is determined based on the target focal plane and the preset measurement correction table;

[0009] The initial three-dimensional laser point is compensated and corrected by the target focal plane compensation value to obtain the target three-dimensional laser point, and laser marking is performed based on the target three-dimensional laser point.

[0010] In one embodiment, the step of determining the target focal plane corresponding to the initial three-dimensional laser point includes:

[0011] Obtain the target depth coordinates of the initial three-dimensional laser point in the focusing depth direction;

[0012] The target focal plane is obtained by traversing and matching the preset focal plane using the target depth coordinates.

[0013] In one embodiment, the step of determining the target focal plane compensation value based on the target focal plane and a preset measurement correction table includes:

[0014] Obtain the target correction node corresponding to the initial three-dimensional laser point input by the user in the target focal plane;

[0015] The target focal plane compensation value is determined based on the target correction node and the preset measurement correction table.

[0016] In one embodiment, before determining the target focal plane compensation value based on the target focal plane and a preset measurement correction table, the method further includes:

[0017] The entire laser 3D marking range is divided into several preset focal planes based on the number of target focal planes input by the user.

[0018] Perform preset focus compensation on any one of the plurality of preset focal planes to obtain a preset compensation value corresponding to any one focal plane;

[0019] The preset compensation values ​​corresponding to the several preset focal planes are summarized to obtain a preset measurement correction table.

[0020] In one embodiment, the step of performing preset focus compensation on any one of the plurality of preset focal planes to obtain a preset compensation value corresponding to any one focal plane includes:

[0021] Based on the plane division parameters input by the user, any one of the several preset focal planes is divided into a grid to obtain a preset number of compensation nodes;

[0022] Preset focus compensation is performed on the preset number of compensation nodes to obtain the preset compensation value corresponding to any focal plane.

[0023] In one embodiment, the step of performing preset focus compensation on the preset number of compensation nodes to obtain a preset compensation value corresponding to any focal plane includes:

[0024] Randomly select one node from the preset number of compensation nodes as the node to be corrected;

[0025] The line widths corresponding to several first laser scale lines are obtained based on the node to be corrected; the Z-axis compensation values ​​corresponding to the first laser scale lines change stepwise according to the first index.

[0026] The target laser scale line is determined based on the line width of the plurality of first laser scale lines, and the standard compensation value of the node to be corrected is determined according to the Z-axis compensation value corresponding to the target laser scale line.

[0027] Obtain the standard compensation values ​​corresponding to all compensation nodes in any focal plane, and summarize the standard compensation values ​​corresponding to all compensation nodes into the preset compensation value corresponding to any focal plane.

[0028] In one embodiment, the step of determining the target laser scale line based on the line width of the plurality of first laser scale lines includes:

[0029] Determine whether the widths of the plurality of first laser scale lines are consistent;

[0030] If not, then generate several second laser scale lines based on the laser scale line with the smallest current line width; the Z-axis compensation value corresponding to the second laser scale line changes stepwise according to the second index, which is smaller than the first index;

[0031] Using the node to be corrected as a reference, obtain the line widths corresponding to the plurality of second laser scale lines, and determine whether the line widths of the plurality of second laser scale lines are consistent;

[0032] If so, the scale line located at the center of the plurality of second laser scale lines shall be taken as the target laser scale line.

[0033] Furthermore, to achieve the above objectives, this application also proposes a three-dimensional laser marking device, which includes:

[0034] The focal plane determination module is used to acquire the initial three-dimensional laser point input by the user and determine the target focal plane corresponding to the initial three-dimensional laser point;

[0035] The compensation determination module is used to determine the target focal plane compensation value based on the target focal plane and a preset measurement correction table.

[0036] The laser correction module is used to compensate and correct the initial three-dimensional laser point using the target focal plane compensation value to obtain the target three-dimensional laser point, and to perform laser marking based on the target three-dimensional laser point.

[0037] In addition, to achieve the above objectives, this application also proposes a three-dimensional laser marking device, the device comprising: a memory, a processor, and a three-dimensional laser marking program stored in the memory and executable on the processor, the three-dimensional laser marking program being configured to implement the steps of the three-dimensional laser marking method as described above.

[0038] In addition, to achieve the above objectives, this application also proposes a storage medium, which stores a computer program, and when the computer program is executed by a processor, it implements the steps of the three-dimensional laser marking method described above.

[0039] This application provides a three-dimensional laser marking method, apparatus, device, and storage medium. The method includes: acquiring an initial three-dimensional laser point input by a user and determining the target focal plane corresponding to the initial three-dimensional laser point; determining a target focal plane compensation value based on the target focal plane and a preset measurement correction table; compensating and correcting the initial three-dimensional laser point using the target focal plane compensation value to obtain the target three-dimensional laser point; and performing laser marking based on the target three-dimensional laser point. This application can pre-calibrate each focal plane and summarize the corresponding correction compensation values ​​into a preset measurement correction table. When actually performing laser marking, this application can automatically locate the laser marking position, i.e., the focal plane corresponding to the initial three-dimensional laser point, and then directly compensate and correct the initial three-dimensional laser point according to the determined target focal plane and the preset measurement correction table, achieving fast and high-precision laser marking. Attached Figure Description

[0040] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.

[0041] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0042] Figure 1 This is a schematic diagram of the first process of the first embodiment of the three-dimensional laser marking method of this application;

[0043] Figure 2 This is a second flowchart illustrating the first embodiment of the three-dimensional laser marking method of this application;

[0044] Figure 3 This is a schematic diagram of the focal plane division of the first embodiment of the three-dimensional laser marking method of this application;

[0045] Figure 4 This is a schematic diagram of the correction node division in the first embodiment of the three-dimensional laser marking method of this application;

[0046] Figure 5 This is a schematic diagram of the first process of the second embodiment of the three-dimensional laser marking method of this application;

[0047] Figure 6 This is a schematic diagram of the second process of the second embodiment of the three-dimensional laser marking method of this application;

[0048] Figure 7 This is a schematic diagram of the laser scale line distribution in the second embodiment of the three-dimensional laser marking method of this application;

[0049] Figure 8 This is a schematic diagram of the module structure of the three-dimensional laser marking device according to an embodiment of this application;

[0050] Figure 9 This is a schematic diagram of the device structure of the hardware operating environment involved in the three-dimensional laser marking method in the embodiments of this application.

[0051] The purpose, features, and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation

[0052] It should be understood that the specific embodiments described herein are merely illustrative of the technical solutions of this application and are not intended to limit this application.

[0053] To better understand the technical solution of this application, a detailed description will be provided below in conjunction with the accompanying drawings and specific implementation methods.

[0054] The main solution of this application is: to obtain the initial three-dimensional laser point input by the user and determine the target focal plane corresponding to the initial three-dimensional laser point; to determine the target focal plane compensation value according to the target focal plane and the preset measurement correction table; to compensate and correct the initial three-dimensional laser point through the focal plane compensation value to obtain the target three-dimensional laser point, and to perform laser marking based on the target three-dimensional laser point.

[0055] Currently, dynamic focusing galvanometer 3D marking systems suffer from issues related to optical lenses and structure, leading to inconsistencies in laser calibration across the same focal plane. This necessitates focal plane calibration. Traditional calibration methods typically involve marking crosshairs at different locations within the processing area, then manually observing and measuring the crosshair coordinates. The operator adjusts parameters based on the observed values, repeating the process until the crosshairs are deemed acceptable. The measurements are then manually input into the laser emission software, which performs calibration based on the user-input data. However, this manual measurement process is extremely inefficient, especially with a large number of measurement points. The entire calibration process can take up to a week, resulting in a lengthy calibration time.

[0056] Furthermore, when the laser depth of focus is large, it is not easy for a person to find the correct focal position, which leads to inaccuracies in the measurement data and causes the calibration to fail to meet the actual production requirements.

[0057] Therefore, existing laser marking methods suffer from time-consuming correction processes and inaccurate results when correcting the focal plane, failing to meet the requirements of rapid mass production and high-precision processing.

[0058] This application pre-calibrates each focal plane and summarizes the corresponding calibration compensation values ​​into a preset measurement calibration table. When actual laser measurement is performed, the laser mark position is automatically located, i.e., the focal plane corresponding to the initial three-dimensional laser point. Then, based on the determined target focal plane and the preset measurement calibration table, the initial three-dimensional laser point is directly compensated and calibrated. This not only improves the calibration speed but also effectively improves the calibration accuracy, thereby achieving fast and high-precision laser marking.

[0059] It should be noted that the executing entity in this embodiment can be a computing service device that has data processing, satellite communication, program execution, and is equipped with or controls a dynamic focusing galvanometer system to achieve laser marking functions, such as a tablet computer, personal computer, or mobile phone, or a data-intensive application capable of achieving the above functions. This embodiment does not specifically limit it in this way. The following uses a three-dimensional laser marking device (hereinafter referred to as the marking device) as the executing entity to describe this embodiment and the following embodiments.

[0060] Based on this, embodiments of this application provide a three-dimensional laser marking method, referring to... Figure 1 , Figure 1 This is a schematic diagram of the first process of the first embodiment of the three-dimensional laser marking method of this application.

[0061] In this embodiment, the three-dimensional laser marking method includes steps S10 to S30:

[0062] Step S10: Obtain the initial three-dimensional laser point input by the user, and determine the target focal plane corresponding to the initial three-dimensional laser point;

[0063] Step S20: Determine the target focal plane compensation value based on the target focal plane and the preset measurement correction table;

[0064] It should be understood that, in this embodiment, the marking device can be a 3D dynamic focusing system consisting of a 2D galvanometer structure located on the X and Y axes plus a set of dynamic axes that move in the Z direction. The marking device can perform laser marking by controlling the Z-axis dynamic axis in coordination with the X and Y axes through software.

[0065] It is understandable that the initial three-dimensional laser points mentioned above can be user-inputted. When the user performs laser marking using the marking device, the entire marking process is completed step by step based on these individual laser points. However, due to structural issues, the marking device may exhibit inconsistent processing effects on the same focal plane within the marking area. In the actual laser marking process, the laser may not fall on the initial laser points as expected. Therefore, this application requires correction of the initial three-dimensional laser points and the final accurate laser marking based on the corrected laser points.

[0066] Since existing laser marking typically exhibits inconsistent processing effects on the same focal plane and different focal planes, the correction compensation values ​​corresponding to each laser point are also different. In this embodiment, the focal plane can be used as a reference to pre-calibrate each focal plane and summarize the corresponding correction compensation values ​​into a preset measurement calibration table, so as to perform focus compensation for rapid mapping based on the preset calibration table when performing actual laser marking.

[0067] Accordingly, in this embodiment, after the marking device acquires the initial three-dimensional laser point, it can determine the corresponding target focal plane based on the coordinates of the initial three-dimensional laser point. Specifically, in this embodiment, step S10 may include steps A1 to A2:

[0068] Step A1: Obtain the target depth coordinates of the initial three-dimensional laser point in the focusing depth direction;

[0069] Step A2: The target focal plane is obtained by traversing and matching the preset focal plane using the target depth coordinates.

[0070] It is understood that the coordinates of the initial three-dimensional laser point can be three-dimensional coordinates, including X-axis, Y-axis, and Z-axis coordinates. In this embodiment, the focusing depth direction can be set to be parallel to the Z-axis direction, meaning the coordinates corresponding to the focusing depth direction can be Z-axis coordinates. Therefore, the target depth coordinates can be the Z-axis coordinates of the initial three-dimensional laser point input by the user.

[0071] In this embodiment, the marking device can pre-divide the entire working range of the laser along the Z-axis to obtain several preset focal planes, and then calibrate each preset focal plane to obtain the aforementioned preset measurement calibration table. Therefore, this embodiment can match the preset focal planes based on the Z-axis coordinates of the initial three-dimensional laser point, and determine the target focal plane based on the matching result.

[0072] Specifically, if the Z-axis coordinate of the initial laser point corresponds exactly to the Z-axis coordinate of a preset focal plane, then in this embodiment, the preset focal plane can be directly used as the target focal plane, and the compensation value corresponding to the preset focal plane can be directly mapped and searched to determine the compensation value of the target focal plane.

[0073] If the Z-axis coordinate of the initial laser point is located between the Z-axis coordinates of the two preset focal planes, then in this embodiment, both preset focal planes can be used as target focal planes. Subsequently, the compensation values ​​corresponding to the two preset focal planes can be weighted according to the distance between the initial laser point and the two preset focal planes to obtain the final target focal plane compensation value.

[0074] It is understood that this embodiment can also compensate and correct the X-axis and Y-axis coordinates of the initial laser point. In one feasible implementation, refer to... Figure 2 , Figure 2 This is a second flowchart illustrating the first embodiment of the three-dimensional laser marking method of this application. Step S20 may include steps B1 to B2:

[0075] Step B1: Obtain the target correction node corresponding to the initial three-dimensional laser point input by the user in the target focal plane;

[0076] Step B2: Determine the target focal plane compensation value based on the target correction node and the preset measurement correction table.

[0077] It should be noted that the marking device may also have deviations in the X and Y axes during actual operation. Therefore, in this embodiment, each preset focal plane can be divided into several (e.g., R rows and C columns) correction nodes, and then more accurate correction compensation can be achieved based on the correction nodes.

[0078] Therefore, the compensation values ​​in the aforementioned preset measurement and correction table can be further classified and stored based on the three-dimensional coordinates of the points. Accordingly, in this embodiment, after determining the target focal plane, the marking device can further determine the target correction node corresponding to the initial three-dimensional laser point within the target focal plane based on the X-axis and Y-axis coordinates of the initial three-dimensional laser point, thereby performing focal plane compensation based on the target correction node and the preset measurement and correction table to improve correction accuracy.

[0079] Specifically, if the X-axis and Y-axis coordinates of the initial laser point correspond exactly to the node coordinates of the preset focal plane, then in this embodiment, the node can be directly used as the target correction node, and the compensation value corresponding to the target correction node can be directly mapped and searched to determine the target focal plane compensation value.

[0080] If the X-axis and Y-axis coordinates of the initial laser point are located between different correction node coordinates, this embodiment can use the correction nodes closest to the initial 3D laser point as target correction nodes. Based on the distance between the initial laser point and the target correction nodes, the compensation values ​​corresponding to each target correction node are weighted to obtain the final target focal plane compensation value. The number of target correction nodes can be determined based on the actual position of the initial 3D laser point and the division method of the preset focal plane. For example, if each preset focal plane is divided into R rows and C columns of correction nodes, the number of target correction nodes can be 2 to 4; if each preset focal plane is divided according to an N-sided polygon, the number of target correction nodes can be 2 to N.

[0081] For ease of understanding, Figure 3 and Figure 4 The process of determining the target correction compensation value will be illustrated using an example. Figure 3 This is a schematic diagram of the focal plane division of the first embodiment of the three-dimensional laser marking method of this application. Figure 4This is a schematic diagram of the correction node division in the first embodiment of the three-dimensional laser marking method of this application. It is assumed that in actual operation, the entire three-dimensional laser processing range can be divided into N preset focal planes, L1 to LN, and each preset focal plane can be divided into 25 correction nodes in 5 rows and 5 columns. Simultaneously, it is assumed that point F(x0, y0) is the initial laser point, such as... Figure 3 As shown, point F is located between L2 and L3, so L2 and L3 are the corresponding target focal planes. Simultaneously, point F is located horizontally between points p1-p4 on the L2 plane and points q1-q4 on the L3 plane. Therefore, in this embodiment, points p1-p4 and q1-q4 can be used as target correction nodes corresponding to point F. Eight different preset compensation values ​​(i.e., the number of target correction nodes) corresponding to points p1-p4 and q1-q4 are obtained from a preset measurement correction table. Different weights are assigned to each preset compensation value based on the distances between points p1-p4 and q1-q4 and point F. Finally, the different preset compensation values ​​are weighted and calculated to determine the final target focal plane compensation value.

[0082] In summary, the marking device in this embodiment can not only achieve mapping compensation in the Z-axis direction based on the target depth coordinates of the initial three-dimensional laser point and the preset measurement correction table, but also achieve mapping compensation in the X-axis and / or Y-axis within the same focal plane based on the X-axis and Y-axis coordinates of the initial three-dimensional laser point and the preset measurement correction table, thereby improving the correction accuracy.

[0083] Step S30: The initial three-dimensional laser point is compensated and corrected using the target focal plane compensation value to obtain the target three-dimensional laser point, and laser marking is performed based on the target three-dimensional laser point.

[0084] It is easy to understand that after the initial three-dimensional laser point is compensated and corrected by the focal plane compensation value, the target three-dimensional laser emitted by the marking device can fall at the position expected by the user. In this embodiment, as the scanning moves to different positions, based on the preset measurement and correction table, the laser point is used as the correction unit to perform mapping compensation and correction in sequence. This accurately compensates for the forward and backward movement of the Z-axis corresponding to each laser point according to the optical path, so that any position on the full-width surface is at the focal point of the laser. This not only greatly reduces the measurement and correction cycle and improves the efficiency of laser marking, but also enables precise laser marking at any position, thus improving the accuracy of laser marking.

[0085] This embodiment provides a three-dimensional laser marking method. The method involves acquiring an initial three-dimensional laser point input by the user and determining the target focal plane corresponding to the initial three-dimensional laser point; acquiring the target depth coordinates corresponding to the initial three-dimensional laser point in the focusing depth direction; traversing and matching a preset focal plane using the target depth coordinates to obtain the target focal plane; acquiring the target correction node corresponding to the initial three-dimensional laser point in the target focal plane; determining the target focal plane compensation value based on the target correction node and a preset measurement and correction table; compensating and correcting the initial three-dimensional laser point using the target focal plane compensation value to obtain the target three-dimensional laser point; and performing laser marking based on the target three-dimensional laser point. This embodiment can automatically locate the focal plane corresponding to the initial three-dimensional laser point, and then directly compensate and correct the initial three-dimensional laser point according to the determined target focal plane and a preset measurement and correction table, reducing the measurement and correction cycle, improving laser marking efficiency, and enabling precise laser marking at any location, thus improving laser marking accuracy.

[0086] Based on the first embodiment of this application, in the second embodiment of this application, the same or similar content as the first embodiment described above can be referred to the above description, and will not be repeated hereafter.

[0087] It is understandable that existing traditional measurement and calibration methods involve marking a cross with a laser and then having an operator manually observe whether the cross is at the focal point to confirm its position. In order to improve the efficiency of laser marking, this embodiment can pre-determine a preset measurement and calibration table based on the focal plane compensation calibration, and then perform mapping compensation calibration based on the preset measurement and calibration table to improve the efficiency of laser marking.

[0088] Reference Figure 5 , Figure 5 This is a schematic diagram of the first process of the second embodiment of the three-dimensional laser marking method of this application. In this embodiment, steps S00 to S02 may be included before step S20:

[0089] Step S00: Divide the entire laser 3D marking range into several preset focal planes according to the number of target focal planes input by the user;

[0090] Step S01: Perform preset focus compensation on any one of the plurality of preset focal planes to obtain the preset compensation value corresponding to any one focal plane;

[0091] Step S02: Summarize the preset compensation values ​​corresponding to the plurality of preset focal planes to obtain a preset measurement correction table.

[0092] As can be understood from the above analysis, since the processing effect of the same focal plane is inconsistent, and the processing effect of different focal planes is also inconsistent, the correction compensation values ​​corresponding to each laser point are also different. Therefore, in the pre-calibration process, this embodiment can divide the entire laser three-dimensional marking range into several preset focal planes in the focusing depth direction according to the number of target focal planes input by the user. Based on each preset focal plane as a reference, each preset focal plane is calibrated, and the corresponding correction compensation values ​​are summarized into a preset measurement calibration table for storage. The number of preset focal planes can be determined by the operator according to the actual situation, and this embodiment does not limit the specific value.

[0093] In one feasible implementation, in this embodiment, step S02 includes steps C1 to C2:

[0094] Step C1: Based on the plane division parameters input by the user, perform mesh division on any one of the several preset focal planes to obtain a preset number of compensation nodes;

[0095] Step C2: Perform preset focus compensation on the preset number of compensation nodes to obtain the preset compensation value corresponding to any focal plane.

[0096] It is easy to understand that, as the above analysis shows, the marking device may also have deviations in the X and Y axes during actual operation. Therefore, this embodiment can divide each preset focal plane into several (e.g., R rows and C columns) compensation nodes according to the user-input plane division parameters, and then achieve more accurate correction compensation based on the compensation nodes. The plane division parameters can be the number of node rows and columns, or the mesh division method (rectangular division, diamond division, or polygonal division) and division interval. The above preset number can also be determined by the operator according to the actual situation, and this embodiment does not limit the specific values.

[0097] It is understood that this embodiment can also propose a novel automatic calibration method combining a high-precision camera during the pre-calibration process. Therefore, in a feasible implementation, referring to... Figure 6 , Figure 6 This is a second flowchart illustrating the second embodiment of the three-dimensional laser marking method of this application. Step C2 includes steps D1 to D4:

[0098] Step D1: Randomly select one node from the preset number of compensation nodes as the node to be corrected;

[0099] Step D2: Using the node to be corrected as a reference, obtain the line widths corresponding to several first laser scale lines; the Z-axis compensation values ​​corresponding to the first laser scale lines change stepwise according to the first index.

[0100] Step D3: Determine the target laser scale line based on the line width of the plurality of first laser scale lines, and determine the standard compensation value of the node to be corrected according to the Z-axis compensation value corresponding to the target laser scale line.

[0101] Step D4: Obtain the standard compensation values ​​corresponding to all compensation nodes in any focal plane, and summarize the standard compensation values ​​corresponding to all compensation nodes into the preset compensation value corresponding to any focal plane.

[0102] It should be noted that this embodiment can determine all compensation nodes within the current focal plane, and then sequentially correct the compensation nodes to determine the corresponding compensation values. Therefore, in this embodiment, the marking device can randomly select one node from a preset number of compensation nodes as the node to be corrected, and use a laser to mark several (usually an odd number, such as 11) scale lines near the node to be corrected, namely the aforementioned first laser scale lines.

[0103] Furthermore, the Z-axis compensation value corresponding to each first laser scale line can vary according to a first index step. For example, the Z-axis focus compensation value of each scale line can increase in steps of 1mm above and below the theoretical focus value of the node to be corrected. Simultaneously, this embodiment can automatically measure the line width corresponding to each first laser scale line using a high-precision camera, and determine the target laser scale line corresponding to the node to be corrected based on the line width. Thus, the Z-axis compensation value corresponding to the target laser scale line is determined as the standard compensation value corresponding to the node to be corrected. A schematic diagram of the laser scale line distribution is shown below. Figure 7 As shown, Figure 7 This is a schematic diagram of the laser scale line distribution in the second embodiment of the three-dimensional laser marking method of this application.

[0104] Repeat the above steps until the correction of all compensation nodes in the current focal plane is completed and the corresponding standard compensation values ​​are obtained. Then, the standard compensation values ​​of all compensation nodes in the current focal plane can be summarized into the preset compensation values ​​of the current focal plane, and the preset compensation values ​​of all preset focal planes can be determined.

[0105] In one feasible implementation, step D4 includes steps D41 to D44:

[0106] Step D41: Determine whether the line widths of the plurality of first laser scale lines are consistent;

[0107] Step D42: If not, generate several second laser scale lines based on the laser scale line with the smallest current line width; the Z-axis compensation value corresponding to the second laser scale line changes stepwise according to the second index, which is smaller than the first index;

[0108] Step D43: Using the node to be corrected as a reference, obtain the line widths corresponding to the plurality of second laser scale lines, and determine whether the line widths of the plurality of second laser scale lines are consistent.

[0109] Step D44: If yes, then the scale line located at the center position among the plurality of second laser scale lines shall be taken as the target laser scale line.

[0110] It is understood that this embodiment can use a high-precision camera or other high-precision imaging equipment to obtain the line widths corresponding to several first laser scale lines with the node to be corrected as the central axis. In this case, if the line widths of all the first laser lines are consistent, the scale line located at the center of the first laser scale lines can be used as the target laser scale line.

[0111] If the width of each first laser line is consistent, this embodiment can compare and analyze which first laser line has the smallest width and record the corresponding Z-axis compensation value. Simultaneously, several second laser scale lines are emitted above and below the corresponding Z-axis compensation value. Each second laser scale line corresponds to a second index, i.e., a Z-axis compensation value less than the Z-axis focusing compensation value of the first laser scale line. Specifically, the second index can increase in increments of 0.5mm based on the recorded Z-axis compensation value corresponding to the first laser scale line with the smallest width.

[0112] Then, in this embodiment, a high-precision camera can be used to automatically measure the width of each second laser scale line with the node to be corrected as a reference, and determine whether the line widths of several second laser scale lines are consistent at this time.

[0113] It is easy to understand that if the width of the second laser scale lines is consistent, then the scale line located at the center among several second laser scale lines can be used as the target laser scale line.

[0114] If they are inconsistent, further analysis can be performed to determine which second laser scale line has the smallest line width, and the Z-axis compensation value corresponding to the second laser scale line with the smallest line width can be recorded. The process of continuously reducing the step increment and comparing the scale line widths is repeated until no change in the laser scale line width is detected. At this point, the Z-axis compensation value corresponding to the laser scale line located at the center can be used as the Z-axis compensation value for the node to be corrected.

[0115] In summary, operators only need to set the number of preset focal planes N, the division method of each preset focal plane, and the number of compensation nodes. By combining the corresponding high-precision camera equipment and measuring and confirming the Z-axis compensation value of each compensation node using the above method, the corresponding Z-axis compensation value of each compensation node can be measured quickly and accurately automatically. This greatly reduces the measurement and correction cycle and improves the accuracy of measurement and correction.

[0116] This embodiment obtains the target depth coordinates corresponding to the initial 3D laser point in the focusing depth direction; it then uses these target depth coordinates to traverse and match a preset focal plane to obtain the target focal plane. It acquires the target correction node corresponding to the initial 3D laser point input by the user in the target focal plane; and determines the target focal plane compensation value based on the target correction node and a preset measurement correction table. Before formal marking, this embodiment can further divide the entire laser 3D marking range into several preset focal planes based on the number of target focal planes input by the user; it then performs meshing on any one of the preset focal planes according to the user-input plane division parameters to obtain a preset number of compensation nodes; it randomly selects one node from the preset number of compensation nodes as the node to be corrected; it obtains the line widths corresponding to several first laser scale lines based on the node to be corrected; the Z-axis compensation value corresponding to the first laser scale line changes according to a first index step; it determines whether the line widths of the several first laser scale lines are consistent; if not, it generates a new laser scale line based on the laser scale line with the smallest current line width. Several second laser scale lines are drawn; the Z-axis compensation value corresponding to the second laser scale lines changes stepwise according to a second index, which is less than the first index; the line widths corresponding to the several second laser scale lines are obtained based on the node to be corrected, and it is determined whether the line widths of the several second laser scale lines are consistent; if so, the scale line located at the center position among the several second laser scale lines is taken as the target laser scale line, and the standard compensation value of the node to be corrected is determined according to the Z-axis compensation value corresponding to the target laser scale line; the standard compensation values ​​corresponding to all compensation nodes in any focal plane are obtained, and the standard compensation values ​​corresponding to all compensation nodes are summarized into the preset compensation value corresponding to any focal plane. The preset compensation values ​​corresponding to several preset focal planes are summarized to obtain a preset measurement and correction table. This embodiment can divide the entire laser three-dimensional marking range based on the number of target focal planes and plane division parameters input by the user, determine the compensation nodes that need to be corrected, and then automatically correct them by measuring and confirming the Z-axis compensation value of each compensation node based on the emitted laser scale lines and high-precision camera equipment. Therefore, operators only need to set the number of preset focal planes and the division method or number of compensation nodes for each preset focal plane. Combined with the corresponding high-precision camera equipment, the corresponding Z-axis compensation value of each compensation node can be measured quickly and accurately automatically, thereby greatly reducing the measurement and correction cycle and improving the accuracy of measurement and correction.

[0117] This application also provides a three-dimensional laser marking device, please refer to... Figure 8 , Figure 8 This is a schematic diagram of the module structure of the three-dimensional laser marking device according to an embodiment of this application, as shown below. Figure 8 As shown, the three-dimensional laser marking device includes:

[0118] The focal plane determination module 801 is used to acquire the initial three-dimensional laser point input by the user and determine the target focal plane corresponding to the initial three-dimensional laser point;

[0119] The compensation determination module 802 is used to determine the target focal plane compensation value based on the target focal plane and a preset measurement correction table.

[0120] The laser correction module 803 is used to compensate and correct the initial three-dimensional laser point by the target focal plane compensation value, obtain the target three-dimensional laser point, and perform laser marking based on the target three-dimensional laser point.

[0121] As one possible implementation, in this embodiment, the focal plane determination module 801 is further used to obtain the target depth coordinates corresponding to the initial three-dimensional laser point in the focusing depth direction;

[0122] The focal plane determination module 801 is also used to traverse and match the preset focal plane using the target depth coordinates to obtain the target focal plane.

[0123] As one possible implementation, in this embodiment, the compensation determination module 802 is also used to obtain the target correction node corresponding to the initial three-dimensional laser point input by the user in the target focal plane;

[0124] The compensation determination module 802 is also used to determine the target focal plane compensation value based on the target correction node and the preset measurement correction table.

[0125] As one possible implementation, in this embodiment, the compensation determination module 802 is also used to divide the entire laser three-dimensional marking range into several preset focal planes according to the number of target focal planes input by the user.

[0126] The compensation determination module 802 is also used to perform preset focus compensation on any one of the plurality of preset focal planes to obtain a preset compensation value corresponding to any one focal plane.

[0127] The compensation determination module 802 is also used to summarize the preset compensation values ​​corresponding to the plurality of preset focal planes respectively to obtain a preset measurement correction table.

[0128] As one possible implementation, in this embodiment, the compensation determination module 802 is further used for the step of performing preset focus compensation on any one of the plurality of preset focal planes to obtain a preset compensation value corresponding to any one focal plane, including:

[0129] The compensation determination module 802 is also used to perform mesh division on any one of the several preset focal planes according to the plane division parameters input by the user, and obtain a preset number of compensation nodes.

[0130] The compensation determination module 802 is also used to perform preset focus compensation on the preset number of compensation nodes to obtain a preset compensation value corresponding to any focal plane.

[0131] As one possible implementation, in this embodiment, the compensation determination module 802 is further configured to randomly select one node from the preset number of compensation nodes as the node to be corrected.

[0132] The compensation determination module 802 is also used to obtain the line widths corresponding to several first laser scale lines based on the node to be corrected; the Z-axis compensation value corresponding to the first laser scale line changes stepwise according to the first index.

[0133] The compensation determination module 802 is also used to determine the target laser scale line based on the line width of the plurality of first laser scale lines, and to determine the standard compensation value of the node to be corrected according to the Z-axis compensation value corresponding to the target laser scale line.

[0134] The compensation determination module 802 is also used to obtain the standard compensation value corresponding to all compensation nodes in any focal plane, and to summarize the standard compensation value corresponding to all compensation nodes into the preset compensation value corresponding to any focal plane.

[0135] As one possible implementation, in this embodiment, the compensation determination module 802 is also used to determine whether the line widths of the plurality of first laser scale lines are consistent;

[0136] The compensation determination module 802 is also used to generate several second laser scale lines based on the laser scale line with the smallest current line width if no; the Z-axis compensation value corresponding to the second laser scale line changes stepwise according to the second index, and the second index is less than the first index;

[0137] The compensation determination module 802 is also used to obtain the line widths corresponding to the plurality of second laser scale lines based on the node to be corrected, and to determine whether the line widths of the plurality of second laser scale lines are consistent.

[0138] The compensation determination module 802 is further configured to, if so, take the scale line located at the center position among the plurality of second laser scale lines as the target laser scale line.

[0139] The three-dimensional laser marking device provided in this application, employing the three-dimensional laser marking method in the above embodiments, can solve the technical problem of three-dimensional laser marking. Compared with the prior art, the beneficial effects of the three-dimensional laser marking device provided in this application are the same as those of the three-dimensional laser marking method provided in the above embodiments, and other technical features in the three-dimensional laser marking device are the same as those disclosed in the methods of the above embodiments, and will not be repeated here.

[0140] This application provides a three-dimensional laser marking device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, which are executed by the at least one processor to enable the at least one processor to perform the three-dimensional laser marking method in Embodiment 1 above.

[0141] The following is for reference. Figure 9 The diagram illustrates a structural schematic of a three-dimensional laser marking device suitable for implementing embodiments of this application. The three-dimensional laser marking device in the embodiments of this application may include, but is not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Description), PMPs (Portable Media Players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 7 The three-dimensional laser marking device shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments of this application.

[0142] like Figure 9As shown, the three-dimensional laser marking device may include a processing unit 1001 (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1002 or a program loaded from a storage device 1003 into a random access memory (RAM) 1004. The RAM 1004 also stores various programs and data required for the operation of the three-dimensional laser marking device. The processing unit 1001, ROM 1002, and RAM 1004 are interconnected via a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Typically, the following systems can be connected to the I / O interface 1006: input devices 1007 including, for example, a touch screen, touchpad, keyboard, mouse, image sensor, microphone, accelerometer, gyroscope, etc.; output devices 1008 including, for example, a liquid crystal display (LCD), speaker, vibrator, etc.; storage devices 1003 including, for example, magnetic tape, hard disk, etc.; and communication devices 1009. The communication device 1009 allows the 3D laser marking device to communicate wirelessly or wiredly with other devices to exchange data. Although the figures show 3D laser marking devices with various systems, it should be understood that implementing or having all of the systems shown is not required. More or fewer systems may be implemented alternatively.

[0143] Specifically, according to the embodiments disclosed in this application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments disclosed in this application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device, or installed from storage device 1003, or installed from ROM 1002. When the computer program is executed by processing device 1001, it performs the functions defined in the methods of the embodiments disclosed in this application.

[0144] The three-dimensional laser marking device provided in this application, employing the three-dimensional laser marking method described in the above embodiments, can solve the technical problems of low accuracy and low efficiency in three-dimensional laser marking. Compared with the prior art, the beneficial effects of the three-dimensional laser marking device provided in this application are the same as those of the three-dimensional laser marking method provided in the above embodiments, and other technical features of this three-dimensional laser marking device are the same as those disclosed in the previous embodiment method, and will not be repeated here.

[0145] It should be understood that the various parts disclosed in this application can be implemented using hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics can be combined in any suitable manner in one or more embodiments or examples.

[0146] The above are merely specific embodiments of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

[0147] This application provides a storage medium having computer-readable program instructions (i.e., a computer program) stored thereon, the computer-readable program instructions being used to execute the three-dimensional laser marking method in the above embodiments.

[0148] The storage medium provided in this application may be, for example, a USB flash drive, but is not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or any combination thereof. More specific examples of storage media may include, but are not limited to: electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. In this embodiment, the storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, system, or device. The program code contained on the storage medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination thereof.

[0149] The aforementioned storage medium may be included in the three-dimensional laser marking device; or it may exist independently without being assembled into the three-dimensional laser marking device.

[0150] The aforementioned storage medium carries one or more programs, which, when executed by the three-dimensional laser marking device, enable the three-dimensional laser marking device to perform three-dimensional laser marking.

[0151] Computer program code for performing the operations of this application can be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, and C++, and conventional procedural programming languages ​​such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a Local Area Network (LAN) or a Wide Area Network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0152] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0153] The modules described in the embodiments of this application can be implemented in software or hardware. The names of the modules do not necessarily limit the functionality of the unit itself.

[0154] The readable storage medium provided in this application is a storage medium that stores computer-readable program instructions (i.e., a computer program) for executing the above-described three-dimensional laser marking method, and is capable of solving the technical problems of three-dimensional laser marking. Compared with the prior art, the beneficial effects of the storage medium provided in this application are the same as the beneficial effects of the three-dimensional laser marking method provided in the above embodiments, and will not be repeated here.

[0155] The above are only some embodiments of this application and do not limit the patent scope of this application. All equivalent structural transformations made under the technical concept of this application and using the contents of the specification and drawings of this application, or direct / indirect applications in other related technical fields, are included in the patent protection scope of this application.

Claims

1. A three-dimensional laser marking method, characterized in that, The method includes: Obtain the initial three-dimensional laser point input by the user, and determine the target focal plane corresponding to the initial three-dimensional laser point; The target focal plane compensation value is determined based on the target focal plane and the preset measurement correction table; The initial three-dimensional laser point is compensated and corrected by the target focal plane compensation value to obtain the target three-dimensional laser point, and laser marking is performed based on the target three-dimensional laser point; Before determining the target focal plane compensation value based on the target focal plane and the preset measurement correction table, the method further includes: The entire laser 3D marking range is divided into several preset focal planes based on the number of target focal planes input by the user. Perform preset focus compensation on any one of the plurality of preset focal planes to obtain a preset compensation value corresponding to any one focal plane; The preset compensation values ​​corresponding to the plurality of preset focal planes are summarized to obtain a preset measurement correction table; The step of performing preset focus compensation on any one of the plurality of preset focal planes to obtain a preset compensation value corresponding to any one focal plane includes: Based on the plane division parameters input by the user, any one of the several preset focal planes is divided into a grid to obtain a preset number of compensation nodes; Preset focus compensation is performed on the preset number of compensation nodes to obtain a preset compensation value corresponding to any focal plane. The step of performing preset focus compensation on the preset number of compensation nodes to obtain a preset compensation value corresponding to any focal plane includes: Randomly select one node from the preset number of compensation nodes as the node to be corrected; The line widths corresponding to several first laser scale lines are obtained based on the node to be corrected; the Z-axis compensation values ​​corresponding to the first laser scale lines change stepwise according to the first index. The target laser scale line is determined based on the line width of the plurality of first laser scale lines, and the standard compensation value of the node to be corrected is determined according to the Z-axis compensation value corresponding to the target laser scale line. Obtain the standard compensation values ​​corresponding to all compensation nodes in any focal plane, and summarize the standard compensation values ​​corresponding to all compensation nodes into the preset compensation value corresponding to any focal plane.

2. The three-dimensional laser marking method as described in claim 1, characterized in that, The step of determining the target focal plane corresponding to the initial three-dimensional laser point includes: Obtain the target depth coordinates of the initial three-dimensional laser point in the focusing depth direction; The target focal plane is obtained by traversing and matching the preset focal plane using the target depth coordinates.

3. The three-dimensional laser marking method as described in claim 2, characterized in that, The step of determining the target focal plane compensation value based on the target focal plane and a preset measurement correction table includes: Obtain the target correction node corresponding to the initial three-dimensional laser point input by the user in the target focal plane; The target focal plane compensation value is determined based on the target correction node and the preset measurement correction table.

4. The three-dimensional laser marking method as described in claim 1, characterized in that, The step of determining the target laser scale line based on the line width of the plurality of first laser scale lines includes: Determine whether the widths of the plurality of first laser scale lines are consistent; If not, then generate several second laser scale lines based on the laser scale line with the smallest current line width; the Z-axis compensation value corresponding to the second laser scale line changes stepwise according to the second index, which is smaller than the first index; Using the node to be corrected as a reference, obtain the line widths corresponding to the plurality of second laser scale lines, and determine whether the line widths of the plurality of second laser scale lines are consistent; If so, the scale line located at the center of the plurality of second laser scale lines shall be taken as the target laser scale line.

5. A three-dimensional laser marking device, characterized in that, The three-dimensional laser marking device includes: The focal plane determination module is used to acquire the initial three-dimensional laser point input by the user and determine the target focal plane corresponding to the initial three-dimensional laser point; The compensation determination module is used to determine the target focal plane compensation value based on the target focal plane and a preset measurement correction table. The laser correction module is used to compensate and correct the initial three-dimensional laser point using the target focal plane compensation value to obtain the target three-dimensional laser point, and to perform laser marking based on the target three-dimensional laser point; The compensation determination module is further configured to divide the entire laser three-dimensional marking range into several preset focal planes according to the number of target focal planes input by the user; perform preset focus compensation on any one of the several preset focal planes to obtain a preset compensation value corresponding to any one focal plane; and summarize the preset compensation values ​​corresponding to the several preset focal planes to obtain a preset measurement correction table. The compensation determination module is further configured to perform grid division on any one of the plurality of preset focal planes according to the plane division parameters input by the user, to obtain a preset number of compensation nodes; and to perform preset focus compensation on the preset number of compensation nodes to obtain a preset compensation value corresponding to any one focal plane. The compensation determination module is further configured to: randomly select a node from the preset number of compensation nodes as the node to be corrected; obtain the line widths corresponding to several first laser scale lines based on the node to be corrected; change the Z-axis compensation value corresponding to the first laser scale lines according to a first index step; determine the target laser scale line based on the line widths of the several first laser scale lines, and determine the standard compensation value of the node to be corrected according to the Z-axis compensation value corresponding to the target laser scale line; obtain the standard compensation values ​​corresponding to all compensation nodes in any focal plane, and summarize the standard compensation values ​​corresponding to all compensation nodes into a preset compensation value corresponding to any focal plane.

6. A three-dimensional laser marking device, characterized in that, The device includes: a memory, a processor, and a three-dimensional laser marking program stored in the memory and executable on the processor, the three-dimensional laser marking program being configured to implement the steps of the three-dimensional laser marking method as described in any one of claims 1 to 4.

7. A storage medium, characterized in that, The storage medium stores a three-dimensional laser marking program, which, when executed by a processor, implements the steps of the three-dimensional laser marking method as described in any one of claims 1 to 4.