A marking test method, apparatus and device
By generating fill line segments that fit user needs, splitting them into adaptable sub-vector graphics, and performing dynamic compensation analysis, the problems of poor parameter adaptability and poor block connection in laser marking technology are solved, achieving efficient and precise laser processing results.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Filing Date
- 2026-03-26
- Publication Date
- 2026-07-14
AI Technical Summary
Existing laser marking technology suffers from problems such as poor parameter adaptability, poor connection between segmented processing, low processing efficiency, insufficient precision, and poor consistency of finished products in diversified, high-precision, and large-format processing. It lacks a perfect parameter adaptation and dynamic compensation mechanism, making it difficult to adapt to complex processing scenarios.
By acquiring user-defined parameters, combining preset filling algorithms and scanning directions, effective filling line segments are generated. The shortest empty travel strategy and clipping algorithm are applied to split the line segments into sub-vector graphics, construct overlapping regions, and integrate pulse frequency, laser beam incident direction vector, and dynamic compensation algorithm to perform real-time scanning point analysis, generating reliable marking test results.
It improves the efficiency and precision of laser processing, ensures the uniformity and stability of processing, adapts to various complex scenarios, balances processing efficiency and finished product quality, and provides efficient and precise laser processing support.
Smart Images

Figure CN122378293A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of laser marking testing technology, and in particular to a marking testing method, apparatus and equipment. Background Technology
[0002] In the field of laser marking and engraving, as processing demands evolve towards diversification, high precision, and large format, traditional processing solutions are no longer sufficient to meet practical application requirements. Currently, laser processing commonly suffers from poor parameter adaptability and inefficient connection between different processing sections. Most solutions cannot accurately generate processing paths based on user-defined requirements, resulting in significant waste of idle travel and low processing efficiency. Furthermore, in large-format processing, obvious traces easily appear at the connection between sections, and real-time scanning and parameter compensation are not precise enough, leading to insufficient processing accuracy, poor product consistency, and a lack of robust parameter adaptation and dynamic compensation mechanisms. This makes it difficult to adapt to complex processing scenarios and fails to provide reliable support for subsequent processing stages, severely hindering the improvement of laser processing efficiency and quality. Summary of the Invention
[0003] In order to overcome the shortcomings of the prior art, the present invention aims to provide methods, apparatus, devices and storage media.
[0004] A marking test method includes: acquiring user-defined parameters and processing them according to a preset filling algorithm and a preset scanning direction to obtain multiple valid filling line segments; processing the multiple valid filling line segments based on a preset shortest empty travel strategy, a preset trimming algorithm, and a preset maximum processing range per pass to obtain multiple sub-vector graphics and multiple overlapping regions; performing marking tests on the multiple overlapping regions and multiple sub-vector graphics; acquiring real-time scanning points during the marking test; and analyzing the real-time scanning points according to a preset pulse frequency calculation formula, a preset laser beam incident direction vector, a preset dynamic compensation algorithm, and user-defined parameters to obtain marking test results.
[0005] Further, the step of analyzing the real-time scanning points according to the preset pulse frequency calculation formula, the preset laser beam incident direction vector, the preset dynamic compensation algorithm, and user-defined parameters to obtain the marking test results includes: converting the real-time scanning points according to the preset target surface linear velocity and pulse frequency calculation formula to obtain the pulse frequency; calculating the real-time scanning points based on the preset projection formula and the laser beam incident direction vector to obtain the vector angle and the spot projection area; adjusting the preset laser power and preset marking speed according to the dynamic compensation algorithm and the vector angle to obtain the optimized laser power and optimized marking speed; performing interpolation calculations on the real-time scanning points according to the user-defined parameters to obtain the geometric distortion compensation parameters; performing compensation calculations based on the geometric distortion compensation parameters and the real-time scanning points to obtain the galvanometer deflection and the focusing lens position; and generating the marking test results based on the pulse frequency, spot projection area, optimized laser power, optimized marking speed, geometric distortion compensation parameters, galvanometer deflection, and focusing lens position.
[0006] Furthermore, the step of processing user-defined parameters according to a preset filling algorithm and a preset scanning direction to obtain multiple valid filling line segments includes: obtaining line spacing parameters, angle parameters, and a closed outer border from user-defined parameters; constructing multiple parallel scan lines according to the filling algorithm, line spacing parameters, and angle parameters; performing intersection processing on the multiple parallel scan lines and the closed outer border to obtain an ordered set of intersection points; and processing the ordered set of intersection points according to a preset odd-even rule and scanning direction to obtain multiple valid filling line segments.
[0007] Furthermore, the process of processing multiple effective fill line segments based on a preset shortest empty travel strategy, a preset trimming algorithm, and a preset maximum processing range per session to obtain multiple sub-vector graphics and multiple overlapping regions includes: sorting multiple effective fill line segments according to the shortest empty travel strategy to obtain an overall vector graphics; performing size analysis on the overall vector graphics to obtain the size of the pattern to be processed; determining whether the size of the pattern to be processed is greater than the maximum processing range per session; if the size of the pattern to be processed is greater than the maximum processing range per session, then segmenting the overall vector graphics based on the trimming algorithm to obtain multiple sub-vector graphics; and setting multiple sub-vector graphics according to preset offset distances and laser power to obtain multiple overlapping regions.
[0008] Furthermore, the step of converting the real-time scanning point according to the preset target surface linear velocity and pulse frequency calculation formula to obtain the pulse frequency includes: performing polar coordinate calculation on the real-time scanning point to obtain the instantaneous radius; calculating the target surface linear velocity and instantaneous radius to obtain the instantaneous angular velocity; and converting the instantaneous angular velocity according to the pulse frequency calculation formula to obtain the pulse frequency.
[0009] Furthermore, the step of calculating the real-time scanning point based on the preset projection formula and the incident direction vector of the laser beam to obtain the vector angle and the projected area of the spot includes: extracting features from the real-time scanning point to obtain the surface normal vector; calculating the angle between the incident direction vector of the laser beam and the surface normal vector to obtain the vector angle; and calculating the vector angle according to the projection formula to obtain the projected area of the spot.
[0010] Furthermore, the step of interpolating the real-time scan points according to user-defined parameters to obtain geometric distortion compensation parameters includes: obtaining the total travel range from the user-defined parameters; selecting the total travel range according to a preset selection quantity to obtain multiple height layer values; obtaining a first correction layer value and a second correction layer value from the multiple height layer values based on the real-time scan points; and performing interpolation on the real-time scan points based on the first correction layer value and the second correction layer value to obtain geometric distortion compensation parameters.
[0011] Further, the step of performing compensation calculations based on geometric distortion compensation parameters and real-time scanning points to obtain the galvanometer deflection and focusing lens position includes: calculating the instantaneous radius based on a preset conical generatrix equation to obtain the Z-axis spatial coordinates; calculating the Z-axis spatial coordinates, the first correction layer value, and the second correction layer value to obtain the interlayer weights; calculating the geometric distortion compensation parameters and interlayer weights to obtain the first compensation amount, the second compensation amount, and the third compensation amount; performing compensation calculations on the real-time scanning points, the first compensation amount, and the second compensation amount to obtain the galvanometer deflection; performing mapping analysis on the Z-axis spatial coordinates according to a preset lookup table to obtain the E base value; and performing compensation calculations on the E base value and the third compensation amount to obtain the focusing lens position.
[0012] Furthermore, a marking test device includes: a first parameter processing module, used to acquire user-defined parameters and process the user-defined parameters according to a preset filling algorithm and a preset scanning direction to obtain multiple effective filling line segments; a second parameter processing module, used to process the multiple effective filling line segments based on a preset shortest empty travel strategy, a preset trimming algorithm, and a preset maximum processing range per pass to obtain multiple sub-vector graphics and multiple overlapping areas; a marking test module, used to perform marking tests on the multiple overlapping areas and multiple sub-vector graphics; a scanning point acquisition module, used to acquire real-time scanning points during the marking test; and a test result generation module, used to analyze the real-time scanning points according to a preset pulse frequency calculation formula, a preset laser beam incident direction vector, a preset dynamic compensation algorithm, and user-defined parameters to obtain marking test results.
[0013] Furthermore, a marking test device is provided, the marking test device comprising: a memory and at least one processor, the memory storing instructions; at least one processor invokes the instructions in the memory to cause the computer device to execute the various steps of the marking test method described above.
[0014] In the technical solution of this invention, user-defined parameters, preset filling algorithms, and scanning directions are combined to generate effective filling line segments that meet requirements and optimize the path, reducing invalid travel and improving processing efficiency and accuracy. Then, through the shortest empty travel strategy, trimming algorithm, and single-processing range limitation, the effective filling line segments are divided into suitable sub-vector graphics, and reasonable overlapping areas are constructed to solve the problem of block connection in large-format processing and avoid splicing marks. Finally, core elements such as pulse frequency, laser beam incident direction, and dynamic compensation algorithm are integrated to comprehensively analyze real-time scanning points, generating reliable marking test results to ensure processing accuracy, uniformity, and stability. This adapts to various complex processing scenarios, balancing processing efficiency and finished product quality, and provides strong support for efficient and precise laser processing. Attached Figure Description
[0015] The above and / or additional aspects and advantages of the present invention will become apparent and readily understood from the description of the embodiments taken in conjunction with the following drawings, in which: Figure 1 This is a first flowchart of a marking test method provided in an embodiment of the present invention; Figure 2 This is a second flowchart of a marking test method provided in an embodiment of the present invention; Figure 3 This is a third flowchart of a marking test method provided in an embodiment of the present invention; Figure 4 This is a fourth flowchart of a marking test method provided in an embodiment of the present invention; Figure 5 A fifth flowchart of a marking test method provided in an embodiment of the present invention; Figure 6 The sixth flowchart of a marking test method provided in an embodiment of the present invention; Figure 7 The seventh flowchart of a marking test method provided in an embodiment of the present invention; Figure 8 The sixth flowchart of a marking test method provided in an embodiment of the present invention; Figure 9 This is a schematic diagram of the structure of a marking test device provided in an embodiment of the present invention; Figure 10 This is a schematic diagram of a marking test device provided in an embodiment of the present invention. Detailed Implementation
[0016] The terms "first," "second," "third," "fourth," etc. (if present) in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" or "having" and any variations thereof are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0017] For ease of understanding, the specific process of the embodiments of the present invention is described below. Please refer to [link / reference]. Figure 1 One embodiment of a marking test method according to the present invention includes: 101. Obtain user-defined parameters and process them according to the preset filling algorithm and preset scanning direction to obtain multiple valid filling line segments; In this embodiment, by acquiring user-defined parameters and combining them with a preset filling algorithm and scanning direction, the parameters are precisely processed to generate multiple effective filling line segments. This method ensures that the filling line segments meet user needs, optimizes the processing path, reduces invalid travel, and improves processing efficiency. At the same time, it ensures the rationality and continuity of the filling line segments, avoids connection breaks, effectively improves processing accuracy and efficiency, reduces errors, lays a solid foundation for subsequent processing steps, and ensures stable processing quality. 102. Based on the preset shortest empty travel strategy, preset clipping algorithm and preset maximum processing range per session, multiple valid fill line segments are processed to obtain multiple sub-vector graphics and multiple overlapping areas; In this embodiment, multiple effective filling line segments are processed by using a preset shortest empty travel strategy, a clipping algorithm, and a single maximum processing range. Adaptable sub-vector graphics are extracted, and reasonable overlapping areas are constructed. This effectively solves the problem of block connection in large-format processing, reduces empty travel waste, and improves processing efficiency. The clipping algorithm optimizes graphic splitting, ensuring that the sub-vector graphics fit the single processing range. The overlapping area setting effectively avoids splicing marks, ensuring processing integrity. Overall, the processing flow is standardized and precise, controlling processing costs while improving processing quality and consistency. This lays a solid foundation for subsequent efficient and high-quality processing, adapting to various complex processing scenarios. 103. Perform marking tests on multiple overlapping regions and multiple sub-vector graphics; 104. During the marking test, acquire real-time scan points; 105. Analyze the real-time scanning points according to the preset pulse frequency calculation formula, preset laser beam incident direction vector, preset dynamic compensation algorithm and user-defined parameters to obtain the marking test results; In this embodiment, by integrating the preset pulse frequency calculation formula, the laser beam incident direction vector, the dynamic compensation algorithm, and user-defined parameters, a comprehensive and accurate analysis of the real-time scanning points is performed, ultimately generating reliable marking test results. This method can achieve dynamic adaptation of pulse frequency, laser power, and marking speed, accurately capture the spot projection state, effectively correct geometric distortion, and ensure accurate galvanometer deflection and focusing. This approach improves marking accuracy, uniformity, and stability, reduces processing errors, adapts to different processing scenarios, and provides strong support for efficient and high-quality laser processing, balancing processing efficiency and finished product quality. In this embodiment, by combining user-defined parameters, preset filling algorithms, and scanning directions, effective filling line segments that meet requirements and have optimized paths are generated, reducing invalid travel and improving processing efficiency and accuracy. Then, through the shortest empty travel strategy, trimming algorithm, and single-processing range limitation, the effective filling line segments are divided into suitable sub-vector graphics, and reasonable overlapping areas are constructed to solve the problem of block connection in large-format processing and avoid splicing marks. Finally, by integrating core elements such as pulse frequency, laser beam incident direction, and dynamic compensation algorithm, a comprehensive analysis of real-time scanning points is performed to generate reliable marking test results, ensuring processing accuracy, uniformity, and stability. This adapts to various complex processing scenarios, balancing processing efficiency and finished product quality, and provides strong support for efficient and precise laser processing.
[0018] Please see Figure 2 In a second embodiment of a marking test method according to the present invention, step 105 specifically includes: 201. The real-time scanning points are converted according to the preset target surface linear velocity and pulse frequency calculation formula to obtain the pulse frequency; In this embodiment, the real-time scanning points are precisely converted using a preset formula for calculating the target surface linear velocity and pulse frequency to obtain a suitable pulse frequency. This method ensures that the pulse frequency is precisely matched with the scanning speed and surface linear velocity during laser marking, avoiding problems such as blurry markings and broken marks, and improving marking clarity and uniformity. At the same time, precise pulse frequency control can reduce energy waste, improve processing efficiency, ensure stable marking quality, adapt to different processing scenarios, provide support for subsequent precise control and error reduction, and help achieve efficient and high-quality laser processing results. 202. Calculate the real-time scanning point based on the preset projection formula and the incident direction vector of the laser beam to obtain the vector angle and the projected area of the spot; In this embodiment, the real-time scanning point is precisely calculated using a preset projection formula and the incident direction vector of the laser beam to obtain the vector angle and the projected area of the spot. This method can accurately capture the spatial positional relationship between the laser beam and the workpiece surface, ensuring that the size and angle of the projected spot are highly consistent with theoretical requirements, effectively avoiding problems such as spot offset and deformation. At the same time, the accurate calculation of the vector angle and the projected area of the spot provides reliable data support for the energy control and path planning of subsequent laser processing, improving the processing positioning accuracy and the accuracy of spot control, ensuring uniform processing results, and helping to achieve high-precision and high-stability laser processing. 203. Adjust the preset laser power and preset marking speed according to the dynamic compensation algorithm and vector angle to obtain optimized laser power and optimized marking speed; In this embodiment, the system automatically adjusts the laser power P and the marking speed V through a dynamic compensation algorithm, which includes a laser power optimization formula and a marking speed optimization formula. The laser power optimization formula is as follows: The formula for optimizing marking speed is as follows: In the formula, The preset laser power, To optimize laser power, The preset marking speed, To optimize marking speed, As the vector angle, the above algorithm can ensure that the etching depth of the curved surface edge and center position is uniform. The power and speed adjustment strategy is adaptively selected according to the processing technology type and laser power saturation: for surface marking, texture and color-changing processes, the laser power P is adjusted first to keep the galvanometer movement stable. When the compensation power exceeds the maximum output limit of the laser, or when performing deep carving, cutting and other processes that require high energy injection, the marking speed V is adjusted to increase the energy injection per unit area by reducing the speed, thereby ensuring stable and reliable processing quality. 204. Perform interpolation calculations on real-time scan points based on user-defined parameters to obtain geometric distortion compensation parameters; In this embodiment, by combining user-defined parameters, interpolation calculations are performed on real-time scanning points to accurately obtain geometric distortion compensation parameters, effectively correcting geometric distortion problems, improving processing positioning accuracy and stability, adapting to distortion compensation requirements in different scenarios, ensuring the accuracy of subsequent processing and control processes, reducing errors, ensuring uniform and stable processing quality, providing reliable parameter support for the overall processing flow, and improving processing efficiency and finished product quality. 205. Compensation calculations are performed based on geometric distortion compensation parameters and real-time scanning points to obtain the galvanometer deflection and focusing lens position; In this embodiment, by combining geometric distortion compensation parameters with real-time scanning point coordinates for precise calculation, the galvanometer deflection and focusing lens position are obtained, effectively correcting geometric distortion and ensuring accurate galvanometer deflection and stable focusing. This method can improve processing positioning accuracy, reduce position errors, avoid splicing marks, ensure accurate laser marking position and stable focusing, improve processing consistency and finished product quality, and adapt to complex curved surface processing needs. 206. Generate marking test results based on pulse frequency, spot projection area, optimized laser power, optimized marking speed, geometric distortion compensation parameters, galvanometer deflection, and focusing lens position; In this embodiment, by integrating core parameters such as pulse frequency and spot projection area, combined with optimized adjustment of laser power and marking speed, and with geometric distortion compensation, precise control of galvanometer and focusing position calibration, the marking process can be precisely controlled, effectively improving marking accuracy and efficiency, reducing errors, ensuring accurate marking position and stable focusing, improving processing uniformity and consistency, optimizing marking quality, adapting to complex processing needs, and balancing efficiency and quality. In this embodiment, high precision, high stability, and uniformity of laser processing are achieved through precise control and parameter optimization across multiple stages. By combining preset formulas and precise calculations, compensation amounts and control parameters for each stage are accurately obtained through pulse frequency conversion, spot projection analysis, and interlayer interpolation. Simultaneously, technologies such as the conical generatrix equation and OCCT kernel construction are integrated to ensure accurate parameter calculation and control. Through parameter weighting, linear interpolation, and energy adjustment, compensation jumps and positional deviations are effectively avoided, achieving a smooth and continuous processing flow, improving processing positioning accuracy and focusing stability, and ensuring processing consistency at different heights and positions. Ultimately, efficient, precise, and stable laser processing is achieved, ensuring uniform and reliable processing quality.
[0019] Please see Figure 3 In a third embodiment of the marking test method of the present invention, step 101 specifically includes: 301. Obtain the line spacing parameters, angle parameters, and closed outer border from the user-defined parameters; In this embodiment, the outline refers to the closed outer border of the graphic to be processed imported by the user (i.e., the boundary curve of the pattern to be processed). The line spacing, angle parameters and the closed outer border of the graphic to be processed are directly obtained from the user-defined parameters. The boundary curve of the pattern imported by the user is used as the basis for the processing outline, which fits the actual processing requirements, simplifies the parameter input and outline extraction process, ensures the accuracy of the parameters and the matching degree of the outline in the subsequent filling path construction, and improves the ease of operation. 302. Multiple parallel scan lines are constructed based on the fill algorithm, line spacing parameters, and angle parameters; In this embodiment, the parallel scan lines are generated by the Hatch filling algorithm: with the user-defined filling angle α (angle parameter) as the extension direction, they are evenly arranged within the bounding box of the graphic according to the line spacing s (line spacing parameter). Each scan line is parallel to the other and the spacing is strictly equal to s. Based on the filling algorithm, combined with the user-defined line spacing parameter and angle parameter, parallel scan lines are constructed so that the scan lines are evenly arranged in the graphic bounding box along the specified direction and the spacing is accurate and consistent. This ensures the regularity and uniformity of the filling path, lays a standardized path foundation for subsequent laser marking filling processing, and improves the overall consistency of the filling process. 303. Perform intersection processing on multiple parallel scan lines and the closed outer border to obtain an ordered set of intersection points; In this embodiment, the intersection of each parallel scan line with each edge of the graphic contour to be processed is calculated one by one. The coordinates of all intersection points are extracted and recorded, and the coordinates of the intersection points are ordered according to the scanning direction to form an ordered set of intersection points corresponding to each scan line. The intersection calculation is completed using the parametric equation method. The parallel scan line is set as an infinitely long straight line and its parametric equation is constructed. At the same time, each edge of the graphic contour to be processed is set as a finite line segment and its corresponding parametric equation is constructed. By solving the parameter values by solving the two sets of equations simultaneously, it is determined whether the parameters are within the effective value range of the finite line segments, thereby determining whether there is a valid intersection point. If there is a valid intersection point, the coordinates of the intersection point are calculated and extracted. By using the parametric equation method to calculate the intersection of each parallel scan line with the graphic contour edge one by one, the valid intersection points are accurately determined and the coordinates are calculated. Then, the coordinates are sorted according to the scanning direction to form an ordered set of intersection points. This ensures the accuracy of the intersection point extraction and the regularity of the sorting, laying a precise data foundation for the subsequent selection of effective filling line segments and improving the underlying calculation accuracy of the laser marking filling path. 304. Process the ordered set of intersection points according to the preset odd-even rules and scanning direction to obtain multiple valid filling line segments; In this embodiment, the Even-Odd Rule is used: the number of intersections along the scan line extension direction is accumulated. When the number of intersections is odd, it is determined that the line segment has entered the interior of the graphic and is retained. When the number of intersections is even, it is determined that the line segment has left the interior and is discarded. By alternating the retention of line segments inside the graphic, an effective filling area is formed. The ordered set of intersection points is processed according to the Even-Odd Rule and the scan direction. The inner and outer regions of the graphic are determined by accumulating the number of intersections along the contour boundary. The effective line segments inside are accurately retained and the invalid line segments outside are discarded. This can quickly filter out multiple effective filling line segments, ensuring that the filling area is highly consistent with the contour of the graphic to be processed, and improving the accuracy and rationality of the laser marking filling path. In this embodiment, the line spacing, angle parameters, and the closed outer border of the graphic to be processed are accurately extracted from user-defined parameters. The boundary curve imported by the user is used as the processing contour, which simplifies the operation process while meeting actual processing needs and ensuring the matching degree between the parameters and the contour of the subsequent path construction. Parallel scan lines are generated based on the filling algorithm and the above parameters, so that the scan lines are evenly distributed along the specified direction within the graphic bounding box and the spacing is accurate and consistent, laying a standardized path foundation for filling processing. The precise intersection of the scan lines and the contour edge is achieved through the parametric equation method, effectively determining and extracting the intersection point coordinates. The intersection points are sorted by the scanning direction to form an ordered set, ensuring the accuracy of the underlying calculation. Then, the intersection point set is processed according to the odd and even rules and the scanning direction. The number of intersections is used to accurately determine the inner and outer regions of the graphic, and the effective filling line segments are selected to ensure that the filling area is highly consistent with the graphic contour, thus comprehensively improving the accuracy, rationality, and overall processing consistency of the laser marking filling path.
[0020] Please see Figure 4 In the fourth embodiment of the marking test method of the present invention, step 102 specifically includes: 401. Sort multiple valid filled line segments according to the shortest empty travel strategy to obtain the overall vector graphics; In this embodiment, the shortest idle travel strategy is as follows: In the idle travel state when the laser is off, starting from the end point of the current marking line segment, the greedy nearest neighbor algorithm is used to sequentially select the starting point of the next nearest filling line segment as the jump target, thereby minimizing the total idle travel distance of the galvanometer and improving the overall processing efficiency of laser marking; Since the internal effective filling line segments generated after the filling operation are discrete and have no fixed arrangement order, this strategy sorts the starting and ending points of all effective filling line segments by spatial proximity, which can connect the discrete line segments into a continuous laser marking scanning path (i.e., the overall vector graphic). 402. Perform dimensional analysis on the overall vector graphics to obtain the dimensions of the pattern to be processed; 403. Determine whether the size of the pattern to be processed is greater than the maximum processing range in a single operation; 404. If the size of the pattern to be processed is larger than the maximum processing range in a single operation, the entire vector graphic is divided based on the clipping algorithm to obtain multiple sub-vector graphics. In this embodiment, if the size of the pattern to be processed exceeds the maximum processing range of the galvanometer in a single operation, a mechanical moving mechanism (such as a long guide rail, XY module, or conveyor belt) is used in conjunction with a block marking method to divide the overall graphic into multiple sub-regions. Large-scale processing is achieved by segmenting the worktable. To this end, the overall vector graphic is divided into blocks based on a clipping algorithm to obtain multiple sub-vector graphics that fit the single processing range. The clipping algorithm used is the Boolean operation method of OCCT or a 2D clipping algorithm. Pseudo-random wavy lines or sawtooth lines are generated as the dividing boundaries (wavy lines are generated by superimposing sine waves, and sawtooth lines are generated by dithering broken lines), so that the dividing boundaries of adjacent sub-vector graphics are interlocked in a jagged manner, effectively hiding the splicing traces from a visual perspective. 405. Set multiple sub-vector graphics according to the preset offset distance and laser power to obtain multiple overlapping areas; In this embodiment, based on a preset offset distance, a fixed-width overlapping area (e.g., 0.5mm) is set at the splicing position of two adjacent sub-vector graphics. Within the overlapping area, the laser power is adaptively adjusted according to a linear gradient attenuation function. , In the formula, d is the offset distance of the current processing point relative to the starting edge of the overlapping area, and W is the total width of the overlapping area. The preset laser power, With the adjusted laser frequency, the laser energy gradient complementarity and smooth superposition of adjacent block markings in the overlapping area are achieved, which effectively eliminates the splicing marks such as "black lines", "white lines" and light and dark boundaries that are easy to appear at the block splicing points from an optical visual perspective, and improves the overall integrity, visual uniformity and forming quality of large-format laser processing. In this embodiment, a shortest idle travel strategy is employed, using a greedy nearest neighbor algorithm to sort discrete effective filling line segments and connect them into a coherent overall vector graphic, minimizing the total idle jump distance of the galvanometer and improving the efficiency of laser marking. For patterns exceeding the maximum processing range of the galvanometer in a single pass, OCCT Boolean operations or 2D clipping algorithms are used to segment them into suitable sub-vector graphics, which are then combined with a mechanical moving mechanism to achieve large-scale block processing. The pseudo-random wavy lines and sawtooth lines interlock the segmentation boundaries, effectively hiding splicing traces. At the same time, overlapping areas are set at the splicing points of adjacent sub-graphics, and the laser power is dynamically adjusted through a linear gradient attenuation function to achieve complementary energy superposition, eliminating defects such as "black lines" and "white lines" at the splicing points. The overall solution balances processing efficiency and forming quality, solving the problem of large-format processing while ensuring processing accuracy, visual uniformity, and overall integrity, thus improving the stability of the laser marking process.
[0021] Please see Figure 5 In the fifth embodiment of a marking test method of the present invention, step 201 specifically includes: 501. Perform polar coordinate calculations on the real-time scan points to obtain the instantaneous radius; In this embodiment, the system analyzes the instantaneous radius of the scan point (x,y) in real time. ; 502. Calculate the linear velocity and instantaneous radius of the target surface to obtain the instantaneous angular velocity; In this embodiment, the target surface linear velocity is preset. (Process parameters) and instantaneous radius to calculate instantaneous angular velocity By calculating the instantaneous radius from the polar coordinates of the real-time scanning point and combining it with the preset target surface linear velocity to calculate the instantaneous angular velocity, the motion parameters of the rotating shaft are accurately derived in real time. This provides accurate data support for the pulse frequency conversion of the subsequent stepping control, ensures that the rotational speed of the rotating shaft dynamically adapts to the processing point, ensures that the linear velocity of the laser marking surface is constant, and improves the uniformity of marking energy and processing accuracy of the variable diameter rotating body. 503. Calculate the instantaneous angular velocity using the pulse frequency calculation formula to obtain the pulse frequency; In this embodiment, if the stepper motor adopts a stepper control method, the instantaneous angular velocity is converted to pulse frequency according to the pulse frequency calculation formula, and the pulse frequency is output synchronously with the galvanometer interpolation time base to ensure that the motion of each axis and the laser marking action are accurately matched in the time dimension during the processing, so as to achieve the same processing point at the same time; the expression of the pulse frequency calculation formula is as follows: f(t)=ω(t)·N / (2π), where f(t) is the pulse frequency and N is the number of pulses required for the stepper motor to rotate once. This is related to the microstepping of the driver. Common settings are 3200 or 6400. N is used here to convert the angular velocity into the pulse frequency, accurately control the R-axis rotation, and ensure the real-time performance and accuracy of the rotation axis speed adjustment. In this embodiment, by performing polar coordinate calculations on the real-time scanning points of the laser marking, the instantaneous radius of the real-time scanning points is accurately determined. Combined with the preset target surface linear velocity as a process parameter, the instantaneous angular velocity of the rotating shaft is calculated in real time. This achieves dynamic and accurate derivation of the core motion parameters of the rotating shaft, providing accurate and reliable data support for the pulse frequency conversion of subsequent stepper control. It ensures that the rotational speed of the rotating shaft dynamically adapts to the processing point, fundamentally ensuring a constant target surface linear velocity during laser marking. This effectively improves the uniformity of energy density marking on the surface of the variable-diameter rotating body and avoids... Issues such as uneven marking color depth and etching depth arose. Simultaneously, the solution converts the instantaneous angular velocity into a pulse frequency compatible with stepper control using a proprietary formula. This pulse frequency is then synchronized with the galvanometer interpolation time base, ensuring precise time-series matching between the motion of each axis and the laser marking action. This achieves real-time correspondence between the processing point and the control signal, precisely controlling the R-axis rotation, guaranteeing the real-time performance and accuracy of the rotary axis speed adjustment, improving the control precision of multi-axis linkage, and ensuring that the same processing point corresponds to the same point at the same time during the marking process. This further enhances the overall processing precision and consistency of laser marking on variable-diameter rotating bodies.
[0022] Please see Figure 6 In the sixth embodiment of a marking test method of the present invention, step 202 specifically includes: 601. Extract features from real-time scanning points to obtain surface normal vectors; In this embodiment, by sampling the neighborhood point cloud of the local area of the surface where the real-time scanning point is located, the tangent plane at the scanning point is obtained by fitting. Then, based on the normal direction of the tangent plane, the surface normal vector corresponding to the scanning point is calculated and extracted, which lays a precise geometric data foundation for subsequent laser incident angle calculation, energy distribution control, etc., and effectively improves the accuracy and reliability of attitude perception and motion control in surface processing. 602. Calculate the angle between the incident direction vector of the laser beam and the normal vector of the surface to obtain the vector angle; In this embodiment, the incident direction vector of the laser beam is fixed as follows: ; Calculate the surface normal vector using vector dot product and the incident direction vector of the laser beam The included angle between them is calculated using the following formula: In the formula, The angle between the incident laser vector and the surface normal vector (unit: radians or angles, i.e., vector angle). The dot product of two vectors reflects the projection relationship of directions; For the surface normal vector The modulus length; Let be the incident direction vector of the laser beam. The magnitude (i.e., vector length); The inverse cosine function is used to convert the ratio after the dot product is normalized into an angle value. By combining the vector dot product with the inverse cosine function, the angle between the fixed laser incident direction and the surface normal vector is accurately calculated, realizing the quantitative extraction of geometric angles. This provides a reliable angle basis for subsequent laser energy control and processing path optimization, effectively improving the accuracy and stability of energy distribution and attitude control in surface processing. 603. Calculate the angle between the vectors according to the projection formula to obtain the projected area of the light spot; In this embodiment, the projection formula is expressed as follows: As θ increases, the projected area of the light spot increases. Increase It is the theoretical minimum spot area when the laser is incident perpendicularly (θ=0), that is, the area of the circular spot after the laser beam is focused when it is directly facing the surface of the workpiece. It is a preset value. Based on the projection formula and the vector angle, the spot projection area is accurately calculated. The actual spot size acting on the curved surface can be obtained in real time according to the incident angle. This realizes the dynamic quantification of the spot area, provides an accurate basis for laser processing energy density compensation, ensures uniform processing effect in all parts of the curved surface, and improves the accuracy and quality stability of laser processing of complex curved surfaces. In this embodiment, by sampling and fitting the tangent plane through neighborhood point cloud, the surface normal vector of the real-time scanning point is accurately extracted, laying a reliable geometric data foundation for subsequent angle calculation and energy control. Based on the vector dot product and the inverse cosine function, the angle between the fixed laser incident direction vector and the surface normal vector is accurately calculated, realizing the quantitative extraction of geometric angles and providing accurate angle basis for laser energy control and processing path optimization. Combining the vector angle and the projection formula, the spot projection area under different incident angles is dynamically calculated, and the actual spot size of the surface is obtained in real time, providing accurate data support for laser energy density compensation. The entire process realizes the calculation from surface geometric feature extraction to spot area quantification, effectively ensuring uniform energy distribution throughout the processing of complex surfaces and improving processing accuracy, consistency, and quality stability.
[0023] Please see Figure 7 In the seventh embodiment of a marking test method of the present invention, step 204 specifically includes: 701. Obtain the total travel range from user-defined parameters; 702. Select the total travel range according to the preset selection quantity to obtain multiple height layer values; In this embodiment, sampling is performed within the total Z-axis travel range according to a preset selection quantity to obtain multiple height layer values. The Z-axis corresponds to the available dynamic focusing range, and its total travel is determined by the physical maximum travel of the E-axis dynamic focusing component, the available focal depth, and the required Z-axis range (Zmin~Zmax). In engineering, the intersection of the three is taken with a safety margin reserved. The physical maximum travel of the E-axis is an inherent hardware parameter, referring to the actual movable range of the driver from the minimum focal length to the maximum focal length, which is independent of the workpiece. Within this total travel range, the system selects 3 to 7 equally spaced and representative height layers, which must include three key sections: 0, top, and bottom. The more layers, the higher the accuracy of nonlinear distortion fitting in the Z-axis direction. 703. Obtain the first correction layer value and the second correction layer value from multiple height layer values based on the real-time scan points; In this embodiment, For the first correction layer value and This is the value of the second correction layer. and These are the height values of two adjacent correction layers that are manually selected and fixed during the calibration phase, for example... , , representing two adjacent measurement reference planes; 704. Perform interpolation calculations on the real-time scan points based on the first correction layer value and the second correction layer value to obtain the geometric distortion compensation parameters; In this embodiment, based on the first correction layer value (layer i) and the second correction layer value (layer i+1), a two-layer interpolation operation is performed on the real-time scan point (x, y) to finally obtain the geometric distortion compensation parameters corresponding to the real-time scan point. The interpolation operation consists of two core steps: Single-layer LUT mesh bilinear interpolation: In the correction planes of the i-th and i+1-th layers respectively, the real-time scan point (x,y) is substituted into the correction table (LUT mesh) of the corresponding layer to perform bilinear interpolation calculation, and the compensation amount of each layer is obtained: Compensation amount for layer i: (Geometric distortion compensation amount in the X-axis direction) (Geometric distortion compensation amount in the Y-axis direction) (The dynamic focusing lens (E-axis) position correction compensation amount, i.e., the E-axis deviation correction value obtained based on the coordinate interpolation of the i-th calibration plane). Compensation amount for layer i+1: (Geometric distortion compensation amount in the X-axis direction of the (i+1)th layer) (Geometric distortion compensation amount in the Y-axis direction of the (i+1)th layer) (E-axis position correction compensation amount for the (i+1)th layer). Interlayer weighted interpolation: Calculate the weight coefficient λ (value range 0~1, representing the height position of the real-time scanning point between the i-th layer and the (i+1-th layer, λ approaches 0 when closer to the i-th layer, and approaches 1 when closer to the (i+1-th layer), and weight and fuse the compensation amounts of the two layers according to λ to obtain the final geometric distortion compensation parameters for the smooth transition of the real-time scanning point at the actual height, ensuring that there are no abrupt changes in the compensation amount between different height layers and that the transition is continuous; In this embodiment, the total Z-axis travel range is determined by acquiring user-defined parameters. The effective height range is then determined by combining the E-axis physical travel, available focal depth, and working interval. Three to seven equally spaced height layers containing key cross-sections are selected, which improves the accuracy of Z-axis nonlinear distortion fitting while ensuring computational efficiency. Adjacent first and second correction layer values are automatically matched based on the real-time scanning point height. Geometric distortion compensation parameters are then obtained through dual-layer interpolation: first, LUT mesh bilinear interpolation is performed within each correction layer to obtain X-axis distortion compensation, Y-axis distortion compensation, and E-axis focus correction. Then, inter-layer weighted fusion is performed based on the height weight coefficient λ, ensuring smooth and continuous compensation results across different heights. This scheme achieves precise compensation for geometric distortion and dynamic focus errors across the entire travel and height range, effectively improving the positioning accuracy, optical path stability, and processing consistency of curved surface laser processing. It ensures stable, uniform, and high-precision processing results for complex curved surface workpieces at different heights.
[0024] Please see Figure 8 In the eighth embodiment of a marking test method of the present invention, step 205 specifically includes: 801. Calculate the instantaneous radius based on the preset equation of the conical generatrix to obtain the Z-axis spatial coordinates; In this embodiment, the standard conical generatrix equation is accurately constructed and fitted by the OCCT geometric kernel: In the formula, b is the intercept parameter, k is the slope parameter, and Z is the Z-axis spatial coordinate. By substituting the instantaneous radius r obtained from real-time calculation into the above equation of the conical generatrix, the theoretical Z-axis spatial coordinate of the corresponding position can be obtained, providing accurate reference height data for subsequent dynamic focusing, height compensation and three-dimensional surface machining. 802. Calculate the Z-axis spatial coordinates, the first correction layer value, and the second correction layer value to obtain the interlayer weights; In this embodiment, the formula for calculating inter-layer weights is as follows: Linear interpolation is used for interlayer interpolation, and an interlayer weight lambda is introduced. lambda represents the relative position of the height Z of the real-time scanning point between two adjacent correction layers. The interlayer weight is obtained by calculating the Z-axis spatial coordinate and the values of the two adjacent correction layers, so as to realize the linear interpolation transition between adjacent correction planes. This method can accurately reflect the height ratio of the real-time scanning point between two layers, making geometric distortion and focus compensation smooth and continuous, avoiding compensation jumps in the height direction, effectively improving the stability and accuracy of compensation throughout the entire stroke range, and ensuring uniform surface processing quality. 803. Calculate the geometric distortion compensation parameters and interlayer weights to obtain the first compensation amount, the second compensation amount, and the third compensation amount; In this embodiment, each compensation amount in the geometric distortion compensation parameters is calculated linearly according to this interlayer weight lambda, and the results are superimposed and output: , , In the formula, ΔX is the first compensation amount, ΔY is the second compensation amount, and ΔE is the third compensation amount. The X-axis compensation amount, Y-axis compensation amount, and E-axis compensation amount are obtained by linear weighting calculation of geometric distortion compensation parameters and interlayer weight λ. The compensation output can achieve a smooth transition between layers of different heights. This method effectively improves the distortion compensation accuracy across the entire height range, ensures continuous and stable galvanometer deflection and dynamic focusing control, and significantly improves the position accuracy and focusing consistency of curved surface laser processing. 804. Perform compensation calculations on the real-time scanning points, the first compensation amount, and the second compensation amount to obtain the galvanometer deflection amount; In this embodiment, the calculation of the galvanometer deflection is based on the original coordinates of the real-time scanning point, and the corresponding geometric distortion compensation is superimposed. The specific calculation formula is as follows: X′=X+ΔX Y′=Y+ΔY In the formula, X′ is the corrected X-axis deflection of the galvanometer, and Y′ is the corrected Y-axis deflection of the galvanometer, which are directly used as the control command for the galvanometer drive to ensure that the actual marking position of the scanning point is accurately matched with the theoretical position. 805. Perform mapping analysis on the Z-axis spatial coordinates according to the preset lookup table to obtain the basic value of E; In this embodiment, based on a preset height-focal length lookup table, the calculated Z-axis spatial coordinates are mapped and numerically analyzed to obtain the basic E-axis output value at the corresponding height. Using the Z-axis spatial coordinates as the input index, a one-dimensional mapping calculation is performed through the preset lookup table to obtain the basic E-axis value. In the formula, For the pre-calibrated height-focal length mapping function, This provides the basic driving value for the dynamic focusing lens at this height, as well as a reference value for the final E-axis compensation output. It also provides a stable reference for dynamic focusing. This method has high table lookup efficiency and fast response, and can accurately match the reference focal length at different heights. It provides a reliable basis for subsequent E-axis compensation, effectively improves the response speed and positioning accuracy of dynamic focusing, and ensures the stability of the focus in curved surface processing. 806. Perform compensation calculations on the base value of E and the third compensation amount to obtain the position of the focusing lens; In this embodiment, the formula for calculating the position of the focusing lens is: In the formula, The position of the focusing lens is calculated precisely. Based on the real-time Z-axis coordinate, the reference output for dynamic focusing and distortion compensation can be combined to effectively ensure that the laser focus always falls stably on the workpiece surface at different heights. This significantly improves the focusing accuracy and processing consistency of curved surface processing, and ensures uniform and reliable etching quality. In this embodiment, a conical generatrix equation is constructed based on the OCCT geometric kernel, and the Z-axis spatial coordinates are accurately solved from the instantaneous radius, providing a precise height reference for 3D machining. Layer weights are calculated using the Z-axis coordinates and adjacent correction layer values to achieve a smooth linear transition of geometric distortion compensation in the height direction, avoiding compensation jumps and improving the stability and accuracy of compensation throughout the entire stroke. The compensation amounts of each correction layer are weighted and fused using the layer weights to obtain the X-axis, Y-axis, and E-axis compensation amounts, achieving precise correction of distortion and focusing errors across the entire height range. The real-time scanning point coordinates are superimposed with the compensation amounts to obtain a high-precision galvanometer deflection, ensuring that the marking position matches the theoretical coordinate height. Simultaneously, the basic E-axis value is quickly mapped using a height-focal length lookup table, and the final focusing lens position is output in conjunction with the third compensation amount, ensuring that the laser focus is stably focused on the workpiece surface at different heights. The entire solution, from 3D coordinate calculation, distortion compensation, galvanometer control to dynamic focusing formation, improves the positioning accuracy, focusing stability, and processing uniformity of laser machining on complex curved surfaces, ensuring consistent and reliable etching depth and forming quality at all positions on the curved surface.
[0025] The marking test method of the present invention has been described above. The marking test apparatus of the present invention is described below. Please refer to [link / reference]. Figure 9 One embodiment of the marking test device of the present invention includes: The first parameter processing module 1 is used to obtain user-defined parameters and process them according to a preset filling algorithm and a preset scanning direction to obtain multiple valid filling line segments. The second parameter processing module 2 is used to process multiple effective filling line segments based on the preset shortest empty travel strategy, the preset trimming algorithm and the preset maximum processing range per time, so as to obtain multiple sub-vector graphics and multiple overlapping areas. Marking test module 3 is used to perform marking tests on multiple overlapping areas and multiple sub-vector graphics; Scan point acquisition module 4 is used to acquire real-time scan points during the marking test; Test result generation module 5 is used to analyze the real-time scanning points according to the preset pulse frequency calculation formula, the preset laser beam incident direction vector, the preset dynamic compensation algorithm and user-defined parameters to obtain the marking test results. In this embodiment, by combining user-defined parameters, preset filling algorithms, and scanning directions, effective filling line segments that meet requirements and have optimized paths are generated, reducing invalid travel and improving processing efficiency and accuracy. Then, through the shortest empty travel strategy, trimming algorithm, and single-processing range limitation, the effective filling line segments are divided into suitable sub-vector graphics, and reasonable overlapping areas are constructed to solve the problem of block connection in large-format processing and avoid splicing marks. Finally, by integrating core elements such as pulse frequency, laser beam incident direction, and dynamic compensation algorithm, a comprehensive analysis of real-time scanning points is performed to generate reliable marking test results, ensuring processing accuracy, uniformity, and stability. This adapts to various complex processing scenarios, balancing processing efficiency and finished product quality, and provides strong support for efficient and precise laser processing.
[0026] Figure 10 This is a schematic diagram of a marking test device 900 provided in an embodiment of the present invention. The marking test device 900 can vary significantly due to different configurations or performance. It may include one or more central processing units (CPUs) 910 (e.g., one or more processors) and a memory 920, and one or more storage media 930 (e.g., one or more mass storage devices) storing application programs 933 or data 932. The memory 920 and storage media 930 can be temporary or persistent storage. The program stored in the storage media 930 may include one or more modules (not shown in the diagram), each module including a series of instruction operations on the marking test device 900. Furthermore, the processor 910 may be configured to communicate with the storage media 930 and execute a series of instruction operations in the storage media 930 on the marking test device 900 to implement the steps of the marking test method provided in the above-described method embodiments.
[0027] A marking test device 900 may further include one or more power supplies 940, one or more wired or wireless network interfaces 950, one or more input / output interfaces 960, and / or one or more operating systems 931, such as Windows Server, MacOSX, Unix, Linux, FreeBSD, etc. Those skilled in the art will understand that... Figure 10 The illustrated structure of a marking test device does not constitute a limitation on a marking test device. It may include more or fewer components than illustrated, or combine certain components, or have different component arrangements.
[0028] The present invention also provides a computer-readable storage medium, which can be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium, wherein the computer-readable storage medium stores instructions that, when executed on a computer, cause the computer to perform the steps of a marking test method.
[0029] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the system, device, or unit described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0030] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0031] Finally, it should be noted that the above descriptions are merely preferred embodiments of the present invention and are not intended to limit the present invention. Although the present invention 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 embodiments or make equivalent substitutions for some of the technical features. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.
Claims
1. A marking test method, characterized in that, include: The system obtains user-defined parameters and processes them according to a preset filling algorithm and a preset scanning direction to obtain multiple valid filling line segments. Multiple valid fill line segments are processed based on a preset shortest empty travel strategy, a preset clipping algorithm, and a preset maximum processing range per single operation to obtain multiple sub-vector graphics and multiple overlapping areas. Marking tests were performed on multiple overlapping regions and multiple sub-vector graphics; During the marking test, real-time scan points are acquired; The real-time scanning points are analyzed based on the preset pulse frequency calculation formula, the preset laser beam incident direction vector, the preset dynamic compensation algorithm, and user-defined parameters to obtain the marking test results.
2. The marking test method as described in claim 1, characterized in that, The process of analyzing real-time scanning points based on a preset pulse frequency calculation formula, a preset laser beam incident direction vector, a preset dynamic compensation algorithm, and user-defined parameters to obtain marking test results includes: The pulse frequency is obtained by converting the real-time scanning points according to the preset target surface linear velocity and pulse frequency calculation formula. The real-time scanning points are calculated based on the preset projection formula and the incident direction vector of the laser beam to obtain the vector angle and the projected area of the spot. The preset laser power and preset marking speed are adjusted based on the dynamic compensation algorithm and the vector angle to obtain optimized laser power and optimized marking speed. Interpolation calculations are performed on real-time scan points based on user-defined parameters to obtain geometric distortion compensation parameters; Compensation calculations are performed based on geometric distortion compensation parameters and real-time scanning points to obtain the galvanometer deflection and focusing lens position; Marking test results are generated based on pulse frequency, spot projection area, optimized laser power, optimized marking speed, geometric distortion compensation parameters, galvanometer deflection, and focusing lens position.
3. The marking test method as described in claim 1, characterized in that, The process of processing user-defined parameters according to a preset filling algorithm and a preset scanning direction to obtain multiple valid fill line segments includes: The line spacing parameters, angle parameters, and closed outer border are obtained from the user-defined parameters; Multiple parallel scan lines are constructed based on the filling algorithm, line spacing parameters, and angle parameters; The intersection of multiple parallel scan lines and the closed outer border is performed to obtain an ordered set of intersection points; The ordered set of intersection points is processed according to the preset odd-even rules and scanning direction to obtain multiple valid filling line segments.
4. The marking test method as described in claim 2, characterized in that, The process, based on a preset shortest empty travel strategy, a preset trimming algorithm, and a preset maximum processing range per cycle, processes multiple valid fill line segments to obtain multiple sub-vector graphics and multiple overlapping regions, including: The multiple valid filled line segments are sorted according to the shortest empty travel strategy to obtain the overall vector graphics; Perform dimensional analysis on the overall vector graphics to obtain the dimensions of the pattern to be processed; Determine whether the size of the pattern to be processed is greater than the maximum processing range in a single operation; If the size of the pattern to be processed is larger than the maximum processing range in a single operation, the overall vector graphic is divided based on the clipping algorithm to obtain multiple sub-vector graphics; Multiple sub-vector graphics are set according to preset offset distance and laser power to obtain multiple overlapping areas.
5. The marking test method as described in claim 2, characterized in that, The step of converting the real-time scanning points according to the preset target surface linear velocity and pulse frequency calculation formula to obtain the pulse frequency includes: Perform polar coordinate calculations on the real-time scan points to obtain the instantaneous radius; The linear velocity and instantaneous radius of the target surface are calculated to obtain the instantaneous angular velocity; The instantaneous angular velocity is converted according to the pulse frequency calculation formula to obtain the pulse frequency.
6. The marking test method as described in claim 2, characterized in that, The calculation of the real-time scanning point based on the preset projection formula and the incident direction vector of the laser beam to obtain the vector angle and the projected area of the light spot includes: Feature extraction is performed on real-time scan points to obtain surface normal vectors; The angle between the incident direction vector of the laser beam and the normal vector of the surface is calculated to obtain the vector angle; The angle between the vectors is calculated using the projection formula to obtain the projected area of the light spot.
7. The marking test method as described in claim 5, characterized in that, The step of interpolating real-time scan points based on user-defined parameters to obtain geometric distortion compensation parameters includes: The total travel range is obtained from user-defined parameters; The total travel range is selected based on the preset selection quantity to obtain multiple height layer values; The first and second correction layer values are obtained from multiple height layer values based on real-time scan points; Interpolation calculations are performed on the real-time scan points based on the first and second correction layer values to obtain the geometric distortion compensation parameters.
8. The marking test method as described in claim 7, characterized in that, The compensation calculation based on geometric distortion compensation parameters and real-time scanning points to obtain the galvanometer deflection and focusing lens position includes: The instantaneous radius is calculated based on the preset equation of the conical generatrix to obtain the Z-axis spatial coordinates; The Z-axis spatial coordinates, the first correction layer value, and the second correction layer value are calculated to obtain the interlayer weights; The geometric distortion compensation parameters and interlayer weights are calculated to obtain the first compensation amount, the second compensation amount, and the third compensation amount; The real-time scanning point, the first compensation amount, and the second compensation amount are calculated to obtain the galvanometer deflection amount; The Z-axis spatial coordinates are mapped and analyzed according to a preset lookup table to obtain the basic value of E; The position of the focusing lens is obtained by calculating the compensation between the base value of E and the third compensation amount.
9. A marking test device, characterized in that, include: The first parameter processing module is used to obtain user-defined parameters and process them according to the preset filling algorithm and preset scanning direction to obtain multiple valid filling line segments. The second parameter processing module is used to process multiple valid fill line segments based on the preset shortest empty travel strategy, the preset trimming algorithm and the preset maximum processing range per time, so as to obtain multiple sub-vector graphics and multiple overlapping areas. The marking test module is used to perform marking tests on multiple overlapping areas and multiple sub-vector graphics; The scan point acquisition module is used to acquire real-time scan points during the marking test. The test result generation module is used to analyze the real-time scanning points based on the preset pulse frequency calculation formula, the preset laser beam incident direction vector, the preset dynamic compensation algorithm, and user-defined parameters to obtain the marking test results.
10. A marking and testing device, characterized in that, The marking test device includes: a memory and at least one processor, wherein the memory stores instructions; At least one of the processors invokes the instructions in the memory to cause the marking test device to perform the steps of the marking test method as described in any one of claims 1-8.