A multi-bit image one-time bidirectional synchronous marking method and system

CN122816072APending Publication Date: 2026-09-25GUANGZHOU NEW CKLASER CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202610901681.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-06-22
Publication Date
2026-09-25

AI Technical Summary

Technical Problem

[0004]然而,振镜属于大惯量运动部件,且其正向与反向扫描的加速度通常并不对称,在高速往复扫描过程中,振镜运动到行程端部折返时会因惯性偏离设定轨迹;同时按图形宽度规划行程会使奇偶行的扫描时序不一致,加之激光逐像素出光本身存在微秒级触发延时,最终导致两侧端部断面参差、像素出光位置偏移、线条发虚与图案重影

Benefits of technology

1、通过获取振镜正反向加速度并取平均得到双向平均加速度,据此计算数值相等的固定加减速时间并使双向单条扫描线扫描总时间相等,将双向往复扫描的时间基准予以对齐,在不降低扫描速度的前提下减少了因振镜大惯量及正反向加速度不对称所引起的端部折返错位,改善了图案两端断面的齐整度;

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122816072A_ABST
    Figure CN122816072A_ABST
Patent Text Reader

Abstract

The application discloses a multi-bit image one-time bidirectional synchronous marking method and system, relates to the technical field of laser marking, and comprises the following steps: acquiring the acceleration of the positive and reverse scanning of a galvanometer, averaging the acceleration, combining the uniform scanning speed to determine the isochronous synchronization timing, according to the layout of multiple to-be-marked bit images in a marking plane, merging and sorting the bit image pixels into a unified scanning sequence along the scanning direction, determining the number of pixels on a single scanning line according to the sequence, calculating the spatial pre-offset according to the normalized delay of the pixels in the same scanning line, correcting the pixel coordinates of the positive and reverse scanning, and correcting the time lag caused by the light emission delay in advance; and finally driving the galvanometer to move along a bidirectional reciprocating track and emit light to ablate at the corrected coordinates. The application reduces the bidirectional scanning misregistration under the premise of not reducing the scanning speed, improves the two-end section neatness and line clarity of a pattern, decouples the compensation rule from the bit image size, and improves the position consistency when processing different sizes of bit images.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the technical field of laser marking, and more particularly to a multi-position laser marking method. Figure 1 A one-time bidirectional synchronous marking method and system. Background Technology

[0002] Laser marking uses a galvanometer to drive a laser beam to reciprocate at high speed on the surface of a workpiece along a set trajectory. The laser beam ablates the corresponding position on the fabric to form the target pattern. It is widely used for marking on the surfaces of electronic components, packaging materials, and textile fabrics, and has high requirements for both processing efficiency and pattern accuracy.

[0003] In related technologies, laser marking schemes first acquire the pixel distribution of the target pattern, determine the positions to be ablated, and then plan the displacement trajectory of the galvanometer accordingly before execution. When the pattern to be processed consists of multiple bitmaps, the scanning stroke is usually planned separately for each bitmap, making it difficult to complete the marking of all bitmaps simultaneously in a single bidirectional reciprocating scan. To balance processing efficiency, the galvanometer typically reciprocates at a high speed, and the scanning stroke of each row is planned according to the actual width of the graphic.

[0004] However, the galvanometer is a high-inertia moving component, and its acceleration in forward and reverse scanning is usually asymmetrical. During high-speed reciprocating scanning, when the galvanometer moves to the end of its stroke and turns back, it will deviate from the set trajectory due to inertia. At the same time, planning the stroke according to the width of the graphic will cause the scanning timing of odd and even rows to be inconsistent. In addition, the laser's pixel-by-pixel emission itself has a microsecond-level trigger delay, which ultimately leads to uneven cross-sections at both ends, offset of pixel emission positions, blurry lines, and pattern ghosting. Related solutions often require repeated experiments and parameter adjustments based on measured displacement differences, or reducing the scanning speed to avoid errors. The former has high debugging costs, and the latter is difficult to balance with processing efficiency. Moreover, when multiple bitmaps are planned for separate scanning strokes, the number of reciprocating strokes increases, further restricting processing efficiency. This situation needs further improvement. Summary of the Invention

[0005] This application provides a multi-bit Figure 1 A one-time bidirectional synchronous marking method and system is used to merge the pixels of multiple bitmaps along the scanning direction into a unified scanning sequence for single bidirectional reciprocating scanning without reducing the scanning speed, thereby achieving synchronous marking of multiple bitmaps. It also reduces the ablation position misalignment caused by the asymmetry of forward and reverse acceleration and the pixel-by-pixel light emission delay in bidirectional reciprocating scanning of large inertia galvanometers, and improves the alignment accuracy of the bidirectional scanning ablation position.

[0006] Firstly, this application provides a multi-bit Figure 1 A one-time bidirectional synchronous marking method, characterized in that the method includes: Obtain the acceleration during the forward and reverse scanning of the galvanometer, calculate the average acceleration, and obtain the bidirectional average acceleration. Based on the bidirectional average acceleration and the set uniform scanning speed, the fixed acceleration time and fixed deceleration time with equal values ​​are calculated, and the total scanning time of the bidirectional single scanning line of the galvanometer is made equal, thus determining the isochronous synchronization timing. Based on the layout of multiple bitmaps to be marked within the marking area, the pixels of each bitmap to be marked are merged and sorted along the scanning direction of the galvanometer to obtain a unified scanning sequence for single bidirectional reciprocating scanning, and the number of pixels on a single scanning line is determined based on the unified scanning sequence. Based on the number of pixels on a single scan line, the light emission delay of each pixel within the same scan line is normalized to obtain a uniform normalized delay for a single scan line. The spatial pre-offset is calculated based on the uniform scanning speed and the normalized delay, and the same spatial pre-offset is used to correct the coordinates of each pixel in the unified scanning sequence for both forward and reverse scanning to obtain the corrected coordinates. Based on the isochronous synchronization sequence and the corrected coordinates, the galvanometer is driven to move along a bidirectional reciprocating trajectory, and the laser emits light at the corrected coordinates to ablate, thereby obtaining marking patterns that are respectively aligned with the multiple marking bitmaps to be marked.

[0007] In the above embodiments, this application first obtains the acceleration of the forward and reverse scanning of the galvanometer and averages it to obtain the bidirectional average acceleration. Based on this, combined with the set uniform scanning speed, it calculates fixed acceleration time and fixed deceleration time with equal values, and makes the total scanning time of a single bidirectional scanning line of the galvanometer equal, thereby determining the isochronous synchronization sequence and aligning the time base of the bidirectional scanning. Then, according to the layout of multiple bitmaps to be marked in the marking area, the pixels of each bitmap are merged and sorted along the scanning direction into a unified scanning sequence for use in a single bidirectional reciprocating scan. Based on this sequence, the number of pixels on a single scanning line is determined, and the light emission delay of each pixel in the same scanning line is normalized to a unified normalized delay. Based on the uniform scanning speed and The normalized delay calculation spatial pre-offset is used to correct the coordinates of each pixel by applying the same spatial pre-offset to both forward and reverse scanning, thus converting the time lag caused by the light emission delay into an advance correction at the coordinate level. Finally, the galvanometer is driven to move along a bidirectional reciprocating trajectory according to the isochronous synchronization sequence and the corrected coordinates, and light emission and ablation are performed at the corrected coordinates. This application reduces the bidirectional scanning misalignment caused by acceleration asymmetry and pixel-by-pixel delay without reducing the scanning speed, improves the uniformity of the cross-sections at both ends of the pattern and the clarity of the lines, and decouples the compensation rules from the bitmap size. By merging multiple bitmap pixels and simultaneously marking multiple bitmaps in a single bidirectional reciprocating scan, the positional consistency of bitmaps of different sizes during processing is improved.

[0008] In some embodiments, the step of obtaining the acceleration of the galvanometer during forward scanning and the acceleration during reverse scanning specifically includes: The galvanometer is controlled to move along a bidirectional reciprocating trajectory, and the position feedback signal of the galvanometer is collected as a function of time to obtain displacement-time data of motion without light spot. Based on the displacement-time data, the acceleration of the forward scan and the acceleration of the reverse scan are calculated respectively.

[0009] In the above embodiments, this application controls the galvanometer to move along a bidirectional reciprocating trajectory, collects the galvanometer position feedback signal over time to obtain displacement-time data of spotless motion, and then calculates the acceleration of forward and reverse scanning respectively. This not only obtains acceleration data that only characterizes the mechanical motion of the galvanometer, avoiding interference from spot diffusion and light emission delay on the measurement, but also provides a data basis that is closer to the real motion characteristics for subsequent calculation of average acceleration and isochronous synchronization timing, thus improving the accuracy of the compensation benchmark.

[0010] In some embodiments, the step of making the total scanning time of a bidirectional single scan line of the galvanometer equal specifically includes: The time of the uniform speed segment is calculated based on the effective marking width and the uniform scanning speed. Add twice the fixed acceleration time to the constant speed period time to obtain the total time for a single scan line to complete a single scan. The total time is independent of the bitmap graphic width.

[0011] In the above embodiments, since traditional solutions plan the scanning stroke of each row according to the actual width of the graphic, the scanning time of the narrower the graphic is shorter, which causes the reciprocating timing of adjacent odd and even rows to be misaligned, and the end return position drifts accordingly. This application calculates the uniform speed segment time based on the effective marking area width and uniform speed scanning speed, and then adds twice the fixed acceleration time to the uniform speed segment time to obtain the total time of a single complete scan of a single scan line, so that the total time is independent of the width of the bitmap graphic. This not only keeps the total scanning time of each row consistent and reduces the end misalignment caused by the timing inconsistency of odd and even rows, but also stabilizes the row scanning cycle and improves the timing consistency of bidirectional scanning under any graphic width.

[0012] In some embodiments, the step of normalizing the light emission delay of each pixel within the same scan line specifically includes: Obtain the light emission delay of each pixel within the same scan line; The normalized delay is obtained by the ratio of the sum of the light emission delays of each pixel within the same scan line to the number of pixels on a single scan line.

[0013] In the above embodiments, since the trigger delay of laser light emission pixel by pixel usually varies among pixels within a single scan line, if compensation is made separately for each pixel's scattered delay, microsecond-level discrete correction amounts will be introduced, disrupting the established global isochronous synchronization timing. This application obtains the light emission delay of each pixel within the same scan line and uses the ratio of the sum of the light emission delays of each pixel to the number of pixels on a single scan line to obtain a unified normalized delay. By consolidating the discrete and variable pixel-by-pixel delays into a unified compensation benchmark for a single scan line, the disturbance of the overall timing to the scattered delays is avoided, and the calculation of subsequent offsets is simplified, improving the consistency of the compensation rules within a single scan line.

[0014] In some embodiments, the step of calculating the spatial pre-offset based on the uniform scanning speed and the normalized delay specifically includes: The spatial pre-offset is determined based on the product of the uniform scanning speed and the normalized delay.

[0015] In the above embodiments, this application determines the spatial pre-offset based on the product of uniform scanning speed and normalized delay, converting the light emission lag in the time plane into an offset in the spatial coordinate plane; this facilitates the cancellation of pixel offset without adjusting the light emission timing, thereby improving the accuracy of the light emission position.

[0016] In some embodiments, the step of correcting the pixel coordinates in the unified scan sequence using the same spatial pre-offset for both forward and reverse scans specifically includes: Forward and reverse scanning reuse the same normalized delay and the same spatial pre-offset to offset the coordinates of each pixel, thereby obtaining the corrected coordinates. The offset only changes the position of the pixel's light emission, while keeping the total time of a single complete scan of a single scan line unchanged.

[0017] In the above embodiments, if different delay compensations and offsets are used for forward and reverse scanning, the bidirectional dot pattern is asymmetrical, and once the compensation process changes the total scanning time, it will destroy the established isochronous synchronization sequence. This application enables forward and reverse scanning to reuse the same normalized delay and the same spatial pre-offset to offset the coordinates of each pixel, and makes the offset only change the light emission position of the pixel while keeping the total time of a single complete scan of a single scan line unchanged. This not only keeps the bidirectional compensation rules symmetrical and reduces the pattern ghosting caused by the difference between forward and reverse dot patterns, but also maintains the isochronous synchronization sequence unchanged while correcting the coordinates, avoiding mutual interference between the compensation and timing alignment mechanisms.

[0018] In some embodiments, prior to the step of merging and sorting the pixels of each bitmap to be labeled along the scanning direction of the galvanometer, the method further includes: Receive raw RGB bitmap data; The original RGB bitmap data is converted into a single-channel grayscale image using a weighted average algorithm. Adaptive contrast enhancement is applied to the single-channel grayscale image to obtain the bitmap to be labeled.

[0019] In the above embodiments, due to the redundancy of channel information in the original RGB bitmap data and the unclear grayscale levels when the image contrast is insufficient, it is not conducive to the stable determination of subsequent pixel positioning and light output parameters. This application receives the original RGB bitmap data, uses a weighted average algorithm to convert it into a single-channel grayscale image, and then applies adaptive contrast enhancement to the grayscale image to obtain the bitmap to be labeled. This reduces the impact of channel redundancy on subsequent processing, improves the clarity of grayscale levels, and provides a more stable image input for pixel positioning and light output parameter determination.

[0020] In some embodiments, the step of merging and sorting the pixels of each bitmap to be labeled along the scanning direction of the galvanometer to obtain a unified scanning sequence for use in a single bidirectional reciprocating scan specifically includes: Based on spatial continuity, the pixels of each bitmap to be labeled are merged and sorted along the scanning direction in an S-shaped scanning order; The processing trajectory is optimized by applying the shortest path algorithm to reduce non-processing movement, resulting in the unified scan sequence.

[0021] In the above embodiments, the non-processing idle movement of the galvanometer during the processing will occupy the scanning time, and the reciprocating path will be detour when the pixel points are not sorted, which will affect the overall processing efficiency. This application merges and sorts the pixels of each bitmap to be marked along the scanning direction according to the S-shaped scanning order based on spatial continuity, and applies the shortest path algorithm to optimize the processing trajectory to reduce non-processing movement, so as to obtain a unified scanning sequence for single bidirectional reciprocating scanning. This makes the pixel scanning order of multiple bitmaps conform to the bidirectional reciprocating motion characteristics, reduces non-processing idle movement, improves the effective processing ratio per unit time, and improves the overall processing efficiency.

[0022] In some embodiments, the step of causing the laser to emit light and ablate at the corrected coordinates specifically includes: Obtain the grayscale value of each pixel; Based on the grayscale value, the laser power and PWM duty cycle are determined using the grayscale-laser power mapping function. Based on the grayscale value, the light residence time is determined according to the grayscale-dwell time mapping relationship; Based on the laser power, the PWM duty cycle, and the light emission dwell time, the laser is controlled to emit light and ablate at the corrected coordinates.

[0023] In the above embodiments, since the ablation depth requirements for pixels with different gray levels are different, and different materials have different responses to laser energy, it is difficult to accurately restore the gray level of the pattern if a uniform light output parameter is used. This application obtains the gray value of each pixel, determines the laser power and PWM duty cycle based on the gray value and the gray-laser power mapping function, and determines the light output dwell time based on the gray-dwell time mapping relationship. Then, light output ablation is performed at the corrected coordinates accordingly. This not only enables the light output energy to be adaptively adjusted with the pixel gray level, improving the restoration effect of the pattern gray level, but also improves the adaptability to different fabrics by mapping the dwell time to adapt to different material characteristics.

[0024] Secondly, embodiments of this application provide a multi-bit Figure 1 A one-time bidirectional synchronous marking system includes a laser, a galvanometer, and a controller connected to the laser and the galvanometer; The controller is configured as follows: Obtain the acceleration during the forward and reverse scanning of the galvanometer, calculate the average acceleration, and obtain the bidirectional average acceleration. Based on the bidirectional average acceleration and the set uniform scanning speed, the fixed acceleration time and fixed deceleration time with equal values ​​are calculated, and the total scanning time of the bidirectional single scanning line of the galvanometer is made equal, thus determining the isochronous synchronization timing. Based on the layout of multiple bitmaps to be marked within the marking area, the pixels of each bitmap to be marked are merged and sorted along the scanning direction of the galvanometer to obtain a unified scanning sequence for single bidirectional reciprocating scanning, and the number of pixels on a single scanning line is determined based on the unified scanning sequence. Based on the number of pixels on a single scan line, the light emission delay of each pixel within the same scan line is normalized to obtain a uniform normalized delay for a single scan line. The spatial pre-offset is calculated based on the uniform scanning speed and the normalized delay, and the same spatial pre-offset is used to correct the coordinates of each pixel in the unified scanning sequence for both forward and reverse scanning to obtain the corrected coordinates. Based on the isochronous synchronization sequence and the corrected coordinates, the galvanometer is driven to move along a bidirectional reciprocating trajectory, and the laser emits light at the corrected coordinates to ablate, thereby obtaining marking patterns that are respectively aligned with the multiple marking bitmaps to be marked.

[0025] One or more technical solutions provided in the embodiments of this application have at least the following technical effects or advantages: 1. By acquiring the forward and reverse acceleration of the galvanometer and averaging them, the bidirectional average acceleration is obtained. Based on this, the fixed acceleration and deceleration times with equal values ​​are calculated and the total scanning time of a single bidirectional scanning line is made equal. The time reference of bidirectional reciprocating scanning is aligned, which reduces the end folding misalignment caused by the large inertia of the galvanometer and the asymmetry of forward and reverse acceleration without reducing the scanning speed, and improves the neatness of the cross-sections at both ends of the pattern. 2. By normalizing the light emission delay of each pixel within a single scan line into a uniform normalized delay for the entire scan line, and by calculating the spatial pre-offset based on the uniform scanning speed and this delay to correct the pixel coordinates, the time lag of laser light emission is converted into an advance correction at the coordinate level, reducing pixel shift, line blurring, and pattern ghosting caused by pixel-by-pixel light emission delay. 3. By reusing the same normalized delay and spatial pre-offset for forward and reverse scanning, and by making coordinate correction only change the pixel light emission position while keeping the total scanning time of a single scan line unchanged, the two mechanisms of position compensation and isochronous synchronization timing do not interfere with each other. While applying bidirectional symmetrical compensation, the established timing is maintained, improving the positional consistency when processing bitmaps of different sizes. Attached Figure Description

[0026] Figure 1 This is a multi-bit embodiment of the present application. Figure 1 A flowchart illustrating a one-time bidirectional synchronous marking method; Figure 2 This is a multi-bit embodiment of the present application. Figure 1 Another flowchart of the one-time bidirectional synchronous marking method; Figure 3 This is an internal structural diagram of an electronic device according to an embodiment of this application. Detailed Implementation

[0027] The terminology used in the following embodiments of this application is for the purpose of describing particular embodiments only and is not intended to be limiting of this application. As used in the specification of this application, the singular expressions “a,” “an,” “the,” “the,” and “this” are intended to include the plural expressions as well, unless the context clearly indicates otherwise. It should also be understood that the term “and / or” as used in this application refers to any or all possible combinations including one or more of the listed items.

[0028] Hereinafter, the terms "first" and "second" are used for descriptive purposes only and should not be construed as implying or suggesting relative importance or implicitly indicating the number of indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature, and in the description of the embodiments of this application, unless otherwise stated, "multiple" means two or more.

[0029] To facilitate understanding, the application scenarios of the embodiments of this application are described below.

[0030] In the field of laser marking, laser marking involves controlling a galvanometer to drive a laser beam to reciprocate at high speed on the surface of a workpiece along a set trajectory, and then emitting light at the corresponding position on the fabric to ablate and form the target pattern. This process requires high processing efficiency and pattern accuracy.

[0031] In related technologies, when the pattern to be laser printed is composed of multiple images combined into one pattern, the equipment first acquires the pattern pixels and analyzes the position to be ablated by light, and then plans the displacement trajectory of the galvanometer before outputting the execution. However, the galvanometer has inertia when it reciprocates. When the laser head moves to the end of its stroke and turns back, it will move a little further than the set trajectory, resulting in uneven pattern cross-sections at both ends. It is often necessary to continuously experiment and adjust the parameters according to the actual displacement difference, or to avoid the error by slowing down the scanning speed. The former has high debugging costs, and the latter is difficult to balance with production efficiency.

[0032] This application is mainly used in multi-bit applications. Figure 1 In scenarios involving simultaneous bidirectional marking, a single bidirectional scanning ablation is performed on a pattern composed of multiple bitmaps. In these applications, the forward and reverse accelerations of the galvanometer are often asymmetrical, and the microsecond-level trigger delay in laser beam emission pixel by pixel results in uneven cross-sections, blurred lines, and pattern ghosting. To address these technical problems, this application provides a multi-bit... Figure 1 A one-time bidirectional synchronous marking method. The following example demonstrates this method. Figure 1 For a multi-bit embodiment of this application Figure 1 The method of one-time bidirectional synchronous marking is described below: Please see Figure 1 The embodiments of this application provide multiple bits Figure 1 The one-time bidirectional synchronous marking method includes the following steps: S101. Obtain the acceleration of the forward and reverse scanning of the galvanometer, calculate the average acceleration, and obtain the bidirectional average acceleration.

[0033] Among them, the acceleration of forward scanning refers to the acceleration of mechanical motion during the movement of the galvanometer in the forward direction, and the acceleration of reverse scanning refers to the acceleration of mechanical motion during the movement of the galvanometer in the reverse direction; the bidirectional average acceleration refers to the equivalent acceleration obtained by taking the arithmetic mean of the two accelerations in the forward and reverse directions.

[0034] Specifically, the system first drives the galvanometer to reciprocate; then it collects acceleration data for both forward and reverse motions; next, it adds the forward and reverse accelerations and divides them by two to obtain the bidirectional average acceleration; finally, it uses this bidirectional average acceleration as a unified standard acceleration for subsequent unified calculations of global acceleration and deceleration times.

[0035] It should be noted that the bidirectional average acceleration is calculated using the following formula: A_avg=(A₊+A₋) / 2, where A₊ is the acceleration of the galvanometer during forward scanning (mm / s²), A₋ is the acceleration of the galvanometer during reverse scanning (mm / s²), and A_avg is the bidirectional average acceleration (mm / s²). In laser marking scenarios, the laser spot boundary is blurred and there is a trigger delay in the light output. If A₊ and A₋ are obtained directly by measuring the laser spot distance, optical interference will be mixed into the mechanical motion data. Therefore, this embodiment uses a spotless length measurement method to obtain acceleration. That is, the system controls the galvanometer to move along a bidirectional reciprocating trajectory when the laser is not emitting light, collects the position feedback signal of the galvanometer as a function of time, obtains the displacement-time data of the spotless motion, and then calculates A₊ and A₋ based on this data. The position feedback signal can be output by the position encoder built into the galvanometer. The system records the position at each moment according to a fixed sampling period, and the acceleration is obtained by subtracting the displacement from the time twice. Since no laser light is emitted throughout the entire measurement, the obtained data eliminates interference from laser switching delay and light spot diffusion. Specifically, the system divides the idle travel of a single scan line of the galvanometer into an initial acceleration segment, a middle uniform speed segment, and an end deceleration segment based on time. Only the displacement-time data of the middle uniform speed segment is extracted for acceleration calculation. Because the laser switching delay only occurs at the moment of light emission, and no light is emitted throughout this measurement, and the displacement-time data of the uniform speed segment does not contain boundary ambiguity caused by light spot diffusion, the obtained acceleration only represents the mechanical motion of the galvanometer. The system repeatedly collects data multiple times for both forward and reverse idle travel and takes the average value to further suppress random measurement errors. As a parallel implementation method, for galvanometers with factory-calibrated acceleration curves, the system can also directly retrieve calibration data to calculate A_avg without the need for on-site idle travel data collection.

[0036] S102. Based on the bidirectional average acceleration and the set uniform scanning speed, calculate the fixed acceleration time and fixed deceleration time with equal values, and make the total scanning time of the bidirectional single scanning line of the galvanometer equal, thus determining the isochronous synchronization timing.

[0037] Among them, the uniform scanning speed refers to the bitmap marking uniform scanning speed set manually according to the CO2 marking process, material, and clarity; the fixed acceleration time and fixed deceleration time refer to the fixed time occupied by the galvanometer in the acceleration segment at the beginning and the deceleration segment at the end of each line of scanning; the isochronous synchronization timing sequence refers to the time arrangement that forces the total scanning time of a single scan line in the forward and reverse directions to be equal.

[0038] Specifically, the system first divides the uniform scanning speed by the bidirectional average acceleration to obtain a fixed acceleration time, and sets the fixed deceleration time to be equal to it; then, it calculates the uniform speed segment time based on the effective marking area width and the uniform scanning speed; next, it adds twice the fixed acceleration time to the uniform speed segment time to obtain the total time for a single complete scan of a single scan line; finally, it uses this total time as a constant beat that both forward and reverse scans follow to determine the isochronous synchronization timing.

[0039] It should be noted that the fixed acceleration and deceleration times are converted according to the following formula: t_acc=t_dec=V_const / A_avg, where V_const is the set uniform scanning speed (mm / s), t_acc is the fixed acceleration time (s), and t_dec is the fixed deceleration time (s); the total time for a single scan line to complete a single scan is constrained by the following formula: T_total=2t_acc+t_uni, where t_uni is the uniform speed segment time (s), T_total is the total scan time for a single scan line (s), and T_total⁺=T_total⁻ is satisfied in both the forward and reverse directions. The key to this step is making T_total independent of the bitmap graphic width: traditional methods plan the stroke based on the actual width of the graphic, and the narrower the graphic, the shorter the scan time for each line, causing the odd and even lines to be reciprocated in different times and the end return positions to drift. This embodiment locks t_acc to a fixed time converted from A_avg, and calculates t_uni based on a fixed effective marking area width W, i.e., t_uni=W / V_const, so that the sum of the time for each line's three segments is constant. Let's illustrate with a set of example parameters: Assume V_const=2000mm / s, A_avg=20000mm / s², then t_acc=V_const / A_avg=0.1s, t_dec=0.1s; assume W=600mm, then t_uni=W / V_const=0.3s; therefore, T_total=2×0.1+0.3=0.5s. Regardless of the current row's effective graphic width, each scan line is completed at a constant 0.5s interval in both forward and reverse directions.

[0040] Furthermore, in this embodiment, the travel of a single scan line of the galvanometer is divided into an acceleration buffer zone at both ends, a deceleration buffer zone, and an effective marking area in the middle. The acceleration buffer zone and the deceleration buffer zone correspond to the fixed acceleration time t_acc and the fixed deceleration time t_dec, respectively. The effective marking area corresponds to the uniform speed period t_uni, and its width is equal to the effective marking area width W. The galvanometer only triggers light emission when running at a uniform speed within the effective marking area, while the inertial overshoot at the return end occurs within the deceleration buffer zone and the acceleration buffer zone, falling outside the effective marking area. In this way, the end inertial overshoot no longer acts on the pattern pixels, keeping the cross-sections at both ends neat and avoiding the cross-sectional unevenness caused by overshoot in related technologies.

[0041] S103. Based on the layout of multiple bitmaps to be marked within the marking area, the pixels of each bitmap to be marked are merged and sorted along the scanning direction of the galvanometer to obtain a unified scanning sequence for single bidirectional reciprocating scanning, and the number of pixels on a single scanning line is determined based on the unified scanning sequence.

[0042] Among them, the unified scanning sequence refers to the pixel sequence formed by merging the pixels of multiple bitmaps to be marked distributed within the marking area according to the scanning direction of the galvanometer, which can be used continuously in a single bidirectional reciprocating scan; the layout refers to the placement of each bitmap to be marked within the marking area.

[0043] Specifically, the system first determines the scan line where each bitmap's pixels fall under the unified coordinates of the marking area based on the layout of each bitmap within the marking area. Then, based on spatial continuity, pixels from each bitmap falling under the same scan line are merged and sorted along the scanning direction in an S-shaped scanning order. Next, the shortest path algorithm is applied to optimize the merged processing trajectory to reduce non-processing idle movement, resulting in a unified scanning sequence for single bidirectional reciprocating scanning. Finally, the number of pixels on the same scan line is counted to obtain the number of pixels on a single scan line.

[0044] It should be noted that the input for this step is multiple bitmaps to be marked and their layout, and the output is a unified scan sequence and the number of pixels on a single scan line. Since the pixels in the same row of multiple bitmaps are merged into the same scan line, multiple bitmaps can be marked synchronously in a single bidirectional reciprocating scan, without the need to plan the stroke for each bitmap separately.

[0045] S104. Based on the number of pixels on a single scan line, normalize the light emission delay of each pixel within the same scan line to obtain a uniform normalized delay for a single scan line.

[0046] Among them, light emission delay refers to the laser triggering delay of a single pixel, with a process range of 20μs to 100μs; normalized delay refers to the average compensation delay value of a single scan line after taking the unified light emission delay of each pixel in a single scan line.

[0047] Specifically, the system first determines the number of pixels on a single scan line based on the unified scan sequence obtained in S103; then it obtains the light emission delay of each pixel in a single scan line from the pixel dot delay parameters inside the marking control card; next, it sums the light emission delays of each pixel in a single scan line; finally, it divides the sum by the number of pixels in a single scan line to obtain the unified normalized delay of a single scan line.

[0048] It should be noted that the normalized delay is calculated using the following formula: Where t_pixel-i is the light emission delay of the i-th pixel (μs, process range 20μs~100μs), N is the total number of pixels scanned in a single scan line, and t_delay is the uniform normalized delay (μs) of a single scan line. The light emission delay originates from the pixel dot-mapping mechanism within the marking control card, and there are usually differences between pixels within a single scan line. If compensation is made separately for the scattered delay of each pixel, a large number of microsecond-level discrete corrections will be introduced, disrupting the established isochronous synchronization sequence. In this embodiment, the summation of each t_pixel-i within a single scan line is divided by N, and then the summation is merged into a single reference value t_delay, so that subsequent compensation adopts a uniform standard within the range of a single scan line. Where N is the number of pixels on a single scan line in the uniform scan sequence obtained in S103. This normalization is implemented by lookup table and accumulation, without the need for a complex model, with low computational load, and can be easily completed in real time on the marking control card.

[0049] S105. Calculate the spatial pre-offset based on the uniform scanning speed and normalized delay, and use the same spatial pre-offset to correct the coordinates of each pixel in the unified scanning sequence for both forward and reverse scanning to obtain the corrected coordinates.

[0050] Among them, spatial pre-offset refers to the spatial position offset corresponding to the pixel light emission delay; corrected coordinates refer to the pixel light emission coordinates after being corrected in advance by spatial pre-offset.

[0051] Specifically, the system first multiplies the uniform scanning speed by the normalized delay to obtain the spatial pre-offset; then it determines that the forward and reverse scanning share the same normalized delay and the same spatial pre-offset; next, it offsets the coordinates of each pixel along the scanning direction according to the spatial pre-offset to obtain the corrected coordinates; finally, it verifies that the offset only changes the pixel light emission position without changing the total scanning time of a single scan line.

[0052] It should be noted that the spatial pre-offset is calculated using the following formula: ΔS = V_const × t_delay, where ΔS is the spatial position offset (mm) corresponding to the pixel delay; and it satisfies the bidirectional symmetry constraints t_delay⁺ = t_delay⁻ = t_delay and ΔS⁺ = ΔS⁻ = ΔS. Laser dot lag causes the actual light emission position to lag behind the target position. Therefore, this embodiment converts the time lag t_delay into a spatial advance ΔS, and pre-shifts the pixel coordinates in the opposite direction of the scanning direction by ΔS, so that the laser light falls exactly at the target position after the delayed emission, thereby canceling out pixel offset, line blurring, and pattern ghosting. Continuing with the example in S102, let t_delay = 50μs = 0.00005s and V_const = 2000mm / s, then ΔS = V_const × t_delay = 2000 × 0.00005 = 0.1mm. The system applies the same 0.1mm offset to correct the coordinates of each pixel for both forward and reverse scanning. Since the same set of t_delay and ΔS is reused for both forward and reverse scanning, the bidirectional dot compensation rule is completely symmetrical. Furthermore, since this correction only adjusts the pixel emission coordinates and not t_acc, t_dec, or t_uni, T_total remains unchanged at 0.5s as determined in S102.

[0053] Furthermore, in some embodiments, when the pattern to be marked requires a near-full-width travel, causing the effective marking area to extend into the acceleration or deceleration section, the system employs a position-related spatial pre-offset. Specifically, the spatial pre-offset ΔS = V_const × t_delay assumes that the galvanometer operates at a constant speed. However, the instantaneous speed of the galvanometer changes with its position within the acceleration and deceleration sections. The same light-emitting delay t_delay corresponds to a larger spatial lag at high speeds and a smaller spatial lag at low speeds. If the constant ΔS of the constant speed section is still used to compensate for the pixels in the acceleration and deceleration sections, the compensation deviation will be greater closer to the end of the travel, and end-point stagger will reappear. Therefore, the system constructs the velocity-position distribution along a single scan line based on the fixed acceleration time t_acc, fixed deceleration time t_dec, and bidirectional average acceleration A_avg determined in S102. For pixels located in the uniform velocity segment, the spatial pre-offset is still determined by the product of V_const and t_delay. For pixels located in the acceleration or deceleration segment, the position-related spatial pre-offset ΔS = v × t_delay is determined by the product of the instantaneous velocity v at the pixel's position when it emits light and t_delay, so that the pre-offset of each pixel matches its instantaneous velocity when it emits light. For example, continuing the previous example, for a pixel in the acceleration segment with an instantaneous velocity of 1000 mm / s, its position-related spatial pre-offset is 1000 × 0.00005 = 0.05 mm, which is exactly half of the 0.1 mm in the uniform velocity segment. As a result, the pixels in the acceleration and deceleration phases also receive compensation that matches their actual speed, maintaining the neatness of the end section while utilizing the full-width travel. Moreover, this position-related compensation only applies to the spatial coordinates and does not change the light emission time of each pixel or the total scanning time of a single scan line.

[0054] In some possible embodiments, the system performs subpixel compensation for residuals in the spatial pre-offset that are less than one pixel pitch. Specifically, the spatial pre-offset ΔS is usually not an integer multiple of the pixel pitch. For example, when ΔS = 0.1 mm and the pixel pitch is 0.03 mm, ΔS contains three integer pixels and a subpixel residual of 0.01 mm. If only the pixel coordinates are rounded and translated, this subpixel residual cannot be eliminated, and the rounding directions of the forward and reverse rows are opposite, causing the residual to be superimposed with opposite signs in both directions, regenerating subtle ghosting. Considering that adjusting the pixel emission time can correct the residual, but alters the emission time distribution within a single scan line and disrupts isochronous synchronization, the system does not adjust the emission time. Instead, it decomposes the spatial pre-offset into integer pixel components and sub-pixel residual components: the pixel coordinates are translated according to the integer pixel components to obtain the corrected coordinates; for the sub-pixel residual components, the emission dwell time or emission power of adjacent pixels is distributed according to the residual ratio, causing the ablation energy center of the pixel to shift along the scanning direction by the distance corresponding to the sub-pixel residual. For example, for a sub-pixel residual of 0.01 mm, the system distributes the emission energy of the pixel to two adjacent pixel positions along the scanning direction at a ratio of approximately 1:2, based on its proportion of 0.03 mm of pixel pitch, thus shifting the ablation energy center forward by approximately 0.01 mm. In this way, without changing the emission time of each pixel and the total scanning time of a single scan line, the system extends the position compensation from integer pixel coordinates to the energy distribution at the sub-pixel level, suppressing the subtle ghosting caused by the superposition of rounded residuals between bidirectional scans.

[0055] S106. Based on the isochronous synchronization timing and the corrected coordinates, drive the galvanometer to move along a bidirectional reciprocating trajectory, and make the laser emit light at the corrected coordinates to ablate, thereby obtaining a marking pattern that is aligned with multiple marking maps to be marked.

[0056] Among them, the bidirectional reciprocating trajectory refers to the scanning trajectory of the galvanometer in the horizontal direction, which alternates between forward and reverse; the marking pattern refers to the target pattern formed on the surface of the workpiece after the laser ablates the fabric.

[0057] Specifically, the system first generates bidirectional reciprocating motion commands for the galvanometer according to the isochronous synchronization sequence; then it drives the galvanometer to move along the bidirectional reciprocating trajectory; next, when the galvanometer moves to each correction coordinate, it triggers laser emission to ablate the fabric; finally, it completes the scanning of all bitmap pixels in the unified scanning sequence line by line, obtaining marking patterns that are aligned with multiple bitmaps to be marked.

[0058] In some embodiments, the system monitors the deviation between the actual ablation position and the target position during the light-emitting ablation process. When the deviation exceeds a preset threshold, it determines that the bidirectional average acceleration has drifted due to the temperature rise of the galvanometer or changes in load. This triggers a re-execution of the spotless length measurement to update the bidirectional average acceleration A_avg. Based on the updated A_avg, the fixed acceleration / deceleration time, isochronous synchronization timing, and spatial pre-offset ΔS are recalculated until the deviation falls back to within the preset threshold. In this way, the system maintains consistency between the compensation reference and the actual motion characteristics of the galvanometer during long-term continuous processing, reducing the decrease in alignment accuracy caused by acceleration drift.

[0059] In the above embodiments, the system completes the time reference alignment and pixel position correction for bidirectional scanning through isochronous synchronization timing and coordinate pre-offset. However, the channel format and contrast of the input image, the scanning order of pixels, and the light emission energy of pixels with different gray levels will also affect the clarity and processing efficiency of the final marking pattern. To further improve the complete processing flow from image input to light emission ablation, this application embodiment also provides another multi-bit... Figure 1 One-time bidirectional synchronous marking method. The following section combines... Figure 2 Another multi-bit embodiment of this application Figure 1 The method of one-time bidirectional synchronous marking is described below: Please see Figure 2 : S201. Receive the original RGB bitmap data, convert it into a single-channel grayscale image using a weighted average algorithm, and apply adaptive contrast enhancement to obtain the bitmap to be labeled.

[0060] Adaptive contrast enhancement refers to the process of dynamically adjusting the contrast based on the image's own grayscale distribution.

[0061] Specifically, the system first receives the original RGB bitmap data; then it uses a weighted average algorithm to sum the red, green, and blue channel components, converting it into a single-channel grayscale image while preserving the integrity of the grayscale information; next, it statistically analyzes the grayscale distribution of the grayscale image and applies an adaptive contrast enhancement algorithm; finally, it outputs the bitmap to be labeled.

[0062] S202. Establish the transformation relationship between the world coordinate system and the image coordinate system, and determine the coordinates of each pixel on the working plane.

[0063] Among them, the world coordinate system refers to the physical coordinate system on the working plane, and the image coordinate system refers to the row and column coordinate system of the bitmap pixels.

[0064] Specifically, the system first establishes a transformation matrix between the world coordinate system and the image coordinate system; then it calculates the physical size of the pixels according to the preset calibration resolution; next, it maps each pixel to the working plane according to the transformation matrix and the physical size of the pixels; finally, it outputs the coordinates of each pixel on the working plane.

[0065] S203. Based on the layout of multiple bitmaps to be labeled within the labeling area, the pixels of each bitmap to be labeled are merged and sorted along the scanning direction according to the S-shaped scanning order based on spatial continuity, and the shortest path algorithm is applied to optimize the processing trajectory to obtain a unified scanning sequence for single bidirectional reciprocating scanning.

[0066] Among them, the S-shaped scanning sequence refers to the scanning sequence arranged alternately in the forward and reverse directions along the scanning direction, and the non-processing movement refers to the idle movement of the galvanometer without light.

[0067] Specifically, the system first determines the scan line into which each pixel falls based on the layout of the bit map; then, based on spatial continuity, it merges and sorts the pixel coordinates obtained from S202 in an S-shaped scan order; next, it applies the shortest path algorithm to optimize the processing trajectory and eliminate detours and non-processing movements; finally, it generates a unified scan sequence for use in a single bidirectional reciprocating scan.

[0068] S204. Determine the isochronous synchronization timing, normalize the light emission delay of each pixel and convert it into a spatial pre-offset, correct the coordinates of each pixel, and obtain the corrected coordinates.

[0069] Referring to steps S101 to S106, the system first acquires the forward and reverse accelerations of the galvanometer and takes the bidirectional average acceleration. Based on this, it calculates fixed acceleration and deceleration times with equal values ​​and makes the total scanning time of a single scan line in both directions equal to determine the isochronous synchronization sequence. Then, based on the unified scan sequence obtained in S203, it determines the number of pixels on a single scan line, normalizes the light emission delay of each pixel to a unified normalized delay, and determines the spatial pre-offset by multiplying the uniform scanning speed by the normalized delay. The same spatial pre-offset is used to correct the coordinates of each pixel in the unified scan sequence obtained in S203 for both forward and reverse scans to obtain the corrected coordinates. This step is the core step in this application to eliminate galvanometer inertial error, and the correction process only changes the pixel light emission position without changing the total scanning time of a single scan line.

[0070] S205. Determine the light output parameters based on the grayscale values ​​of each pixel, and perform light output ablation at the corrected coordinates according to the isochronous synchronization sequence and bidirectional reciprocating trajectory to obtain a marking pattern that is aligned with multiple marking bitmaps to be marked.

[0071] Among them, the grayscale-laser power mapping function refers to the correspondence between grayscale value and laser power and PWM duty cycle, and the grayscale-dwell time mapping relationship refers to the correspondence between grayscale value and laser emission dwell time.

[0072] After obtaining the bidirectional reciprocating trajectory, the system executes this step as the output of the entire processing flow, which is used to make the emitted light energy adaptively adjusted according to the pixel grayscale and to adapt to different material properties.

[0073] Specifically, the system first extracts the grayscale value of each pixel; then, it queries a pre-established grayscale-laser power mapping function to determine the corresponding laser power and PWM duty cycle; next, it queries a pre-established grayscale-dwell time mapping relationship to determine the corresponding light emission dwell time; finally, it drives the galvanometer to move along the bidirectional reciprocating trajectory corresponding to the unified scanning sequence obtained in S203 according to the isochronous synchronization timing determined in S204, and emits light for ablation at each corrected coordinate with the determined laser power, PWM duty cycle, and light emission dwell time, obtaining marking patterns aligned with multiple marking maps. The grayscale-laser power mapping function and the grayscale-dwell time mapping relationship can be pre-calibrated and stored as lookup tables, and read according to the grayscale value index during processing, adapting to different materials without complex online calculations.

[0074] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.

[0075] Secondly, this application provides a multi-bit Figure 1 A one-time bidirectional synchronous marking system, the following is combined with the above multiple... Figure 1 The one-time bidirectional synchronous marking method is applicable to multiple bits of this application. Figure 1 This paper describes a one-time bidirectional synchronous marking system.

[0076] A multi-position Figure 1 A one-time bidirectional synchronous marking system, including a laser, a galvanometer, and a controller connected to the laser and the galvanometer; The controller is configured as follows: Obtain the acceleration during the forward and reverse scanning of the galvanometer, calculate the average acceleration, and obtain the bidirectional average acceleration. Based on the bidirectional average acceleration and the set uniform scanning speed, the fixed acceleration time and fixed deceleration time with equal values ​​are calculated, and the total scanning time of the bidirectional single scanning line of the galvanometer is made equal, thus determining the isochronous synchronization timing. Based on the layout of multiple bitmaps to be marked within the marking area, the pixels of each bitmap to be marked are merged and sorted along the scanning direction of the galvanometer to obtain a unified scanning sequence for single bidirectional reciprocating scanning, and the number of pixels on a single scanning line is determined based on the unified scanning sequence. Based on the number of pixels on a single scan line, the light emission delay of each pixel within the same scan line is normalized to obtain a uniform normalized delay for a single scan line. The spatial pre-offset is calculated based on the uniform scanning speed and normalized delay. The same spatial pre-offset is used to correct the coordinates of each pixel in the unified scanning sequence for both forward and reverse scanning, and the corrected coordinates are obtained. Based on the isochronous synchronization sequence and the corrected coordinates, the galvanometer is driven to move along a bidirectional reciprocating trajectory, and the laser emits light at the corrected coordinates to ablate, thereby obtaining a marking pattern that is aligned with multiple marking maps to be marked.

[0077] In one embodiment, this application provides an electronic device, which may be a server, and its internal structure diagram may be as follows: Figure 3 As shown. The electronic device includes a processor, memory, and a network interface connected via a system bus. The processor provides computing and control capabilities. The memory includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The database stores data. The network interface communicates with external terminals via a network connection. When the computer program is executed by the processor, it implements a multi-bit... Figure 1 One-time bidirectional synchronous marking method.

[0078] Those skilled in the art will understand that Figure 3 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the electronic device to which the present application is applied. The specific electronic device may include more or fewer components than shown in the figure, or combine certain components, or have different component arrangements.

[0079] In one embodiment, an electronic device is also provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in the above-described method embodiments.

[0080] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments of the above methods. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, or optical storage, etc. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc.

[0081] The above are all preferred embodiments of this application, and are not intended to limit the scope of protection of this application. Therefore, all equivalent changes made in accordance with the structure, shape and principle of this application should be covered within the scope of protection of this application.

Claims

1. A method for simultaneous bidirectional marking of multiple bitmaps, characterized in that, The method includes: Obtain the acceleration during the forward and reverse scanning of the galvanometer, calculate the average acceleration, and obtain the bidirectional average acceleration. Based on the bidirectional average acceleration and the set uniform scanning speed, the fixed acceleration time and fixed deceleration time with equal values ​​are calculated, and the total scanning time of the bidirectional single scanning line of the galvanometer is made equal, thus determining the isochronous synchronization timing. Based on the layout of multiple bitmaps to be marked within the marking area, the pixels of each bitmap to be marked are merged and sorted along the scanning direction of the galvanometer to obtain a unified scanning sequence for single bidirectional reciprocating scanning, and the number of pixels on a single scanning line is determined based on the unified scanning sequence. Based on the number of pixels on a single scan line, the light emission delay of each pixel within the same scan line is normalized to obtain a uniform normalized delay for a single scan line. The spatial pre-offset is calculated based on the uniform scanning speed and the normalized delay, and the same spatial pre-offset is used to correct the coordinates of each pixel in the unified scanning sequence for both forward and reverse scanning to obtain the corrected coordinates. Based on the isochronous synchronization sequence and the corrected coordinates, the galvanometer is driven to move along a bidirectional reciprocating trajectory, and the laser emits light at the corrected coordinates to ablate, thereby obtaining marking patterns that are respectively aligned with the multiple marking bitmaps to be marked.

2. The method according to claim 1, characterized in that, The steps for obtaining the acceleration during the forward and reverse scanning of the galvanometer specifically include: The galvanometer is controlled to move along a bidirectional reciprocating trajectory, and the position feedback signal of the galvanometer is collected as a function of time to obtain displacement-time data of motion without light spot. Based on the displacement-time data, the acceleration of the forward scan and the acceleration of the reverse scan are calculated respectively.

3. The method according to claim 1, characterized in that, The step of making the total scanning time of a single scan line in both directions of the galvanometer equal specifically includes: The time of the uniform speed segment is calculated based on the effective marking width and the uniform scanning speed. Add twice the fixed acceleration time to the constant speed period time to obtain the total time for a single scan line to complete a single scan. The total time is independent of the bitmap graphic width.

4. The method according to claim 1, characterized in that, The step of normalizing the light emission delay of each pixel within the same scan line specifically includes: Obtain the light emission delay of each pixel within the same scan line; The normalized delay is obtained by the ratio of the sum of the light emission delays of each pixel within the same scan line to the number of pixels on a single scan line.

5. The method according to claim 1, characterized in that, The step of calculating the spatial pre-offset based on the uniform scanning speed and the normalized delay specifically includes: The spatial pre-offset is determined based on the product of the uniform scanning speed and the normalized delay.

6. The method according to claim 1, characterized in that, The step of correcting the coordinates of each pixel in the unified scan sequence by using the same spatial pre-offset for both forward and reverse scans specifically includes: Forward and reverse scanning reuse the same normalized delay and the same spatial pre-offset to offset the coordinates of each pixel, thereby obtaining the corrected coordinates. The offset only changes the position of the pixel's light emission, while keeping the total time of a single complete scan of a single scan line unchanged.

7. The method according to claim 1, characterized in that, Before the step of merging and sorting the pixels of each bitmap to be labeled along the scanning direction of the galvanometer, the method further includes: Receive raw RGB bitmap data; The original RGB bitmap data is converted into a single-channel grayscale image using a weighted average algorithm. Adaptive contrast enhancement is applied to the single-channel grayscale image to obtain the bitmap to be labeled.

8. The method according to claim 1, characterized in that, The step of merging and sorting the pixels of each bitmap to be labeled along the scanning direction of the galvanometer to obtain a unified scanning sequence for single bidirectional reciprocating scanning specifically includes: Based on spatial continuity, the pixels of each bitmap to be labeled are merged and sorted along the scanning direction in an S-shaped scanning order; The processing trajectory is optimized by applying the shortest path algorithm to reduce non-processing movement, resulting in the unified scan sequence.

9. The method according to claim 1, characterized in that, The step of causing the laser to emit light and ablate at the corrected coordinates specifically includes: Obtain the grayscale value of each pixel; Based on the grayscale value, the laser power and PWM duty cycle are determined using the grayscale-laser power mapping function. Based on the grayscale value, the light residence time is determined according to the grayscale-dwell time mapping relationship; Based on the laser power, the PWM duty cycle, and the light emission dwell time, the laser is controlled to emit light and ablate at the corrected coordinates.

10. A multi-bitmap simultaneous bidirectional synchronous marking system, characterized in that, Includes a laser, a galvanometer, and a controller connected to the laser and the galvanometer; The controller is configured as follows: Obtain the acceleration during the forward and reverse scanning of the galvanometer, calculate the average acceleration, and obtain the bidirectional average acceleration. Based on the bidirectional average acceleration and the set uniform scanning speed, the fixed acceleration time and fixed deceleration time with equal values ​​are calculated, and the total scanning time of the bidirectional single scanning line of the galvanometer is made equal, thus determining the isochronous synchronization timing. Based on the layout of multiple bitmaps to be marked within the marking area, the pixels of each bitmap to be marked are merged and sorted along the scanning direction of the galvanometer to obtain a unified scanning sequence for single bidirectional reciprocating scanning, and the number of pixels on a single scanning line is determined based on the unified scanning sequence. Based on the number of pixels on a single scan line, the light emission delay of each pixel within the same scan line is normalized to obtain a uniform normalized delay for a single scan line. The spatial pre-offset is calculated based on the uniform scanning speed and the normalized delay, and the same spatial pre-offset is used to correct the coordinates of each pixel in the unified scanning sequence for both forward and reverse scanning to obtain the corrected coordinates. Based on the isochronous synchronization sequence and the corrected coordinates, the galvanometer is driven to move along a bidirectional reciprocating trajectory, and the laser emits light at the corrected coordinates to ablate, thereby obtaining marking patterns that are respectively aligned with the multiple marking bitmaps to be marked.