Data Processing Method, Apparatus, Device, and Computer-Readable Storage Medium
By calculating and controlling the movement of laser scanning points, the linear motion formula of uniform acceleration, uniform speed and uniform deceleration are adopted to solve the problem of Z-axis galvanometer stuck in galvanometer three-dimensional laser scanning, improving the user experience.
Patent Information
- Application Number
- CN202210890293.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-26
- Publication Date
- 2025-07-11
- Estimated Expiration
- 2042-07-26
AI Technical Summary
现有技术中,振镜式三维激光扫描在标记单个对象时容易导致Z轴振镜卡死,用户体验较差。
By obtaining the spatial coordinate data of the starting point of the object to be marked and the laser scanning point, the third spatial coordinate data is calculated, and the movement of the laser scanning point is controlled. The linear motion formula of uniform acceleration, uniform speed and uniform deceleration are used to stably determine the laser scanning point.
Improves the stability of the Z-axis galvanometer, avoids jamming, and improves the user experience.
Smart Images

Figure CN115239813B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data processing, and in particular, to a data processing method, apparatus, device, and computer-readable storage medium. Background Art
[0002] With the diversification of market demands, laser scanning technology is also constantly innovating and developing. For uneven surfaces and irregular shapes, the traditional two-dimensional laser marking technology can no longer meet the market demands. In order to meet the requirements of curved surface processing, galvanometer-based three-dimensional laser scanning has gradually emerged with its characteristics such as high speed, high precision, small focused spot, and stable performance.
[0003] The dynamic focusing galvanometer is customarily called the Z-axis galvanometer, which is controlled by a voice coil motor and directly makes a reciprocating linear motion. The gap between the mover and the stator is very small, and sudden speed changes are likely to cause the motor to get stuck. This problem rarely occurs with the XY galvanometer that makes a rotational motion. This is a difficult problem in the voice coil motor industry. When marking a single object, data can be sorted, the marking path can be optimized, and the amplitude of Z-axis jumps can be reduced. Moreover, from the end point of one object to the starting point of another object, this problem cannot be avoided even with path optimization.
[0004] The above content is only used to assist in understanding the technical solution of the present invention, and does not represent an admission that the above content is prior art. Summary of the Invention
[0005] The main purpose of the present invention is to provide a data processing method, apparatus, device, and computer-readable storage medium, aiming to solve the technical problem that the user's viewing experience is poor due to simply playing the video of the game.
[0006] To achieve the above object, the present invention provides a data processing method, and the data processing method includes the following steps:
[0007] Obtain the first spatial coordinate data of the starting point of the object to be marked and the second spatial coordinate data of the first laser scanning point;
[0008] Determine the third spatial coordinate data according to the first spatial coordinate data and the second spatial coordinate data;
[0009] Control the first laser scanning point to move to the third spatial coordinate data to determine the second laser scanning point;
[0010] Determine the displacement from the third spatial coordinate data to the first spatial coordinate data according to the third spatial coordinate data and the first spatial coordinate data;
[0011] Determine the third laser scanning point according to the second laser scanning point and the displacement.
[0012] Further, the step of determining the third spatial coordinate data according to the first spatial coordinate data and the second spatial coordinate data includes:
[0013] Taking the first X-axis value of the first spatial coordinate data, the second Y-axis value of the first spatial coordinate data, and the first Z-axis value in the second spatial coordinate data as the third spatial coordinate data.
[0014] Further, the step of determining the displacement from the third spatial coordinate data to the first spatial coordinate data according to the third spatial coordinate data and the first spatial coordinate data includes:
[0015] Performing a subtraction operation on the second Z-axis value and the first Z-axis value in the first spatial coordinate data to determine the difference;
[0016] Based on the absolute value of the difference, determining the displacement from the third spatial coordinate data to the first spatial coordinate data.
[0017] Further, the step of determining the third laser scanning point according to the second laser scanning point and the displacement includes:
[0018] Dividing the displacement into a first displacement, a second displacement, and a third displacement;
[0019] Determining the third laser scanning point according to the second laser scanning point, the first displacement, the second displacement, and the third displacement.
[0020] Further, the step of determining the third laser scanning point according to the second laser scanning point, the first displacement, the second displacement, and the third displacement includes:
[0021] Determining a first acceleration according to the uniformly accelerated linear motion formula, the initial velocity of the second laser scanning point, the first displacement, and the preset maximum velocity;
[0022] Controlling the second laser scanning point to perform uniformly accelerated linear motion along the direction of the first displacement with the first acceleration to the first displacement to determine the fourth laser scanning point;
[0023] Determining the third laser scanning point according to the fourth laser scanning point, the second displacement, and the third displacement.
[0024] Further, the step of determining the third laser scanning point according to the fourth laser scanning point, the second displacement, and the third displacement includes:
[0025] Controlling the fourth laser scanning point to perform uniform linear motion along the direction of the second displacement with the preset maximum velocity to the second displacement to determine the fifth laser scanning point;
[0026] Determine the third laser scanning point based on the fifth laser scanning point and the third displacement.
[0027] Further, the step of determining the third laser scanning point based on the fifth laser scanning point and the third displacement includes:
[0028] Determine the second acceleration according to the uniformly decelerated linear motion formula, the third displacement, the preset end speed, and the preset maximum speed;
[0029] Control the fifth laser scanning point to perform uniformly decelerated linear motion along the direction of the third displacement with the second acceleration to the third displacement to determine the third laser scanning point.
[0030] In addition, to achieve the above object, the present invention further provides a data processing device, and the data processing device includes:
[0031] An acquisition module, configured to acquire first spatial coordinate data of a starting point of an object to be marked and second spatial coordinate data of a first laser scanning point;
[0032] A first determination module, configured to determine third spatial coordinate data according to the first spatial coordinate data and the second spatial coordinate data;
[0033] A control module, configured to control the first laser scanning point to move to the third spatial coordinate data to determine a second laser scanning point;
[0034] A second determination module, configured to determine a displacement from the third spatial coordinate data to the first spatial coordinate data according to the third spatial coordinate data and the first spatial coordinate data;
[0035] A third determination module, configured to determine a third laser scanning point according to the second laser scanning point and the displacement.
[0036] In addition, to achieve the above object, the present invention further provides a data processing device, and the data processing device includes: a memory, a processor, and a data processing program stored on the memory and executable on the processor, and when the data processing program is executed by the processor, the steps of the foregoing data processing method are implemented.
[0037] In addition, to achieve the above object, the present invention further provides a computer-readable storage medium, and a data processing program is stored on the computer-readable storage medium, and when the data processing program is executed by a processor, the steps of the foregoing data processing method are implemented.
[0038] The present invention determines the third spatial coordinate data by obtaining the first spatial coordinate data of the starting point of the object to be marked and the second spatial coordinate data of the first laser scanning point. Then, it controls the first laser scanning point to move to the third spatial coordinate data to determine the second laser scanning point. After that, it determines the displacement from the third spatial coordinate data to the first spatial coordinate data based on the third spatial coordinate data and the first spatial coordinate data. Finally, it determines the third laser scanning point based on the second laser scanning point and the displacement. This enables the second laser scanning point adjusted by the Z-axis galvanometer to accurately determine the third laser scanning point according to the displacement, thereby making the Z-axis galvanometer less likely to get stuck and improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 is a schematic structural diagram of a data processing device in the hardware operating environment related to the solution of the embodiment of the present invention;
[0040] Figure 2 is a schematic flowchart of the first embodiment of the data processing method of the present invention;
[0041] Figure 3 is a schematic diagram of the functional modules of an embodiment of the data processing device of the present invention.
[0042] The implementation, functional features, and advantages of the object of the present invention will be further described with reference to the embodiments and the accompanying drawings. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0043] It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0044] As Figure 1 shown, Figure 1 is a schematic structural diagram of a data processing device in the hardware operating environment related to the solution of the embodiment of the present invention.
[0045] The data processing device in the embodiment of the present invention can be a PC, or a mobile terminal device with a display function such as a smart phone, a tablet computer, or a portable computer.
[0046] As Figure 1As shown, the data processing device may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, and a communication bus 1002. Among them, the communication bus 1002 is used to implement the connection and communication between these components. The user interface 1003 may include a display screen (Display) and an input unit such as a keyboard (Keyboard). Optionally, the user interface 1003 may further include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory. Optionally, the memory 1005 may also be a storage device independent of the aforementioned processor 1001.
[0047] Optionally, the data processing device may further include a camera, an RF (Radio Frequency) circuit, sensors, an audio circuit, a WiFi module, etc. Among them, the sensors include, for example, a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor. Among them, the ambient light sensor can adjust the brightness of the display screen according to the brightness of the ambient light, and the proximity sensor can turn off the display screen and / or the backlight when the data processing device is moved to the ear. As a kind of motion sensor, the gravity acceleration sensor can detect the magnitude of acceleration in all directions (generally three axes). When stationary, it can detect the magnitude and direction of gravity and can be used for applications that identify the posture of the data processing device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as a pedometer, tapping), etc.; of course, the data processing device can also be configured with other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., which will not be elaborated here.
[0048] Those skilled in the art can understand that Figure 1 the terminal structure shown in
[0049] does not constitute a limitation on the terminal and may include more or fewer components than shown in the figure, or combine certain components, or have different component arrangements. Figure 1 As shown in
[0050] In Figure 1 the terminal shown, the network interface 1004 is mainly used to connect to the background server and communicate with the background server for data; the user interface 1003 is mainly used to connect to the client (user side) and communicate with the client for data; and the processor 1001 can be used to call the data processing program stored in the memory 1005.
[0051] In this embodiment, the data processing device includes: a memory 1005, a processor 1001, and a data processing program stored on the memory 1005 and operable on the processor 1001. When the processor 1001 calls the data processing program stored in the memory 1005, it executes the steps of the data processing method in each of the following embodiments.
[0052] The present invention also provides a data processing method. Refer to Figure 2 , Figure 2 which is a schematic flowchart of the first embodiment of the method of the present invention.
[0053] In this embodiment, the data processing method includes the following steps:
[0054] Step S101, obtaining first spatial coordinate data of the starting point of the object to be marked and second spatial coordinate data of the first laser scanning point;
[0055] It should be noted that a set of galvanometer-type three-dimensional laser scanning processing systems includes a laser, a beam expander, XY two-axis reflecting galvanometers, a dynamic focusing lens group, and a galvanometer control unit. The laser is used to generate the laser for marking; the beam expander expands and collimates the laser beam and adjusts it into a parallel beam; the X-axis galvanometer and the Y-axis galvanometer are each connected to a servo motor and are used to deflect the laser beam emitted by the laser; the dynamic focusing lens group is used to control the change in the focal length of the laser beam passing through the beam expander, project it onto the X-axis galvanometer and the Y-axis galvanometer, and after two reflections by the two galvanometers, focus on the surface of the workpiece to form a scanning point. The galvanometer control unit obtains the contour point data of the graph to be scanned through the marking software and converts it into the driving data of the servo motor, thereby controlling the deflection of the galvanometer.
[0056] In this embodiment, first, the first spatial coordinate data of the starting point of the object to be marked is obtained. Here, the starting point refers to the point where the object to be marked starts marking first. Then, the first laser scanning point and the second spatial coordinate data of the first laser scanning point are obtained.
[0057] Step S102, determining third spatial coordinate data according to the first spatial coordinate data and the second spatial coordinate data;
[0058] In this embodiment, according to the obtained first spatial coordinate data and the second spatial coordinate data, the third spatial coordinate data is calculated. The first spatial coordinate data includes a first X-axis value, a first Y-axis value, and a second Z-axis value, and the second spatial coordinate data includes a second X-axis value, a second Y-axis value, and a first Z-axis value.
[0059] Further, step S102 includes:
[0060] Step S1021: Use the first X-axis value of the first spatial coordinate data, the second Y-axis value of the first spatial coordinate data, and the first Z-axis value in the second spatial coordinate data as the third spatial coordinate data.
[0061] In this embodiment, use the first X-axis value of the first spatial coordinate data, the second Y-axis value of the first spatial coordinate data, and the first Z-axis value in the second spatial coordinate data as the third spatial coordinate data. For example, if the first X-axis value of the first spatial coordinate data is 15, the second Y-axis value of the first spatial coordinate data is 16, and the first Z-axis value in the second spatial coordinate data is 19, then the X-axis value of the third spatial coordinate data is 15, the Y-axis value is 16, and the Z-axis value is 19.
[0062] Step S103: Control the first laser scanning point to move to the third spatial coordinate data to determine the second laser scanning point.
[0063] In this embodiment, control the X-axis galvanometer and the Y-axis galvanometer to deflect the laser beam, so that the first laser scanning point moves to the third spatial coordinate data at a preset maximum speed according to the third spatial coordinate data to determine the second laser scanning point.
[0064] Step S104: Determine the displacement from the third spatial coordinate data to the first spatial coordinate data according to the third spatial coordinate data and the first spatial coordinate data.
[0065] In this embodiment, determine the displacement from the third spatial coordinate data to the first spatial coordinate data according to the third spatial coordinate data and the first spatial coordinate data. The above displacement refers to the displacement between the two points determined by the third spatial coordinate data and the first spatial coordinate data.
[0066] Further, step S104 includes:
[0067] Step S1041: Perform a subtraction operation on the second Z-axis value in the first spatial coordinate data and the first Z-axis value to determine the difference.
[0068] Step S1042: Determine the displacement from the third spatial coordinate data to the first spatial coordinate data based on the absolute value of the difference.
[0069] In this embodiment, to calculate the displacement between the first spatial coordinate data and the third spatial coordinate data, only need to perform a subtraction operation on the second Z-axis value in the first spatial coordinate data and the first Z-axis value in the third spatial coordinate data to obtain the difference, and then take the absolute value operation of the difference to determine the displacement from the third spatial coordinate data to the first spatial coordinate data.
[0070] Step S105: Determine a third laser scanning point based on the second laser scanning point and the displacement.
[0071] In this embodiment, control the galvanometer in the Z-axis, adjust the focal length, and move the second laser scanning point in the direction of the displacement until the length of the displacement is completed, then determine the third laser scanning point.
[0072] Further, step S105 includes:
[0073] Step S1051: Divide the displacement into a first displacement, a second displacement, and a third displacement.
[0074] Step S1052: Determine the third laser scanning point based on the second laser scanning point, the first displacement, the second displacement, and the third displacement.
[0075] In this embodiment, first divide the displacement into a first displacement, a second displacement, and a third displacement. Specifically, the displacement can be trisected, and the length of each displacement segment is equal. For example, if the displacement size is 18, the sizes of the first displacement, the second displacement, and the third displacement can be 6, 6, and 6 respectively. Of course, the sizes of the first displacement, the second displacement, and the third displacement can also be set manually according to the specific mechanical requirements.
[0076] Then, control the second laser scanning point to move through the first displacement with uniformly accelerated motion, move through the second displacement with uniform linear motion, and move through the third displacement with uniformly decelerated linear motion to determine the third laser scanning point.
[0077] The data processing method proposed in this embodiment, by obtaining the first spatial coordinate data of the marking starting point and the second spatial coordinate data of the first laser scanning point, then determining the third spatial coordinate data based on the first spatial coordinate data and the second spatial coordinate data, then controlling the first laser scanning point to move to the third spatial coordinate data to determine the second laser scanning point, and then determining the displacement from the third spatial coordinate data to the first spatial coordinate data based on the third spatial coordinate data and the first spatial coordinate data, and finally determining the third laser scanning point based on the second laser scanning point and the displacement, can enable the second laser scanning point adjusted by the galvanometer in the Z-axis to accurately determine the third laser scanning point according to the displacement, thereby making the galvanometer in the Z-axis less likely to get stuck and improving the user experience.
[0078] Based on the first embodiment, a second embodiment of the data processing method of the present invention is proposed. In this embodiment, step S1052 includes:
[0079] Step S201: Determine a first acceleration according to the uniformly accelerated linear motion formula, the initial velocity of the second laser scanning point, the first displacement, and the preset maximum velocity.
[0080] Step S202: Control the second laser scanning point to perform a uniformly accelerated linear motion along the direction of the first displacement at the first acceleration until the first displacement is reached to determine the fourth laser scanning point.
[0081] Step S203: Determine the third laser scanning point according to the fourth laser scanning point, the second displacement, and the third displacement.
[0082] In this embodiment, the first acceleration can be simply calculated according to the uniformly accelerated linear motion formula, the initial velocity of the second laser scanning point, the displacement, and the preset maximum velocity. Then, the focal length of the second laser scanning point is controlled by the Z-axis galvanometer so that the second laser scanning point performs a uniformly accelerated linear motion along the direction of the first displacement at the first acceleration until the first displacement is completed, thereby obtaining the fourth laser scanning point. Finally, the third laser scanning point is determined according to the fourth laser scanning point, the second displacement, and the third displacement.
[0083] The data processing method proposed in this embodiment determines the first acceleration according to the uniformly accelerated linear motion formula, the initial velocity of the second laser scanning point, the first displacement, and the preset maximum velocity, then controls the second laser scanning point to perform a uniformly accelerated linear motion along the direction of the first displacement at the first acceleration until the first displacement is reached to determine the fourth laser scanning point, and finally determines the third laser scanning point according to the fourth laser scanning point, the second displacement, and the third displacement. This enables the second laser scanning point adjusted by the Z-axis galvanometer to determine the fourth laser scanning point according to the first acceleration, and further determines the third laser scanning point more stably, thereby making the Z-axis galvanometer less likely to get stuck and improving the user experience.
[0084] Based on the second embodiment, a third embodiment of the data processing method of the present invention is proposed. In this embodiment, step S203 includes:
[0085] Step S301: Control the fourth laser scanning point to perform a uniform linear motion along the direction of the second displacement at the preset maximum velocity until the second displacement is reached to determine the fifth laser scanning point.
[0086] Step S302: Determine the third laser scanning point according to the fifth laser scanning point and the third displacement.
[0087] In this embodiment, the Z-axis galvanometer controls the fourth laser scanning point to perform a uniform linear motion along the direction of the second displacement at the preset maximum velocity until the second displacement is completed to determine the fifth laser scanning point. For example, if the second displacement is 2 cm, the Z-axis galvanometer controls the fourth laser scanning point to perform a uniform linear motion at the preset maximum velocity of 20 cm per second. After 0.1 second, the displacement is 2 cm, and at this time, the second displacement is completed.
[0088] Finally, determine the third laser scanning point according to the fifth laser scanning point and the third displacement.
[0089] In the data processing method provided in this embodiment, by controlling the fourth laser scanning point to move in a uniform straight line along the direction of the second displacement at the preset maximum speed to the second displacement to determine the fifth laser scanning point, and then determining the third laser scanning point according to the fifth laser scanning point and the third displacement, it is possible to make the fourth laser scanning point adjusted by the Z-axis galvanometer determine the fifth laser scanning point according to the preset maximum speed, and then more stably determine the third laser scanning point, so that the Z-axis galvanometer is no longer easily stuck, improving the user experience.
[0090] Based on the above various embodiments, a fourth embodiment of the data processing method of the present invention is proposed. In this embodiment, step S302 includes:
[0091] Step S401, determine the second acceleration according to the uniformly decelerated linear motion formula, the third displacement, the preset end speed, and the preset maximum speed;
[0092] Step S402, control the fifth laser scanning point to move in a uniformly decelerated straight line along the direction of the third displacement at the second acceleration to the third displacement to determine the third laser scanning point.
[0093] In this embodiment, the second acceleration can be simply calculated according to the uniformly decelerated linear motion formula, the third displacement, the preset end speed, and the preset maximum speed. Among them, then, the preset end speed is the end speed of the fifth laser scanning point to complete the third displacement. By controlling the focal length of the scanning point by the Z-axis galvanometer, the fifth laser scanning point moves in a uniformly decelerated straight line along the direction of the displacement at the second acceleration until it finishes the third displacement, thereby obtaining the third laser scanning point.
[0094] In the data processing method provided in this embodiment, by determining the second acceleration according to the uniformly decelerated linear motion formula, the third displacement, the preset end speed, and the preset maximum speed, and then controlling the fifth laser scanning point to move in a uniformly decelerated straight line along the direction of the third displacement at the second acceleration to the third displacement to determine the third laser scanning point, it is possible to make the fifth laser scanning point adjusted by the Z-axis galvanometer more stably determine the third laser scanning point according to the second acceleration, so that the Z-axis galvanometer is no longer easily stuck, improving the user experience.
[0095] The present invention also provides a data processing device. Refer to Figure 3 , the data processing device includes:
[0096] An acquisition module 10 for acquiring first spatial coordinate data of the starting point of an object to be marked and second spatial coordinate data of a first laser scanning point;
[0097] A first determination module 20 for determining third spatial coordinate data according to the first spatial coordinate data and the second spatial coordinate data;
[0098] A control module 30 for controlling the first laser scanning point to move to the third spatial coordinate data to determine a second laser scanning point;
[0099] A second determination module 40 for determining the displacement from the third spatial coordinate data to the first spatial coordinate data according to the third spatial coordinate data and the first spatial coordinate data;
[0100] A third determination module 50 for determining a third laser scanning point according to the second laser scanning point and the displacement;
[0101] Further, the first determination module 20 is further configured to:
[0102] Use the first X-axis value of the first spatial coordinate data, the second Y-axis value of the first spatial coordinate data, and the first Z-axis value in the second spatial coordinate data as the third spatial coordinate data.
[0103] Further, the second determination module 40 is further configured to:
[0104] Perform a subtraction operation on the second Z-axis value and the first Z-axis value in the first spatial coordinate data to determine a difference;
[0105] Determine the displacement from the third spatial coordinate data to the first spatial coordinate data based on the absolute value of the difference.
[0106] Further, the third determination module 50 is further configured to:
[0107] Divide the displacement into a first displacement, a second displacement, and a third displacement;
[0108] Determine the third laser scanning point according to the second laser scanning point and the first displacement, second displacement, and third displacement.
[0109] Further, the third determination module 50 is further configured to:
[0110] Determine a first acceleration according to the uniformly accelerated linear motion formula, the initial velocity of the second laser scanning point, the first displacement, and a preset maximum velocity;
[0111] Control the second laser scanning point to perform a uniformly accelerated linear motion along the direction of the first displacement with the first acceleration to the first displacement to determine the fourth laser scanning point;
[0112] Determine the third laser scanning point according to the fourth laser scanning point, the second displacement, and the third displacement.
[0113] Further, the third determination module 50 is further configured to:
[0114] Control the fourth laser scanning point to perform a uniform linear motion along the direction of the second displacement at the preset maximum speed to the second displacement to determine the fifth laser scanning point;
[0115] Determine the third laser scanning point according to the fifth laser scanning point and the third displacement.
[0116] Further, the data processing device is further configured to:
[0117] Determine the second acceleration according to the uniformly decelerated linear motion formula, the third displacement, the preset end speed, and the preset maximum speed;
[0118] Control the fifth laser scanning point to perform a uniformly decelerated linear motion along the direction of the third displacement with the second acceleration to the third displacement to determine the third laser scanning point.
[0119] The methods executed by the above program units can refer to the various embodiments of the data processing method of the present invention, which will not be elaborated here.
[0120] In addition, an embodiment of the present invention further provides a data processing device, which includes: a memory, a processor, and a data processing program stored on the memory and executable on the processor. When the data processing program is executed by the processor, the steps of the data processing method described above are implemented.
[0121] In addition, an embodiment of the present invention further provides a computer-readable storage medium, on which a data processing program is stored. When the data processing program is executed by a processor, the steps of the data processing method described above are implemented.
[0122] It should be noted that in this article, the term "including", "comprising" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements not only includes those elements, but also includes other elements not expressly listed, or further includes elements inherent to such process, method, article or system. Without further limitation, an element defined by the statement "including one..." does not exclude the existence of another identical element in the process, method, article or system including that element.
[0123] The serial numbers of the embodiments of the present invention above are only for description and do not represent the superiority or inferiority of the embodiments.
[0124] Through the description of the above embodiments, those skilled in the art can clearly understand that the above embodiment methods can be implemented by means of software plus a necessary general hardware platform. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art can be embodied in the form of a software product. The computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above and includes several instructions for causing a terminal device (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in the various embodiments of the present invention.
[0125] The above are only the preferred embodiments of the present invention and do not limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made by using the content of the specification and drawings of the present invention, or directly or indirectly applied in other related technical fields, shall be equally included in the patent protection scope of the present invention.
Claims
1. A data processing method, characterized in that, The data processing method includes the following steps: Obtain the first spatial coordinate data of the starting point of the object to be marked and the second spatial coordinate data of the first laser scanning point; Determine the third spatial coordinate data according to the first spatial coordinate data and the second spatial coordinate data. The steps include: Use the first X-axis value of the first spatial coordinate data, the second Y-axis value of the first spatial coordinate data, and the first Z-axis value in the second spatial coordinate data as the third spatial coordinate data; Control the first laser scanning point to move to the third spatial coordinate data to determine the second laser scanning point. The steps include: Control the X-axis galvanometer and the Y-axis galvanometer to deflect the laser beam, so that the first laser scanning point moves to the third spatial coordinate data at a preset maximum speed according to the third spatial coordinate data, and determine the second laser scanning point; Determine the displacement from the third spatial coordinate data to the first spatial coordinate data according to the third spatial coordinate data and the first spatial coordinate data. The steps include: Perform a subtraction operation on the second Z-axis value and the first Z-axis value in the first spatial coordinate data to determine the difference; Determine the displacement from the third spatial coordinate data to the first spatial coordinate data based on the absolute value of the difference; Determine the third laser scanning point according to the second laser scanning point and the displacement. The steps include: Control the Z-axis galvanometer to adjust the focal length, so that the second laser scanning point moves in the direction of the displacement until the length of the displacement is completed, and then determine the third laser scanning point.
2. The data processing method according to claim 1, wherein The step of determining the third laser scanning point according to the second laser scanning point and the displacement includes: Divide the displacement into a first displacement, a second displacement, and a third displacement; Determine the third laser scanning point according to the second laser scanning point and the first displacement, the second displacement, and the third displacement.
3. The data processing method according to claim 2, wherein The step of determining the third laser scanning point according to the second laser scanning point and the first displacement, the second displacement, and the third displacement includes: Determine the first acceleration according to the uniformly accelerated linear motion formula, the initial velocity of the second laser scanning point, the first displacement, and the preset maximum speed; Control the second laser scanning point to perform uniformly accelerated linear motion along the direction of the first displacement at the first acceleration until the first displacement is reached to determine the fourth laser scanning point; Determine the third laser scanning point according to the fourth laser scanning point, the second displacement, and the third displacement.
4. The data processing method according to claim 3, wherein The step of determining the third laser scanning point according to the fourth laser scanning point, the second displacement, and the third displacement includes: Control the fourth laser scanning point to perform uniform linear motion along the direction of the second displacement at the preset maximum speed until the second displacement is reached to determine the fifth laser scanning point; Determine the third laser scanning point according to the fifth laser scanning point and the third displacement.
5. The data processing method according to claim 4, characterized in that The step of determining the third laser scanning point according to the fifth laser scanning point and the third displacement includes: Determine a second acceleration according to the uniformly decelerated linear motion formula, the third displacement, the preset end speed, and the preset maximum speed; Control the fifth laser scanning point to perform uniformly decelerated linear motion along the direction of the third displacement at the second acceleration to the third displacement to determine the third laser scanning point.
6. A data processing device, characterized in that, The data processing device includes: An acquisition module for acquiring first spatial coordinate data of a starting point of an object to be marked and second spatial coordinate data of a first laser scanning point; A first determination module for determining third spatial coordinate data according to the first spatial coordinate data and the second spatial coordinate data; Wherein, the first determination module is further configured to: Use the first X-axis value of the first spatial coordinate data, the second Y-axis value of the first spatial coordinate data, and the first Z-axis value in the second spatial coordinate data as the third spatial coordinate data; A control module for controlling the first laser scanning point to move to the third spatial coordinate data to determine a second laser scanning point; Wherein, the control module is further configured to: Control the X-axis galvanometer and the Y-axis galvanometer to deflect the laser beam, so that the first laser scanning point moves to the third spatial coordinate data at a preset maximum speed and according to the third spatial coordinate data to determine the second laser scanning point; A second determination module for determining the displacement from the third spatial coordinate data to the first spatial coordinate data according to the third spatial coordinate data and the first spatial coordinate data; Wherein, the second determination module is further configured to: Perform a subtraction operation on the second Z-axis value and the first Z-axis value in the first spatial coordinate data to determine a difference; Based on the absolute value of the difference, determine the displacement from the third spatial coordinate data to the first spatial coordinate data; A third determination module for determining a third laser scanning point according to the second laser scanning point and the displacement; Wherein, the third determination module is further configured to: Control the Z-axis galvanometer to adjust the focal length, so that the second laser scanning point moves in the direction of the displacement until the length of the displacement is completed, then determine the third laser scanning point.
7. A data processing device, characterized in that, The data processing device includes: a memory, a processor, and a data processing program stored on the memory and executable on the processor. When the data processing program is executed by the processor, the steps of the data processing method according to any one of claims 1 to 5 are implemented.
8. A computer-readable storage medium, characterized in that, A data processing program is stored on the computer-readable storage medium. When the data processing program is executed by the processor, the steps of the data processing method according to any one of claims 1 to 5 are implemented.
Citation Information
Patent Citations
Three-coordinate galvanometer scanning laser processing head
CN102166685A
Laser marking machine and marking method thereof
CN104097402A