Laser adjustment method and device, equipment and storage medium
By acquiring a reference image and calculating the deviation between the laser and nozzle centers, and using drive control commands to adjust the position of optical elements, the problem of low coaxial accuracy in laser cutting heads is solved, achieving efficient coaxial adjustment and improved cutting quality.
Patent Information
- Application Number
- CN202511466936.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-10-14
- Publication Date
- 2026-02-10
AI Technical Summary
Existing laser cutting heads suffer from low calibration accuracy and poor stability during coaxial alignment, resulting in cutting quality that fails to meet the requirements of high-end precision machining.
By acquiring a reference image, the deviation between the laser center and the nozzle center is calculated, and a drive control command is generated based on a preset deviation conversion formula to adjust the coordinate position of the optical element until the deviation is within a preset error range, thereby achieving accurate coaxial adjustment of the laser and the nozzle.
It improves the accuracy and speed of coaxial adjustment during laser processing, thereby enhancing cutting quality.
Smart Images

Figure CN121491522A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of laser processing, and in particular to a laser adjustment method and device, a processing equipment and a storage medium. BACKGROUND
[0002] At present, most laser cutting heads on the market still highly rely on manual operation of operators when realizing a basic but crucial adjustment, i.e., coaxiality calibration of a laser beam and a nozzle hole center (referred to as "coaxiality adjustment"), which has become a significant bottleneck restricting further improvement of cutting quality and production efficiency. The principle of laser cutting determines that the laser beam must be vertically emitted from the center of the nozzle, and any slight coaxiality deviation will cause process defects such as non-perpendicular cutting section, increased slag, and even material unable to be cut through.
[0003] The traditional cutting head has the disadvantages of low calibration accuracy and poor stability in coaxiality adjustment. In the actual operation process, the operator needs to observe the laser spot on the nozzle hole by naked eye, and manually rotate the adjusting screw inside the cutting head to fine-tune the optical path, so as to make the light spot in the center of the nozzle. This subjective judgment by the human eye is extremely strong, and is greatly disturbed by factors such as environmental light and visual fatigue, and it is difficult to ensure the consistency of each calibration, resulting in that the final cutting quality cannot reach the optimal state, and it is difficult to meet the needs of high-end precision machining. SUMMARY
[0004] The purpose of the present application is to provide a laser adjustment method, device, processing equipment and storage medium to solve the problem of coaxial adjustment accuracy of laser and nozzle in the laser processing process.
[0005] In a first aspect, an embodiment of the present application provides a laser adjustment method, comprising: obtaining a reference image, and calculating a deviation result of a laser center and a nozzle center according to the reference image; converting the deviation result into a driving parameter value corresponding to a driving device based on a preset deviation conversion formula; obtaining a preset speed parameter, and generating a driving control instruction according to the driving parameter value and the preset speed parameter; adjusting the coordinate position of the optical element according to the driving control instruction, and obtaining an adjusted reference image collected after adjustment; calculating an adjusted deviation result of the laser center and the nozzle center according to the adjusted reference image; if the adjusted deviation result is within a preset coaxiality error range, completing the adjustment operation; If the adjustment deviation result is not within the preset coaxiality error range, a new driving control instruction is regenerated according to the adjustment deviation result to obtain a new adjustment reference image, and a new adjustment deviation result is calculated according to the new adjustment reference image, until the new adjustment deviation result is within the preset coaxiality error range, or the adjustment operation number of the adjustment deviation result reaches a preset value.
[0006] In a second aspect, the embodiments of the present application provide a laser adjustment device, which adopts the technical scheme as follows: a deviation calculation module configured to obtain a reference image, and calculate a deviation result of a laser center and a nozzle center according to the reference image; a parameter conversion module configured to convert the deviation result into a driving parameter value corresponding to a driving device based on a preset deviation conversion formula; an instruction generation module configured to obtain a preset speed parameter, and generate a driving control instruction according to the driving parameter value and the preset speed parameter; an image acquisition module configured to adjust a coordinate position of an optical element according to the driving control instruction, and obtain an adjustment reference image acquired after adjustment; an adjustment result acquisition module configured to calculate an adjustment deviation result of the laser center and the nozzle center according to the adjustment reference image; a first processing module configured to complete an adjustment operation if the adjustment deviation result is within a preset coaxiality error range; a second processing module configured to regenerate a new driving control instruction according to the adjustment deviation result to obtain a new adjustment reference image, and calculate a new adjustment deviation result according to the new adjustment reference image, until the new adjustment deviation result is within the preset coaxiality error range, or the adjustment operation number of the adjustment deviation result reaches a preset value, and stop the adjustment operation.
[0007] To solve the above technical problem, the embodiments of the present application further provide a processing device, which adopts the technical scheme as follows: In a third aspect, the embodiments of the present application provide a processing device, which comprises a memory and a processor, the memory stores a computer program, and the processor implements the steps of the laser adjustment method when executing the computer program.
[0008] To solve the above technical problem, the embodiments of the present application further provide a computer readable storage medium, which adopts the technical scheme as follows: Fourthly, embodiments of this application provide a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps of the laser adjustment method described above.
[0009] Fifthly, embodiments of this application provide a computer program product that, when running on a terminal device, causes the terminal device to execute the laser adjustment method described in any of the first aspects above.
[0010] The beneficial effects of the embodiments of this application are: This application acquires a reference image and calculates the deviation between the laser center and the nozzle center based on the reference image. The deviation is then converted into drive parameter values corresponding to the drive device using a preset deviation conversion formula. Preset speed parameters are acquired, and drive control commands are generated based on the drive parameter values and the preset speed parameters. The coordinate position of the optical element is adjusted according to the drive control commands, and an adjustment reference image is acquired after adjustment. The adjustment deviation between the laser center and the nozzle center is calculated based on the adjustment reference image. If the adjustment deviation is within a preset coaxiality error range, the adjustment operation is completed. If the adjustment deviation is not within the preset coaxiality error range, a new drive control command is generated based on the adjustment deviation to obtain a new adjustment reference image. A new adjustment deviation is calculated based on the new adjustment reference image until the new adjustment deviation is within the preset coaxiality error range, or the number of adjustment operations reaches a preset value, at which point the adjustment operation stops. By visually identifying the deviation between the laser center and the nozzle center, and then adjusting the laser's output optical path through the drive device, accurate and rapid coaxial adjustment of the laser and nozzle during laser processing is achieved, thereby improving processing quality. Attached Figure Description
[0011] To more clearly illustrate the solutions in this application, the accompanying drawings used in the description of the embodiments of this application will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0012] Figure 1 This is a schematic flowchart of a laser adjustment method provided in an embodiment of this application; Figure 2 This is a schematic diagram of the structure of a laser adjustment device provided in one embodiment of this application; Figure 3 This is a schematic diagram of one embodiment of the processing equipment according to this application. Detailed Implementation
[0013] To make the technical problem to be solved, the technical solution and the beneficial effects of this application clearer, the following is in conjunction with the appendix. Figures 1 to 3 The present application will be further described in detail below with reference to embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
[0014] In the following description, specific details such as particular system architectures and techniques are set forth for illustrative purposes and not for limitation, in order to provide a thorough understanding of the embodiments of this application. However, those skilled in the art will understand that this application may also be implemented in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, apparatuses, circuits, and methods have been omitted so as not to obscure the description of this application with unnecessary detail.
[0015] It should be understood that, when used in this application specification and the appended claims, the term "comprising" indicates the presence of the described features, integrals, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or a collection thereof.
[0016] It should also be understood that the term “and / or” as used in this application specification and the appended claims means any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.
[0017] As used in this application specification and the appended claims, the term "if" may be interpreted, depending on the context, as "when," "once," "in response to determination," or "in response to detection." Similarly, the phrase "if determined" or "if detected [the described condition or event]" may be interpreted, depending on the context, as meaning "once determined," "in response to determination," "once detected [the described condition or event]," or "in response to detection [the described condition or event]."
[0018] Furthermore, in the description of this application and the appended claims, the terms "first," "second," "third," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.
[0019] References to "one embodiment" or "some embodiments" as described in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.
[0020] Embodiments of this application provide a laser adjustment method that can be applied to laser processing or machining, such as oxygen plate cutting.
[0021] refer to Figure 1 The diagram shows a flowchart of one embodiment of the laser adjustment method according to this application. The laser adjustment method includes steps S10 to S70.
[0022] Step S10: Obtain a reference image and calculate the deviation between the laser center and the nozzle center based on the reference image; In this embodiment, the system captures a clear image of the nozzle's interior using a built-in miniature camera. This image clearly shows the nozzle's circular inner wall and central region. The deviation result is a two-dimensional vector: deviation (ΔX, ΔY) = (X_laser - X_nozzle, Y_laser - Y_nozzle), where (X_nozzle, Y_nozzle) are the pixel coordinates of the nozzle center, and (X_laser, Y_laser) are the pixel coordinates of the laser center. This two-dimensional vector indicates the amount and direction of the laser center's offset relative to the nozzle center in the X and Y directions.
[0023] Step S20: Convert the deviation result into the corresponding drive parameter value of the drive device based on the preset deviation conversion formula; In this embodiment, a preset deviation conversion formula can be obtained by performing a matching query in the database based on the extracted identifier. The driving parameter values include a first parameter value and a second parameter value, which are calculated according to the following formula: First parameter value (driving the first motor) = Y 视觉坐标 -(X 视觉坐标 / coefficient); Second parameter value (driving the second motor) = Y 视觉坐标 +(X 视觉坐标 / coefficient). Wherein, coefficient = 2.48. This coefficient is a conversion factor used to map pixel deviations in the image coordinate system to the motor drive coordinate system. In this embodiment, the above coefficient can be set and adjusted according to actual conditions. The visual X coordinate represents the horizontal (X-axis) deviation value of the laser center relative to the nozzle center in the image coordinate system. The unit is usually pixels, representing the distance of the laser point from the nozzle center in the horizontal direction. Positive values usually indicate that the laser center is to the right of the nozzle center, and negative values indicate that it is to the left. The visual Y coordinate represents the vertical (Y-axis) deviation value of the laser center relative to the nozzle center in the image coordinate system. The unit is also pixels, representing the distance of the laser point from the nozzle center in the vertical direction. Positive values usually indicate that the laser center is above the nozzle center, and negative values indicate that it is below. The drive parameter value is the number of pulses or voltage value received by the drive device (stepper motor or servo motor).
[0024] Step S30: Obtain preset speed parameters, and generate drive control commands based on drive parameter values and preset speed parameters; In this embodiment, the preset speed parameter is a reference speed set by process requirements or system performance. Using the preset speed parameter as a reference and combining it with the prediction results, a drive control command for a high-performance motion curve is finally generated. This command specifies in detail the precise position and speed of the motor at each point in time.
[0025] Step S40: Adjust the coordinate position of the optical element according to the drive control command, and acquire the adjustment reference image after adjustment; In this embodiment, the motion controller receives drive control commands and converts them into electrical pulse signals to drive the motor. The motor drives the optical element (reflector) to move to a new coordinate position along a planned smooth trajectory to change the laser beam path. After the system confirms that the optical element has stabilized in place, it immediately triggers the built-in camera to re-capture an image of the inside of the nozzle. This new image serves as the adjustment reference image.
[0026] Step S50: Calculate the adjustment deviation between the laser center and the nozzle center based on the adjustment reference image; In this embodiment, the system uses the exact same image processing algorithm (edge detection, template matching, etc.) as before to recalculate the actual deviation between the laser center and the nozzle center at this moment, so as to obtain the corresponding adjustment deviation result.
[0027] Step S60: If the adjustment deviation result is within the preset coaxiality error range, the adjustment operation is completed. In this embodiment, the preset coaxiality error range is a pre-defined, maximum allowable deviation value. When the adjusted deviation is less than or equal to the preset coaxiality error range, the system determines that the coaxiality has met the requirements, and the calibration process is successfully completed. The system will issue a "calibration complete" signal and allow the laser equipment to begin processing.
[0028] Step S70: If the adjustment deviation result is not within the preset coaxiality error range, a new drive control command is regenerated based on the adjustment deviation result to obtain a new adjustment reference image, and a new adjustment deviation result is calculated based on the new adjustment reference image until the new adjustment deviation result is within the preset coaxiality error range, or the number of adjustment operations for the adjustment deviation result reaches a preset value, at which point the adjustment operation stops.
[0029] In this embodiment, when the adjustment deviation exceeds the preset coaxiality error range, the system automatically starts a new calibration cycle, using the latest "adjustment deviation result" as new input, and repeats the entire process: recalculating new driving parameters; generating new optimized control commands; driving the optical elements for finer adjustments; and re-acquiring images and calculating the deviation. Through this iterative and gradual approximation method, the system can effectively compensate for various errors, ultimately achieving extremely high accuracy. In this embodiment, the system sets a maximum number of cycles, such as 5. If the adjustment fails after 5 repetitions, it is determined to be a calibration failure, the adjustment operation is stopped, and an alarm is triggered. This maximum number of cycles can be adjusted according to actual conditions.
[0030] The following is one embodiment of this example. In this embodiment, after the system software is opened, the vision software will automatically open, and the vision software will be triggered periodically to run the nozzle recognition process. When the automatic coaxial cycle function is triggered, the software will calculate the motor motion value based on the coordinates transmitted by the vision software, where A 电机运动值 =Y 视觉坐标 -X 视觉坐标 / coefficient; B 电机运动值 =Y 视觉坐标 +X 视觉坐标 / Coefficient, the coefficient is 2.48; after writing to the control card, the motor motion command is triggered. After the motor motion is completed, it is determined whether the visual coordinates are within the error range of the zero point. The zero point (origin) can also be understood as the reference point. This error range is essentially the difference between the current coordinates and the reference coordinates of the zero point (origin), that is, △x=X 当前坐标 -X 基准 , △y=y 当前坐标 -y 基准When Δx and Δy are within the coaxiality value (e.g., ±0.015), they are considered to be within the error range of the zero point. If they are not within the range, the above steps are repeated. If the number of cycles exceeds 5 and they are still not within the range, the automatic coaxiality is judged to have failed. The number of cycles depends on the distance between the motor origin and the reference point. The smaller the distance, the fewer cycles are required for automatic coaxiality.
[0031] This application acquires a reference image and calculates the deviation between the laser center and the nozzle center based on the reference image. It then converts the deviation result into corresponding drive parameter values for the drive device based on a preset deviation conversion formula. Preset speed parameters are acquired, and drive control commands are generated based on the drive parameter values and the preset speed parameters. The coordinate position of the optical element is adjusted according to the drive control commands, and an adjustment reference image is acquired after adjustment. The adjustment deviation between the laser center and the nozzle center is calculated based on the adjustment reference image. If the adjustment deviation is within a preset coaxiality error range, the adjustment operation is completed. If the adjustment deviation is not within the preset coaxiality error range, a new drive control command is generated based on the adjustment deviation to obtain a new adjustment reference image. A new adjustment deviation is calculated based on the new adjustment reference image until the new adjustment deviation is within the preset coaxiality error range, or the number of adjustment operations reaches a preset value, at which point the adjustment operation stops. By visually identifying the deviation between the laser center and the nozzle center, and then adjusting the laser's output optical path through the drive device, accurate and rapid coaxial adjustment of the laser and nozzle during laser processing is achieved, thus improving processing quality.
[0032] In an optional embodiment of this example, acquiring a reference image and calculating the deviation between the laser center and the nozzle center based on the reference image includes the following steps: Obtain image extraction identifiers and extract baseline images from the database based on the image extraction identifiers; In this embodiment, the image extraction identifier is a unique identifier corresponding to the reference image. After the reference image is acquired, it is saved to the image database, and then the image extraction identifier is used to query and extract the image from the database.
[0033] The reference image is preprocessed to obtain a standard reference image; In this embodiment, the preprocessing of the reference image includes: grayscale conversion: converting the color image to a grayscale image to reduce the amount of data and focus on brightness information; denoising and filtering: using algorithms such as Gaussian filtering and median filtering to eliminate random noise in the image and make the edges smoother; contrast enhancement: adjusting the image brightness and contrast to make the laser spot and nozzle edges clearer and more distinct; and image normalization: standardizing all images to the same size and brightness level to ensure algorithm stability. By performing the above preprocessing steps on the reference image, a standard reference image is effectively obtained.
[0034] The laser geometric center coordinates are obtained by calculating the laser center based on a standard reference image using an edge detection algorithm. In this embodiment, edge detection can use algorithms such as Canny and Sobel to find points in the standard reference image where the brightness changes drastically, i.e., the outline of the laser spot. These outline points are connected to form a circular boundary, i.e., the spot region. The coordinates of all pixels within the spot region are averaged to calculate the brightness centroid of the spot, thereby determining the laser center. The laser center is then mapped onto the image plane coordinate system to obtain a precise two-dimensional coordinate (X_laser, Y_laser), i.e., the laser center coordinates.
[0035] Based on the template matching algorithm, the nozzle geometric center is calculated according to the standard reference image to obtain the nozzle center coordinates; In this embodiment, the template in the template matching algorithm is a pre-prepared image containing a standard nozzle orifice. This template can come from a nozzle image acquired under perfect conditions. The template matching algorithm slides this template across the "standard reference image," comparing pixel-by-pixel regions and calculating similarity (e.g., calculating a correlation coefficient). The position with the highest similarity is then identified as the nozzle's location in the image. The nozzle region is located through template matching, and its orifice contour is extracted. Since the nozzle orifice is a standard circle, the minimum circumcircle of this contour can be directly calculated or a circle fitting can be performed to obtain its center coordinates (X_nozzle, Y_nozzle), i.e., the nozzle center coordinates.
[0036] The deviation is calculated based on the coordinates of the laser center and the nozzle center to obtain the deviation result.
[0037] In this embodiment, the two-dimensional vector (ΔX, ΔY) = (X_laser - X_nozzle, Y_laser - Y_nozzle) clearly indicates the offset amount and direction (positive and negative signs) of the laser center relative to the nozzle center in the X and Y axis directions.
[0038] This embodiment obtains image extraction identifiers and extracts a reference image from the database based on these identifiers. The reference image is preprocessed to obtain a standard reference image. An edge detection algorithm is used to calculate the laser geometric center based on the standard reference image, yielding the laser center coordinates. A template matching algorithm is used to calculate the nozzle geometric center based on the standard reference image, yielding the nozzle center coordinates. The deviation between the laser center coordinates and the nozzle center coordinates is calculated to obtain the deviation result. This effectively obtains the deviation result between the laser center and the nozzle center in the reference image, facilitating the subsequent acquisition of drive parameter values.
[0039] In another optional embodiment of this example, the deviation calculation based on the laser center coordinates and the nozzle center coordinates to obtain the deviation result includes the following steps: The deviation value is obtained by calculating the Euclidean distance based on the laser center coordinates and the nozzle center coordinates; In this embodiment, the laser center coordinates are (X_laser, Y_laser), the nozzle center coordinates are (X_nozzle, Y_nozzle), and the Euclidean distance D is calculated using the formula: D = The distance between the laser center coordinates and the nozzle center coordinates is calculated using the Euclidean distance formula: [(X_laser-X_nozzle)²+(Y_laser-Y_nozzle)²]. This distance is the deviation value.
[0040] The offset direction between the laser center coordinates and the nozzle center coordinates is calculated using vector analysis. In this embodiment, vector analysis treats the offset between two points as a vector. The direction is directly determined by the difference between the two coordinates. The offset direction is represented as a direction vector, which can be expressed as: vector (ΔX, ΔY) = (X_nozzle - X_laser, Y_nozzle - Y_laser). ΔX indicates the direction and distance the laser center needs to move along the X-axis to align with the nozzle center. If ΔX is positive, the laser needs to move in the positive X-axis direction; if negative, it moves in the opposite direction. ΔY: Similarly, it indicates the direction and distance of movement along the Y-axis.
[0041] The deviation result is generated based on the deviation value and the direction of the offset.
[0042] In this embodiment, the deviation result is structured data, including the deviation magnitude (Euclidean distance D) and the deviation direction vector (ΔX, ΔY). Integrating the deviation value and the offset direction yields the deviation result.
[0043] This embodiment calculates the deviation value by performing Euclidean distance calculation based on the laser center coordinates and the nozzle center coordinates; it then calculates the offset direction of the laser center coordinates and the nozzle center coordinates using vector analysis; finally, it generates a deviation result based on the deviation value and the offset direction. This effectively achieves the generation of a comprehensive deviation result based on the calculated deviation value and the offset direction, thereby improving the reliability of the deviation result.
[0044] In another optional embodiment of this example, obtaining the preset speed parameters and generating drive control commands based on the drive parameter values and the preset speed parameters includes the following steps: Feature extraction is performed on the driving parameter values to obtain amplitude and direction features; In this embodiment, feature extraction of the drive parameter values can be performed through data statistics to obtain amplitude and directional features. The amplitude feature represents the total amount of motion in this adjustment. For example, the motor needs to move a total of 1000 pulses. The directional feature represents the dominant direction of motion. For example, it mainly moves in the positive X-axis direction, with a slight movement in the negative Y-axis direction.
[0045] Motion trend data is obtained by predicting motion based on amplitude and direction features using a linear regression algorithm. In this embodiment, the linear regression algorithm is a statistical model used for prediction. It can be trained based on historical adjustment data, learning the relationship between amplitude and directional features and the final motion effect. Using the trained model, combined with the extracted amplitude and directional features, the potential trend of the current motion is predicted, thus obtaining motion trend data. The motion trend data is the result of the prediction and can be a curve of motion data. For example, it may not be a uniform motion, but rather an "S-shaped" acceleration / deceleration curve, including the planning of when to accelerate, when to maintain a constant speed, and when to decelerate in advance.
[0046] Drive control commands are obtained by mapping motion trend data and preset speed parameters.
[0047] In this embodiment, the preset speed parameter is a basic speed benchmark set by the user or the system. Motion trend data (such as optimized acceleration / deceleration curves) is fused with the preset speed parameter. The preset speed determines the average speed of the motion, while the motion trend data plans how to reach and smoothly maintain this speed. The final generated drive control command is a complete time-position-velocity curve. For example, the drive control command includes: at time T1, accelerating with acceleration 'a'; at time T2, reaching the preset speed 'v' and maintaining a constant speed; at time T3, smoothly decelerating with deceleration 'd' ahead of schedule; and at time T4, smoothly and without impact reaching the target position and stopping.
[0048] This embodiment extracts features from the drive parameter values to obtain amplitude and direction features; based on a linear regression algorithm, it performs motion prediction using these features to obtain motion trend data; and then maps the motion trend data to preset speed parameters to obtain drive control commands. This effectively converts drive parameter values into corresponding drive control commands, facilitating subsequent coordinate position adjustment of the optical components.
[0049] In another optional embodiment of this example, the process of obtaining drive control commands by mapping commands based on motion trend data and preset speed parameters includes the following steps: Speed control parameters are extracted from motion trend data, and the speed control parameters and preset speed parameters are proportionally calculated according to the proportional control algorithm to obtain the target speed parameters; In this embodiment, ideal speed recommendations for different stages of motion are extracted from motion trend data; these values constitute the speed control parameters. The proportional control algorithm calculates the difference (error) between the speed control parameters and the preset speed parameters in real time, and then adjusts the output according to a specific proportional coefficient (P-value). For example, if the prediction model suggests slightly reducing the speed at a certain stage to maintain stability, the proportional algorithm will fine-tune the preset speed accordingly. The final target speed parameter is the final speed value after fine-tuning.
[0050] The target velocity parameters are mapped to the coordinates of the target velocity parameters to obtain a sequence of motion commands. In this embodiment, coordinate command mapping binds a smooth motion trajectory (a series of coordinate points) to fine-tuned target velocity parameters. By assigning a specific velocity value and timing information to each minute displacement point on the trajectory, a motion command sequence is ultimately generated. For example: time t0: move to position A, velocity = V1; time t1: move to position B, velocity = V2; ...; time tn: move to position Z, velocity = 0. This motion command sequence is a basic set of commands that the drive device (such as a motor) can understand.
[0051] Timing features are extracted from the motion command sequence, and the motion command sequence is optimized based on the timing features to obtain the drive control commands.
[0052] In this embodiment, timing features are key time-point information extracted from the basic instruction sequence, such as instruction density (number of instructions per unit time), time intervals between instructions, and instruction distribution during acceleration / deceleration phases. Based on these timing features, the optimization algorithm "looks ahead" to several instructions, pre-calculating the optimal transmission timing to make the motion smoother. The final instruction stream obtained after timing optimization is the drive control instruction.
[0053] This embodiment extracts speed control parameters from motion trend data, calculates the ratio between the speed control parameters and preset speed parameters using a proportional control algorithm to obtain target speed parameters, maps the target speed parameters to execution coordinate commands using a coordinate mapping method to obtain a motion command sequence, extracts timing features from the motion command sequence, and optimizes the motion command sequence based on these features to obtain drive control commands. This effectively converts motion trend data into drive control commands for effectively controlling the drive device.
[0054] In another optional embodiment of this example, adjusting the coordinate position of the optical element according to the drive control command and acquiring the adjusted reference image after adjustment includes the following steps: Acquire target position data of optical components; In this embodiment, the optical element refers to a lens. By changing the position of the lens, the path of the laser beam is altered. The target position data can be obtained by mapping the lens's current known position (Xl, Yl) (obtained from the encoder or initial state) to the coordinates in the execution coordinate system corresponding to the reference image.
[0055] Perform coordinate mapping on the target location data to obtain a transformed coordinate set; In this embodiment, the control system converts the target position data into instructions that the specific actuator (such as a stepper motor or servo motor) can recognize. For example, the target position may be "the lens moves 5 millimeters," but the motor moves by control pulses. The mapping process converts "5 millimeters" into "5000 pulses need to be sent" based on the mechanical transmission ratio and motor parameters. The transformed coordinate set is a low-level instruction set, which can be a series of pulse commands to be sent to the motor driver or a specific position setpoint.
[0056] The coordinate positions of the transformed coordinate set are adjusted according to the drive control commands to generate a control coordinate set; In this embodiment, the system sends instructions from the "transformation coordinate set" to the motor driver. The motor begins to rotate, driving the optical element smoothly and precisely to the target position via the transmission mechanism. The system monitors and records the actual position of the optical element in real time (e.g., through feedback from the motor encoder), forming a control coordinate set. The control coordinate set reflects the actual execution of the instructions and serves as proof that the adjustment action has been completed.
[0057] After generating the control coordinate set, the reference image is re-acquired to obtain the adjusted reference image.
[0058] In this embodiment, after the control coordinate set is generated, the system generates an image acquisition event to trigger the image acquisition action, so as to reacquire the reference image and use the reacquired reference image as the adjustment reference image.
[0059] This embodiment acquires target position data of the optical element; performs coordinate mapping on the target position data to obtain a transformed coordinate set; adjusts the coordinate position of the transformed coordinate set according to drive control commands to generate a control coordinate set; after generating the control coordinate set, a reference image is re-acquired to obtain an adjustment reference image. This effectively achieves the adjustment of the coordinate position of the optical element according to drive control commands, and acquires the corresponding adjustment reference image after the adjustment is completed.
[0060] In another optional embodiment of this example, before the step of stopping the adjustment operation when the number of adjustment operations for adjusting the deviation result reaches a preset value, the following steps are further included: Obtain the initial deviation result corresponding to the initial reference image and the reference coordinates corresponding to the reference point; In this embodiment, the initial deviation result is the deviation value between the laser center and the nozzle center obtained by analyzing the first reference image after the system starts calibration. This initial deviation result is represented as a two-dimensional vector (ΔX_initial, ΔY_initial), which represents the initial misalignment degree of the system. The reference coordinates correspond to the reference point, which is the ideal target point defined by the system. This ideal target point is the origin, and the reference coordinates are (0, 0), representing the nozzle center, which serves as the reference origin for all deviation calculations.
[0061] Calculate the Euclidean distance between the initial deviation result and the reference coordinates to obtain the initial distance value; In this embodiment, the calculation formula is: initial distance value D=√[(ΔX_initial-0)²+(ΔY_initial-0)²]=√(ΔX_initial²+ΔY_initial²); this calculation formula is used to convert the two-dimensional deviation vector into a single, scalar total deviation distance.
[0062] Obtain the preset cycle correction value, calculate the expected number of cycles based on the initial distance value and the cycle correction value, and use the expected number of cycles as the preset value.
[0063] In this embodiment, the preset cycle correction amount is an empirical value obtained through system calibration, representing the average deviation that a single calibration cycle can reliably correct under normal conditions. For example, the system may be calibrated to be able to stably correct a deviation of 0.02 mm in a single cycle. In this embodiment, the preset cycle correction amount is initially set to 0.05 mm, and can be set and adjusted accordingly based on actual conditions.
[0064] The formula for calculating the number of cycles is: Expected number of cycles = Initial distance value (D) / Cycle correction amount; In actual calculation, the result will be rounded up, and even if only a deviation smaller than the cycle correction amount remains, a complete cycle is still required to correct it. The final calculated expected number of cycles is then set as the maximum allowable number of cycles (preset value) for this calibration task.
[0065] This embodiment obtains the initial deviation result corresponding to the initial reference image and the reference coordinates corresponding to the reference point; calculates the Euclidean distance between the initial deviation result and the reference coordinates to obtain the initial distance value; obtains a preset cyclic correction amount; calculates the expected number of cycles based on the initial distance value and the cyclic correction amount; and uses the expected number of cycles as the preset value. This effectively allows for flexible setting of the preset value based on the actual initial distance value, thereby improving the flexibility of the cyclic operation.
[0066] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. This computer program can be stored in a computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. The aforementioned storage medium can be a non-volatile storage medium such as a magnetic disk, optical disk, or read-only memory (ROM), or random access memory (RAM).
[0067] It should be understood that although the steps in the flowcharts of the accompanying figures are shown sequentially as indicated by the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the accompanying figures may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily completed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the sub-steps or stages of other steps.
[0068] Further reference Figure 2 As a response to the above Figure 1 To implement the method shown, this application provides an embodiment of a laser adjustment device, which is similar to... Figure 1 Corresponding to the method embodiments shown, this device can be specifically applied to various electronic devices.
[0069] like Figure 2 As shown, the laser adjustment device 800 in this embodiment includes: a deviation calculation module 801, a parameter conversion module 802, an instruction generation module 803, an image acquisition module 804, an adjustment result acquisition module 805, a first processing module 806, and a second processing module 807. Wherein: A deviation calculation module 801 is used to acquire a reference image and calculate the deviation between the laser center and the nozzle center based on the reference image. Parameter conversion module 802 is used to convert deviation results into drive parameter values corresponding to the drive device based on a preset deviation conversion formula. An instruction generation module 803 is used to obtain preset speed parameters and generate drive control instructions based on drive parameter values and preset speed parameters. Image acquisition module 804 is used to adjust the coordinate position of optical elements according to drive control commands and acquire the adjustment reference image after adjustment. Adjustment result acquisition module 805 is used to calculate the adjustment deviation between the laser center and the nozzle center based on the adjustment reference image; The first processing module 806 is used to complete the adjustment operation if the adjustment deviation result is within the preset coaxiality error range. The second processing module 807 is used to regenerate a new drive control command based on the adjustment deviation result to obtain a new adjustment reference image if the adjustment deviation result is not within the preset coaxiality error range, and to calculate a new adjustment deviation result based on the new adjustment reference image, until the new adjustment deviation result is within the preset coaxiality error range, or the number of adjustment operations for the adjustment deviation result reaches a preset value, and then stop the adjustment operation.
[0070] This embodiment, by employing the aforementioned laser adjustment device, can acquire a reference image, calculate the deviation between the laser center and the nozzle center based on the reference image, convert the deviation result into the corresponding drive parameter value of the drive device based on a preset deviation conversion formula, acquire preset speed parameters, generate drive control commands based on the drive parameter values and preset speed parameters, adjust the coordinate position of the optical element according to the drive control commands, and acquire the adjusted reference image after adjustment; calculate the adjustment deviation between the laser center and the nozzle center based on the adjustment reference image; if the adjustment deviation result is within the preset coaxiality error range, the adjustment operation is completed; if the adjustment deviation result is not within the preset coaxiality error range, a new drive control command is regenerated based on the adjustment deviation result to obtain a new adjustment reference image, and a new adjustment deviation result is calculated based on the new adjustment reference image until the new adjustment deviation result is within the preset coaxiality error range, or the number of adjustment operations for the adjustment deviation result reaches a preset value, at which point the adjustment operation stops. By visually identifying the deviation between the laser center and the nozzle center, and then adjusting the laser's output optical path through the drive device, accurate and rapid coaxial adjustment of the laser and nozzle during laser processing can be achieved, thereby improving processing quality.
[0071] In an optional embodiment of this example, the deviation calculation module includes an image extraction unit, an image preprocessing unit, a first coordinate calculation unit, a second coordinate calculation unit, and a deviation calculation unit. Wherein: An image extraction unit is used to obtain an image extraction identifier and extract a reference image from the database based on the image extraction identifier. The image preprocessing unit is used to preprocess the reference image to obtain a standard reference image; The first coordinate calculation unit is used to calculate the laser geometric center based on the standard reference image using the edge detection algorithm, and obtain the laser center coordinates. The second coordinate calculation unit is used to calculate the nozzle geometric center based on the standard reference image using the template matching algorithm, and obtain the nozzle center coordinates. The deviation calculation unit is used to calculate the deviation based on the laser center coordinates and the nozzle center coordinates to obtain the deviation result.
[0072] In another optional embodiment of this example, the deviation calculation unit includes a deviation value calculation unit, an offset direction calculation unit, and a deviation result generation unit. Wherein: The deviation calculation subunit is used to calculate the Euclidean distance based on the laser center coordinates and the nozzle center coordinates to obtain the deviation value. The offset direction calculation subunit is used to calculate the offset direction of the laser center coordinates and the nozzle center coordinates according to the vector analysis method. The deviation result generation sub-unit is used to generate deviation results based on the deviation value and offset direction.
[0073] In another optional embodiment of this example, the instruction generation module includes a feature extraction unit, a motion prediction unit, and an instruction mapping unit. Wherein: The feature extraction unit is used to extract features from the driving parameter values to obtain amplitude and direction features; The motion prediction unit is used to predict motion based on amplitude and direction features using a linear regression algorithm to obtain motion trend data. The command mapping unit is used to map commands based on motion trend data and preset speed parameters to obtain drive control commands.
[0074] In another optional embodiment of this example, the instruction mapping unit includes a parameter calculation subunit, an instruction sequence generation subunit, and an instruction optimization subunit. Wherein: The parameter calculation subunit is used to extract speed control parameters from motion trend data, and to perform proportional calculations on the speed control parameters and preset speed parameters according to the proportional control algorithm to obtain the target speed parameters. The instruction sequence generation subunit is used to perform coordinate instruction mapping on the target velocity parameters according to the coordinate mapping method to obtain the motion instruction sequence; The instruction optimization subunit is used to extract timing features from the motion instruction sequence, optimize the motion instruction sequence according to the timing features, and obtain drive control instructions.
[0075] In another optional embodiment of this example, the image acquisition module includes a data acquisition unit, a coordinate set acquisition unit, a coordinate position adjustment unit, and an image acquisition adjustment unit. Wherein: The data acquisition unit is used to acquire target position data of the optical element; The coordinate set acquisition unit is used to perform coordinate mapping on the target location data to obtain the transformed coordinate set; The coordinate position adjustment unit is used to adjust the coordinate position of the transformed coordinate set according to the drive control command, and generate the control coordinate set. The image acquisition unit is adjusted to re-acquire the reference image after the control coordinate set is generated, so as to obtain the adjusted reference image.
[0076] In another optional embodiment of this example, a data acquisition module, a distance calculation module, and a count calculation module are further included before the first processing module. Wherein: The data acquisition module is used to acquire the initial deviation results corresponding to the initial reference image and the reference coordinates corresponding to the reference points; The distance calculation module is used to calculate the Euclidean distance between the initial deviation result and the reference coordinates to obtain the initial distance value; The cycle count calculation module is used to obtain the preset cycle correction amount, calculate the expected number of cycles based on the initial distance value and the cycle correction amount, and use the expected number of cycles as the preset value.
[0077] To address the aforementioned technical problems, embodiments of this application also provide processing equipment. Please refer to [link / reference] for details. Figure 3 , Figure 3 This is a basic structural block diagram of the processing equipment in this embodiment.
[0078] It should be noted that the information interaction and execution process between the above-mentioned devices / units are based on the same concept as the method embodiments of this application. For details on their specific functions and technical effects, please refer to the method embodiments section, and they will not be repeated here.
[0079] The processing equipment 9 includes a memory 91, a processor 92, and a network interface 93 that are interconnected via a system bus. It should be noted that only processing equipment 9 with components 91-93 is shown in the figure; however, it should be understood that it is not required to implement all the shown components, and more or fewer components can be implemented alternatively. Those skilled in the art will understand that the processing equipment described here is a device capable of automatically performing numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes, but is not limited to, microprocessors, application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), digital signal processors (DSPs), embedded devices, etc.
[0080] Processing equipment can be computing devices such as desktop computers, laptops, handheld computers, and cloud servers. The processing equipment can interact with users via keyboards, mice, remote controls, touchpads, or voice-activated devices.
[0081] The memory 91 includes at least one type of readable storage medium, including flash memory, hard disk, multimedia card, card-type memory (e.g., SD or DX memory), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, the memory 91 may be an internal storage unit of the processing equipment 9, such as the hard disk or memory of the processing equipment 9. In other embodiments, the memory 91 may also be an external storage device of the processing equipment 9, such as a plug-in hard disk, smart media card (SMC), secure digital (SD) card, flash card, etc., equipped on the processing equipment 9. Of course, the memory 91 may include both internal storage units and external storage devices of the processing equipment 9. In this embodiment, the memory 91 is typically used to store the operating system and various application software installed on the processing equipment 9, such as the program code of the laser adjustment method. In addition, the memory 91 may also be used to temporarily store various types of data that have been output or will be output.
[0082] In some embodiments, processor 92 may be a central processing unit (CPU), controller, microcontroller, microprocessor, or other data processing chip. Processor 92 is typically used to control the overall operation of processing equipment 9. In this embodiment, processor 92 is used to run program code stored in memory 91 or process data, such as program code for a laser adjustment method.
[0083] The network interface 93 may include a wireless network interface or a wired network interface, which is typically used to establish a communication connection between the processing equipment 9 and other electronic devices.
[0084] This embodiment, by employing the aforementioned processing equipment, can acquire a reference image, calculate the deviation between the laser center and the nozzle center based on the reference image, convert the deviation result into the corresponding drive parameter value of the drive device based on a preset deviation conversion formula, acquire preset speed parameters, generate drive control commands based on the drive parameter values and preset speed parameters, adjust the coordinate position of the optical element according to the drive control commands, and acquire the adjusted reference image after adjustment; calculate the adjustment deviation between the laser center and the nozzle center based on the adjustment reference image; if the adjustment deviation result is within the preset coaxiality error range, the adjustment operation is completed; if the adjustment deviation result is not within the preset coaxiality error range, a new drive control command is regenerated based on the adjustment deviation result to obtain a new adjustment reference image, and a new adjustment deviation result is calculated based on the new adjustment reference image until the new adjustment deviation result is within the preset coaxiality error range, or the number of adjustment operations for the adjustment deviation result reaches a preset value, at which point the adjustment operation stops. By visually identifying the deviation between the laser center and the nozzle center, and then adjusting the laser's output optical path through the drive device, accurate and rapid coaxial adjustment of the laser and nozzle during laser processing can be achieved, thereby improving processing quality.
[0085] This application also provides another embodiment, namely, a computer-readable storage medium storing a laser adjustment program, which can be executed by at least one processor to cause the at least one processor to perform the steps of the laser adjustment method as described above.
[0086] This embodiment, by employing the aforementioned computer-readable storage medium, can acquire a reference image, calculate the deviation between the laser center and the nozzle center based on the reference image, convert the deviation result into the corresponding drive parameter value of the drive device based on a preset deviation conversion formula, acquire preset speed parameters, generate drive control commands based on the drive parameter values and preset speed parameters, adjust the coordinate position of the optical element according to the drive control commands, and acquire the adjusted reference image after adjustment; calculate the adjustment deviation between the laser center and the nozzle center based on the adjustment reference image; if the adjustment deviation result is within a preset coaxiality error range, the adjustment operation is completed; if the adjustment deviation result is not within the preset coaxiality error range, a new drive control command is regenerated based on the adjustment deviation result to obtain a new adjustment reference image, and a new adjustment deviation result is calculated based on the new adjustment reference image until the new adjustment deviation result is within the preset coaxiality error range, or the number of adjustment operations for the adjustment deviation result reaches a preset value, at which point the adjustment operation stops. By visually recognizing the deviation between the laser center and the nozzle center, and then adjusting the laser's output optical path through the drive device, accurate and rapid coaxial adjustment of the laser and nozzle during laser processing can be achieved, thereby improving processing quality.
[0087] This application also provides another embodiment, namely, a computer program product storing a laser adjustment program, which can be executed by at least one processor to cause the at least one processor to perform the steps of the laser adjustment method as described above.
[0088] This embodiment, employing the aforementioned computer program, can acquire a reference image, calculate the deviation between the laser center and the nozzle center based on the reference image, convert the deviation result into corresponding drive parameter values for the drive device based on a preset deviation conversion formula, acquire preset speed parameters, generate drive control commands based on the drive parameter values and preset speed parameters, adjust the coordinate position of the optical element according to the drive control commands, and acquire the adjusted reference image after adjustment; calculate the adjustment deviation between the laser center and the nozzle center based on the adjustment reference image; if the adjustment deviation result is within a preset coaxiality error range, the adjustment operation is completed; if the adjustment deviation result is not within the preset coaxiality error range, a new drive control command is regenerated based on the adjustment deviation result to obtain a new adjustment reference image, and a new adjustment deviation result is calculated based on the new adjustment reference image until the new adjustment deviation result is within the preset coaxiality error range, or the number of adjustment operations reaches a preset value, at which point the adjustment operation stops. By visually identifying the deviation between the laser center and the nozzle center, and then adjusting the laser's output optical path through the drive device, accurate and rapid coaxial adjustment of the laser and nozzle during laser processing is achieved, thereby improving processing quality.
[0089] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods of the various embodiments of this application.
[0090] Obviously, the embodiments described above are only some embodiments of this application, not all embodiments. The accompanying drawings show preferred embodiments of this application, but do not limit the patent scope of this application. This application can be implemented in many different forms; rather, the purpose of providing these embodiments is to provide a more thorough and comprehensive understanding of the disclosure of this application. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art can still modify the technical solutions described in the foregoing specific embodiments, or make equivalent substitutions for some of the technical features. Any equivalent structures made using the content of this application's specification and drawings, directly or indirectly applied to other related technical fields, are similarly within the scope of patent protection of this application.
Claims
1. A laser adjustment method, characterized in that, include: Acquire a reference image, and calculate the deviation between the laser center and the nozzle center based on the reference image; Based on a preset deviation conversion formula, the deviation result is converted into the corresponding drive parameter value of the drive device. Obtain preset speed parameters, and generate drive control commands based on the drive parameter values and the preset speed parameters; The optical element is adjusted in coordinate position according to the drive control command, and the adjusted reference image is acquired after adjustment. The adjustment deviation between the laser center and the nozzle center is calculated based on the aforementioned adjustment reference image; If the adjustment deviation result is within the preset coaxiality error range, the adjustment operation is completed; If the adjustment deviation result is not within the preset coaxiality error range, a new drive control command is regenerated based on the adjustment deviation result to obtain a new adjustment reference image, and a new adjustment deviation result is calculated based on the new adjustment reference image until the new adjustment deviation result is within the preset coaxiality error range, or the number of adjustment operations for the adjustment deviation result reaches a preset value, at which point the adjustment operation stops.
2. The laser adjustment method according to claim 1, characterized in that, The step of acquiring a reference image and calculating the deviation between the laser center and the nozzle center based on the reference image specifically includes: Obtain an image extraction identifier, and extract the reference image from the database based on the image extraction identifier; The reference image is preprocessed to obtain a standard reference image; The laser geometric center coordinates are obtained by calculating the laser center based on the standard reference image using an edge detection algorithm. Based on the template matching algorithm, the nozzle geometric center is calculated according to the standard reference image to obtain the nozzle center coordinates; The deviation result is obtained by calculating the deviation based on the laser center coordinates and the nozzle center coordinates.
3. The laser adjustment method according to claim 2, characterized in that, The step of calculating the deviation based on the laser center coordinates and the nozzle center coordinates to obtain the deviation result specifically includes: The deviation value is obtained by calculating the Euclidean distance based on the laser center coordinates and the nozzle center coordinates; The offset direction between the laser center coordinates and the nozzle center coordinates is calculated using vector analysis. The deviation result is generated based on the deviation value and the offset direction.
4. The laser adjustment method according to claim 1, characterized in that, The step of obtaining the preset speed parameters and generating drive control commands based on the drive parameter values and the preset speed parameters specifically includes: Feature extraction is performed on the driving parameter values to obtain amplitude features and direction features; Motion trend data is obtained by performing motion prediction based on the amplitude and direction features using a linear regression algorithm. The drive control command is obtained by mapping the motion trend data and the preset speed parameters.
5. The laser adjustment method according to claim 4, characterized in that, The step of mapping the motion trend data and the preset speed parameters to obtain the drive control command specifically includes: Speed control parameters are extracted from the motion trend data, and the speed control parameters and the preset speed parameters are proportionally calculated according to the proportional control algorithm to obtain the target speed parameters. The target velocity parameters are mapped to execution coordinate commands using a coordinate mapping method to obtain a motion command sequence. Timing features are extracted from the motion command sequence, and timing optimization is performed on the motion command sequence based on the timing features to obtain the drive control command.
6. The laser adjustment method according to claim 1, characterized in that, The step of adjusting the coordinate position of the optical element according to the drive control command and acquiring the adjusted reference image specifically includes: Acquire target position data of optical components; Perform coordinate mapping on the target location data to obtain a transformed coordinate set; The coordinate positions of the transformed coordinate set are adjusted according to the drive control command to generate a control coordinate set; After generating the control coordinate set, the reference image is re-acquired to obtain the adjusted reference image.
7. The laser adjustment method according to claim 1, characterized in that, Before the step of stopping the adjustment operation when the number of adjustment operations for the adjustment deviation result reaches a preset value, the method further includes: Obtain the initial deviation result corresponding to the initial reference image and the reference coordinates corresponding to the reference point; Calculate the Euclidean distance between the initial deviation result and the reference coordinates to obtain the initial distance value; Obtain a preset cycle correction amount, calculate the expected number of cycles based on the initial distance value and the cycle correction amount, and use the expected number of cycles as the preset value.
8. A laser adjustment device, characterized in that, include: A deviation calculation module for acquiring a reference image and calculating the deviation between the laser center and the nozzle center based on the reference image; A parameter conversion module for converting the deviation result into the corresponding drive parameter value of the drive device based on a preset deviation conversion formula. An instruction generation module for obtaining preset speed parameters and generating drive control instructions based on the drive parameter values and the preset speed parameters; An image acquisition module for adjusting the coordinate position of optical elements according to the drive control command and acquiring the adjusted reference image. Adjustment result acquisition module for calculating the adjustment deviation between the laser center and the nozzle center based on the adjustment reference image; A first processing module for completing the adjustment operation if the adjustment deviation result is within the preset coaxiality error range; A second processing module is used to regenerate a new drive control command based on the adjustment deviation result to obtain a new adjustment reference image if the adjustment deviation result is not within the preset coaxiality error range, and to calculate a new adjustment deviation result based on the new adjustment reference image, until the new adjustment deviation result is within the preset coaxiality error range, or the number of adjustment operations for the adjustment deviation result reaches a preset value, and then stop the adjustment operation.
9. A processing equipment, characterized in that, It includes a memory and a processor, wherein the memory stores computer-readable instructions, and the processor executes the computer-readable instructions to implement the steps of the laser adjustment method as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-readable instructions, which, when executed by a processor, implement the steps of the laser adjustment method as described in any one of claims 1 to 7.