Laser galvanometer calibration method and device, computer equipment and storage medium

By acquiring the galvanometer control data and the movement amount of the motion platform in the laser galvanometer, the spatial data relationship is established, which solves the problem of uneven patterns in the traditional laser galvanometer calibration method and achieves higher calibration accuracy and marking smoothness.

CN118650313AActive Publication Date: 2024-09-17SHENZHEN SHUMA ELECTRONICS TECH

Patent Information

Application Number
CN202410895126.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-04
Publication Date
2024-09-17
Estimated Expiration
2044-07-04

AI Technical Summary

Technical Problem

In the traditional laser galvanometer calibration method, the marking pattern obtained after correction by the compensation value is not smooth, and the accuracy cannot be further improved because of the grid size.

Method used

By obtaining the galvanometer control data of each calibration point, the calibration points are marked on the calibration medium at different heights, and the camera optical center is coincident with the calibration point through the motion platform to determine the position of the calibration point and establish a spatial data relationship for determining The target galvanometer controls the data for laser marking to avoid camera distortion correction and improve the accuracy and smoothness of the calibration.

Benefits of technology

The smoothness and accuracy of the marking pattern are improved, the grid size limit is avoided, and camera distortion correction is not required, which improves the calibration accuracy and marking effect of the laser galvanometer.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118650313A
    Figure CN118650313A
Patent Text Reader

Abstract

The invention relates to a laser galvanometer calibration method and device, computer equipment and a storage medium. The method comprises the following steps: acquiring galvanometer control data corresponding to each calibration point, and controlling a laser galvanometer to mark each calibration point on calibration media at different heights based on the galvanometer control data; for each calibration point on the calibration medium with different heights, controlling the motion platform to move so that the camera optical center of the camera coincides with the calibration point, and obtaining the movement amount of the motion platform; determining the position of each calibration point based on the movement amount of the motion platform; determining a spatial data relationship based on the positions of the calibration points at different heights and the galvanometer control data corresponding to the calibration points; the spatial data relation is used for determining corresponding target galvanometer control data according to the position of the to-be-machined point so as to perform laser marking. The pattern obtained by laser marking through the method is smoother.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a laser galvanometer calibration method, device, computer equipment and storage medium. Background Art

[0002] The laser space scanning device is a system that combines a laser, a high-speed scanning galvanometer (galvanometer for short), and a dynamic focusing device. It is an optical refraction and reflection device that can accurately control the laser beam optical path. The continuous improvement of the manufacturing level of the laser galvanometer has made a qualitative leap in the scanning positioning accuracy and scanning speed. The structure has expanded from the early flat laser marking processing to high-precision three-dimensional curved surface laser processing, laser 3D positioning projection, laser 3D scanning, laser dynamic tracking and many other aspects. Laser marking has the advantages of fast marking speed, high clarity and convenience for precise marking, so it is widely used in many industries such as electronics, medical, and automobiles. The traditional method uses the deviation between the theoretical coordinate value and the actual coordinate value of the marking point as the compensation value to correct the marking data. However, the marking pattern obtained after the traditional calibration data is used for correction is not smooth. Summary of the invention

[0003] Based on this, it is necessary to provide a laser galvanometer calibration method, device, computer equipment and storage medium to address the above technical problems, which can make the pattern obtained by laser marking smoother.

[0004] A laser galvanometer calibration method, the method comprising:

[0005] Acquire the galvanometer control data corresponding to each calibration point, and control the laser galvanometer to mark each calibration point on the calibration medium at different heights based on the galvanometer control data;

[0006] For each calibration point on the calibration medium at different heights, controlling the motion platform to move so that the optical center of the camera coincides with the calibration point, and obtaining the movement amount of the motion platform;

[0007] Determining the position of each of the calibration points based on the movement amount of the motion platform;

[0008] The spatial data relationship is determined based on the position of each calibration point at the different heights and the galvanometer control data corresponding to each calibration point; the spatial data relationship is used to determine the corresponding target galvanometer control data according to the position of the point to be processed for laser marking.

[0009] A laser galvanometer calibration device, characterized in that the device includes a processor, a laser galvanometer, a motion platform and a camera, the processor is connected to the laser galvanometer, the motion platform and the camera respectively, and the calibration medium is installed on the motion platform; the processor implements the steps of each laser galvanometer calibration method embodiment.

[0010] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of an embodiment of a calibration method for each laser galvanometer when executing the computer program.

[0011] A computer-readable storage medium stores a computer program, which implements the steps of the calibration method embodiment of each laser galvanometer when the computer program is executed by a processor.

[0012] The calibration method, device, computer equipment and storage medium of the above-mentioned laser galvanometer obtain the galvanometer control data corresponding to each calibration point, control the laser galvanometer to mark each calibration point on the calibration medium at different heights based on the galvanometer control data, and then mark the calibration points in the three-dimensional space; for each calibration point of the calibration medium at different heights, control the motion platform to move so that the camera optical center of the camera coincides with the calibration point, obtain the movement amount of the motion platform, that is, measure the actual marking position of the calibration point through the motion platform, and do not need to correct the camera for distortion, and are less affected by the imaging effect; based on the position of each calibration point at different heights and the galvanometer control data corresponding to each calibration point, determine the spatial data relationship, and in the subsequent laser marking, the corresponding target galvanometer control data can be determined according to the position of the point to be processed, so as to perform laser marking, and the calibrated data has high accuracy, and will not be limited by the grid size compared to the scheme of using compensation value for correction, and the marked pattern is smoother. In addition, if the method of the present application is used for multiple calibrations, the calibration accuracy can be increased and the smoothness of the marked pattern can be improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] Figure 1 A schematic diagram of the structure and operation of a laser space scanning device in one embodiment;

[0014] Figure 2 A schematic diagram of a microscopic state of a laser beam scanning operation in one embodiment;

[0015] Figure 3 is a schematic diagram of a laser space scanning device in one embodiment;

[0016] Figure 4 A schematic diagram of a flow chart of a laser galvanometer calibration method in one embodiment;

[0017] Figure 5 A schematic diagram of a calibration pattern of calibration points in one embodiment;

[0018] Figure 6 is a schematic diagram of calibration points of a calibration medium at different heights in one embodiment;

[0019] Figure 7 The distribution of reference point marking patterns at different heights in one embodiment;

[0020] Figure 8 A schematic diagram of a process of a laser marking method in one embodiment;

[0021] Fig. 9 is a schematic flow chart of a laser galvanometer calibration method in another embodiment;

[0022] Fig.10 A schematic diagram of a process for obtaining the positions of each calibration point in an embodiment;

[0023] Fig.11 A schematic diagram of a process for determining a target distance between a camera optical center and a calibration point in one embodiment;

[0024] Fig.12 A schematic diagram of the principle of trilinear interpolation in one embodiment;

[0025] Fig.13 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0026] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0027] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0028] It should be noted that all directional indications in the embodiments of the present application (such as up, down, left, right, front, back, etc.) are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly. The connection can be a direct connection or an indirect connection.

[0029] In addition, in this application, descriptions such as "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in this field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by this application.

[0030] The terms "first", "second", etc. used in this application may be used in this article to describe various data, but these data are not limited by these terms. These terms are only used to distinguish the first data from another data. For example, without departing from the scope of this application, the first offset angle may be referred to as the second offset angle, and similarly, the second offset angle may be referred to as the first offset angle. Both the first offset angle and the second offset angle are offset angles, but they are not the same offset angle.

[0031] It can be understood that the “connection” in the following embodiments should be understood as “electrical connection”, “communication connection”, etc. if the connected circuits, modules, units, etc. have electrical signals or data transmission between each other.

[0032] In one embodiment, Figure 1 The figure shows a schematic diagram of the structure and operation of a laser space scanning device in an embodiment. The laser space scanning device includes a laser emitter 1.1, a dynamic focusing device 1.2, a first laser galvanometer 1.3, and a second laser galvanometer 1.4. When the device processes a control point P, a laser beam 1.5 is emitted by the laser generator 1.1, and the laser beam 1.5 changes the focal length (zΔ) of the beam through the dynamic focusing device 1.2, so that it is focused at different optical paths. The laser beam 1.5 passes through the galvanometer rotation angle (α) indicated by the first laser galvanometer 1.3, thereby changing the position of the focus in the X-axis direction. The laser beam 1.5 passes through the galvanometer rotation angle (β) indicated by the second laser galvanometer, thereby changing the position of the focus in the Y-axis direction. Finally, the focal point of the laser beam 1.5 falls within the space of the scanning range 1.6.

[0033] Note: In theory, the two galvanometers are in the initial state, that is, the rotation angles of the two galvanometers are both 0, and the light beam is perpendicular to the horizontal plane. The position of the light beam at this time is defined as the origin of the laser galvanometer system (Xo, Yo, Z), where Z will change under the action of the dynamic focusing structure, but Xo and Yo remain unchanged.

[0034] Figure 2The figure is a microscopic diagram of the laser beam scanning operation in one embodiment. 2.2 refers to the position of the laser scanning target point, 2.1 refers to the theoretical laser beam arrival position, 2.3 refers to the actual laser beam arrival position, and d represents the range within which the focusing effect can achieve the required scanning (processing) requirements. This value is generally around 0.2mm. It can be seen that the accuracy of the marking depends largely on the accuracy of the direction of the beam. Figure 2 Analysis shows that accurate beam direction is a prerequisite for effective processing. Figure 1 As can be seen from the content, the laser galvanometer determines the direction of the laser beam, so calibrating the galvanometer is a prerequisite for ensuring the accuracy of laser processing. However, the traditional method is to use the deviation between the theoretical coordinate value and the actual coordinate value of the marking point as the compensation value, which is equivalent to the ideal marking coordinate value of the laser galvanometer plus the compensation value when calibrating. When this method is used for calibration, after calibration to a certain extent, such as 0.2mm, although the number of marking points is increased, the calibration accuracy no longer increases, and the compensation value is in a state of oscillation and jumping, and the best correction model cannot be obtained. Therefore, it will be limited by the grid size, making the obtained marking pattern not smooth.

[0035] Figure 3 Schematic diagram of a laser space scanning device in one embodiment. Figure 3 The high-precision motion platform 3.1, the laser galvanometer 3.2, the high-resolution high-magnification camera 3.3 and the calibration medium 3.4 are included. The high-precision motion platform 3.1 can be a five-axis motion platform, and the calibration medium 3.4 is a photosensitive medium, which can be a calibration sheet. The high-resolution high-magnification camera 3.3 and the calibration medium 3.4 are respectively installed on the high-precision motion platform 3.1, and the high-resolution high-magnification camera 3.3 is on the calibration medium 3.4, which is used to collect a reference image of the calibration medium.

[0036] In one embodiment, Figure 4 The figure is a flow chart of a laser galvanometer calibration method in one embodiment. A laser galvanometer calibration method is applied to a laser space scanning device, the laser space scanning device includes a processor, a laser galvanometer, a motion platform and a camera, the processor is used to implement the steps of the following method, the method includes the following steps:

[0037] Step 402, obtaining the galvanometer control data corresponding to each calibration point, and controlling the laser galvanometer to mark each calibration point on the calibration medium at different heights based on the galvanometer control data.

[0038] The galvanometer control data refers to data related to the laser galvanometer control, such as a pulse signal for controlling the rotation angle of the laser galvanometer, the rotation angle of the laser galvanometer, etc. Figure 5 FIG. 1 is a schematic diagram of a calibration pattern of calibration points in an embodiment. Figure 5(1) is the reference calibration point, Figure 5 (2) are other calibration points. It is understood that the pattern of calibration points is not limited to Figure 5 The pattern in the figure may also be a dot pattern, a triangle pattern, other polygonal patterns, or other patterns that can extract calibration points.

[0039] The calibration medium itself represents a plane, such as the xy plane. Calibration media at different heights means that the calibration medium is at different z values. The calibration medium is placed at different heights by moving the motion platform along the z axis. Figure 6 As shown in FIG. 2 , it is a schematic diagram of calibration points of a calibration medium at different heights in one embodiment. Because the marking space is a three-dimensional space, the spatial range to be marked is layered according to the specified spacing in FIG. ①, and is divided into multiple two-dimensional marking planes (i.e., calibration media). The image of each calibration medium is shown in FIG. ②, and each calibration medium has multiple calibration points. The upper part of FIG. ② contains reference calibration points for correcting the offset angle.

[0040] Specifically, the processor obtains the galvanometer control data corresponding to each calibration point input. The galvanometer control data corresponding to each calibration point is pre-set and can also be used to characterize the theoretical marking position. Therefore, for each calibration medium of different heights, when marking, the processor controls the laser galvanometer to mark the corresponding marking points on the calibration medium based on the galvanometer control data. Through the operation of this step, a large cubic space is divided into multiple small cubic grids, and the galvanometer control data of the vertices of the small cubic grids can be obtained.

[0041] Step 404: for each calibration point on the calibration medium at different heights, control the motion platform to move so that the optical center of the camera coincides with the calibration point, and obtain the movement amount of the motion platform.

[0042] Specifically, after the calibration points of the plane calibration medium at a specified height in the space are marked, the motion platform is controlled to move the camera above each calibration point so that the optical center of the camera coincides with the calibration point, and the movement amount of the motion platform is recorded. It can be understood that the camera can be moved by the motion platform, or the calibration medium can be moved by the motion platform so that the optical center of the camera coincides with the calibration point.

[0043] Step 406: Determine the position of each calibration point based on the movement amount of the motion platform.

[0044] Specifically, the motion platform can be controlled to move so that the optical center of the camera coincides with the reference calibration point (i.e., the origin), and after recording the position of the reference calibration point, the movement amount of the motion platform relative to the reference calibration point when aligning with each calibration point is recorded, and the position of the calibration point collected by the motion platform is obtained. Optionally, the position of the calibration point is the actual position of the index point in space. For example, it can be the position in the laser coordinate system, and the laser coordinate system can specifically be the world coordinate system, the workpiece coordinate system, the machine tool coordinate system, or other custom coordinate systems.

[0045] Step 408, determining the spatial data relationship based on the position of each calibration point at different heights and the galvanometer control data corresponding to each calibration point; the spatial data relationship is used to determine the corresponding target galvanometer control data according to the position of the point to be processed for laser marking.

[0046] Specifically, the spatial position of the calibration points at different heights is obtained by combining the movement amount of the motion platform with the height of the calibration points, and the galvanometer control data corresponding to each calibration point is input to determine the spatial data relationship. After successful calibration, when laser marking is performed, the laser spatial scanning device searches for the spatial data relationship, determines the corresponding target galvanometer control data according to the position of the point to be processed, and controls the laser galvanometer to perform laser marking based on the target galvanometer control data.

[0047] In this embodiment, the galvanometer control data corresponding to each calibration point is obtained, and the laser galvanometer is controlled to mark each calibration point on the calibration medium at different heights based on the galvanometer control data, so that the calibration points in the three-dimensional space are marked; for each calibration point of the calibration medium at different heights, the motion platform is controlled to move so that the camera optical center of the camera coincides with the calibration point, and the movement amount of the motion platform is obtained, that is, the actual marking position of the calibration point is measured by the motion platform, and the camera does not need to be distorted and corrected, and the degree of influence by the imaging effect is low; based on the position of each calibration point at different heights and the galvanometer control data corresponding to each calibration point, the spatial data relationship is determined, and the corresponding target galvanometer control data can be determined according to the position of the point to be processed during subsequent laser marking to perform laser marking, and the calibrated data has high accuracy, and compared with the solution of using compensation value for correction, it will not be limited by the grid size, and the marked pattern is smoother. In addition, if the method of the present application is used for multiple calibrations, the calibration accuracy can be further increased and the smoothness of the marked pattern can be improved.

[0048] In one embodiment, controlling the motion platform to move so that the camera optical center of the camera coincides with the calibration point includes:

[0049] Determine the target distance between the camera optical center of the camera and the calibration point;

[0050] When the target distance is greater than the preset distance threshold, the motion platform is controlled to move so that the optical center of the camera is close to the calibration point;

[0051] When the target distance is less than or equal to the preset distance threshold, it is determined that the camera optical center coincides with the calibration point.

[0052] Specifically, the processor obtains a reference image of each calibration medium captured by the camera, and the reference image includes calibration points. Based on the reference image, the target distance between the camera optical center of the camera and the calibration point on the calibration medium is determined. The preset distance threshold is pre-stored in the processor. When the target distance is greater than the preset distance threshold, it means that the camera optical center and the calibration point have not yet coincided, and the motion platform is controlled to move so that the camera optical center is close to the calibration point. When the target distance is less than or equal to the preset distance threshold, it is considered that the camera optical center coincides with the calibration point. After the coincidence, the movement amount of the motion platform is obtained to determine the position of each calibration point. The motion platform is controlled to move above the next calibration point, and the step of determining the target distance between the camera optical center of the camera and the calibration point on the calibration medium is executed.

[0053] In this embodiment, the target distance between the camera optical center and the calibration medium is determined. When the target distance is greater than a preset distance threshold, the motion platform is controlled to move so that the camera optical center is close to the calibration point. When the target distance is less than or equal to the preset distance threshold, the camera optical center is determined to coincide with the calibration point. The actual marking position of the calibration point can be measured by the motion platform, and there is no need to perform distortion correction on the camera, so the imaging effect is less affected.

[0054] In one embodiment, determining a target distance between a camera optical center and a calibration point includes: obtaining a reference image of each calibration medium captured by the camera; determining a connected domain in the image based on the reference image; determining a position of the calibration point on the reference image based on the connected domain; and determining a target distance between the optical center of the camera and the position of the calibration point on the reference image.

[0055] Specifically, the processor obtains the reference image of each calibration medium captured by the camera in real time. The reference image is subjected to noise smoothing and binarization processing to determine the connected domain in the image. A connected domain refers to a connected set with the same attributes. Through the connected domain extraction algorithm, independent connected domains can be extracted from the image and marked. The area without calibration points can form a connected domain, and each calibration point itself is also an independent connected domain. Therefore, based on the connected domain in the image, the position of the calibration point on the reference image can be determined. Figure 5 The calibration point can be easily determined by the connected domain algorithm. By determining the target distance between the optical center of the camera and the position of the calibration point on the reference image, it is determined whether the optical center of the camera coincides with the calibration point.

[0056] In this embodiment, the optical center of the camera is used as the fixed position of the calibration point, and the reference image of each calibration medium captured by the camera is obtained. The connected domain in the image is determined based on the reference image, and the position of the calibration point on the reference image is determined based on the connected domain. The target distance between the optical center of the camera and the position of the calibration point on the reference image is determined, and it is judged through the image whether the optical center of the camera is aligned with the calibration point, which provides a positioning reference point for the laser galvanometer calibration. There is no need to perform correction operations such as camera distortion, and the degree of influence by the imaging effect is low.

[0057] In one embodiment, before controlling the laser galvanometer to mark each calibration point on the calibration medium at different heights based on the galvanometer control data, the laser galvanometer calibration method further includes:

[0058] Obtain the offset angle of the laser galvanometer; the offset angle is used to characterize the degree of offset from the z-axis of the reference coordinate system;

[0059] The laser emission angle of the laser galvanometer is corrected based on the offset angle.

[0060] Among them, the offset angle is used to characterize the degree of offset from the z-axis of the reference coordinate system. The reference coordinate system can specifically be a coordinate system with the z-axis vertically downward, such as a machine tool coordinate system, a workpiece coordinate system, a world coordinate system (also known as an absolute coordinate system), etc. The offset angle may include a first axis offset angle in the first axis direction and a second axis offset angle in the second axis direction. One of the first axis direction and the second axis direction is the x-axis direction, and the other direction is the y-axis direction.

[0061] Specifically, due to problems such as installation accuracy or system stability, the galvanometer itself has already undergone a certain deflection in the initial state. According to the mathematical model of the laser space scanning device, it can be determined that this will cause the calibration point positions of the laser beam at different heights to be different. This causes the calibration data calculated during space calibration to jump, and the obtained calibration data is inaccurate and the accuracy cannot be guaranteed.

[0062] The origin mark pattern (reference point) was marked at two different heights using a laser galvanometer system. When marking was completed at each height, the motion platform was controlled to move the camera to roughly display the marked pattern in the center of the camera imaging range. The camera was used to obtain the graphics on the calibration sheet in real time, and the motion platform was controlled to align the camera optical center with the center of the marked point. After alignment, the coordinates of the motion platform at that position were recorded. After collecting the origin pattern marking positions at two heights (recorded as p0: (x0, y0, z0) and p1: (x1, y1, z1) respectively), the possible results are as follows: Figure 7 shown.

[0063] like Figure 7As shown, it is the distribution of the reference point marking pattern at different heights in one embodiment. Column A refers to the top view distribution of the origin mark pattern on the calibration sheet at two heights, and column B refers to the distribution of the marking points in the machine tool coordinate system at two heights. The situation represented by column ① is that there are errors in the initial angles of the two laser galvanometers responsible for controlling the X and Y directions, so there are offsets in both directions; the situation represented by column ② is that only the initial position of the laser galvanometer responsible for controlling the Y direction has an angle deviation; the situation represented by column ③ is that only the initial position of the laser galvanometer responsible for controlling the X direction has an angle deviation; the situation represented by column ④ is that the laser galvanometers responsible for controlling the X and Y directions have no angle deviation in the initial position.

[0064] The processor determines the x-axis offset angle and y-axis offset angle of the laser galvanometer based on the positions of the reference points on the calibration medium at different heights. The processor corrects the x-axis laser emission angle of the laser galvanometer based on the x-axis offset angle, and corrects the y-axis laser emission angle of the laser galvanometer based on the y-axis offset angle, so that the laser beam emission direction is the z-axis direction of the reference coordinate system.

[0065] In this embodiment, an offset angle is obtained to characterize the degree of offset from the z-axis of the world coordinate system, and the laser emission angle of the laser galvanometer is corrected based on the offset angle, that is, the offset of the laser galvanometer is corrected when emitting the laser, so that the planar position of the laser galvanometer at different heights is the same, and the calibration data is stable when calibrating the laser galvanometer, thereby improving the accuracy of the laser galvanometer.

[0066] In one embodiment, obtaining the offset angle of the laser galvanometer includes: obtaining a second offset angle of the laser galvanometer in a second axis direction;

[0067] Correcting the laser emission angle of a laser galvanometer based on an offset angle includes: obtaining a first offset angle of the laser galvanometer in a first axis direction after correcting the laser emission angle of the laser galvanometer in a second axis direction based on a second offset angle; wherein the offset in the second axis direction affects the offset in the first axis direction; and correcting the laser emission angle of the laser galvanometer in the first axis direction based on the first offset angle.

[0068] Among them, the deflection direction of the second galvanometer of the laser galvanometer is the second axis direction, and the deflection direction of the first galvanometer is the first axis direction. Based on the mathematical model analysis of the laser galvanometer optical path system, the deflection angle of the second galvanometer will affect the deflection angle of the first galvanometer. One of the second axis direction and the first axis direction is the x-axis direction, and the other direction is the y-axis direction. In this embodiment, the y-axis direction is taken as the second axis direction, and the x-axis is taken as the first axis direction for explanation. Based on the mathematical model of the laser galvanometer optical path system used, it is speculated that when the galvanometers responsible for controlling the x-axis direction and the y-axis direction are deflected, the offset angle of the galvanometer mainly responsible for the y-axis direction will also be reflected in the position change in the x-axis direction.

[0069] Specifically, when the laser galvanometer includes a y offset angle and an x ​​offset angle, the processor can obtain the y offset angle of the laser galvanometer in the y-axis direction, and correct the laser emission angle of the laser galvanometer in the y-axis direction based on the y offset angle. For example, if the y offset angle is +2°, then the laser emission angle of the laser galvanometer is -2°. After correcting the y offset angle in the y-axis direction, the x offset angle of the laser galvanometer in the x-axis direction is obtained, and the laser emission angle of the laser galvanometer in the x-axis direction is corrected based on the x offset angle.

[0070] In this embodiment, since the offset in the second axis direction of the laser galvanometer will affect the offset in the first axis direction, the offset in the second axis direction is first corrected, and then the first offset angle in the first axis direction is obtained to perform the offset correction in the first axis direction. This eliminates the need for repeated correction, thereby improving the accuracy of the correction.

[0071] In one embodiment, obtaining a second offset angle of the laser galvanometer in the second axis direction includes: for reference calibration points marked by the laser galvanometer at different heights, obtaining a second value of each reference calibration point in the second axis direction; determining the difference between the second values ​​of each reference calibration point; and determining the second offset angle of the laser galvanometer in the second axis direction based on the difference between the second values ​​and the height difference of the reference calibration points.

[0072] Specifically, the reference calibration point is one of the calibration points. The different heights include at least two different heights. For the reference calibration points marked by the laser galvanometer at different heights, a second value of each reference calibration point in the second axis direction is obtained. The processor calculates an inverse tangent angle based on the difference between the second values ​​of the reference calibration points and the height difference between the reference calibration points, and determines a second offset angle of the laser galvanometer in the second axis direction.

[0073] For example, the reference calibration point at height h=2 is y=2.2 on the y-axis; the reference calibration point at height h=4 is y=2 on the y-axis. Then the second offset angle θ=arctan(△y / △h)=arctan(0.2 / 2)

[0074] Optionally, when the number of calibration points at three or more different heights is greater than or equal to that at the reference points, the processor may determine the offset angles corresponding to every two reference points, and obtain the second offset angle of the laser galvanometer in the second axis direction after averaging.

[0075] In one embodiment, obtaining a first offset angle of the laser galvanometer in the first axis direction includes: for reference calibration points marked by the laser galvanometer at different heights, obtaining a first value of each reference calibration point in the first axis direction; and determining a first offset angle of the laser galvanometer in the first axis direction based on a difference between the first values ​​of the reference calibration points and a height difference of the reference calibration points.

[0076] In this embodiment, by obtaining the difference between the second values ​​of the reference calibration points at different heights and the height difference, the second offset angle of the laser galvanometer in the second axis direction is determined, and the laser galvanometer can be calibrated to make the entire calibration process more accurate.

[0077] In one embodiment, Figure 8 FIG. 1 is a flow chart of a laser marking method in one embodiment, which is applied to a laser space scanning device and includes the following steps:

[0078] Step 802, obtaining the position of the point to be processed.

[0079] Specifically, the position of the point to be processed refers to the actual position of the point to be processed in space. That is, the target position required by the user. For example, it can be the position in the laser coordinate system, and the laser coordinate system can be the world coordinate system, the workpiece coordinate system or other custom coordinate systems. The actual position refers to the position on the calibration medium.

[0080] Step 804 , determining the target galvanometer control data corresponding to the position of the to-be-processed point based on the spatial data relationship.

[0081] Among them, the spatial data relationship is determined based on the position of each calibration point at different heights and the galvanometer control data corresponding to each calibration point; the position of each calibration point is determined based on the movement amount of the motion platform; the movement amount of the motion platform is obtained by controlling the motion platform so that the camera optical center of the camera coincides with each calibration point; each calibration point is marked by the laser galvanometer on the calibration medium at different heights.

[0082] Specifically, the spatial data relationship records the mapping relationship between the spatial position of the marking point and the galvanometer control data. Therefore, the laser spatial scanning device performs trilinear interpolation based on the spatial data relationship and the position of the point to be processed to obtain the target galvanometer control data corresponding to the position of the point to be processed. Specifically, the area in the relationship corresponding to the position of the point to be processed can be determined, and trilinear interpolation is performed based on 8 points adjacent to the position of the point to be processed to determine the target galvanometer control data corresponding to the position of the point to be processed.

[0083] Step 806, controlling the laser galvanometer to perform laser marking based on the target galvanometer control data.

[0084] Specifically, the laser space scanning device sets the control parameters of the laser galvanometer as the target galvanometer control data and then performs laser marking, so that the marking point is located at the position of the point to be processed.

[0085] In this embodiment, the position of the point to be processed is obtained, the target galvanometer control data corresponding to the position of the point to be processed is determined based on the spatial data relationship, and the laser galvanometer is controlled to perform laser marking based on the target galvanometer control data. That is, the galvanometer control data is directly found through the spatial data relationship, which enables the laser galvanometer to mark the position indicated by the position of the point to be processed, with less intermediate process conversion, thereby improving the accuracy of laser marking.

[0086] In one embodiment, Fig. 9 FIG. 2 is a flow chart of a laser galvanometer calibration method according to another embodiment, comprising the following steps:

[0087] Step 1 、 The galvanometer control data corresponding to the origin (reference marking point) is obtained, and the laser galvanometer is controlled to mark reference calibration points on calibration sheets at different heights based on the galvanometer control data.

[0088] Define the laser galvanometer origin mark points on the planes at two specified heights in the limited space along the z direction of the machine tool spindle in space to correct the origin of the galvanometer system. Figure 5 As shown, two patterns are defined, (1) is the origin marking pattern. In this step, the motion platform is controlled to make the laser galvanometer mark the origin pattern on the calibration sheet at two different heights, and the height difference at the two different heights is recorded as △h. In the subsequent steps, a visual algorithm is used to obtain the coordinate difference of the origin pattern in the X and Y directions on the calibration sheet at two different heights, so as to calculate the angular deviation of the initial position of the laser galvanometer.

[0089] Step 2: Align the optical center of the camera with the center of the origin, calculate the deflection angle of the galvanometer based on the difference of the origin at different heights, and correct it.

[0090] From step one, it can be seen that the origin mark pattern is marked at two different heights using a laser galvanometer. When the marking is completed at each height, the motion platform is controlled to move the camera to roughly display the marked pattern in the center of the camera imaging range. The camera is used to obtain the graphics on the calibration sheet in real time, and the motion platform is controlled to align the optical center of the camera with the center of the marked point. After alignment, the coordinates of the motion platform at that position are recorded.

[0091] After collecting the origin pattern marking positions at two heights (respectively denoted as p0: (x0, y0, z0) and p1: (x1, y1, z1)), the possible results are as follows: Figure 7As shown: Column A refers to the top-down distribution of the origin mark pattern on the calibration piece at two heights, and Column B refers to the distribution of the engraved points in the machine tool coordinate system at two heights. Column ① indicates the situation: there are errors in the initial angles of the two laser galvanometers responsible for controlling the X and Y directions, so there are offsets in both directions; Column ② indicates the situation: only the initial position of the laser galvanometer responsible for controlling the Y direction has an angle deviation; Column ③ indicates the situation: only the initial position of the laser galvanometer responsible for controlling the X direction has an angle deviation; Column ④ indicates the situation that the laser galvanometers responsible for controlling the X and Y directions have no angle deviation in the initial position. What needs to be done in this step is to ensure that the origin position of the laser galvanometer at different heights is shown as in Column ④. The specific operations are as follows:

[0092] a. Collect the coordinate data of p0 and p1 at different heights;

[0093] b. Calculate the difference between p0 and p1 in the X and Y directions, respectively, and record them as Δx and Δy;

[0094] c. If both Δx and Δy are not 0, the galvanometer in the Y direction needs to be calibrated first. This is determined by the mathematical model of the laser galvanometer optical path system. When the galvanometers responsible for controlling both X and Y are deflected, the deflection angle of the galvanometer mainly responsible for controlling Y will also be reflected in the position change in the X direction. The deflection error is calculated by the following formula. By inputting the corresponding data, the offset angle in each direction can be calculated:

[0095] θ=arctan(△y / △h)

[0096] d. Assign the calculated offset angle to the laser galvanometer system. The specific operation is to subtract the determined offset angle from the subsequent control marking to offset the initial angle deviation. Since the offset angle may be caused by system instability, it can be removed each time the calibration is performed.

[0097] e. Since the galvanometer system has not been calibrated, the offset angle assigned at this time may not be truly reflected on the laser galvanometer system. Therefore, it is necessary to repeat the above steps many times so that the origin marking pattern will eventually appear as follows: Figure 7 The case of column ④. At this time, the origins at different heights are all on the z-axis of the world coordinate system / machine tool coordinate system.

[0098] Step 3: Obtain the galvanometer control data of each calibration point, and control the laser galvanometer to mark L*M*N calibration dot arrays on the calibration medium at different heights based on the galvanometer control data.

[0099] Wherein, L represents the number of different heights in the z-axis direction, and M and N represent the number of horizontal and vertical axis points on the calibration medium, respectively.

[0100] like Figure 6 As shown in ①, the space range to be marked is divided into multiple two-dimensional marking planes according to the specified spacing, and then the dot matrix shown in ② is marked; in order to facilitate data collection and origin positioning, press Figure 5 Mark the contents shown in the figure, and mark the origin marking pattern and the non-origin marking pattern on the calibration sheet.

[0101] Through this step, a large cubic space is divided into multiple small cubic grids, and the subsequent marking work is carried out by collecting the data of the vertices of the small cubic grids.

[0102] In addition, it should be made clear that, for the sake of ease of description, this step writes all the marking layers as the same step. In practice, during operation, the data collection work of step four is performed once each time the pattern calibration of a piece is completed.

[0103] Step 4: Collect the coordinate information of each calibration point through the linkage between the camera vision algorithm and the motion platform.

[0104] In step three, after completing the calibration of the plane calibration pattern at the specified height in the space, the camera needs to be moved above the origin, first record the coordinates of the origin, and then continue to record the coordinates of other non-origin patterns. In the origin calibration of step two, the offset between the camera and the marking origin at different heights has been successfully obtained. Therefore, when executing this step, the motion platform can be controlled by the recorded position to align the camera with the marked origin pattern. After alignment, the data acquisition process begins. Fig.10 FIG. 1 is a flow chart of obtaining the positions of each calibration point in one embodiment:

[0105] a. Use the visual algorithm to determine the distance between the optical center of the camera and the center of the calibration point. If it exceeds the preset error tolerance range, execute step b. If it does not exceed, execute step c.

[0106] b. According to the error vector determined in the above steps, control the motion platform to fine-tune the position of the camera so that the optical center of the camera is close to the center of the calibration point, and execute step a again;

[0107] c. Record the coordinate information of the current point. If data collection of all points has not been completed, execute step d. If completed, execute step e.

[0108] d. Control the motion platform to move the camera to the next point, and then execute step a;

[0109] e. Indicates that the data collection of this layer has been completed and records the coordinate data collected for this layer.

[0110] The visual algorithm execution process for determining the error vector referred to in the above steps is as follows: Fig.11FIG. 1 is a flow chart of determining the target distance between the camera optical center and the calibration point in one embodiment:

[0111] a. Use filtering algorithms to reduce noise and smooth the acquired reference image;

[0112] b. Binarize the reference image and convert it into a binary image to obtain the connected domain;

[0113] c. Extract the center point of the marking pattern (the position of the calibration point on the reference image) based on the size range of the connected domain and the coordinate range of the center of the connected domain;

[0114] d. Determine the error vector between the center point of the marking pattern and the center point of the image (optical center of the camera).

[0115] Step 5: Construct a spatial data mapping table based on information from multiple heights to achieve marking correction.

[0116] The above steps complete the collection of the galvanometer control data set {(α, β, zΔ)|α∈R, β∈Rβ, zΔ∈RzΔ} and the actual marked spatial point set (i.e., the position of each calibration point at different heights) {(x, y, z)|x∈Rx, y∈Ry, z∈Rz}. Let the actual marking function of the galvanometer system be (x, y, z) = f(α, β, zΔ), then the above steps complete a series of point collections for this function, and all are real data. The actual marked coordinate information and the galvanometer control data issued by the actual control are used to construct a spatial interpolation correction table (i.e., spatial data mapping table) for the specified calibration space range.

[0117] After completing the calibration table construction, you can use the calibration table for subsequent marking work. The implementation steps are as follows:

[0118] a. When calibrating the processing point, locate the area in the calibration table where the position is surrounded by multiple points collected in the calibration table, such as Fig.12 FIG. 1 is a schematic diagram of the principle of trilinear interpolation in one embodiment. Fig.12 Used to calibrate the point P to be processed; use the 8 vertex data of its positioning grid for calibration (the grid is an irregular hexahedron that approximates a cube).

[0119] b. Use the positioning data to perform trilinear interpolation to find the galvanometer control data that should be sent to the processing point P.

[0120] Therefore, the method in this embodiment has the following advantages:

[0121] ① It is mounted on a high-precision motion platform, such as a three-axis machine tool or a five-axis machine tool. Therefore, the height accuracy of the calibration piece can be guaranteed in the Z direction during the calibration process, and the data accuracy in the XY direction can be guaranteed during calibration data acquisition.

[0122] ②At the same time, this solution combines the motion platform and camera for data collection, so a large range of calibration can be performed.

[0123] ③Compared with the existing schemes that use monocular or binocular cameras to obtain images for direct calibration, this scheme aligns the optical center with the center of the image, does not require distortion correction of the camera, and is less affected by the imaging effect.

[0124] ④ When determining the final correction data, the data used in this solution is the actual measurement coordinate information and the real laser galvanometer control data. Compared with the solution using compensation value for correction, it will not be limited by the grid size, and the marked pattern will be smoother.

[0125] ⑤ The use of motion platform, camera components and visual algorithm linkage makes the entire calibration process fully automated and intelligent, improving the calibration efficiency and accuracy of the laser galvanometer system.

[0126] ⑥ After calibration, this scheme can be recalibrated based on the calibrated data, and the mapping relationship of the spatial data can be encrypted. It has the property of being optimizable, and the correction model is more precise. However, the existing schemes will jump after the compensation value is iterated to a certain extent, and the optimal correction model cannot be obtained.

[0127] The method proposed in this embodiment was used to carry out a laser galvanometer system calibration experiment, and the calibration error was ±3um. The laser marking points can be corrected, verifying the feasibility and accuracy of the present invention.

[0128] In one embodiment, a method for calibrating a laser galvanometer includes:

[0129] Step (a1), when the laser galvanometer has an offset angle in both the first axis direction and the second axis direction, for reference calibration points marked by the laser galvanometer at different heights, obtain a first value of each reference calibration point in the first axis direction.

[0130] Step (a2), determining a first offset angle of the laser galvanometer in the first axis direction based on a difference between the first values ​​of the reference calibration points and a height difference of the reference calibration points.

[0131] Step (a3), after correcting the laser emission angle of the laser galvanometer in the first axis direction based on the first offset angle, obtain a second offset angle of the laser galvanometer in the second axis direction, wherein the offset in the first axis direction affects the offset in the second axis direction.

[0132] Step (a4), correcting the laser emission angle of the laser galvanometer in the second axis direction based on the second offset angle.

[0133] Step (a5), obtaining the galvanometer control data corresponding to each calibration point, and controlling the laser galvanometer to mark each calibration point on the calibration medium at different heights based on the galvanometer control data.

[0134] Step (a6), for each calibration point on the calibration medium at different heights, obtain a reference image of each calibration medium captured by a camera.

[0135] Step (a7), determining connected areas in the image based on the reference image.

[0136] Step (a8), determining the position of the calibration point on the reference image based on the connected domain.

[0137] Step (a9), determine the target distance between the optical center of the camera and the position of the calibration point on the reference image.

[0138] Step (a10), when the target distance is greater than a preset distance threshold, the motion platform is controlled to move so that the optical center of the camera is close to the calibration point.

[0139] Step (a11), when the target distance is less than or equal to the preset distance threshold, determine whether the optical center of the camera coincides with the calibration point, and obtain the movement amount of the motion platform.

[0140] Step (a12), determining the position of each calibration point based on the movement amount of the motion platform.

[0141] Step (a13), determining the spatial data relationship based on the position of each calibration point at different heights and the galvanometer control data corresponding to each calibration point; the spatial data relationship is used to determine the corresponding target galvanometer control data according to the position of the point to be processed.

[0142] Step (a14), obtaining the position of the point to be processed.

[0143] Step (a15), determining the target galvanometer control data corresponding to the position of the to-be-processed point based on the spatial data relationship.

[0144] Step (a16), controlling the laser galvanometer to perform laser marking based on the target galvanometer control data.

[0145] In this embodiment, an offset angle is obtained to characterize the degree of offset from the z-axis of the world coordinate system, and the laser emission angle of the laser galvanometer is corrected based on the offset angle. The offset in the first axis direction is first corrected, and then a second offset angle in the second axis direction is obtained. The offset correction in the second axis direction is performed without repeated correction. The offset of the laser galvanometer is corrected when emitting laser light, so that the plane position of the laser galvanometer at different heights is the same. The calibration data is stable during the calibration of the laser galvanometer, thereby improving the accuracy of the laser galvanometer. When the laser emitted by the laser galvanometer is parallel to the z-axis, the galvanometer control data corresponding to each calibration point is obtained, and the laser galvanometer is controlled to mark each calibration point on the calibration medium at different heights based on the galvanometer control data. Then the calibration points of the three-dimensional space are marked; for each calibration point of the calibration medium at different heights, the motion platform is controlled to move so that the optical center of the camera coincides with the calibration point, and the movement amount of the motion platform is obtained, that is, the actual marking position of the calibration point is measured by the motion platform, and the camera does not need to be distorted and corrected, and the degree of influence by the imaging effect is low; based on the position of each calibration point at different heights and the galvanometer control data corresponding to each calibration point, the spatial data relationship is determined, and the corresponding target galvanometer control data can be determined according to the position of the point to be processed during subsequent laser marking to perform laser marking. Compared with the solution of using compensation value for correction, it will not be limited by the grid size, and the calibration accuracy is high, and the marked pattern is smoother. In addition, if the method of the present application is used for multiple calibrations, the calibration accuracy can be increased and the smoothness of the marked pattern can be improved.

[0146] It should be understood that although the above Figure 4 , Figures 8 to 11 In the flowchart, each step is shown in sequence according to the arrows, and each step in step (a1) to step (a16) is shown in sequence according to the numbers, but these steps are not necessarily performed in the order indicated by the arrows or numbers. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be performed in other orders. Moreover, Figure 4 , Figures 8 to 11 At least part of the steps may include multiple steps or multiple stages. These steps or stages are not necessarily performed at the same time, but can be performed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed in turn or alternately with other steps or at least part of the steps or stages in other steps.

[0147] In one embodiment, a laser galvanometer calibration device includes a processor, a laser galvanometer, a motion platform, and a camera. The processor is connected to the laser galvanometer, the motion platform, and the camera respectively. The calibration medium is installed on the motion platform. When the processor executes a computer program, the steps of the above-mentioned method embodiments are implemented. For the specific definition of the laser galvanometer calibration device, please refer to the definition of the laser galvanometer calibration method above, which will not be repeated here.

[0148] In one embodiment, a computer device is provided. The computer device may be a terminal device, and its internal structure diagram may be as follows: Fig.13 As shown. The computer device includes a processor, a memory, a communication interface, a display screen and an input device 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 and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WI FI, an operator network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a calibration method for a laser galvanometer is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse, etc.

[0149] Those skilled in the art will understand that Fig.13 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0150] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps of the above-mentioned method embodiments when executing the computer program.

[0151] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned method embodiments are implemented.

[0152] In one embodiment, a computer program product or computer program is provided, the computer program product or computer program includes computer instructions, the computer instructions are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the steps in the above-mentioned method embodiments.

[0153] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and 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 in the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory may include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).

[0154] The above description is only a preferred embodiment of the present application, and does not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. A laser galvanometer calibration method, characterized in that: The method comprises: Acquire the galvanometer control data corresponding to each calibration point, and control the laser galvanometer to mark each calibration point on the calibration medium at different heights based on the galvanometer control data; For each calibration point on the calibration medium at different heights, controlling the motion platform to move so that the optical center of the camera coincides with the calibration point, and obtaining the movement amount of the motion platform; Determining the position of each of the calibration points based on the movement amount of the motion platform; The spatial data relationship is determined based on the position of each calibration point at the different heights and the galvanometer control data corresponding to each calibration point; the spatial data relationship is used to determine the corresponding target galvanometer control data according to the position of the point to be processed for laser marking.

2. The method according to claim 1, characterized in that: The controlling the motion platform to move so that the camera optical center of the camera coincides with the calibration point includes: Determining a target distance between a camera optical center of a camera and the calibration point; When the target distance is greater than a preset distance threshold, controlling the motion platform to move so that the optical center of the camera approaches the calibration point; When the target distance is less than or equal to the preset distance threshold, it is determined that the camera optical center coincides with the calibration point.

3. The method according to claim 2, characterized in that The determining of the target distance between the camera optical center of the camera and the calibration point comprises: Acquire a reference image of each calibration medium captured by a camera; determining a connected domain in an image based on the reference image; Determine the position of the calibration point on the reference image based on the connected domain; A target distance between an optical center of the camera and a position of the calibration point on the reference image is determined.

4. The method according to claim 1, characterized in that: Before controlling the laser galvanometer to mark each of the calibration points on the calibration medium at different heights based on the galvanometer control data, the method further includes: Obtaining an offset angle of the laser galvanometer; the offset angle is used to characterize the degree of offset from the z-axis of the reference coordinate system; The laser emission angle of the laser galvanometer is corrected based on the offset angle.

5. The method according to claim 4, characterized in that The step of obtaining the offset angle of the laser galvanometer comprises: Obtaining a second offset angle of the laser galvanometer in the second axis direction; The correcting the laser emission angle of the laser galvanometer based on the offset angle comprises: After correcting the laser emission angle of the laser galvanometer in the second axis direction based on the second offset angle, obtaining a first offset angle of the laser galvanometer in the first axis direction; wherein the offset in the second axis direction affects the offset in the first axis direction; The laser emission angle of the laser galvanometer in the first axis direction is corrected based on the first offset angle.

6. The method according to claim 5, characterized in that The obtaining of a second offset angle of the laser galvanometer in a second axis direction comprises: For reference calibration points marked by the laser galvanometer at different heights, obtaining a second value of each reference calibration point in the second axis direction; determining a difference between the second values ​​of each of the reference calibration points; Based on the difference between the second values ​​and the height difference of the reference calibration point, a second offset angle of the laser galvanometer in the second axis direction is determined.

7. A laser marking method, characterized in that: The method comprises: Get the position of the point to be processed; Determine the target galvanometer control data corresponding to the position of the to-be-processed point based on the spatial data relationship; Controlling the laser galvanometer to perform laser marking based on the target galvanometer control data; Among them, the spatial data relationship is determined based on the position of each calibration point at different heights and the galvanometer control data corresponding to each calibration point; the position of each calibration point is determined based on the movement amount of the motion platform; the movement amount of the motion platform is obtained by controlling the motion platform so that the camera optical center of the camera coincides with each calibration point; each calibration point is marked by the laser galvanometer on the calibration medium at different heights.

8. A laser galvanometer calibration device, characterized in that: The device includes a processor, a laser galvanometer, a motion platform and a camera, wherein the processor is connected to the laser galvanometer, the motion platform and the camera respectively, and a calibration medium is installed on the motion platform; the processor is used to implement the steps of the method described in any one of claims 1 to 7.

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 method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Calibration method of laser galvanometer processing system under guidance of binocular stereoscopic vision

    CN104551411A

  • Camera and galvanometer combined variable sight line system three-dimensional imaging model and calibration method thereof

    CN113175899A

  • Calibration method, device and equipment of laser galvanometer system and medium

    CN117788607A

  • Active vision three-dimensional calibration method and system based on galvanometer camera, and device

    WO2023165632A1

Cited By

  • Method for vector control of vertical incidence angle of laser in girth welding of inner wall of GIL (Gas Insulated Line) pipeline

    CN119319329A

  • Three-dimensional galvanometer correction method and laser processing equipment

    CN119387815A

  • Laser marking system

    TWI941452B