Grayscale image laser printing method, device, electronic device and storage medium

The method of line-by-line printing and synchronous information reading solves the problem of low efficiency caused by pixel-by-pixel writing in the prior art, and realizes efficient printing of grayscale images.

CN119077139BActive Publication Date: 2025-09-12HUAZHONG UNIV OF SCI & TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411100930.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-12
Publication Date
2025-09-12
Estimated Expiration
2044-08-12

AI Technical Summary

Technical Problem

The existing laser direct writing grayscale printing method has the problem of low efficiency due to the sequential writing of each pixel.

Method used

Using the line-by-line printing method, the laser direct writing device keeps the parameters unchanged and continues to write when printing consecutive pixels with the same grayscale value in the same row. Combined with the synchronization of information reading and printing actions, it can achieve one-time writing of multiple strings of pixels.

Benefits of technology

It significantly improves printing efficiency, avoids repeated operations pixel by pixel, and increases printing speed.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119077139B_ABST
    Figure CN119077139B_ABST
Patent Text Reader

Abstract

The present application belongs to the field of grayscale image laser printing, and specifically discloses a grayscale image laser printing method, device, electronic device and storage medium. The method includes: obtaining the grayscale value of each pixel of the target grayscale image; based on the grayscale value of each pixel, driving the laser direct writing device to print the target grayscale image, wherein the printing process is to print line by line starting from the first row of pixels until the last row of pixels is printed. When the laser direct writing device prints consecutive pixels with the same grayscale value in the same row, the parameters remain unchanged and the writing is continued. This method can significantly improve printing efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of grayscale image laser printing, and more specifically, to a grayscale image laser printing method, device, electronic device, and storage medium. Background Art

[0002] The existing laser direct writing grayscale printing technology is generally completed by writing one pixel at a time. That is, the writing process is as follows: the translation stage steps the actual distance corresponding to one pixel, usually the diameter of a single writing mark, reads the grayscale value of the pixel at that position, configures the laser direct writing parameters based on this grayscale value, turns on the laser for writing, turns off the laser, and the translation stage steps again to write the next pixel. This method means that a grayscale image with millions of pixels requires the translation stage to step millions of times and the laser to be turned on and off millions of times, which makes the writing efficiency very low. Summary of the Invention

[0003] In response to the defects of the prior art, the purpose of this application is to provide a grayscale image laser printing method, device, electronic device and storage medium, aiming to solve the problem of low efficiency caused by the laser direct writing grayscale printing method in the prior art due to the sequential writing of each pixel.

[0004] To achieve the above objectives, in a first aspect, the present application provides a grayscale image laser printing method, comprising:

[0005] Get the grayscale value of each pixel of the target grayscale image;

[0006] Based on the grayscale value of each pixel, the laser direct writing device is driven to print the target grayscale image, wherein the printing process is to print line by line starting from the first row of pixels until the last row of pixels is printed. When the laser direct writing device prints consecutive pixels with the same grayscale value in the same row, the parameters remain unchanged and the writing continues.

[0007] This application can significantly improve printing efficiency by scanning and printing a string of pixels with the same grayscale value at one time, without the need to print pixel by pixel.

[0008] According to the grayscale image laser printing method provided by the present invention, the method further includes:

[0009] When the laser direct writing device is driven to write continuous pixels with the same grayscale value in the same row, the grayscale value and pixel length of the next section of continuous pixels with the same grayscale value are read.

[0010] The printing algorithm of the present application supports simultaneous reading of grayscale image information and printing actions, which can improve printing efficiency.

[0011] According to the grayscale image laser printing method provided by the present invention, the method further includes:

[0012] Based on the grayscale value of the pixel, the laser direct writing parameters of the laser direct writing device when writing the pixel are determined.

[0013] According to the grayscale image laser printing method provided by the present invention, after driving the laser direct writing device to write continuous pixels with the same grayscale value in the same row, the method further includes:

[0014] The laser direct writing device is turned off, and the laser direct writing parameters of the laser direct writing device are adjusted based on the grayscale values ​​of the next segment of continuous pixels with the same grayscale value.

[0015] According to the grayscale image laser printing method provided by the present invention, the printing is performed line by line starting from the first row of pixels until the last row of pixels is printed, comprising:

[0016] Printing starts from the first row of pixels line by line. After each row is printed, the laser direct writing device is turned off, the focus of the laser direct writing device is controlled to move a step distance in the direction of the next row, and then the laser direct writing device is turned on to continue printing until the last row of pixels is printed.

[0017] According to the grayscale image laser printing method provided by the present invention, the writing length of the laser direct writing device when printing continuous pixels with the same grayscale value in the same row is the number of the continuous pixels multiplied by the step distance.

[0018] The length of a single horizontal engraving line segment in this application is the number of pixels in the string multiplied by the step distance, which can ensure engraving in proportion to the image size.

[0019] In a second aspect, the present application provides a grayscale image laser printing device, comprising:

[0020] An acquisition module is used to obtain the grayscale value of each pixel of the target grayscale image;

[0021] A printing module is used to drive a laser direct writing device to print the target grayscale image based on the grayscale value of each pixel, wherein the printing process is to print line by line starting from the first row of pixels until the last row of pixels is printed. When the laser direct writing device prints consecutive pixels with the same grayscale value in the same row, the parameters remain unchanged and the writing is continued.

[0022] In a third aspect, the present application provides an electronic device comprising: at least one memory for storing programs; and at least one processor for executing the programs stored in the memory. When the programs stored in the memory are executed, the processor is used to execute the grayscale image laser printing method described in the first aspect or any possible implementation of the first aspect.

[0023] In a fourth aspect, the present application provides a computer-readable storage medium storing a computer program. When the computer program runs on a processor, the processor executes the grayscale image laser printing method described in the first aspect or any possible implementation of the first aspect.

[0024] In a fifth aspect, the present application provides a computer program product, which, when executed on a processor, enables the processor to execute the grayscale image laser printing method described in the first aspect or any possible implementation of the first aspect.

[0025] It can be understood that the beneficial effects of the second to fifth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here.

[0026] In general, the above technical solutions conceived by this application have the following beneficial effects compared with the existing technologies:

[0027] (1) By scanning and printing a series of pixels with the same grayscale value at one time, there is no need to print pixel by pixel, which can significantly improve printing efficiency.

[0028] (2) The printing algorithm supports the simultaneous reading of grayscale image information and printing, which can improve printing efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] In order to more clearly illustrate the technical solutions in the present invention or the prior art, a brief introduction is given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0030] Figure 1 1 is a flow chart of a grayscale image laser printing method provided in an embodiment of the present application;

[0031] Figure 2 This is a schematic diagram of the printing process provided by the embodiment of the present application;

[0032] Figure 3 1 is a flow chart of a grayscale image printing algorithm provided in an embodiment of the present application;

[0033] Figure 4 Schematic diagram of the structure of the grayscale image laser printing device provided in an embodiment of the present application;

[0034] Figure 5 It is a structural diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0035] In order to make the purpose, technical solutions and advantages of this application more clear, the following further describes this application in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain this application and are not intended to limit this application.

[0036] The term "and / or" as used herein describes an association between related objects, indicating that three possible relationships exist. For example, "A and / or B" can represent: A exists alone, A and B exist simultaneously, or B exists alone. The symbol " / " as used herein indicates that the related objects are in an "or" relationship, for example, A / B means either A or B.

[0037] In the embodiments of this application, words such as "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of this application should not be interpreted as being preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "for example" is intended to present the relevant concepts in a concrete manner.

[0038] In the description of the embodiments of the present application, unless otherwise specified, "multiple" means two or more, for example, multiple processing units means two or more processing units, etc.; multiple elements means two or more elements, etc.

[0039] First, let’s introduce the following contents:

[0040] Laser direct writing: Laser direct writing uses a laser beam with variable intensity to perform variable dose exposure on the resist material on the substrate surface. After development, the required relief profile is formed on the surface of the resist layer. The computer controls the laser exposure and the movement of the translation stage to engrave the designed pattern on the sample with sub-micron accuracy.

[0041] Some existing laser direct-write lithography technologies can rapidly print lithography in the form of small-area array exposures. Within each small area, spatial light modulation is used to form a corresponding exposure image on the layout, resulting in a corresponding inscribed shape in the corresponding area of ​​the sample. The translation stage then steps to continue printing the next area. This type of laser direct writing uses modulated laser light to form images over a larger area, resulting in relatively dispersed energy. It is generally used for the exposure and development of photoresists with sensitive photosensitive reactions, but is difficult to apply to materials such as thermoplastic materials that require higher energy. Other technologies use subtle deflections of a two-axis galvanometer in the front-end optical path to flexibly change the movement of the laser focus spot within a small area to complete exposure. This technology also requires the use of a translation stage to sequentially expose multiple small-area arrays to create a larger area for laser direct writing. With these technologies, in a single writing task, the writing area generally has only two states: exposed or unexposed. This makes it difficult to simultaneously achieve multiple levels of direct-write lithography, and can only be completed sequentially by exposing multiple layers of the layout. This is not only inefficient, but multiple exposures of the same area inevitably lead to crosstalk.

[0042] For direct-write lithography that requires fine-tuning of laser parameters, spatial light modulation is generally not added. The laser beam is directly focused through the objective lens to form a point light spot, which is moved by the translation stage and the laser parameters, including power, pulse width, frequency, exposure time, etc., are adjusted to form different writing morphologies at different points. Based on this principle, if the writing sample has corresponding different morphologies or color responses to multiple different laser parameters, multi-level grayscale writing can be achieved. Furthermore, the grayscale image can be engraved on the sample to form a grayscale image or even a color image, realizing high dynamic range image printing.

[0043] Based on the direct writing mechanism of multi-level grayscale, traditional grayscale image printing generally uses a displacement stage to match the position of the light spot with the pixel position of a given grayscale image, and uses the correspondence between the preset laser parameters and pixel information to determine the writing parameters at that position. The writing process is then as follows: the displacement stage steps the actual distance corresponding to one pixel, usually the diameter of a single writing mark, reads the grayscale value of the pixel corresponding to the position, configures the laser direct writing parameters based on this grayscale value, turns on the laser for writing, turns off the laser, and the displacement stage steps again to write the next pixel point. This method means that a grayscale image with millions of pixels requires the displacement stage to step millions of times and the laser to be switched on and off millions of times, so the writing efficiency is very low.

[0044] In response to the defects of the prior art, the purpose of this application is to provide a grayscale image laser printing method, device, electronic device and storage medium, aiming to solve the problem of low efficiency caused by the laser direct writing grayscale printing method in the prior art due to the sequential writing of each pixel.

[0045] Next, combine Figure 1-Figure 3 The grayscale image laser printing method provided in the embodiments of the present application is introduced.

[0046] Figure 1 FIG. 1 is a flow chart of a grayscale image laser printing method provided in an embodiment of the present application. Figure 1 As shown, the method includes the following steps:

[0047] Step 100, obtaining the grayscale value of each pixel of the target grayscale image;

[0048] Step 110, based on the grayscale value of each pixel, drive the laser direct writing device to print the target grayscale image, wherein the printing process is to print line by line starting from the first row of pixels until the last row of pixels is printed. When the laser direct writing device prints consecutive pixels with the same grayscale value in the same row, the parameters remain unchanged and the writing continues.

[0049] The core idea of ​​the grayscale image laser printing method provided in this application is based on the effective coordination of grayscale image information reading and the hardware printing operation of the displacement stage laser, including the one-time writing of multiple strings of pixels and synchronous information reading during the writing process.

[0050] Optionally, the laser direct writing device is driven by a computer and includes an adjustable pulse laser and an electrically controlled three-axis translation stage. The adjustable pulse laser is focused on the sample surface through an objective lens, and the electrically controlled three-axis translation stage controls the focus and movement of the sample.

[0051] Since a grayscale image is essentially a digital representation of an analog image, adjacent or nearby pixels often have a certain degree of similarity and correlation, that is, a grayscale image often contains patches of pixels with the same value. Therefore, in the process of scanning and printing a single row or column, the present application keeps the laser parameters unchanged while multiple consecutive pixel values ​​remain unchanged, and the laser is continuously turned on, allowing the translation stage to directly move the distance corresponding to this string of pixels to complete the engraving, which can overcome the low efficiency problem caused by the prior art of engraving one pixel at a time.

[0052] Figure 2 This is a schematic diagram of the printing process provided by the embodiment of the present application, such as Figure 2 As shown, the dotted line is the movement path of the laser spot on the sample surface, in which it moves back and forth in the X-axis direction and steps forward in the Y-axis direction. The solid line in the first row of the figure is an illustration of the printing effect of the row. Different grayscales represent the effects of different laser direct writing parameters on the line. The numbers below are the grayscale values ​​corresponding to each pixel on the row of the printed grayscale image. When the same grayscale value appears continuously, the laser direct writing parameters will remain unchanged and continue to write a line segment until the next segment of pixels with different grayscale values ​​appears.

[0053] Optionally, since scanning and printing only reads local information of the image each time, this application has a high tolerance for image size, actual printing size, etc.

[0054] The grayscale image laser printing method provided by the present invention can significantly improve printing efficiency by scanning and printing based on a string of pixels with the same grayscale value at one time, without the need for pixel-by-pixel printing.

[0055] In some embodiments, the method further comprises:

[0056] Step 120 , when driving the laser direct writing device to write continuous pixels with the same grayscale value in the same row, read the grayscale value and pixel length of the next segment of continuous pixels with the same grayscale value.

[0057] Since reading grayscale image information also requires computer time, in order to further improve printing efficiency, when driving the laser direct writing device to write continuous pixels with the same grayscale value in the same row, the application reads the grayscale value and pixel length of the next section of continuous pixels with the same grayscale value, so that the next section of continuous pixels can be engraved as soon as possible after the current section of continuous pixels is engraved.

[0058] In some embodiments, the method further comprises:

[0059] Step 130 : determining the laser direct writing parameters of the laser direct writing device when writing the pixel based on the grayscale value of the pixel.

[0060] Optionally, there is a one-to-one mapping relationship between grayscale values ​​and laser direct writing parameters, which needs to be set in advance. The corresponding engraving color produced by different direct writing parameters can be determined through preliminary experiments. Direct writing parameters include laser power, pulse width, frequency, displacement stage speed, etc., so that different image grayscale values ​​correspond to the final printing color effect.

[0061] Optionally, for the mapping relationship between the grayscale value and the laser direct writing parameter, a function correspondence can be used, that is, For example, if pixels with higher grayscale values ​​are printed with higher power, preliminary experiments can be used to fit the mapping relationship with the best printing effect. Based on this, an ultra-high dynamic range with no order limit, that is, ultra-high-order bitmap printing, can be achieved.

[0062] In some embodiments, after driving the laser direct writing device to write consecutive pixels with the same grayscale value in the same row, the method further includes:

[0063] Step 140 , turning off the laser direct writing device, and adjusting the laser direct writing parameters of the laser direct writing device based on the grayscale values ​​of the next segment of consecutive pixels with the same grayscale value.

[0064] Since there is a delay in changing the laser direct writing parameters, each time the laser direct writing device is driven to write consecutive pixels with the same grayscale value in the same row, the translation stage needs to be stopped and the laser turned off. Based on the grayscale value of the next section of consecutive pixels with the same grayscale value, the laser direct writing parameters of the laser direct writing device are adjusted, and then the next string of pixels with the same grayscale value is continued to be written.

[0065] In some embodiments, printing from the first row of pixels row by row in step 110 until the last row of pixels is printed includes:

[0066] Printing starts from the first row of pixels line by line. After each row is printed, the laser direct writing device is turned off, the focus of the laser direct writing device is controlled to move a step distance in the direction of the next row, and then the laser direct writing device is turned on to continue printing until the last row of pixels is printed.

[0067] like Figure 2 As shown, after each line of printing is completed, the laser direct writing device is turned off, the focus of the laser direct writing device is controlled to move a step distance in the direction of the next line, and then the laser direct writing device is turned on to continue printing until the last line of pixels is printed.

[0068] Considering that the vertical pixel arrangement is completed by the stepping of the Y-axis translation stage, the stepping distance should be consistent with the writing line width.

[0069] Optionally, the step distance is related to hardware specifications. Specifically, according to the Abbe diffraction limit, when parallel light is focused through a lens, the minimum limit of the spot diameter (Airy disk) is 1.22λ / NA, where λ is the wavelength of light and NA is the numerical aperture of the lens.

[0070] For example, using a 405nm blue-violet laser and a 100x NA1.25 objective lens, the writing line width is about 395nm, so each step is also about 395nm, which is also the writing single pixel resolution.

[0071] In some embodiments, when the laser direct writing device prints consecutive pixels with the same grayscale value in the same row, the writing length is the number of consecutive pixels multiplied by the stepping distance.

[0072] To ensure that the image size is proportional to the engraving, the length of a single horizontal engraving line segment is the number of pixels in the string multiplied by the step distance.

[0073] Figure 3 FIG. 1 is a flow chart of a grayscale image printing algorithm provided in an embodiment of the present application. Figure 3 As shown, in one embodiment of the present application, it is assumed that the printed grayscale image is M pixels high and N pixels wide, the bottom edge is the 1st row, and the top edge is the Mth row; considering that the entire image is a two-dimensional array, direct reading each time is more resource-consuming, and the printing process is a reciprocating scan of multiple rows, so the scanning action is divided into rows, and the mth (1≤m≤M) row of pixels in the image is extracted at a time to obtain a one-dimensional array containing N pixels.

[0074] Determine the odd or even number of the row m to set the X-axis travel direction of the printing of this row. Odd is positive and even is negative, so as to realize reciprocating scanning printing. When the number of rows is even, it is printed from the rightmost end to the leftmost end of the grayscale image, so the one-dimensional array of this row needs to be inverted.

[0075] n (1≤n≤N) is the pixel number in the array, x n is the grayscale value of the nth pixel. When each string of pixels with the same grayscale value is read, the ordinal number of the first pixel in the string is recorded as t. Obviously, when n is 1, t=1, and then the next pixel is read in sequence. If the grayscale value is the same, that is, t n+1 =x n , then continue to read n = n + 1 until the pixel grayscale value changes, that is, x n+1 ≠x n , the current string is read.

[0076] Here, n+1-t is the length of this string of pixels. Let the writing line width, i.e., the single Y-axis step, be a. To ensure that the printing is proportional to the image size, the actual writing distance of the X-stage is d=(n+1-t)×a. At this time, the ordinal number of the first pixel in the next string is t=n+1.

[0077] After the current string is read, the command for writing the line segment is generated: the writing distance is d, and the laser parameter is P xn , P xn is the pixel value x n The corresponding laser direct writing parameters are determined by the preset correspondence. At this time, the translation stage and laser may still be writing the previous string of pixels. Therefore, it is necessary to query the status of the translation stage. After the translation stage is stationary and the laser is turned off, the print command for the current string of pixels can be sent.

[0078] While the stage laser is executing the line segment writing command, the reading and identification of the next string of pixels also continues, and this process is repeated until the current row of pixels is completed. That is, when n+1>N, only the printing of the last segment of pixels needs to be completed, and there is no need to assign a value to t. After completion, the Y stage immediately steps a and prints the next row of pixels m=m+1. The above steps are repeated until m=M to complete the entire printing.

[0079] Optionally, the grayscale image laser printing method provided in this application can realize the printing of other bitmaps not limited to grayscale images, such as the printing of color pictures. The bitmap is essentially composed of an array of pixel points, and this method can be used to identify and print the information of the pixels therein.

[0080] Optionally, the determination of the same grayscale value can be replaced by the determination of grayscale values ​​within a certain range. In this way, when the color rendering of the actual printed sample is smaller than the dynamic range of the original image, the original image can be downgraded: grayscale values ​​within a certain range are regarded as the same value, and the same printing parameters are used. In this case, x n+1≠x n The judgment is changed to {x n+1 ∈[k,l]}∩{x n ∈[k,l]}, that is, to determine x n+1 and x n Whether they belong to the same interval [k,l].

[0081] The following combination Figure 4 The grayscale image laser printing device provided by the present invention is described below. The grayscale image laser printing device described below and the grayscale image laser printing method described above can be referred to each other.

[0082] Figure 4 Schematic diagram of the structure of the grayscale image laser printing device provided in the embodiment of the present application. Figure 4 As shown, the device includes an acquisition module 410 and a printing module 420, wherein:

[0083] An acquisition module 410 is configured to acquire the grayscale value of each pixel of the target grayscale image;

[0084] The printing module 420 is used to drive the laser direct writing device to print the target grayscale image based on the grayscale value of each pixel, wherein the printing process is to print line by line starting from the first row of pixels until the last row of pixels is printed. When the laser direct writing device prints consecutive pixels with the same grayscale value in the same row, the parameters remain unchanged and the writing continues.

[0085] It should be understood that the above-mentioned device is used to execute the method in the above-mentioned embodiment. The implementation principle and technical effect of the corresponding program module in the device are similar to those described in the above-mentioned method. The working process of the device can refer to the corresponding process in the above-mentioned method and will not be repeated here.

[0086] Based on the method in the above embodiment, Figure 5 An example of a physical structure diagram of an electronic device is shown below. Figure 5 As shown, an embodiment of the present application provides an electronic device, which may include: a processor 510, a communication interface 520, a memory 530, and a communication bus 540, wherein the processor 510, the communication interface 520, and the memory 530 communicate with each other via the communication bus 540. The processor 510 can call the logic instructions in the memory 530 to execute the grayscale image laser printing method in the above embodiment.

[0087] In addition, the logic instructions in the above-mentioned memory 530 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes a number of instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the grayscale image laser printing method described in each embodiment of the present application.

[0088] Based on the method in the above embodiment, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program runs on a processor, the processor executes the grayscale image laser printing method in the above embodiment.

[0089] Based on the method in the above embodiment, an embodiment of the present application provides a computer program product. When the computer program product runs on a processor, the processor executes the grayscale image laser printing method in the above embodiment.

[0090] It is understood that the processor in the embodiments of the present application may be a central processing unit (CPU), or may be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field programmable gate arrays (FPGA), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. The general-purpose processor may be a microprocessor or any conventional processor.

[0091] The method steps in the embodiments of the present application can be implemented by hardware or by a processor executing software instructions. The software instructions can be composed of corresponding software modules, which can be stored in random access memory (RAM), flash memory, read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), registers, hard disks, mobile hard disks, CD-ROMs or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an ASIC.

[0092] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When software is used for implementation, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted via the computer-readable storage medium. The computer instructions can be transmitted from one website, computer, server or data center to another website, computer, server or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) method. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive (SSD)).

[0093] It will be understood that the various numerical numbers involved in the embodiments of the present application are merely distinctions for the convenience of description and are not intended to limit the scope of the embodiments of the present application.

[0094] It is easy for those skilled in the art to understand that the above is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present application should be included in the scope of protection of the present application.

Claims

1. A grayscale image laser printing method, characterized in that: include: Get the grayscale value of each pixel of the target grayscale image; Based on the grayscale value of each pixel, the laser direct writing device is driven to print the target grayscale image, wherein the printing process is to print line by line starting from the first row of pixels until the last row of pixels is printed. When the laser direct writing device prints consecutive pixels with the same grayscale value in the same row, the parameters remain unchanged and the writing continues.

2. The grayscale image laser printing method according to claim 1, characterized in that: The method further comprises: When the laser direct writing device is driven to write continuous pixels with the same grayscale value in the same row, the grayscale value and pixel length of the next section of continuous pixels with the same grayscale value are read.

3. The grayscale image laser printing method according to claim 1, characterized in that: The method further comprises: Based on the grayscale value of the pixel, the laser direct writing parameters of the laser direct writing device when writing the pixel are determined.

4. The grayscale image laser printing method according to any one of claims 1 to 3, characterized in that: After driving the laser direct writing device to write continuous pixels with the same grayscale value in the same row, the method further includes: The laser direct writing device is turned off, and the laser direct writing parameters of the laser direct writing device are adjusted based on the grayscale values ​​of the next segment of continuous pixels with the same grayscale value.

5. The grayscale image laser printing method according to claim 1, characterized in that: The printing is performed line by line starting from the first row of pixels until the last row of pixels is printed, including: Printing starts from the first row of pixels line by line. After each row is printed, the laser direct writing device is turned off, the focus of the laser direct writing device is controlled to move a step distance in the direction of the next row, and then the laser direct writing device is turned on to continue printing until the last row of pixels is printed.

6. The grayscale image laser printing method according to claim 5, characterized in that: The writing length of the laser direct writing device when printing continuous pixels with the same grayscale value in the same row is the number of the continuous pixels multiplied by the step distance.

7. A grayscale image laser printing device, characterized in that: include: An acquisition module is used to obtain the grayscale value of each pixel of the target grayscale image; A printing module is used to drive a laser direct writing device to print the target grayscale image based on the grayscale value of each pixel, wherein the printing process is to print line by line starting from the first row of pixels until the last row of pixels is printed. When the laser direct writing device prints consecutive pixels with the same grayscale value in the same row, the parameters remain unchanged and the writing is continued.

8. An electronic device, characterized in that: include: at least one memory for storing a computer program; At least one processor is used to execute the program stored in the memory. When the program stored in the memory is executed, the processor is used to execute the grayscale image laser printing method according to any one of claims 1 to 6.

9. A computer-readable storage medium storing a computer program, characterized in that: When the computer program runs on a processor, the processor is enabled to execute the grayscale image laser printing method according to any one of claims 1 to 6.

10. A computer program product, characterized in that When the computer program product runs on a processor, the processor is enabled to execute the grayscale image laser printing method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Oxygen-doped modification method of two-dimensional material

    CN110104687A

  • Interpolation control method and device for laser marking, readable storage medium and laser marking machine

    CN114367756A