Gray-scale image laser printing method and device, electronic equipment and storage medium
By printing line by line and keeping pixels with the same grayscale value in the same line with the same parameters, the problem of inefficiency caused by sequential engraving of pixels per pixel in the prior art is solved, and a more efficient grayscale diagram is achieved Laser printing.
Patent Information
- Application Number
- CN202411100930.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-12
- Publication Date
- 2024-12-06
- Estimated Expiration
- 2044-08-12
AI Technical Summary
The existing laser direct writing grayscale printing method is inefficient because it engraves one pixel by one, which requires millions of displacement stepping and laser switches.
Line-by-line printing method is adopted. Continuous pixels with the same grayscale value of the same line use the same laser direct writing parameters to scan the surface at one time, reducing the pixel-by-pixel point printing operation, and adjusting laser direct writing after each line is printed. Parameters to fit the grayscale value of the next row.
It significantly improves printing efficiency. By scanning the surface at one time, the number of switches during the printing process is reduced and the overall writing efficiency is improved.
Smart Images

Figure CN119077139A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs 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 laser direct writing grayscale printing in the prior art 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, which is usually the diameter of a single writing mark, reads the grayscale value of the pixel corresponding to the location, configures the laser direct writing parameters according to 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 of millions of pixels requires the translation 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. Summary of the invention
[0003] In view of the defects of the prior art, the purpose of the present 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] Obtain 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 is continued.
[0007] This application can significantly improve printing efficiency by scanning and printing at one time based on a string of pixels with the same grayscale value, 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 comprises:
[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 the simultaneous reading of grayscale image information and printing action, which can improve printing efficiency.
[0011] According to the grayscale image laser printing method provided by the present invention, the method further comprises:
[0012] Based on the grayscale value of the pixel, a laser direct writing parameter of the laser direct writing device is determined when writing the pixel.
[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 is performed line by line starting from the first row of pixels. 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 stepping distance.
[0018] The length of a single horizontal writing line segment in the present application is the number of pixels in the string multiplied by the stepping distance, which can ensure writing 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, used to acquire 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 method of the first aspect.
[0023] In a fourth aspect, 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 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. When the computer program product 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.
[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 prior art:
[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 actions, 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, the following briefly introduces 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 creative work.
[0030] Figure 1 It is a schematic diagram of the process of the grayscale image laser printing method provided in the embodiment of the present application;
[0031] Figure 2 It is a schematic diagram of the printing process provided by the embodiment of the present application;
[0032] Figure 3 It is a schematic diagram of the process of the grayscale image printing algorithm provided in the embodiment of the present application;
[0033] Figure 4 is a schematic structural diagram of a grayscale image laser printing device provided in an embodiment of the present application;
[0034] Figure 5 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0035] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0036] The term "and / or" in this article is a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The symbol " / " in this article indicates that the associated objects are in an or relationship, for example, A / B means A or B.
[0037] In the embodiments of the present 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 the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
[0038] In the description of the embodiments of the present application, unless otherwise specified, "multiple" means two or more than two. For example, multiple processing units refer to two or more processing units, etc.; multiple elements refer to two or more elements, etc.
[0039] First, the following contents are introduced:
[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 laser exposure and the movement of the translation stage are controlled by a computer to engrave the designed pattern on the sample with sub-micron accuracy.
[0041] Some existing laser direct writing lithography technologies can quickly print lithography in the form of small area array exposure. In each small area, the corresponding exposure image is formed on the layout through spatial light modulation, so that the corresponding area of the sample produces the corresponding writing shape, and then the translation stage steps to continue printing the next area. This kind of laser direct writing is because the laser is modulated to form an image in a large range, and the energy is relatively dispersed. It is generally used for the exposure and development of photoresists with sensitive photosensitive reactions, and it is difficult to apply to materials that require higher energy such as thermogenic denaturation. There are also technologies that flexibly change the movement of the laser focus spot in a small area through the subtle deflection of the two-axis galvanometer in the front-end optical path to complete the exposure. This technology also requires the use of a translation stage to sequentially expose multiple small area arrays to form a larger area of laser direct writing. In the above technology, the writing area generally has only two situations: exposure and non-exposure. It is difficult to achieve more orders of direct writing lithography at the same time. It can only be completed in sequence by exposing multiple layers of the layout. This is not only inefficient, but also multiple exposures in the same area will inevitably form crosstalk.
[0042] For direct-write lithography that requires fine adjustment of laser parameters, spatial light modulation is generally not added. The laser beam is directly focused through the objective lens to form a point spot, which is moved through 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 written on the sample to form a grayscale image or even a color image, thereby achieving image printing with a high dynamic range.
[0043] Based on the direct writing mechanism of multi-level grayscale, the traditional grayscale image printing generally uses a displacement stage to correspond the position of the light spot with the pixel position of the 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, which is 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. 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 view of the defects of the prior art, the purpose of the present 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 embodiment of the present application is introduced.
[0046] Figure 1 is a schematic diagram of the process of the grayscale image laser printing method provided in the embodiment of the present application, such as Figure 1 As shown, the method comprises 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 concept of the grayscale image laser printing method provided in the present 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, during the process of scanning and printing a single row or column, the present application maintains the laser parameters unchanged while keeping multiple consecutive pixel values unchanged, and the laser is continuously turned on, allowing the translation stage to directly move the distance corresponding to the string of pixels to complete the engraving, which can overcome the problem of low efficiency caused by the prior art of engraving one pixel at a time.
[0052] Figure 2 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 reciprocates in the X-axis direction and steps forward in the Y-axis direction. The solid line in the first row of the figure is a schematic diagram 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 partial information of the image each time, the present application has a high tolerance for image size, actual print 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 series 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 present 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 continuous pixels are written.
[0058] In some embodiments, the method further comprises:
[0059] Step 130 , based on the grayscale value of the pixel, determining the laser direct writing parameters of the laser direct writing device when writing 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. The 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 may 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 continuous 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 continuous pixels with the same grayscale value.
[0064] Since there will be a delay in changing the laser direct writing parameters, each time after driving the laser direct writing device to write continuous pixels with the same grayscale value in the same row, the translation stage needs to stop, the laser is turned off, and the laser direct writing parameters of the laser direct writing device are adjusted based on the grayscale value of the next section of continuous pixels with the same grayscale value, and then the next string of pixels with the same grayscale value is continued to be engraved.
[0065] In some embodiments, printing from the first row of pixels line by line in step 110 until the last row of pixels is printed includes:
[0066] Printing is performed line by line starting from the first row of pixels. 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 stepping 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 is a flow chart of a grayscale image printing algorithm provided in an embodiment of the present application, such as Figure 3 As shown, in one embodiment of the present application, assume 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 lines m to set the X-axis moving direction of the printing of this line, odd is positive and even is negative, so as to realize reciprocating scanning printing. When the number of lines is even, it is printed from the rightmost end to the leftmost end of the grayscale image, so the one-dimensional array of this line 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 has been read.
[0076] At this time, n+1-t is the length of this string of pixels. Let the writing line width, that is, the single step of the Y axis, be a. In order to ensure the printing of the same image ratio, the actual writing distance of the X displacement 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 corresponding relationship. At this time, the translation stage and the laser may still be writing the previous string of pixels. Therefore, it is necessary to query the status of the translation stage until the translation stage is stationary and the laser is turned off, and then send the print command for the current string of pixels.
[0078] While the stage laser is executing the line segment writing command, the reading and identification of the next string of pixels continues, and this process is repeated until the current row of pixels is printed. That is, when n+1>N, only the printing of the last segment of pixels needs to be completed without assigning a value to t. After completion, the Y stage 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 the present 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 a pixel array, and this method can be used for information identification and printing 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] Combine the following Figure 4 The grayscale image laser printing device provided by the present invention is described. 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 is a 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 used 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 is continued.
[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, which 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 in FIG. 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 through the communication bus 540. The processor 510 may 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 software functional units 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 can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a 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 understandable that the processor in the embodiment of the present application can be a central processing unit (CPU), or 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 can 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, and the software modules 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 a 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 implemented using software, 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 may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted through the computer-readable storage medium. The computer instructions may be transmitted from a website site, a computer, a server or a data center to another website site, a computer, a server or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or a data center that includes one or more available media integrated. The available medium may 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 disk (SSD)), etc.
[0093] It should be understood that the various numerical numbers involved in the embodiments of the present application are only used for the convenience of description and are not used to limit the scope of the embodiments of the present application.
[0094] It will be easily understood by those skilled in the art that the above description 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 shall be included in the scope of protection of the present application.
Claims
1. A grayscale image laser printing method, It is characterized in that include: Obtain 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 is continued.
2. The grayscale image laser printing method according to claim 1, It is 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, It is characterized in that The method further comprises: Based on the grayscale value of the pixel, a laser direct writing parameter of the laser direct writing device is determined when writing the pixel.
4. The grayscale image laser printing method according to any one of claims 1 to 3, It is 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, It is characterized in that The step of printing from the first row of pixels line by line until the last row of pixels is printed includes: Printing is performed line by line starting from the first row of pixels. 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, It is 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 stepping distance.
7. A grayscale image laser printing device, It is characterized in that include: An acquisition module, used to acquire 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, It is 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 as described in any one of claims 1-6.
9. A computer-readable storage medium storing a computer program. It is 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, It is 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
Laser image engraving method and device and computer readable storage medium
CN115815825A
Method and system for optimizing energy curve of laser direct-writing gray-scale image writing
CN117331286A
Method and device for color thermal transfer recording
JP1999105321A
