Laser printing method, printer, and storage medium

By segmenting and splicing laser energy matrix data, the problems of low printing efficiency and poor imaging effect in card production were solved, achieving efficient and clear printing results and improving the overall printing quality.

CN119987690BActive Publication Date: 2026-11-24TAI LI DE SHI DA YIN JI JIANG MEN YOU XIAN GONG SI
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411853387.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-12-16
Publication Date
2026-11-24
Estimated Expiration
2044-12-16

AI Technical Summary

Technical Problem

Existing laser printing methods suffer from low printing efficiency and poor imaging effects in card production, especially in single-resolution dot matrix and multi-resolution dot matrix printing, where the overall imaging effect is uneven, the edge contours are not smooth, production efficiency is low, and the imaging effect has poor compatibility.

Method used

By acquiring the printing template of the medium to be printed, determining the layout position and filling in the data, the printing task is divided into multiple sub-tasks, the laser energy matrix data of each sub-task is determined, and they are spliced ​​together to form the target laser energy matrix data for printing, thereby improving printing efficiency and clarity.

Benefits of technology

It achieves simultaneous improvement in printing efficiency and image clarity during card production, reduces the loss of detail caused by mutual interference between printing data, and enhances the consistency and delicacy of the overall printing effect.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119987690B_ABST
    Figure CN119987690B_ABST
Patent Text Reader

Abstract

This application provides a laser printing method, printer, and storage medium. The method includes: obtaining a printing template of a medium to be printed; determining the layout position of the medium to be printed based on the printing template; filling the printing template with data to be filled according to the layout position to obtain a printing task; obtaining printing effect data of the printing template and coordinate information of the printing effect data in the printing template; segmenting the printing task to be printed based on the printing effect data and coordinate information to obtain multiple sub-tasks; determining laser energy matrix data for printing each sub-task; concatenating the laser energy matrix data of multiple sub-tasks to obtain target laser energy matrix data for printing the printing task; and printing the printing task on the medium to be printed based on the target laser energy matrix data. This application embodiment can improve printing efficiency and the clarity of printed images.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of printing technology, and more particularly to a laser printing method, printer, and storage medium. Background Technology

[0002] In related technologies, laser printing can be used to print content onto the printing medium during the card production process. Common laser printing methods include single-resolution dot matrix and multi-resolution dot matrix. In single-resolution dot matrix laser printing, the laser beam scans the printing material along a pre-set trajectory at a fixed switching frequency, causing a physical or chemical reaction. This method is simple to apply, but the overall image filling is uneven and the edge contour smoothness is poor. In multi-resolution dot matrix laser printing, multiple printing parameters are configured for the printed image, and the printing is done in multiple steps. This method has low production efficiency and poor image quality compatibility. Currently, there is an urgent need to propose a printing method that can ensure printing efficiency and produce clear images during card production. Summary of the Invention

[0003] The main objective of this application is to provide a laser printing method, printer, and storage medium that aims to simultaneously improve printing efficiency and the clarity of printed images.

[0004] To achieve the above objectives, a first aspect of this application provides a laser printing method, comprising the following steps: Obtain a print template of the medium to be printed, determine the layout position of the medium to be printed based on the print template, and fill the print template with the data to be filled according to the layout position to obtain the print task; Obtain the printing effect data of the printing template and the coordinate information of the printing effect data in the printing template; The printing task is divided into multiple sub-tasks based on the printing effect data and the coordinate information. For each of the subtasks, determine the laser energy matrix data to be used for printing the subtask; The laser energy matrix data of multiple sub-tasks are spliced ​​together to obtain the target laser energy matrix data for printing the task to be printed; The task to be printed is printed on the printing medium according to the target laser energy matrix data.

[0005] In one embodiment, obtaining the printing template of the medium to be printed includes: The template features of the medium to be printed are identified by performing template feature recognition. Based on the template features, the corresponding print template is obtained from a preset database.

[0006] In one embodiment, the printing effect data includes image data and text data, the coordinate information includes a first position of the image data and a second position of the text data, and the plurality of subtasks include a first image subtask corresponding to the image data and a first text subtask corresponding to the text data; The step involves segmenting the printing task based on the printing effect data and the coordinate information to obtain multiple sub-tasks, including: The task to be printed is segmented based on the first position and the second position to obtain the first image subtask and the first text subtask.

[0007] In one embodiment, the printing effect data includes multiple resolutions set for the printing task, and the coordinate information includes multiple target positions corresponding to the resolutions; The step involves segmenting the printing task based on the printing effect data and the coordinate information to obtain multiple sub-tasks, including: The task to be printed is divided into multiple sub-tasks based on multiple target locations.

[0008] In one embodiment, the plurality of subtasks includes a plurality of second text subtasks and a plurality of second image subtasks; For each of the sub-tasks, determining the laser energy matrix data used for printing the sub-task includes: The low-frequency region image and the high-frequency region image in each of the second image sub-tasks are determined, and the transition region between the low-frequency region image and the high-frequency region image is smoothed to obtain each optimized second image sub-task. For each of the optimized second image subtasks, determine the first laser energy matrix data for printing the optimized second image subtask; For each of the second text subtasks, determine the second laser energy matrix data used to print the second text subtask.

[0009] In one embodiment, the step of concatenating the laser energy matrix data of multiple sub-tasks to obtain target laser energy matrix data for printing the task to be printed includes: Based on the target positions of each of the second text subtasks and the target positions of the multiple second image subtasks, the first laser energy matrix data and the second laser energy matrix data are spliced ​​together to obtain the target laser energy matrix data.

[0010] In one embodiment, determining the laser energy matrix data for printing the sub-task includes: Determine the initial laser energy data for each pixel in the subtask; For each pixel in the subtask, laser energy compensation data for each pixel in the subtask is determined based on the initial laser energy data of each pixel in the adjacent region. The laser energy matrix data of the subtask is determined based on the initial laser energy data and the laser energy compensation data of each pixel in the subtask.

[0011] In one embodiment, determining the laser energy compensation data for each pixel in the subtask based on the initial laser energy data of each pixel in the adjacent region includes: Traverse each pixel in the subtask and determine the first and second adjacent regions of the current pixel. Acquire the initial laser energy data of each first adjacent pixel in the first adjacent region, and the initial laser energy data of each second adjacent pixel in the second adjacent region; Based on the initial laser energy data of each first adjacent pixel in the first adjacent region, determine the local laser energy compensation data of the current pixel; Based on the initial laser energy data of each second adjacent pixel in the second adjacent region, determine the global laser energy compensation data of the current pixel; The laser energy compensation data of the current pixel is determined based on the local laser energy compensation data and the global laser energy compensation data of the current pixel.

[0012] To achieve the above objectives, a second aspect of this application provides a printer, the printer including a memory and a processor, the memory storing a computer program, and the processor executing the computer program to implement the method described in the first aspect.

[0013] To achieve the above objectives, a third aspect of the present application provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the method described in the first aspect.

[0014] This application discloses a laser printing method, printer, and storage medium. The method includes: obtaining a printing template of a medium to be printed; determining the layout position of the medium to be printed based on the printing template; filling the printing template with data to be filled according to the layout position to obtain a printing task; obtaining printing effect data of the printing template and coordinate information of the printing effect data in the printing template; dividing the printing task to be printed based on the printing effect data and the coordinate information to obtain multiple sub-tasks; determining laser energy matrix data for printing each sub-task; concatenating the laser energy matrix data of multiple sub-tasks to obtain target laser energy matrix data for printing the printing task; and printing the printing task on the medium to be printed based on the target laser energy matrix data. By determining the laser energy matrix data of each sub-task, the target laser energy matrix data is obtained based on the laser energy matrix data of each sub-task. In this way, the printing image can be completed in one go when printing the task to be printed, without having to print each sub-task separately based on its laser energy matrix data, thereby improving printing efficiency. On this basis, the task to be printed is segmented by printing effect data and coordinate information, and the laser energy matrix data of each sub-task is determined separately. This allows sub-tasks with different printing effect data to undergo laser energy data conversion independently. This reduces the interference between printing effect data when converting laser energy data on a task-by-task basis, which can cause the laser energy matrix data of the task to be printed to lose details, thereby improving the clarity of the printed image. Attached Figure Description

[0015] Figure 1 This is a flowchart of a laser printing method provided in one embodiment of this application; Figure 2 yes Figure 1 A flowchart of an embodiment of a sub-step in step 140 that determines the laser energy matrix data for a sub-task; Figure 3 yes Figure 2 A flowchart of an embodiment of a sub-step of step 220; Figures 4A to 4B This is a schematic diagram of the parameters used to determine local laser energy compensation data according to an embodiment of this application; Figures 5A to 5B This is a schematic diagram of parameter changes used to determine global laser energy compensation data according to an embodiment of this application; Figure 6 yes Figure 1 A flowchart of an embodiment of a sub-step of step 160; Figure 7This is a schematic diagram of the bent area printing in step 630 provided in the embodiments of this application; Figure 8 This is a schematic diagram of the hardware structure of the printer provided in an embodiment of this application. Detailed Implementation

[0016] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0017] It should be noted that although functional modules are divided in the device schematic diagram and a logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than the module division in the device or the order in the flowchart. The terms "first," "second," etc., in the specification, claims, and the aforementioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence.

[0018] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of this application only and is not intended to limit this application.

[0019] In related technologies, laser printing can be used to print content onto the printing medium during the card production process. Common laser printing methods include single-resolution dot matrix and multi-resolution dot matrix printing. In single-resolution dot matrix laser printing, the laser beam scans the printing material along a pre-set trajectory at a fixed switching frequency, causing a physical or chemical reaction. This method is simple to apply, but the overall image filling is uneven and the edge contour smoothness is poor. In multi-resolution dot matrix laser printing, multiple etching parameters are configured for the printed image, and etching is performed multiple times. This method has low production efficiency and poor image quality compatibility. Currently, there is an urgent need to propose a printing method that can ensure printing efficiency while simultaneously producing clear images during card production.

[0020] To simultaneously improve printing efficiency and print image clarity, embodiments of this application provide a laser printing method, a printer, and a computer-readable storage medium. The method may include: obtaining a printing template of a medium to be printed; determining the layout position of the medium to be printed based on the printing template; filling the printing template with data to be filled according to the layout position to obtain a print task; obtaining printing effect data of the printing template and coordinate information of the printing effect data in the printing template; segmenting the print task to be printed based on the printing effect data and coordinate information to obtain multiple sub-tasks; determining laser energy matrix data for printing each sub-task; concatenating the laser energy matrix data of multiple sub-tasks to obtain target laser energy matrix data for printing the print task; and printing the print task on the medium to be printed based on the target laser energy matrix data. By determining the laser energy matrix data of each sub-task, the target laser energy matrix data is obtained based on the laser energy matrix data of each sub-task. In this way, the printing image can be completed in one go when printing the task to be printed, without having to print each sub-task separately based on its laser energy matrix data, thereby improving printing efficiency. On this basis, the task to be printed is segmented by printing effect data and coordinate information, and the laser energy matrix data of each sub-task is determined separately. This allows sub-tasks with different printing effect data to undergo laser energy data conversion independently. This reduces the interference between printing effect data when converting laser energy data on a task-by-task basis, which can cause the laser energy matrix data of the task to be printed to lose details, thereby improving the clarity of the printed image.

[0021] This application provides a laser printing method, printer, and storage medium, which are specifically described through the following embodiments. First, the laser printing method in this application is described.

[0022] This application can be described in the general context of computer-executable instructions that are executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc., that perform a specific task or implement a specific abstract data type.

[0023] See Figure 1 , Figure 1 The flowchart of a laser printing method provided in one embodiment of this application is shown. In this embodiment, Figure 1 The laser printing method may include steps 110 to 160.

[0024] Step 110: Obtain the print template of the medium to be printed, determine the layout position of the medium to be printed according to the print template, and fill the data to be filled into the print template according to the layout position to obtain the print job; Step 120: Obtain the printing effect data of the printing template and the coordinate information of the printing effect data in the printing template; Step 130: Divide the printing task into multiple sub-tasks based on the printing effect data and coordinate information; Step 140: For each subtask, determine the laser energy matrix data to be used for printing the subtask; Step 150: Concatenate the laser energy matrix data of multiple sub-tasks to obtain the target laser energy matrix data for printing the task to be printed; Step 160: Print the task to be printed on the printing medium according to the target laser energy matrix data.

[0025] In one embodiment, the printing medium can be printing paper, a printed ID card, etc., and the specific type is not limited here.

[0026] In one embodiment, the printing template of the medium to be printed refers to an image template with spaces reserved for filling data. The printing template can be retrieved from a preset database based on the printer user's selection information, or it can be done in other ways, which are not specifically limited here.

[0027] In one embodiment, during the process of obtaining the printing template of the medium to be printed, the medium to be printed can first undergo template feature recognition to obtain the template features of the medium to be printed. Then, based on the template features, the corresponding printing template is obtained from a preset database. By obtaining the printing template from the preset database through template features, the printing task can be conveniently obtained by filling in the data to be printed, which helps to improve the efficiency of printing task formation.

[0028] In one embodiment, template features refer to information associated with the template used on the printing medium. For example, template features can be one of different types of data, such as images or text, without specific limitations. Template features can be extracted using corresponding extraction tools for each feature (e.g., text can be extracted using Optical Character Recognition (OCR) technology), or they can be directly extracted using a pre-trained template feature recognition model. This pre-trained template feature recognition model can be trained using neural networks such as Convolutional Neural Networks (CNNs) and Recurrent Neural Networks (RNNs), without specific limitations.

[0029] In one embodiment, during the process of template feature recognition of the printing medium and obtaining a printing template from a preset database based on the recognized template features, the printing medium can be scanned first to obtain an image of the printing medium. Then, the image of the printing medium is preprocessed to obtain a processed image. Next, template feature recognition is performed on the processed image to obtain the template features of the printing medium. Finally, multiple printing templates stored in the preset database are compared based on the template features to determine the printing template corresponding to the template features. The preprocessing can include noise reduction, contrast enhancement, etc., and is not specifically limited here.

[0030] In one embodiment, layout position refers to a set of information indicating the different printing positions of different types of data in the printing medium within the data to be filled. Specifically, layout position may include the position of each type of data printed on the printing medium. The data to be printed may include different types of data such as images and text, and is not specifically limited here.

[0031] In one embodiment, during the process of determining the layout position of the printing medium according to the printing template, and filling the printing template with data to be filled according to the layout position to obtain the printing task, specifically, the different positions of different types of data in the printing medium can be determined first based on the layout position. Then, the corresponding positions of the different types of data in the printing medium in the printing template can be determined. Finally, each type of data can be filled into its corresponding position in the printing template. Here, the printing task refers to the image to be printed, which can be a grayscale image or a color image; no specific limitation is made here. For example, the data to be filled includes type A data and type B data. The printing template includes a first filling area and a second filling area. The layout position of the printing medium includes the positions of type A data and type B data. The first filling area corresponds to the position of type A data, and the second filling area corresponds to the position of type B data. Therefore, type A data can be filled into the first filling area, and type B data can be filled into the second filling area.

[0032] In one embodiment, print effect data refers to the data required to print the task to be printed. Print effect data may include data formed by the data to be filled in the task to be printed, or data that determines the print quality of an image, such as resolution, etc., and so on. No specific limitation is made here.

[0033] In one embodiment, the coordinate information of the print effect data in the print template refers to information used to indicate the position of the specific print effect data in the print template. For example, assuming the specific print effect data is resolution, the printer can determine to print an image at a specific position and a specific resolution based on the coordinate information; further assuming the specific print effect data is data to be filled, the printer can determine to print the data to be filled at a specific position based on the coordinate information.

[0034] In one embodiment, during the process of segmenting the print task to obtain subtasks based on print effect data and coordinate information, the region of each specific print effect data in the print task can be determined first based on the coordinate information of each specific print effect data. Then, the region of each specific print effect data in the print task is segmented to obtain multiple subtasks. Here, a subtask refers to a region image within the image to be printed.

[0035] In one embodiment, the printing effect data may include image data and text data. The coordinate information includes a first position of the image data and a second position of the text data. Multiple subtasks may include a first image subtask corresponding to the image data and a text subtask corresponding to the text data. In the process of segmenting the printing task to be printed according to the printing effect data and coordinate information to obtain multiple subtasks, specifically, the printing task to be printed can be segmented according to the first and second positions to obtain a first image subtask and a first text subtask. Here, image data refers to the data of a specific image (e.g., a portrait) to be printed in the printing task; text data refers to the data of specific text (e.g., a word, a sentence, a number, etc.) to be printed in the printing task. Furthermore, the first image subtask refers to the specific image formed by the image data in the printing task; the first text subtask refers to the specific text formed by the text data in the printing task. For example, portrait image data, verification code image data, etc., can all be the aforementioned image data. Additionally, there can be one or more image data and text data, and when there are multiple image data or text data, the multiple image data can be different types of image data; no specific limitation is made here. It should be noted that, for ease of description, the following embodiments are all described using the example of one image data and one text data. When there are multiple image data or text data, each image data or text data can be executed with reference to the embodiments below, which will not be repeated here.

[0036] By segmenting at the first and second positions, the first image subtask and the first text subtask can be accurately separated from the task to be printed. This allows for the relatively complete extraction of image and text information from the task, which helps the subsequent laser energy data conversion process obtain accurate laser energy matrix data based on the image and text information. This, in turn, improves the consistency between the printed effect and the image to be printed.

[0037] In one embodiment, the print effect data includes multiple resolutions set for the print job, and the coordinate information includes target positions corresponding to the multiple resolutions. In the process of segmenting the print job into multiple sub-tasks based on the print effect data and coordinate information, specifically, the print job can be segmented into multiple sub-tasks based on multiple target positions. Here, the target position refers to the location used to indicate the position of an image region with a specific resolution within the print job.

[0038] By segmenting at each target location, multiple sub-tasks can be accurately separated from the printing task. This allows for the relatively complete acquisition of regional information at different resolutions from the printing task, which helps the subsequent laser energy data conversion process obtain accurate laser energy matrix data based on the regional information at different resolutions. This, in turn, improves the consistency between the printing effect and the image to be printed.

[0039] In one embodiment, determining the laser energy matrix data for each subtask involves first determining the laser energy data corresponding to each pixel in each subtask, and then obtaining the laser energy matrix data for each subtask based on the laser energy data corresponding to each pixel. The conversion relationship between each pixel and the laser energy data can be determined using a preset formula (such as a conversion formula between grayscale or RGB values ​​and laser energy data), a preset table, etc., and is not specifically limited here.

[0040] In one embodiment, the multiple subtasks may include multiple second text subtasks and multiple second image subtasks. In determining the laser energy matrix data for printing each subtask, specifically, the low-frequency region image and high-frequency region image in the second image subtask may be determined first, and image smoothing processing may be performed on the transition region between the low-frequency region image and the high-frequency region image to obtain an optimized second image. Then, for each optimized second image subtask, first laser energy matrix data for printing the optimized second image subtask is determined. Finally, for each second text subtask, second laser energy matrix data for printing the second text subtask is determined.

[0041] The second image subtask refers to a region image containing a portion of specific image data. For example, for a portrait, the portrait can be segmented into multiple region images based on multiple target locations; these region images constitute the second image subtask, containing a portion of the portrait's content. Similarly, the second text subtask refers to a region image containing a portion of specific text data. For example, for a number, the number can be segmented into multiple region images (such as a portion of a digit) based on multiple target locations; these region images constitute the second text subtask, containing a portion of the text's content. Furthermore, each second image subtask can be processed using the same or different smoothing precision; this is not specifically limited here. By smoothing the transition regions in second image subtasks of different resolutions, the image details displayed by the subtasks at different resolutions can be made more refined. This improves the consistency of printing across subtasks of different resolutions, resulting in more realistic and detailed printed images.

[0042] In one embodiment, a low-frequency region image refers to a region image in the second image subtask where the grayscale value changes relatively smoothly. For example, a face region image or a skin region image, where the color changes are relatively smooth. The low-frequency region image obtained in this embodiment can be one or multiple; no specific limitation is made here. For ease of description, the following embodiments will use one low-frequency region image as an example. When there are multiple low-frequency region images, each low-frequency region image can be executed according to the embodiments below, which will not be elaborated here.

[0043] In one embodiment, a high-frequency region image refers to a region image in the second image subtask where the grayscale value changes relatively drastically. For example, it could be a region image where the skin area meets the clothing area, or a region image where different colors on clothing meet. These regions exhibit relatively drastic color changes. The high-frequency region image obtained in this embodiment can be one or multiple; no specific limitation is made here. For ease of description, the following embodiments will use a single high-frequency region image as an example. When there are multiple high-frequency region images, each high-frequency region image can be executed according to the embodiments below, which will not be elaborated here.

[0044] In one embodiment, during the image smoothing process of the transition region between the low-frequency region image and the high-frequency region image, the transition region can be filtered by one of the filtering algorithms such as Gaussian filtering and median filtering, so that the high-frequency region image can smoothly transition to the low-frequency region image.

[0045] In one embodiment, for each second image subtask, in the process of determining the low-frequency region image and high-frequency region image in each second image subtask, and performing image smoothing processing on the transition region between the low-frequency region image and the high-frequency region image to obtain each optimized second image subtask, specifically, the image subtask can first be preprocessed to obtain a grayscale image. Then, the gradient value of the grayscale image is calculated based on the grayscale value of each pixel in the grayscale image. Then, the grayscale image is divided into regions according to a preset gradient threshold and gradient value to obtain low-frequency region images and high-frequency region images. Then, the transition region is determined based on the gradient value change between the low-frequency region image and the high-frequency region image. Then, the grayscale values ​​of all pixels in the transition region are averaged to obtain the average grayscale value of the pixel. Then, the grayscale values ​​of the pixel are updated to the average grayscale value to obtain the processed pixel. Then, the processed pixel, the pixel of the low-frequency region image, and the pixel of the high-frequency region image are combined to obtain the optimized second image subtask. By using gradient values ​​and preset gradient thresholds, low-frequency and high-frequency regions in the regional image can be accurately identified, thus enabling precise identification of transition regions. Furthermore, by updating the grayscale values ​​of all pixels within the transition region to match the grayscale values ​​of all pixels within the transition region, the consistency of grayscale distribution within the transition region can be improved, eliminating the phenomenon of uneven grayscale in the transition region. This results in a more refined second image subtask after optimization.

[0046] In one embodiment, determining the first laser energy matrix data for printing the optimized second image subtask refers to first converting each pixel in the optimized second image subtask into laser energy data, and then determining the first laser energy matrix data based on the laser energy data of each pixel in the optimized second image subtask.

[0047] In one embodiment, determining the second laser energy matrix data for printing the second text subtask refers to first converting each pixel in the second text subtask into laser energy data, and then determining the second laser energy matrix data based on the laser energy data of each pixel in the second text subtask.

[0048] In one embodiment, before determining the second laser energy matrix data for printing the second text subtask, the second text subtask can be preprocessed to improve the level of detail in the second text subtask, thereby enabling a more refined laser energy data conversion during the process of determining the second laser energy matrix data.

[0049] In one embodiment, in determining any laser energy matrix data, the laser energy data corresponding to each pixel in a specific subtask (either a second image subtask or a second text subtask) can first be determined according to an energy mapping table. Then, the laser energy matrix data of the specific subtask is determined based on the laser energy data corresponding to each pixel in the specific subtask. The energy mapping table can record the mapping relationship between the RGB values ​​of pixels and the laser energy data, or it can record the mapping relationship between the grayscale values ​​of pixels and the laser energy data, etc., and is not specifically limited here. Compared to using a preset formula to determine the first and second laser energy matrix data, determining the first and second laser energy matrix data through an energy mapping table can significantly reduce the computational load of laser energy data conversion, thereby improving the efficiency of determining the first and second laser energy matrix data.

[0050] In one embodiment, when multiple subtasks include a first image subtask and a first text subtask, in the process of determining the laser energy matrix data for printing the subtask for each subtask, specifically, a third laser energy matrix data for printing the first image subtask and a fourth laser energy matrix data for printing the first text subtask can be determined.

[0051] In one embodiment, concatenating the laser energy matrix data of multiple sub-tasks to obtain target laser energy matrix data for printing the task to be printed refers to the operation of combining the laser energy matrix data of each sub-task into the target laser energy matrix data based on the position of each sub-task within the task to be printed. Specifically, in the target laser energy matrix data, the position of each sub-task's laser energy matrix data corresponds to its position within the task to be printed. Furthermore, during the synthesis process, the laser energy matrix data of each sub-task can be synthesized based on the original data, or based on the weight coefficients of each sub-task, etc., etc., without specific limitations here.

[0052] In one embodiment, in the process of stitching together the laser energy matrix data of multiple sub-tasks to obtain the target laser energy matrix data for printing the task to be printed, the target laser energy matrix data can be obtained by stitching together the first laser energy matrix data and the second laser energy matrix data according to the target positions of each second text sub-task and the target positions of multiple second image sub-tasks.

[0053] In one embodiment, in the process of concatenating the first laser energy matrix data and the second laser energy matrix data according to the target positions of each second text subtask and the target positions of multiple second image subtasks to obtain the target laser energy matrix data, specifically, the initial laser energy matrix data corresponding to the printing template can be obtained first, then the positional mapping relationship between the task to be printed and the initial energy matrix data can be determined, and then, according to the positional mapping relationship, each target position in the task to be printed can be converted into the target matrix position in the initial laser energy matrix data, and then the initial laser energy data in each target matrix position can be replaced with each first laser energy matrix data or second laser energy matrix data.

[0054] By stitching data at various target locations, multiple first laser energy matrix data and multiple second laser energy matrix data can be accurately stitched into the initial laser energy matrix data. This allows the multiple first laser energy matrix data and multiple second laser energy matrix data to be associated with the information of each target location through the target laser energy matrix data. This helps the printing process to accurately print multiple second image subtasks and multiple second text subtasks on the printing medium according to each target location, thereby improving the consistency between the printing effect and the image to be printed.

[0055] In one embodiment, for multiple subtasks including a first image subtask and a first text subtask, in determining the laser energy matrix data for printing the subtask for each subtask, specifically, the initial laser energy matrix data corresponding to the printing template can be obtained first, then the positional mapping relationship between the task to be printed and the initial energy matrix data can be determined, and then, according to the positional mapping relationship, the first position and the second position in the task to be printed can be converted into the first matrix position and the second matrix position in the initial laser energy matrix data, and then the initial laser energy data in the first matrix position can be replaced with the third laser energy matrix data, and the initial laser energy data in the second matrix position can be replaced with the fourth laser energy matrix data.

[0056] See Figure 2 , Figure 2 It shows Figure 1 The process of determining the laser energy matrix data of a sub-task in step 140 is described in one embodiment. In one embodiment, the process of determining the laser energy matrix data of a sub-task may include the following steps.

[0057] Step 210: Determine the initial laser energy data for each pixel in the subtask; Step 220: For each pixel in the subtask, determine the laser energy compensation data for each pixel in the subtask based on the initial laser energy data of each pixel in the adjacent region; Step 230: Determine the portrait laser energy matrix data based on the initial laser energy data and laser energy compensation data of each pixel in the subtask.

[0058] In one embodiment, the initial laser energy data can be determined by a preset conversion formula, energy mapping table, or other means, without any specific limitation here.

[0059] In one embodiment, the adjacent regions can be the regions on both sides of a pixel, or the regions on both sides of the region to which the pixel belongs, etc., and are not specifically limited here. The sizes of the two adjacent regions can be the same or different, and are not specifically limited here.

[0060] In one embodiment, when the adjacent regions are the two sides of a pixel, the laser energy compensation data of the pixel can be determined by the sum of the initial laser energy data of all pixels in each side region and the coefficient of each side region. Alternatively, the laser energy compensation data of the pixel can be determined by the maximum initial laser energy data in each side region and the coefficient of each side region, etc. The specific method is not limited here.

[0061] In one embodiment, when the adjacent regions are the two sides of the region to which the pixel belongs, the laser energy compensation data can be determined by one of the following specific methods: the sum of the initial laser energy data of all pixels in each side region, or the laser energy compensation data of the region to which the pixel belongs can be determined by the maximum initial laser energy data in each side region. Then, this laser energy compensation data is used as the laser energy compensation data of each pixel in the region to which the pixel belongs.

[0062] In one embodiment, determining the laser energy matrix data based on the initial laser energy data and laser energy compensation data of each pixel in the subtask refers to first summing the initial laser energy data and laser energy compensation data of each pixel in the subtask to obtain the target laser energy data of each pixel in the subtask, and then obtaining the laser energy matrix data based on the target laser energy data of each pixel in the subtask. The summation based on the initial laser energy data and laser energy compensation data can be based on the summation of the original data or on the summation of the original data and coefficients; the specific method is not limited here.

[0063] By compensating the initial laser energy data of each pixel after grayscale conversion of the print job using laser energy compensation data, the image printing quality can be improved during printing, thus enhancing the printed image quality and making the printed image more realistic.

[0064] It is important to note that Figure 2 The steps shown can be applied in scenarios with multiple subtasks, including a first image subtask and a first text subtask, or in scenarios with multiple subtasks, including a second image subtask and a second text subtask.

[0065] See Figure 3 , Figure 3 It shows Figure 2 The process of a sub-step embodiment of step 220, in one embodiment, step 220 may include the following steps.

[0066] Step 310: Traverse each pixel in the subtask and determine the first and second adjacent regions of the current pixel; Step 320: Obtain the initial laser energy data of each first adjacent pixel in the first adjacent region, and the initial laser energy data of each second adjacent pixel in the second adjacent region; Step 330: Determine the local laser energy compensation data for the current pixel based on the initial laser energy data of each first adjacent pixel in the first adjacent region; Step 340: Determine the global laser energy compensation data for the current pixel based on the initial laser energy data of each second adjacent pixel in the second adjacent region; Step 350: Determine the laser energy compensation data for the current pixel based on the local laser energy compensation data and the global laser energy compensation data.

[0067] In one embodiment, the first adjacent region refers to an image region including the current pixel and its neighboring pixels, and the second adjacent region refers to the region adjacent to the image region to which the current pixel belongs. The image region to which the current pixel belongs may or may not be the first adjacent region; no specific limitation is made here.

[0068] In one embodiment, determining the local laser energy compensation data of the current pixel based on the initial laser energy data of each first adjacent pixel in the first adjacent region refers to performing data calculations based on the initial laser energy data of the current pixel's neighboring pixels (i.e., the first adjacent pixels) in the first adjacent region to obtain the local laser energy compensation data of the current pixel relative to the first adjacent region. The data calculations for the first adjacent region can include summing the initial laser energy data, taking the maximum value, etc., and are not specifically limited here.

[0069] In one embodiment, in the process of determining the local laser energy compensation data of the current pixel based on the initial laser energy data of each first adjacent pixel in the first adjacent region, the position of each first adjacent pixel in the first adjacent region relative to the current pixel can be determined first. Then, based on the position of each first adjacent pixel relative to the current pixel, a first compensation coefficient of each first adjacent pixel is determined. Then, a first data difference between the initial laser energy data of the current pixel and the initial laser energy data of each first adjacent pixel is determined. Finally, the local laser energy compensation data is determined based on the first data difference of each first adjacent pixel and the first compensation coefficient.

[0070] By determining local laser energy compensation data based on the first data difference and the first compensation coefficient of each first adjacent pixel, the impact of uneven local energy on the printing effect can be reduced during the printing process, thus making the printed effect closer to the image to be printed. Furthermore, by locally compensating the initial laser energy data of each pixel, the energy of the laser beam used for printing can be more precise, resulting in a printed effect that approximates the smooth and natural gradient color blocks of a pencil sketch.

[0071] The following example illustrates the specific process of determining local laser energy compensation data.

[0072] See Figure 4A and Figure 4B , Figure 4A The initial laser energy data of each pixel in the first adjacent region is shown. X represents the initial laser energy data of the current pixel, and the others are the initial laser energy data of each first adjacent pixel. Figure 4B It shows Figure 4A The first compensation coefficient is calculated relative to each position of the current pixel. Specifically, when it is necessary to calculate the local laser energy compensation data of the current pixel, it can first be calculated based on the position of each first adjacent pixel relative to the current pixel. Figure 4B The table shown determines the first compensation coefficient for each first adjacent pixel. Then, the first data difference between the initial laser energy data of the current pixel and the initial laser energy data of each first adjacent pixel is determined. Then, referring to the following formula (1), the local laser energy compensation data Y1 is determined based on the first data difference and the first compensation coefficient of each first adjacent pixel.

[0073] Y1=(X-XL1) Kxl1+(X-XL2) Kxl2+(X-XR1) Kxr1+(X-XR2) Kxr2+(X-XB1) Kxb1+(X-XB1L1) Kxb1l1+(X-XB1L2) Kxb1l2+(X-XB1R1) Kxb1r1+(X-XB1R2) Kxb1r2+(X-XB2) Kxb2+(X-XB2L1) Kxb2l1+(X-XB2R1) Kxb2r1(1).

[0074] In one embodiment, determining the global laser energy compensation data for the current pixel based on the initial laser energy data of each second adjacent pixel in the second adjacent region involves first performing data calculations based on the initial laser energy data of each second adjacent pixel in the second adjacent region adjacent to the region to which the current pixel belongs, to obtain the global laser energy compensation data for the region to which the current pixel belongs, and then determining the global laser energy compensation data for each pixel in the region to which the current pixel belongs based on the global laser energy compensation data for the region to which the current pixel belongs. The data calculations for the second adjacent region can include summing the initial laser energy data, taking the maximum value, etc., and are not specifically limited here. The region to which the current pixel belongs has the same size as the adjacent second adjacent region.

[0075] In one embodiment, in determining the global laser energy compensation data of the current pixel based on the initial laser energy data of each second adjacent pixel in the second adjacent region, the process can be as follows: First, all pixels in the subtask can be divided into regions according to a preset region size to obtain multiple global compensation calculation regions. Then, for the multiple global compensation calculation regions located in the first row, the initial laser energy data of all pixels in each global compensation calculation region is summed to obtain the laser energy data sum of each global compensation calculation region located in the first row. Then, starting from the global compensation calculation regions in the second row, for each global compensation calculation region located in the same row, the laser energy data sum of the current global compensation calculation region is determined according to a preset second compensation coefficient and the current laser energy data sum of the global compensation calculation regions located in the same column as the current global compensation calculation region in the previous row. After calculating the sum of laser energy data for each global compensation calculation region in the last row, the global laser energy compensation data for the current pixel is determined based on the sum of the current laser energy data for each global compensation calculation region, a preset third compensation coefficient, the second data difference between the sum of the current laser energy data for each global compensation calculation region and the sum of the current laser energy data for the two adjacent second-adjacent regions, and a preset fourth compensation coefficient. Then, the global laser energy compensation data for the current pixel's global compensation calculation region is used as the global laser energy compensation data for each pixel within that region. It's important to note that the global compensation calculation region defined in determining the current pixel's global laser energy compensation data is not applied to the process of determining the current pixel's local laser energy compensation data.

[0076] By calculating global laser energy compensation, the superposition effect of the printing spot energy of the current pixel on part of the printing spot of the previous row of pixels can be reduced. This reduces the situation where the printing spot of the previous row of pixels is over-etched by the laser used by the printing spot of the current pixel, thus making the printed image more delicate and realistic.

[0077] The following example illustrates the specific process of determining global laser energy compensation data.

[0078] See Figure 5A and Figure 5B First, the subtask can be divided into regions based on a preset region size, resulting in, for example: Figure 5A The multiple global compensation calculation regions shown (i.e.) Figure 5A(All boxes within), then, for multiple global compensation calculation regions located in the first row, sum the initial laser energy data of all pixels within each global compensation calculation region to obtain the laser energy data and L1Q (Q=1,2,3...) for each global compensation calculation region located in the first row. Then, as... Figure 5B Referring to formula (2), starting from the second row, for each global compensation calculation region located in the same row, according to the preset second compensation coefficient kl3, and the current laser energy data and L(N-1)Q (N=2,3……) of the global compensation calculation region located in the same column as the current global compensation calculation region in the previous row, the laser energy data and LNQ of the current global compensation calculation region are determined. Then, referring to formula (3), the global laser energy compensation data Y2 of the global compensation calculation region to which the current pixel belongs is determined according to the current laser energy data and LNQ of each global compensation calculation region, the preset third compensation coefficient kl1, the second data difference between the current laser energy data and LNQ of each global compensation calculation region and the current laser energy data of the two adjacent second adjacent regions before and after, and the preset fourth compensation coefficient kl2. Then, the global laser energy compensation data Y2 of the global compensation calculation region to which the current pixel belongs is used as the global laser energy compensation data of each pixel in the global compensation calculation region to which the current pixel belongs.

[0079] LNQ=kl3 L(N-1)Q, N=2,3..., Q=1,2,3...(2); Y2=LNQ Kl1+(LNQ-L(N-1)Q) Kl2+(LNQ-L(N+1)Q) Kl2, N=2,3..., Q=1,2,3... (3).

[0080] In one embodiment, the laser energy compensation data of the current pixel is determined based on the local laser energy compensation data and the global laser energy compensation data. Specifically, the laser energy compensation data can be obtained by summing the original data of the local laser energy compensation data and the global laser energy compensation data, or by summing the product of the local laser energy compensation data and its corresponding coefficient and the product of the global laser energy compensation data and its corresponding coefficient, or by taking the maximum value of the local laser energy compensation data and the global laser energy compensation data, etc. The specific method is not limited here.

[0081] It is important to note that Figure 3The steps shown can be applied in scenarios with multiple subtasks, including a first image subtask and a first text subtask, or in scenarios with multiple subtasks, including a second image subtask and a second text subtask.

[0082] See Figure 6 , Figure 6 It shows Figure 1 The process of a sub-step embodiment of step 160, in one embodiment, step 160 may include the following steps.

[0083] Step 610: Identify the bend areas in the print job; Step 620: Determine the frequency conversion information of the bending region based on the data corresponding to the bending region in the target laser energy matrix data; Step 630: Print the bending area according to the frequency conversion information of the bending area and the corresponding data in the target laser energy matrix data.

[0084] In one embodiment, a folded region refers to a folded edge appearing in a portion of the image of the task to be printed. For example, a subtask of the task to be printed includes a portrait, in which hair is displayed as the edge of the portrait. The edge formed by the curved hair within the hair that forms the edge of the portrait is the folded region. There can be one or more folded regions; this is not specifically limited here. For ease of description, the following example uses one folded region. Embodiments with multiple folded regions can be found in the following examples, which will not be elaborated upon here.

[0085] In one embodiment, when printing an image, the laser printer requires not only the target laser energy matrix data but also printing configuration parameters, including the motor frequency parameters of the optical reflector motor used to drive the laser beam movement. Determining the frequency conversion information of the bending region based on the data corresponding to the bending region in the target laser energy matrix data involves determining the required motor frequency parameters corresponding to this data, and then reducing the frequency of these motor frequency parameters to obtain frequency conversion information indicating a reduction in the motor frequency parameters within the bending region. This frequency conversion information can instruct the motor frequency parameters to decrease by a fixed value within the bending region, or it can instruct the motor frequency parameters to gradually decrease within the bending region, etc., and is not specifically limited here.

[0086] The following example illustrates the specific process of step 630.

[0087] See Figure 7 , Figure 7The example shows the edge line ACB of a subtask. Assuming the motor frequency parameter of the optical mirror motor is F1 when printing a straight line, the frequency conversion information indicates that the motor frequency parameter of the optical mirror motor needs to be reduced from F1 to F2 when printing a curved area. Therefore, when printing line AC, the optical mirror motor moves according to the F1 frequency, and when it reaches point C, it reduces the F1 frequency to the F2 frequency, and prints line CB according to the F2 frequency.

[0088] By determining the frequency conversion information of the bending area and printing the bending area based on the frequency conversion information of the bending area and the corresponding data in the target laser energy matrix data, the optical reflector motor can move according to the lower motor frequency parameters when printing the bending area. This reduces the possibility of understeer caused by the optical reflector motor using higher motor frequency parameters to drive the laser beam when moving in the bending area, thus helping to improve the printing effect.

[0089] Below is a specific application scenario in the production of ID cards.

[0090] First, obtain the printing template of the ID card to be printed. Based on the printing template, determine the layout of the images, text, and other data / content to be printed on the ID card. Next, fill the printing template with the data / content to be filled according to the layout, resulting in the ID card printing task. Then, obtain the area layout of image or text data in the printing template, or the multiple areas contained in the printing task, along with the resolution data and other printing effect data corresponding to each area, and the coordinate information corresponding to the printing effect data in the printing template. Then, based on the printing effect data and coordinate information, segment the ID card printing task to obtain multiple ID card sub-regions. These sub-regions are the specific forms of the sub-tasks after segmentation of the ID card printing task. Next, for each ID card sub-region, determine the laser energy matrix data used for printing that sub-region. Then, concatenate the laser energy matrix data of multiple ID card sub-regions to obtain the target laser energy matrix data used for printing the ID card printing task. Finally, print the ID card according to the target laser energy matrix data.

[0091] Referring to this specific application scenario, it can be combined with the above-mentioned multiple embodiments to form multiple different specific application scenarios, which will not be elaborated here.

[0092] This application also provides a printer, which includes a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the laser printing method described above.

[0093] Please see Figure 8 , Figure 8The hardware structure of a printer 800, according to another embodiment, is illustrated. The printer includes: The processor 801 can be implemented using a general-purpose CPU (Central Processing Unit), microprocessor, application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this application. The memory 802 can be implemented as a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 802 can store the operating system and other applications. When the technical solutions provided in the embodiments of this specification are implemented through software or firmware, the relevant program code is stored in the memory 802 and is called and executed by the processor 801 using the laser printing method of the embodiments of this application. The 803 input / output interface is used to implement information input and output. The communication interface 804 is used to enable communication and interaction between this device and other devices. Communication can be achieved through wired means (such as USB, Ethernet cable, etc.) or wireless means (such as mobile network, WIFI, Bluetooth, etc.). Bus 805 transmits information between various components of the device (e.g., processor 801, memory 802, input / output interface 803, and communication interface 804); The processor 801, memory 802, input / output interface 803, and communication interface 804 are connected to each other within the device via bus 805.

[0094] This application also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the laser printing method described above.

[0095] Memory, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs and non-transitory computer-executable programs. Furthermore, memory may include high-speed random access memory, and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. In some embodiments, memory may include memory remotely located relative to the processor, and these remote memories can be connected to the processor via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.

[0096] The embodiments described in this application are for the purpose of more clearly illustrating the technical solutions of this application, and do not constitute a limitation on the technical solutions provided in this application. As those skilled in the art will know, with the evolution of technology and the emergence of new application scenarios, the technical solutions provided in this application are also applicable to similar technical problems.

[0097] Those skilled in the art will understand that the technical solutions shown in the figures do not constitute a limitation on the embodiments of this application, and may include more or fewer steps than shown, or combine certain steps, or different steps.

[0098] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.

[0099] Those skilled in the art will understand that all or some of the steps in the methods disclosed above, as well as the functional modules / units in the systems and devices, can be implemented as software, firmware, hardware, or suitable combinations thereof.

[0100] The terms “first,” “second,” “third,” “fourth,” etc. (if present) in the specification and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms “comprising” and “having,” and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0101] It should be understood that in this application, "at least one (item)" means one or more, and "more than" means two or more. "And / or" is used to describe the relationship between related objects, indicating that three relationships can exist. For example, "A and / or B" can represent three cases: only A exists, only B exists, and both A and B exist simultaneously, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one (item) of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one (item) of a, b, or c can represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, and c can be single or multiple.

[0102] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of the units described above is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.

[0103] The units described above as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0104] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0105] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes multiple instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned storage medium includes various media capable of storing programs, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0106] The preferred embodiments of the present application have been described above with reference to the accompanying drawings, but this does not limit the scope of the claims of the present application. Any modifications, equivalent substitutions, and improvements made by those skilled in the art without departing from the scope and substance of the embodiments of the present application shall be within the scope of the claims of the present application.

Claims

1. A laser printing method, characterized in that, Includes the following steps: Obtain a print template of the medium to be printed, determine the layout position of the medium to be printed based on the print template, and fill the print template with the data to be filled according to the layout position to obtain the print task; Obtain the printing effect data of the printing template and the coordinate information of the printing effect data in the printing template; wherein, the printing effect data includes multiple resolutions set for the task to be printed, and the coordinate information includes target positions corresponding to multiple resolutions; The task to be printed is segmented according to multiple target locations to obtain multiple subtasks; wherein, the multiple subtasks include multiple text subtasks and multiple image subtasks; For each of the subtasks, determine the laser energy matrix data to be used for printing the subtask; The laser energy matrix data of multiple sub-tasks are spliced ​​together to obtain the target laser energy matrix data for printing the task to be printed; Print the task to be printed in the printing medium according to the target laser energy matrix data; Specifically, determining the laser energy matrix data for printing each subtask includes: The low-frequency region image and the high-frequency region image in each of the image sub-tasks are determined, and the transition region between the low-frequency region image and the high-frequency region image is processed to obtain each optimized image sub-task; For each of the optimized image subtasks, determine the first laser energy matrix data for printing the optimized image subtask; For each of the text subtasks, determine the second laser energy matrix data for printing the text subtask.

2. The method according to claim 1, characterized in that, The step of obtaining the printing template of the medium to be printed includes: The template features of the medium to be printed are identified by performing template feature recognition. Based on the template features, the corresponding print template is obtained from a preset database.

3. The method according to claim 1, characterized in that, The step of concatenating the laser energy matrix data of multiple sub-tasks to obtain target laser energy matrix data for printing the task to be printed includes: Based on the target positions of each of the text subtasks and the target positions of the multiple image subtasks, the first laser energy matrix data and the second laser energy matrix data are concatenated to obtain the target laser energy matrix data.

4. The method according to claim 1, characterized in that, The determination of the laser energy matrix data used for printing the sub-task includes: Determine the initial laser energy data for each pixel in the subtask; For each pixel in the subtask, laser energy compensation data for each pixel in the subtask is determined based on the initial laser energy data of each pixel in the adjacent region. The laser energy matrix data of the subtask is determined based on the initial laser energy data and the laser energy compensation data of each pixel in the subtask.

5. The method according to claim 4, characterized in that, The step of determining the laser energy compensation data for each pixel in the subtask based on the initial laser energy data of each pixel in the adjacent region includes: Traverse each pixel in the subtask and determine the first and second adjacent regions of the current pixel. Acquire the initial laser energy data of each first adjacent pixel in the first adjacent region, and the initial laser energy data of each second adjacent pixel in the second adjacent region; Based on the initial laser energy data of each first adjacent pixel in the first adjacent region, determine the local laser energy compensation data of the current pixel; Based on the initial laser energy data of each second adjacent pixel in the second adjacent region, determine the global laser energy compensation data of the current pixel; The laser energy compensation data of the current pixel is determined based on the local laser energy compensation data and the global laser energy compensation data of the current pixel.

6. A printer, characterized in that, The printer includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to implement the method according to any one of claims 1 to 5.

7. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by a processor, it implements the method of any one of claims 1 to 5.

Citation Information

Patent Citations

  • Laser printing method, laser printer and storage medium

    CN119937946A

  • Laser beam printer

    KR1019990048666A