Printing precision conversion method, device, equipment and storage medium

By converting the number of ink dots in the image dot matrix data between different printing devices, the problem of long rasterization processing time caused by changes in printing precision in existing technologies is solved, thus achieving efficient image printing.

CN119676370BActive Publication Date: 2026-02-24SHENZHEN HOSONSOFT CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311215934.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-09-20
Publication Date
2026-02-24
Estimated Expiration
2043-09-20

AI Technical Summary

Technical Problem

In existing technologies, the original image after rasterization needs to be rasterized again when using printing equipment with different printing precision, resulting in low printing efficiency.

Method used

By checking whether the number of ink dots in the original printing precision and the precision to be printed are consistent, if they are consistent, the original image dot matrix data is converted into the actual printed image dot matrix data according to preset rules to adapt to printing devices with different precision.

Benefits of technology

No need to regenerate PRN files, improving printing efficiency and ensuring image printing quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119676370B_ABST
    Figure CN119676370B_ABST
Patent Text Reader

Abstract

The application discloses a printing precision conversion method, device and equipment and a storage medium, and relates to the field of inkjet printing technology. The method first determines whether conversion can be performed according to whether the original printing precision corresponding to an original image and the first ink dot number and the second ink dot number corresponding to the printing precision (to-be-printed precision) of an actual printing device are consistent. If the two are consistent, the original image dot array data corresponding to the original image is converted into actual printing image dot array data according to a preset conversion rule. The converted actual printing image dot array data is adapted to the actual printing device used for printing the image in terms of precision, thereby ensuring the image printing quality. Since a PRN file does not need to be regenerated according to the printing precision of the actual printing device, the processing time of the image data can be greatly saved, and the printing efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of inkjet printing technology, and in particular to a printing precision conversion method, device, equipment and storage medium. BACKGROUND

[0002] Printing an image in electronic file format (hereinafter referred to as electronic image) on a piece of paper requires color processing, rasterization processing, data processing and inkjet processing. Color processing is used to adjust the color of the electronic image to meet the color characteristics of the inkjet printing device, so that the image output by the inkjet printing device is not deviated in color from the electronic image. Rasterization processing is to adjust the electronic image into a data format that can be recognized by the inkjet printing device. Data processing is to split and store the data format according to the printing requirements and send it to the corresponding nozzle. Inkjet processing is to discharge ink and move according to the data sent to the nozzle. When rasterization processing is performed, the image will be processed into a specific format file data such as PRN file data with a fixed precision according to the output precision of the printing device and the precision required by the customer. Since this process involves complex and large algorithms, it requires a long processing time. In actual printing process, multiple printing devices with different precision are often used to print the same image, or the original printing device processing the image is damaged, resulting in the need to replace a new printing device. At this time, multiple PRN file data need to be made according to different printing devices with different precision, or a new PRN file data needs to be generated because a new printing device is replaced. This process will take a lot of time and greatly affect the printing efficiency. SUMMARY

[0003] Therefore, the embodiments of the present application provide a printing precision conversion method, device, equipment and storage medium to solve the problem of low printing efficiency caused by the need for rasterization processing when the original image processed by rasterization processing is printed by other printing devices with different printing precision.

[0004] In a first aspect, the embodiments of the present application provide a printing precision conversion method, which comprises:

[0005] obtaining an original printing precision corresponding to an original image and original image dot array data;

[0006] obtaining a first ink dot number according to the original printing precision;

[0007] obtaining a to-be-printed precision and a second ink dot number corresponding to the to-be-printed precision;

[0008] when the first ink dot number and the second ink dot number are the same, converting the original image dot array data into actual printing image dot array data according to a preset rule, wherein the precision of the actual printing image dot array data is the to-be-printed precision.

[0009] Preferably, obtaining the first ink dot count based on the original printing precision includes:

[0010] The horizontal and vertical printing precisions of the original printing precision are obtained and denoted as the first horizontal printing precision and the first vertical printing precision, respectively.

[0011] The first ink dot count is obtained by multiplying the first horizontal printing accuracy and the first vertical printing accuracy.

[0012] Preferably, obtaining the printing precision and the number of second ink dots corresponding to the printing precision includes:

[0013] The printing precision is determined based on the printing precision of the actual printing equipment used to print the original image;

[0014] The horizontal and vertical printing precision to be printed are obtained and denoted as the second horizontal printing precision and the second vertical printing precision, respectively.

[0015] The second ink dot count is obtained by multiplying the second horizontal printing accuracy and the second vertical printing accuracy.

[0016] Preferably, the preset conversion rule is:

[0017] The original image dot matrix data is divided into several first unit matrices;

[0018] The second unit matrix is ​​determined based on the first unit matrix and the printing precision, wherein the row and column values ​​of the first unit matrix and the second unit matrix are different, but the number of data is the same;

[0019] All the data in the first unit matrix are rearranged according to the row and column values ​​in the second unit matrix and a preset arrangement rule to obtain the actual printed image dot matrix data.

[0020] Preferably, when the printing mode is single-pass scanning, dividing the original image dot matrix data into several first unit matrices includes:

[0021] Obtain the greatest common divisor of the original printing precision and the precision to be printed;

[0022] The smallest data matrix unit of the original image dot matrix data is determined based on the greatest common divisor.

[0023] The original image dot matrix data is divided into several first unit matrices according to the smallest data matrix unit.

[0024] Preferably, when the printing mode is multi-pass scanning, dividing the original image dot matrix data into several first unit matrices includes:

[0025] Obtain the number of scans required to complete printing of a unit area of ​​the image;

[0026] Based on the number of scans and the original printing precision, obtain the first single scan precision corresponding to the original printing precision and the second single scan precision corresponding to the printing precision;

[0027] Obtain the greatest common divisor of the first single scan accuracy and the second single scan accuracy;

[0028] The minimum data matrix unit of the original image dot matrix data is determined based on the number of scans and the greatest common divisor.

[0029] The original image dot matrix data is divided into several first unit matrices according to the smallest data unit.

[0030] Preferably, after rearranging all the data in the first unit matrix according to the row and column values ​​in the second unit matrix according to a preset arrangement rule to obtain the actual printed image dot matrix data, the method further includes:

[0031] Establish a positional mapping relationship between the point data in the original image dot matrix data and the corresponding point data in the actual printed image dot matrix data.

[0032] Secondly, embodiments of the present invention provide a printing precision conversion device, the device comprising:

[0033] The dot matrix data acquisition module is used to acquire the original printing precision and original image dot matrix data corresponding to the original image;

[0034] The first ink dot data acquisition module is used to acquire the number of first ink dots based on the original printing precision.

[0035] The second ink dot data acquisition module is used to acquire the printing precision to be printed and the number of second ink dots corresponding to the printing precision;

[0036] The conversion module is used to convert the original image dot matrix data into actual printed image dot matrix data according to a preset rule when the number of the first ink dots and the number of the second ink dots are the same, wherein the precision of the actual printed image dot matrix data is the precision to be printed.

[0037] Thirdly, embodiments of the present invention provide a printing precision conversion device, comprising: at least one processor, at least one memory, and computer program instructions stored in the memory, wherein when the computer program instructions are executed by the processor, the method of the first aspect described above is implemented.

[0038] Fourthly, embodiments of the present invention provide a storage medium storing computer program instructions, which, when executed by a processor, implement the method of the first aspect described above.

[0039] In summary, the beneficial effects of the present invention are as follows:

[0040] The printing precision conversion method, apparatus, device, and storage medium provided in this invention first determine whether conversion is possible by checking if the original printing precision corresponding to the original image and the printing precision of the actual printing device (the precision to be printed) correspond to the first and second ink dot counts. If they are consistent, the original image dot matrix data corresponding to the original image is converted into actual printed image dot matrix data according to a preset conversion rule. The converted actual printed image dot matrix data is adapted to the precision of the actual printing device used to print the image, thereby ensuring image printing quality. Since it is not necessary to regenerate the PRN file according to the printing precision of the actual printing device, image data processing time can be greatly saved, and printing efficiency can be improved. Attached Figure Description

[0041] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the embodiments of the present invention will be briefly introduced below. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort, and these are all within the protection scope of the present invention.

[0042] Figure 1 This is a flowchart illustrating the printing precision conversion method according to an embodiment of the present invention.

[0043] Figure 2 This is a schematic diagram of the first unit matrix in an embodiment of the present invention.

[0044] Figure 3 This is a schematic diagram of the second unit matrix in an embodiment of the present invention.

[0045] Figure 4 This is a schematic diagram of the first unit matrix in an embodiment of the present invention.

[0046] Figure 5 This is a schematic diagram of the second unit matrix in an embodiment of the present invention.

[0047] Figure 6 This is a schematic diagram of converting a first unit matrix into a second unit matrix according to an embodiment of the present invention.

[0048] Figure 7 This is a schematic diagram of converting a first unit matrix into a second unit matrix according to an embodiment of the present invention.

[0049] Figure 8This is a schematic diagram of converting a first unit matrix into a second unit matrix according to an embodiment of the present invention.

[0050] Figure 9 This is a schematic diagram of converting a first unit matrix into a second unit matrix according to an embodiment of the present invention.

[0051] Figure 10 This is a schematic diagram of converting a first unit matrix into a second unit matrix according to an embodiment of the present invention.

[0052] Figure 11 This is a schematic diagram of the printing precision conversion device according to an embodiment of the present invention.

[0053] Figure 12 This is a schematic diagram of the printing accuracy conversion device according to an embodiment of the present invention. Detailed Implementation

[0054] The features and exemplary embodiments of various aspects of the present invention will now be described in detail. To make the objectives, technical solutions, and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only configured to explain the present invention and are not configured to limit the present invention. For those skilled in the art, the present invention can be practiced without some of these specific details. The following description of the embodiments is merely intended to provide a better understanding of the present invention by illustrating examples of the invention.

[0055] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising..." does not exclude the presence of additional identical elements in the process, method, article, or apparatus that includes said element.

[0056] Example 1

[0057] This invention provides a printing resolution conversion method applicable to inkjet printing devices such as single-pass printing devices, multi-pass reciprocating scanning printing devices, and cylindrical surface printing devices. It is particularly suitable for the following application scenarios: multiple printing devices with different resolutions are used to print the same image (hereinafter referred to as the original image), or the original printing device is damaged and needs to be replaced with a new one. Before printing the original image, rasterization processing was performed on the original image to obtain the corresponding image dot matrix data. However, this image dot matrix data was rasterized according to the original printing resolution, and its resolution may not be suitable for other printing devices with different resolutions or for the new printing device. For example, if the original printing resolution corresponding to the original image is 360×1200 dpi, while the printing resolution of other or new printing devices is 240×1800 dpi, in the prior art, in order to enable other or new printing devices to print the original image, it is often necessary to re-rasterize the original image according to the printing resolution of 240×1800 dpi to obtain a new PRN file, and then print according to the PRN file. However, the process of rasterizing an image to obtain a new PRN file takes a considerable amount of time, resulting in a decrease in printing efficiency. To address this, this invention provides a printing precision conversion method that enables the printing of original images using printing devices with different precisions without requiring re-rasterization. Specifically, the precision of the rasterized PRN file of the original image is directly converted during data processing, allowing printing devices of varying precisions to print the original image.

[0058] Please see Figure 1 The printing precision conversion method specifically includes the following steps:

[0059] S1: Obtain the original printing precision and original image dot matrix data corresponding to the original image;

[0060] S2: Obtain the first ink dot count based on the original printing accuracy;

[0061] S3: Obtain the printing precision to be printed and the number of second ink dots corresponding to the printing precision;

[0062] S4: When the number of the first ink dots and the number of the second ink dots are the same, the original image dot matrix data is converted into actual printed image dot matrix data according to a preset rule, wherein the precision of the actual printed image dot matrix data is the precision to be printed.

[0063] Specifically, after rasterizing the original image, a corresponding PRN file is obtained. This PRN file reveals the original printing precision and the original image dot matrix data. The data in the PRN file is the image dot matrix data corresponding to the original image. This dot matrix data consists of dot data, each representing the ink output of a dot. Taking 2-bit rasterization as an example, the image dot matrix data includes four types of dot data: dot data 00, dot data 01, dot data 10, and dot data 11. Dot data 00 indicates a blank dot, dot data 01 indicates a small ink output (e.g., 25%), dot data 10 indicates a medium ink output (e.g., 50%), and dot data 11 indicates a large ink output (e.g., 100%).

[0064] After rasterizing the original image, the number of ink dots per square inch that needs to be printed can be obtained based on the original printing precision corresponding to the original PRN file, denoted as the first ink dot count. Similarly, the printing precision of other printing devices is obtained, denoted as the printing precision to be printed. The number of ink dots per square inch that needs to be printed at that precision is calculated, which is the second ink dot count. To ensure the printing quality of the image after the original image precision is converted, in this embodiment, the conversion is only performed when the printing precision to be printed is compatible with the original printing precision. Here, compatibility means that the number of ink dots printed per square inch is the same or consistent, that is, the first ink dot count and the second ink dot count are the same. This ensures that the number of ink dots printed by printing devices with different printing precisions is consistent with the original image. If the two are the same, then the original image dot matrix data is converted to obtain the actual printed image dot matrix data based on the precision of the image to be printed, and then the image is printed based on the actual printed image dot matrix data.

[0065] Preferably, obtaining the first ink dot count based on the original printing precision includes:

[0066] The horizontal and vertical printing precisions of the original printing precision are obtained and denoted as the first horizontal printing precision and the first vertical printing precision, respectively.

[0067] The first ink dot count is obtained by multiplying the first horizontal printing accuracy and the first vertical printing accuracy.

[0068] Specifically, the original printing precision includes horizontal printing precision and vertical printing precision. In practical applications, horizontal refers to the printing direction or main scanning direction of the printing device, and vertical refers to the stepping direction or sub-scanning direction perpendicular to the printing direction. The original printing precision includes horizontal printing precision and vertical printing precision, denoted as the first horizontal printing precision and the first vertical printing precision, respectively. The first ink dot count is obtained by multiplying the first horizontal printing precision and the first vertical printing precision. For example, if the original image is rasterized and its corresponding original printing precision is 360×1200dpi, it means that 360 ink dots need to be ejected per inch in the horizontal direction (or main scanning direction), and 1200 ink dots need to be ejected per inch in the vertical direction (sub-scanning direction), totaling 360×1200=432000 ink dots (dot data) per square inch, i.e., the first ink dot count is 432000.

[0069] Preferably, obtaining the printing precision and the number of second ink dots corresponding to the printing precision includes:

[0070] The printing precision is determined based on the printing precision of the actual printing equipment used to print the original image;

[0071] The horizontal and vertical printing precision to be printed are obtained and denoted as the second horizontal printing precision and the second vertical printing precision, respectively.

[0072] The second ink dot count is obtained by multiplying the second horizontal printing accuracy and the second vertical printing accuracy.

[0073] Similarly, if the printing resolution (i.e. the resolution to be printed) of other printing devices is 240×1800dpi, it means that 240 ink dots need to be ejected per inch in the horizontal direction (or the main scanning direction), and 1800 ink dots need to be ejected per inch in the vertical direction (the secondary scanning direction). This is also 240×1800=432000 ink dots per square inch, that is, the number of ink dots in the second ink dot is also 432000, the same as the number of ink dots in the first ink dot.

[0074] When the number of the first ink dots and the number of the second ink dots are the same, the original image dot matrix data is converted into actual printed image dot matrix data according to a preset conversion rule, wherein the precision of the actual printed image dot matrix data is the precision to be printed, and the preset conversion rule is as follows:

[0075] The original image dot matrix data is divided into several first unit matrices;

[0076] The second unit matrix is ​​determined based on the first unit matrix and the printing precision, wherein the row and column values ​​of the first unit matrix and the second unit matrix are different, but the number of data is the same;

[0077] All the data in the first unit matrix are rearranged according to the row and column values ​​in the second unit matrix and a preset arrangement rule to obtain the actual printed image dot matrix data.

[0078] Specifically, the original image dot matrix data is decomposed into multiple first unit matrices. Each first unit matrix includes several rows and several columns of data, and the values ​​of the rows and columns are determined according to different situations.

[0079] In one embodiment, when the printing mode is a single-pass scan mode, dividing the original image dot matrix data into several first unit matrices includes:

[0080] Obtain the greatest common divisor of the original printing precision and the precision to be printed;

[0081] The smallest data matrix unit of the original image dot matrix data is determined based on the greatest common divisor.

[0082] The original image dot matrix data is divided into several first unit matrices according to the smallest data matrix unit.

[0083] Specifically, the greatest common divisor (GCD) here refers to the product of the greatest common divisor between the first horizontal printing precision and the second horizontal printing precision, and the greatest common divisor between the first vertical printing precision and the second vertical printing precision. For example, if the original printing precision is 360×1200 dpi and the desired printing precision is 240×1800 dpi, the original printing precision 360×1200 can be decomposed into 3×120×2×600, and the desired printing precision 240×1800 can be decomposed into 2×120×3×600. The GCD between the horizontal printing precisions is 120, and the GCD between the vertical printing precisions is 600, i.e., the GCD is 120×600. Dividing the original printing precision by the corresponding GCD yields (360×1200) / (120×600) = 3×2. It can be seen that the smallest data matrix unit of the original image dot matrix data is a data matrix with 3 columns horizontally and 2 rows vertically (3 columns, 2 rows), denoted as the first unit matrix, such as... Figure 2 The diagram illustrates one possible first-unit matrix (the numbers in the diagram only represent data labels, not the data itself). Dividing the original image dot matrix data according to the first-unit matrix yields 120×600 first-unit matrices. The smallest data matrix unit corresponding to the actual printed image data at the desired printing precision is (240×1800) / (120×600) = 2×3, meaning the second-unit matrix is ​​a matrix with 3 rows and 2 columns. Figure 3 The diagram shows a schematic of the second unit matrix (the numbers in the diagram only represent the data labels and do not represent the data itself).

[0084] In one embodiment, when the printing mode is multi-pass scanning, dividing the original image dot matrix data into several first unit matrices includes:

[0085] Obtain the number of scans required to complete printing of a unit area of ​​the image;

[0086] Based on the number of scans and the original printing precision, obtain the first single scan precision corresponding to the original printing precision and the second single scan precision corresponding to the printing precision;

[0087] Obtain the greatest common divisor of the first single scan accuracy and the second single scan accuracy;

[0088] The minimum data matrix unit of the original image dot matrix data is determined based on the number of scans and the greatest common divisor.

[0089] The original image dot matrix data is divided into several first unit matrices according to the smallest data unit.

[0090] For example, if the original image bitmap data is 720×1200, it needs to be printed in 2PASS mode, that is, the printing resolution of each PASS (i.e., the first single scan resolution) is 360×1200; similarly, if the printing resolution is 480×1800dpi, it also needs to be printed in 2PASS mode, that is, the printing resolution of each PASS (i.e., the second single scan resolution) is 240×1800. Calculations show that the number of first and second ink dots corresponding to the two are the same, so they can be converted. Similarly, the greatest common divisor (GCD) of the first and second single-scan precisions is obtained, which is 120×600. Dividing the first single-scan precision by the corresponding GCD yields (360×1200) / (120×600) = 3×2. Therefore, the smallest unit of the original image dot matrix data is a data matrix with 3 columns horizontally and 2 rows vertically (3 columns, 2 rows). Since 2-pass printing is required horizontally, the smallest data matrix unit of the original image dot matrix data is two 2×3 data matrices horizontally combined to obtain a 2×6 (2 rows, 3 columns) data matrix, denoted as the first unit matrix. Figure 4The diagram shows the first unit matrix (the numbers in the diagram only represent data labels, not the data itself). Dividing the original image dot matrix data according to the first unit matrix yields 120×600 first unit matrices. The smallest unit of the actual printed image data corresponding to the desired printing precision is ((240×1800) / (120×600))×2=2×3, i.e., a matrix with 3 rows and 2 columns. Similarly, the actual printed image dot matrix data corresponding to the desired printing precision needs to be printed horizontally using a 2-pass process. The second unit matrix is ​​obtained by horizontally merging two 3×2 data matrices to form a 3×4 data matrix (3 rows and 4 columns). Figure 5 The diagram shows a schematic of the second unit matrix (the numbers in the diagram only represent the data labels and do not represent the data itself).

[0091] After the first unit matrix is ​​determined, the second unit matrix is ​​also determined accordingly, based on the above example and... Figures 2 to 5 It can be seen that the row and column values ​​of the first unit matrix and the second unit matrix are different, but the total number of data is the same. Rearranging the data in the first unit matrix according to the row and column values ​​of the second unit matrix and the preset arrangement rules actually obtains the smallest image unit in the actual image dot matrix data after the original image dot matrix data has been converted. Rearranging all the data in the first unit matrix according to the same preset arrangement rules in the second unit matrix, all the second unit matrices together form the actual printed image dot matrix data after precision conversion.

[0092] There are several preset arrangement rules here. For example, converting 360×1200 dpi to 240×1800 dpi, as described above, the first unit matrix corresponding to the original image dot matrix data with a precision of 360×1200 is a 2×3 data matrix, and the second unit matrix corresponding to the actual printed image dot matrix data with a precision of 240×1800 is a 3×2 data matrix. For example... Figure 6 As shown, the preset arrangement rule during conversion is: place the data in the i-th column and j-th row of the first unit matrix into the j-th row and i-th column of the second unit matrix. As shown in Figure x, place the data in the 1st and 2nd rows of the 1st column of the first unit matrix into the 1st and 2nd columns of the 1st row of the second unit matrix; place the data in the 1st and 2nd rows of the 2nd column of the first unit matrix into the 1st and 2nd columns of the 1st row, and so on. For example, as... Figure 7 As shown, by placing the data from the first row and first column of the first unit matrix into the first row and second column of the second unit matrix, and so on, it can be found that there are 50 possible permutations and combinations when transforming a 2×3 first unit matrix into a 3×2 second unit matrix. Figure 8The image also shows some of the arrangement methods.

[0093] Similarly, for multi-pass printing, for example, converting 720×1200dpi to 480×1800dpi, as described above, the first unit matrix corresponding to the original image dot matrix data with a precision of 720×1200 is a 2×6 data matrix, and the second unit matrix corresponding to the actual printed image dot matrix data with a precision of 480×1800 is a 3×4 data matrix. For example... Figure 9 As shown, the preset arrangement rule is as follows: Place the data from the first row and first column of the first unit matrix into the first row and first column of the second unit matrix; place the data from the first row and second column of the first unit matrix into the first row and second column of the second unit matrix; place the data from the first row and third column of the first unit matrix into the second row and first column of the second unit matrix; place the data from the first row and fourth column of the first unit matrix into the second row and second column of the second unit matrix; place the data from the first row and fifth column of the first unit matrix into the third row and first column of the second unit matrix; place the data from the first row and sixth column of the first unit matrix into the third row and second column of the second unit matrix; place the data from the second row and first column of the first unit matrix into the first row and third column of the second unit matrix; place the data from the second row and second column of the first unit matrix into the first row and fourth column of the second unit matrix... and so on. Figure 10 As shown, another different preset arrangement rule is also illustrated.

[0094] In one embodiment, after converting the original image dot matrix data using multiple different preset arrangement rules to obtain the actual printed image dot matrix data, a printing test is performed based on the actual printed image dot matrix data to obtain the preset arrangement rule with the best printing effect. In subsequent precision conversion, the best preset arrangement rule is used to convert the first unit matrix and the second unit matrix, thereby ensuring the best image printing quality after precision conversion.

[0095] In one embodiment, after converting the original image dot matrix data using a preset arrangement rule to obtain the actual printed image dot matrix data, a positional mapping relationship is established between the dot data in the original image dot matrix data and the corresponding dot data in the actual printed image dot matrix data. Subsequently, the position of the dot data in the PRN file of the original printed image can be directly converted according to this positional mapping relationship, thereby realizing the conversion between the original printing precision and the precision to be printed, or the conversion between the original image dot matrix data and the actual printed image dot matrix data. In one embodiment, a positional conversion table for the dot data in the original image dot matrix data and the actual printed image data can also be established. Conversion is performed according to this positional conversion table. It is worth noting that since each dot data (i.e., one pixel) in the dot matrix image is 2 bits, while general data is stored in one byte (8 bits), a positional conversion table can be established with four dot data (four pixels) as a unit. When performing precision conversion, the lookup is performed according to the positional conversion table in units of four pixels, which reduces the lookup time compared to looking up pixel by pixel.

[0096] In summary, the printing precision conversion method provided in this embodiment of the invention first determines whether conversion can be performed by checking whether the original printing precision corresponding to the original image and the printing precision of the actual printing device (the precision to be printed) correspond to the first and second ink dot counts. If they are consistent, the original image dot matrix data corresponding to the original image is converted into actual printed image dot matrix data according to a preset conversion rule. The converted actual printed image dot matrix data is adapted to the precision of the actual printing device used to print the image, thereby ensuring image printing quality. Since it is not necessary to regenerate the PRN file according to the printing precision of the actual printing device, image data processing time can be greatly saved, and printing efficiency can be improved.

[0097] Example 2

[0098] Please see Figure 11 This invention provides a printing precision conversion device 200, the device 200 comprising:

[0099] The dot matrix data acquisition module 201 is used to acquire the original printing precision and the original image dot matrix data corresponding to the original image.

[0100] The first ink dot data acquisition module 202 is used to acquire the first ink dot number based on the original printing precision.

[0101] The second ink dot data acquisition module 203 is used to acquire the printing precision to be printed and the number of second ink dots corresponding to the printing precision;

[0102] The conversion module 204 is used to convert the original image dot matrix data into actual printed image dot matrix data according to a preset rule when the number of the first ink dots and the number of the second ink dots are the same, wherein the precision of the actual printed image dot matrix data is the precision to be printed.

[0103] Preferably, the first ink dot count acquisition module 202 includes:

[0104] The first precision acquisition unit is used to acquire the horizontal printing precision and the vertical printing precision of the original printing precision, which are respectively denoted as the first horizontal printing precision and the first vertical printing precision.

[0105] The first ink dot count acquisition unit is used to acquire the first ink dot count based on the product of the first horizontal printing precision and the first vertical printing precision.

[0106] The printing precision acquisition unit is used to determine the printing precision based on the printing precision of the actual printing device used to print the original image.

[0107] The second precision acquisition unit is used to acquire the horizontal printing precision and the vertical printing precision of the precision to be printed, which are respectively denoted as the second horizontal printing precision and the second vertical printing precision;

[0108] The second ink dot count acquisition unit is used to acquire the second ink dot count based on the product of the second horizontal printing accuracy and the second vertical printing accuracy.

[0109] Preferably, the conversion module 203 includes:

[0110] The first unit matrix acquisition unit is used to divide the original image dot matrix data into several first unit matrices;

[0111] The second unit matrix acquisition unit is used to determine the second unit matrix based on the first unit matrix and the printing precision, wherein the row and column values ​​of the first unit matrix and the second unit matrix are different but the number of data is the same;

[0112] The arrangement unit is used to rearrange all the data in the first unit matrix according to the row and column values ​​in the second unit matrix and a preset arrangement rule to obtain the actual printed image dot matrix data.

[0113] Preferably, the device 200 further includes:

[0114] The mapping relationship establishment module is used to establish the positional mapping relationship between the point data in the original image dot matrix data and the corresponding point data in the actual printed image dot matrix data.

[0115] In summary, the printing precision conversion device provided in this embodiment of the invention first determines whether conversion can be performed by checking whether the number of first and second ink dots corresponding to the original printing precision of the original image and the printing precision of the actual printing device (the precision to be printed) are consistent. If they are consistent, the original image dot matrix data corresponding to the original image is converted into actual printed image dot matrix data according to a preset conversion rule. The converted actual printed image dot matrix data is adapted to the precision of the actual printing device used to print the image, thereby ensuring image printing quality. Since it is not necessary to regenerate the PRN file according to the printing precision of the actual printing device, image data processing time can be greatly saved, and printing efficiency can be improved.

[0116] Example 3

[0117] In addition, the printing precision conversion method of this invention can be implemented by a printing precision conversion device. Figure 12 A schematic diagram of the hardware structure of the printing precision conversion device provided in an embodiment of the present invention is shown.

[0118] The print resolution conversion device may include a processor 301 and a memory 302 storing computer program instructions.

[0119] Specifically, the processor 301 may include a central processing unit (CPU), an application specific integrated circuit (ASIC), or one or more integrated circuits that can be configured to implement the embodiments of the present invention.

[0120] Memory 302 may include mass storage for data or instructions. For example, and not limitingly, memory 302 may include a hard disk drive (HDD), floppy disk drive, flash memory, optical disk, magneto-optical disk, magnetic tape, or Universal Serial Bus (USB) drive, or a combination of two or more of these. Where appropriate, memory 302 may include removable or non-removable (or fixed) media. Where appropriate, memory 302 may be internal or external to a data processing device. In a particular embodiment, memory 302 is a non-volatile solid-state memory. In a particular embodiment, memory 302 includes read-only memory (ROM). Where appropriate, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (EEPROM), an electrically rewritable ROM (EAROM), or flash memory, or a combination of two or more of these.

[0121] The processor 301 reads and executes computer program instructions stored in the memory 302 to implement any of the printing precision conversion methods in the above embodiments.

[0122] In one example, the print precision conversion device may also include a communication interface 303 and a bus 310. For example, Figure 12 As shown, the processor 301, memory 302, and communication interface 303 are connected through bus 310 and complete communication with each other.

[0123] The communication interface 303 is mainly used to realize communication between various modules, devices, units and / or equipment in the embodiments of the present invention.

[0124] Bus 310 includes hardware, software, or both, that couples components of a print precision conversion device together. For example, and not limitingly, bus 310 may include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), HyperTransport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an Infinite Bandwidth Interconnect, a Low Pin Count (LPC) bus, a memory bus, a Microchannel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local (VLB) bus, or other suitable buses, or combinations of two or more of these. Where appropriate, bus 310 may include one or more buses. While specific buses are described and illustrated in embodiments of the invention, the invention contemplates any suitable bus or interconnect.

[0125] Example 4

[0126] Furthermore, in conjunction with the printing precision conversion methods in the above embodiments, this invention can be implemented using a computer-readable storage medium. This computer-readable storage medium stores computer program instructions; when these computer program instructions are executed by the processor 301, they implement any of the printing precision conversion methods in the above embodiments.

[0127] In summary, the printing precision conversion method, apparatus, device, and storage medium provided in this embodiment of the invention first determine whether conversion can be performed by checking whether the number of first and second ink dots corresponding to the original printing precision of the original image and the printing precision of the actual printing device (the precision to be printed) are consistent. If they are consistent, the original image dot matrix data corresponding to the original image is converted into actual printed image dot matrix data according to a preset conversion rule. The converted actual printed image dot matrix data is adapted to the precision of the actual printing device used to print the image, thereby ensuring image printing quality. Since it is not necessary to regenerate the PRN file according to the printing precision of the actual printing device, image data processing time can be greatly saved, and printing efficiency can be improved.

[0128] It should be clarified that the present invention is not limited to the specific configurations and processes described above and shown in the figures. For the sake of brevity, detailed descriptions of known methods are omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present invention is not limited to the specific steps described and shown. Those skilled in the art can make various changes, modifications, and additions, or change the order of steps, after understanding the spirit of the present invention.

[0129] The functional blocks shown in the above-described structural diagram can be implemented as hardware, software, firmware, or a combination thereof. When implemented in hardware, they can be, for example, electronic circuits, application-specific integrated circuits (ASICs), appropriate firmware, plug-ins, function cards, etc. When implemented in software, the elements of this invention are programs or code segments used to perform the required tasks. The programs or code segments can be stored on a machine-readable medium or transmitted over a transmission medium or communication link via data signals carried in a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, fiber optic media, radio frequency (RF) links, etc. Code segments can be downloaded via computer networks such as the Internet, intranets, etc.

[0130] It should also be noted that the exemplary embodiments mentioned in this invention describe methods or systems based on a series of steps or apparatus. However, this invention is not limited to the order of the steps described above; that is, the steps can be performed in the order mentioned in the embodiments, or in a different order, or several steps can be performed simultaneously.

[0131] The above description is merely a specific embodiment of the present invention. Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, modules, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here. It should be understood that the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in the present invention, and these modifications or substitutions should all be covered within the protection scope of the present invention.

Claims

1. A method for converting printing precision, characterized in that, The method includes: Obtain the original printing precision and original image dot matrix data corresponding to the original image; Obtaining the first ink dot count based on the original printing precision includes: obtaining the horizontal printing precision and the vertical printing precision of the original printing precision, which are respectively denoted as the first horizontal printing precision and the first vertical printing precision; obtaining the first ink dot count based on the product of the first horizontal printing precision and the first vertical printing precision. Obtaining the printing precision to be printed and the corresponding number of ink dots includes: determining the printing precision to be printed based on the printing precision of the actual printing device used to print the original image; obtaining the horizontal printing precision and the vertical printing precision of the printing precision to be printed, respectively denoted as the second horizontal printing precision and the second vertical printing precision; and obtaining the second number of ink dots based on the product of the second horizontal printing precision and the second vertical printing precision. When the number of the first ink dots and the number of the second ink dots are the same, the original image dot matrix data is converted into actual printed image dot matrix data according to a preset rule, wherein the precision of the actual printed image dot matrix data is the precision to be printed; The preset rule is as follows: the original image dot matrix data is divided into several first unit matrices; a second unit matrix is ​​determined according to the first unit matrix and the printing precision, wherein the row and column values ​​of the first unit matrix and the second unit matrix are different but the number of data is the same; all the data in the first unit matrix are rearranged according to the row and column values ​​in the second unit matrix and the preset arrangement rule to obtain the actual printed image dot matrix data.

2. The printing precision conversion method according to claim 1, characterized in that, When the printing mode is single-pass scanning, dividing the original image dot matrix data into several first unit matrices includes: Obtain the greatest common divisor of the original printing precision and the precision to be printed; The smallest data matrix unit of the original image dot matrix data is determined based on the greatest common divisor. The original image dot matrix data is divided into several first unit matrices according to the smallest data matrix unit.

3. The printing precision conversion method according to claim 1, characterized in that, When the printing mode is multi-pass scanning, dividing the original image dot matrix data into several first unit matrices includes: Obtain the number of scans required to complete printing of a unit area of ​​the image; Based on the number of scans and the original printing precision, obtain the first single scan precision corresponding to the original printing precision and the second single scan precision corresponding to the printing precision; Obtain the greatest common divisor of the first single scan accuracy and the second single scan accuracy; The minimum data matrix unit of the original image dot matrix data is determined based on the number of scans and the greatest common divisor. The original image dot matrix data is divided into several first unit matrices according to the smallest data matrix unit.

4. The printing precision conversion method according to claim 1, characterized in that, After rearranging all the data in the first unit matrix according to the row and column values ​​of the second unit matrix and a preset arrangement rule to obtain the actual printed image dot matrix data, the method further includes: Establish a positional mapping relationship between the point data in the original image dot matrix data and the corresponding point data in the actual printed image dot matrix data.

5. A printing precision conversion device, characterized in that, The device includes: The dot matrix data acquisition module is used to acquire the original printing precision and original image dot matrix data corresponding to the original image; The first ink dot data acquisition module is used to acquire the first ink dot count based on the original printing precision; wherein, the first ink dot data acquisition module includes: a first precision acquisition unit, used to acquire the horizontal printing precision and the vertical printing precision of the original printing precision, respectively denoted as the first horizontal printing precision and the first vertical printing precision; and a first ink dot count acquisition unit, used to acquire the first ink dot count based on the product of the first horizontal printing precision and the first vertical printing precision. The second ink dot data acquisition module is used to acquire the printing precision to be printed and the number of second ink dots corresponding to the printing precision to be printed; wherein, the second ink dot data acquisition module includes: a printing precision acquisition unit, used to determine the printing precision to be printed according to the printing precision of the actual printing device used to print the original image; a second precision acquisition unit, used to acquire the horizontal printing precision and the vertical printing precision of the printing precision to be printed, respectively denoted as the second horizontal printing precision and the second vertical printing precision; and a second ink dot count acquisition unit, used to acquire the second ink dot count according to the product of the second horizontal printing precision and the second vertical printing precision; A conversion module is used to convert the original image dot matrix data into actual printed image dot matrix data according to a preset rule when the number of the first ink dots and the number of the second ink dots are the same. The precision of the actual printed image dot matrix data is the precision to be printed. The preset rule is as follows: the original image dot matrix data is divided into several first unit matrices; a second unit matrix is ​​determined according to the first unit matrix and the precision to be printed, wherein the row and column values ​​of the first unit matrix and the second unit matrix are different but the number of data is the same; all the data in the first unit matrix are rearranged according to the row and column values ​​in the second unit matrix and the preset arrangement rule to obtain the actual printed image dot matrix data.

6. A printing precision conversion device, characterized in that, include: At least one processor, at least one memory, and computer program instructions stored in the memory, which, when executed by the processor, implement the method as described in any one of claims 1-4.

7. A storage medium storing computer program instructions thereon, characterized in that, The method as described in any one of claims 1-4 is implemented when the computer program instructions are executed by the processor.

Citation Information

Patent Citations

  • Printing data processing method, device and facility and storage medium

    CN111267489A

  • Printing data processing method and device, equipment and storage medium

    CN114179505A