Printing precision conversion method and device, equipment and storage medium
By calculating the number of ink dots of the printing equipment and converting data, the problem of re-rastering images under printing equipment with different precisions is solved, which improves printing efficiency and ensures consistency of image quality.
Patent Information
- Application Number
- CN202311215934.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-20
- Publication Date
- 2025-03-21
- Estimated Expiration
- 2043-09-20
AI Technical Summary
In the prior art, when the original image after rasterization is printed using printing equipment with different precisions, it is necessary to perform rasterization processing again, resulting in low printing efficiency.
By obtaining the original printing accuracy and dot matrix data corresponding to the original image, calculate the first ink dot number and the second ink dot number corresponding to the accuracy to be printed. When both are the same, the original image dot matrix data is converted according to the preset rules to generate the actual printed image dot matrix data adapted to the accuracy to be printed.
No need to regenerate PRN files, significantly saving image data processing time, improving printing efficiency, and ensuring consistent image print quality on devices with different precision.
Smart Images

Figure CN119676370A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of inkjet printing technology, and in particular to a printing precision conversion method, device, equipment and storage medium. Background Art
[0002] Printing an image in an electronic file format (hereinafter referred to as the 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 so that it meets the color characteristics of the inkjet printing device so that the image output by the inkjet printing device has no color deviation 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 printing requirements and send it to the corresponding nozzles. Inkjet processing is to discharge ink and move it according to the data sent to the nozzles. During the rasterization process, the image will be processed into a specific format file data with a fixed precision, such as PRN file data, according to the output precision of the printing device and the precision required by the customer. Since this process involves a large number of complex algorithms, it takes a long time to process. In the actual printing process, multiple printing devices with different precisions are often used to print the same image, or the original printing device that processes the image is damaged and needs to be replaced with a new printing device. At this time, it is necessary to produce multiple PRN file data according to the printing devices with different precisions or regenerate a new PRN file data because of the replacement of the new printing device. This process will take a lot of time and greatly affect the printing efficiency. Summary of the invention
[0003] In view of this, an embodiment of the present invention provides a printing precision conversion method, device, equipment and storage medium to solve the problem in the prior art that the original image after rasterization processing needs to be rasterized again when printed using other printing devices with different printing precisions, resulting in low printing efficiency.
[0004] In a first aspect, an embodiment of the present invention provides a printing precision conversion method, the method comprising:
[0005] Obtaining the original printing precision and original image dot matrix data corresponding to the original image;
[0006] Acquire a first ink dot number according to the original printing precision;
[0007] Acquire the precision to be printed and the second ink dot number corresponding to the precision to be printed;
[0008] When the first ink dot number and the second ink dot number are the same, the original image dot matrix data is converted into actual printing image dot matrix data according to a preset rule, wherein the precision of the actual printing image dot matrix data is the precision to be printed.
[0009] Preferably, obtaining the first ink dot number according to the original printing precision includes:
[0010] Obtaining a horizontal printing accuracy and a vertical printing accuracy of the original printing accuracy, which are recorded as a first horizontal printing accuracy and a first vertical printing accuracy respectively;
[0011] The first ink dot number is obtained according to the product of the first transverse printing accuracy and the first longitudinal printing accuracy.
[0012] Preferably, the obtaining of the precision to be printed and the second number of ink dots corresponding to the precision to be printed comprises:
[0013] Determining the to-be-printed precision according to the printing precision of an actual printing device used to print the original image;
[0014] Obtaining the horizontal printing accuracy and the vertical printing accuracy of the to-be-printed accuracy, which are recorded as the second horizontal printing accuracy and the second vertical printing accuracy respectively;
[0015] The second ink dot number is obtained according to the product of the second transverse printing precision and the second longitudinal printing precision.
[0016] Preferably, the preset conversion rule is:
[0017] Dividing the original image dot matrix data into a plurality of first unit matrices;
[0018] Determine a second unit matrix according to the first unit matrix and the precision to be printed, wherein the first unit matrix and the second unit matrix have different row and column values but the same number of data;
[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 printing image dot matrix data.
[0020] Preferably, when the printing mode is single-PASS scanning, dividing the original image dot matrix data into a plurality of first unit matrices includes:
[0021] Obtain the greatest common divisor of the original printing precision and the precision to be printed;
[0022] Determine the minimum data matrix unit of the original image dot matrix data according to the greatest common divisor;
[0023] The original image dot matrix data is divided according to the minimum data matrix unit to obtain a plurality of the first unit matrices.
[0024] Preferably, when the printing mode is multi-PASS scanning, dividing the original image dot matrix data into a plurality of first unit matrices includes:
[0025] Get the number of scans required to complete printing of a unit area of an image;
[0026] According to the scanning times and the original printing precision, a first single scanning precision corresponding to the original printing precision and a second single scanning precision corresponding to the precision to be printed are obtained;
[0027] Obtaining the greatest common divisor of the first single scanning accuracy and the second single scanning accuracy;
[0028] Determine the minimum data matrix unit of the original image dot matrix data according to the number of scans and the greatest common divisor;
[0029] The original image dot matrix data is divided according to the minimum data unit to obtain a plurality of the first unit matrices.
[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 printing image dot matrix data, the method further includes:
[0031] A position mapping relationship between the dot data in the original image dot matrix data and the corresponding dot data in the actual printed image dot matrix data is established.
[0032] In a second aspect, an embodiment of the present invention provides a printing precision conversion device, the device comprising:
[0033] A dot matrix data acquisition module is used to acquire the original printing accuracy and original image dot matrix data corresponding to the original image;
[0034] A first ink dot data acquisition module, used for acquiring a first ink dot number according to the original printing precision;
[0035] A second ink dot data acquisition module, used to acquire a precision to be printed and a second ink dot number corresponding to the precision to be printed;
[0036] A conversion module is used to convert the original image dot matrix data into actual printing image dot matrix data according to a preset rule when the first ink dot number and the second ink dot number are the same, wherein the precision of the actual printing image dot matrix data is the precision to be printed.
[0037] In a third aspect, an embodiment of the present invention provides a printing precision conversion device, comprising: at least one processor, at least one memory, and computer program instructions stored in the memory, and when the computer program instructions are executed by the processor, the method of the first aspect in the above embodiment is implemented.
[0038] In a fourth aspect, an embodiment of the present invention provides a storage medium having computer program instructions stored thereon, which implements the method of the first aspect in the above-mentioned embodiment when the computer program instructions are executed by a processor.
[0039] In summary, the beneficial effects of the present invention are as follows:
[0040] The printing precision conversion method, device, equipment and storage medium provided by the embodiment of the present invention first determine whether the conversion can be performed by determining whether the original printing precision corresponding to the original image and the first ink dot number and the second ink dot number corresponding to the printing precision (to-be-printed precision) of the actual printing device are consistent. If they are consistent, the original image dot matrix data corresponding to the original image is converted into the actual printing image dot matrix data according to the preset conversion rule. The converted actual printing image dot matrix data is adapted to the actual printing device used to print the image in terms of precision, thereby ensuring the image printing quality. Since there is no need to regenerate the PRN file according to the printing precision of the actual printing device, the image data processing time can be greatly saved and the printing efficiency can be improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] In order to more clearly illustrate the technical solution of the embodiment of the present invention, the drawings required for use in the embodiment of the present invention will be briefly introduced below. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work, and these are all within the protection scope of the present invention.
[0042] Figure 1 It is a flowchart of a printing precision conversion method according to an embodiment of the present invention.
[0043] Figure 2 is a schematic diagram of a first unit matrix according to an embodiment of the present invention.
[0044] Figure 3 is a schematic diagram of a second unit matrix according to an embodiment of the present invention.
[0045] Figure 4 is a schematic diagram of a first unit matrix according to an embodiment of the present invention.
[0046] Figure 5 is a schematic diagram of a second unit matrix according to an embodiment of the present invention.
[0047] Figure 6 It 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 It 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 8It is a schematic diagram of converting a first unit matrix into a second unit matrix according to an embodiment of the present invention.
[0050] Fig. 9 It is a schematic diagram of converting a first unit matrix into a second unit matrix according to an embodiment of the present invention.
[0051] Fig.10 It is a schematic diagram of converting a first unit matrix into a second unit matrix according to an embodiment of the present invention.
[0052] Fig.11 It is a structural schematic diagram of a printing precision conversion device according to an embodiment of the present invention.
[0053] Fig.12 It is a schematic diagram of the structure of a printing precision conversion device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0054] The features and exemplary embodiments of various aspects of the present invention will be described in detail below. In order to make the purpose, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and Examples. 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 implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present invention by illustrating examples of the present invention.
[0055] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0056] Embodiment 1
[0057] The embodiment of the present invention provides a printing precision conversion method, which is applicable to inkjet printing devices such as single-pass printing devices, multi-PASS reciprocating scanning printing devices, cylindrical surface printing devices, and particularly applicable to the following application scenarios: using multiple printing devices with different precisions to print the same image (hereinafter referred to as the original image), or the printing device that originally printed the original image is damaged and needs to be replaced with a new printing device. Before printing the original image, the original image has been rasterized to obtain the image dot matrix data corresponding to the original image, but the image dot matrix data at this time is rasterized corresponding to the original printing precision, and its precision may not be suitable for other printing devices with different precisions or new printing devices. For example, if the original printing precision corresponding to the original image is 360×1200dpi, and the printing precision of other or new printing devices is 240×1800dpi, in the prior art, in order to enable other printing devices or new printing devices to print the original image, it is often necessary to re-rasterize the original image according to the printing precision of 240×1800dpi, obtain a new PRN file, and then print according to the PRN file. However, the process of rasterizing the image to obtain a new PRN file takes a long time, resulting in a decrease in printing efficiency. The embodiment of the present invention provides a printing precision conversion method, which can realize the use of other printing devices with different precisions to print the original image without re-rasterizing, that is, directly converting the precision of the PRN file after the original image is rasterized during the data processing process, so that even printing devices with different precisions can print the original image.
[0058] See also Figure 1 The printing precision conversion method specifically includes the following steps:
[0059] S1: Obtaining the original printing accuracy and original image dot matrix data corresponding to the original image;
[0060] S2: Obtaining a first ink dot number according to the original printing precision;
[0061] S3: Obtaining a precision to be printed and a second number of ink dots corresponding to the precision to be printed;
[0062] S4: When the first ink dot number and the second ink dot number are the same, converting the original image dot data into actual printing image dot data according to a preset rule, wherein the precision of the actual printing image dot data is the precision to be printed.
[0063] Specifically, after the original image is rasterized, the PRN file corresponding to the original image is obtained. According to the PRN file, the original printing accuracy and the original image dot data can be known. The data in the PRN file is the image dot data corresponding to the original image. The image dot data is composed of dot data, and each dot data is used to characterize the ink output of the ink dot. Taking 2-bit rasterization as an example, the image dot data includes four types of dot data: dot data 00, dot data 01, dot data 10 and dot data 11, wherein dot data 00 indicates that the ink dot is a blank ink dot, dot data 01 indicates that the ink output of the ink dot is a small ink amount (for example, 25%), dot data 10 indicates that the ink output of the ink dot is a medium ink amount (for example, 50%), and dot data 11 indicates that the ink output of the ink dot is a large ink amount (for example, 100%).
[0064] After the original image is rasterized, the number of ink dots required to be printed per square inch can be obtained according to the original printing accuracy corresponding to the original PRN file, which is recorded as the first number of ink dots. Similarly, the printing accuracy of other printing devices is obtained, which is recorded as the accuracy to be printed. The number of ink dots required to be printed per square inch at this accuracy is calculated according to the accuracy to be printed, which is the second number of ink dots. In order to ensure the image printing quality after the original image conversion accuracy, in the embodiment of the invention, the conversion is only performed when the accuracy to be printed is compatible with the original printing accuracy. The compatibility here means that the number of ink dots printed per square inch is the same or consistent, that is, the first number of ink dots and the second number of ink dots are the same, so as to ensure that the number of ink dots of the image printed by the printing device with different printing accuracy is consistent with that of the original image. If the two are the same, then according to the accuracy of the image to be printed, the original image dot matrix data is converted to obtain the actual printing image dot matrix data, and then the image is printed according to the actual printing image dot matrix data.
[0065] Preferably, obtaining the first ink dot number according to the original printing precision includes:
[0066] Obtaining a horizontal printing accuracy and a vertical printing accuracy of the original printing accuracy, which are recorded as a first horizontal printing accuracy and a first vertical printing accuracy respectively;
[0067] The first ink dot number is obtained according to the product of the first transverse printing accuracy and the first longitudinal printing accuracy.
[0068] Specifically, the original printing accuracy includes the horizontal printing accuracy and the vertical printing accuracy. In the actual generation application, the horizontal direction is the printing direction or the main scanning direction of the printing device, and the vertical direction is the stepping direction or the sub-scanning direction perpendicular to the printing direction. The original printing accuracy includes the horizontal printing accuracy and the vertical printing accuracy, which are respectively recorded as the first horizontal printing accuracy and the first vertical printing accuracy. The first number of ink dots is obtained according to the product of the first horizontal printing accuracy and the first vertical printing accuracy. Exemplarily, if the original image is rasterized and its corresponding original printing accuracy is 360×1200dpi, it means that 360 ink dots need to be sprayed per inch of length in the horizontal direction (or the main scanning direction), and 1200 ink dots need to be sprayed per inch of length in the vertical direction (sub-scanning direction), and there are 360×1200=432000 ink dots (dot data) per square inch, that is, the first number of ink dots is 432000.
[0069] Preferably, the obtaining of the precision to be printed and the second number of ink dots corresponding to the precision to be printed comprises:
[0070] Determining the to-be-printed precision according to the printing precision of an actual printing device used to print the original image;
[0071] Obtaining the horizontal printing accuracy and the vertical printing accuracy of the to-be-printed accuracy, which are recorded as the second horizontal printing accuracy and the second vertical printing accuracy respectively;
[0072] The second ink dot number is obtained according to the product of the second transverse printing precision and the second longitudinal printing precision.
[0073] Similarly, if the printing accuracy of other printing devices (i.e., the accuracy to be printed) is 240×1800dpi, it means that 240 ink dots need to be sprayed per inch in the horizontal direction (or main scanning direction), and 1800 ink dots need to be sprayed per inch in the vertical direction (sub-scanning direction), which is also a total of 240×1800=432000 ink dots per square inch, that is, the second number of ink dots is also 432000, which is the same as the first number of ink dots.
[0074] When the first ink dot number and the second ink dot number are the same, the original image dot data is converted into actual printing image dot data according to a preset conversion rule, wherein the precision of the actual printing image dot data is the precision to be printed, wherein the preset conversion rule is:
[0075] Dividing the original image dot matrix data into a plurality of first unit matrices;
[0076] Determine a second unit matrix according to the first unit matrix and the precision to be printed, wherein the first unit matrix and the second unit matrix have different row and column values but the same number of data;
[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 printing image dot matrix data.
[0078] Specifically, the original image dot matrix data is decomposed into a plurality of first unit matrices, the first unit matrix includes a plurality of rows and a plurality of 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 scanning mode, dividing the original image dot matrix data into a plurality of first unit matrices includes:
[0080] Obtain the greatest common divisor of the original printing precision and the precision to be printed;
[0081] Determine the minimum data matrix unit of the original image dot matrix data according to the greatest common divisor;
[0082] The original image dot matrix data is divided according to the minimum data matrix unit to obtain a plurality of the first unit matrices.
[0083] Specifically, the greatest common value 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, the original printing precision is 360×1200dpi, and the precision to be printed is 240×1800dpi. The original printing precision 360×1200 can be decomposed into 3×120×2×600, and the precision to be printed 240×1800 can be decomposed into 2×120×3×600, wherein the greatest common divisor between the horizontal printing precisions is 120, and the greatest common divisor between the vertical printing precisions is 600, that is, the greatest common divisor is 120×600. Dividing the original printing precision by the corresponding greatest common divisor yields (360×1200) / (120×600)=3×2. It can be known that the minimum data matrix unit of the original image dot matrix data is a data matrix of 3 horizontal columns of data and two vertical rows of data (3 columns and 2 rows), recorded as the first unit matrix, as Figure 2 As shown in the figure, it is a schematic diagram of the first unit matrix (the numbers in the figure only represent the data number, not the data itself). The original image dot matrix data is divided according to the first unit matrix, and 120×600 first unit matrices can be obtained accordingly. The minimum data matrix unit of the actual printing image data corresponding to the printing accuracy is (240×1800) / (120×600)=2×3, that is, the second unit matrix is a matrix with 3 rows and 2 columns. Figure 3 The figure shows a schematic diagram of the second unit matrix (the numbers in the figure only indicate the data labels, not the data themselves).
[0084] In one embodiment, when the printing mode is multi-PASS scanning, dividing the original image dot matrix data into a plurality of first unit matrices includes:
[0085] Get the number of scans required to complete printing of a unit area of an image;
[0086] According to the scanning times and the original printing precision, a first single scanning precision corresponding to the original printing precision and a second single scanning precision corresponding to the precision to be printed are obtained;
[0087] Obtaining the greatest common divisor of the first single scanning accuracy and the second single scanning accuracy;
[0088] Determine the minimum data matrix unit of the original image dot matrix data according to the number of scans and the greatest common divisor;
[0089] The original image dot matrix data is divided according to the minimum data unit to obtain a plurality of the first unit matrices.
[0090] For example, the original image dot data is 720×1200, which needs to be printed through 2PASS, that is, the printing accuracy of each PASS (that is, the first single scanning accuracy) is 360×1200; similarly, the printing accuracy is 480×1800dpi, which also needs to be printed through 2PASS, and the printing accuracy of each PASS (that is, the second single scanning accuracy) is 240×1800. Calculation shows that the first ink dot number and the second ink dot number corresponding to the two are the same, and can be converted. The greatest common divisor of the first single scanning accuracy and the second single scanning accuracy is also obtained, that is, the greatest common divisor is 120×600. The first single scanning accuracy is divided by the corresponding greatest common divisor to obtain (360×1200) / (120×600)=3×2. It can be seen that the minimum unit of the original image dot matrix data is a data matrix of 3 columns of data horizontally and 2 rows of data vertically (columns are 3 and rows are 2). Since 2PASS printing needs to be completed in the horizontal direction, it can be known that the minimum data matrix unit of the original image dot matrix data is 2 2×3 data matrices. The horizontal splicing results in a 2×6 (row number is 2, column number is 3) data matrix, which is recorded as the first unit matrix, such as Figure 4As shown, it is a schematic diagram of the first unit matrix (the numbers in the figure only indicate the data numbers, not the data itself). The original image dot matrix data is divided according to the first unit matrix, and 120×600 first unit matrices can be obtained accordingly. The minimum unit of the actual printing image data corresponding to the accuracy to be printed is ((240×1800) / (120×600))×2=2×3, that is, a matrix with 3 rows and 2 columns. Similarly, the actual printing image dot matrix data corresponding to the accuracy to be printed needs to be completed by 2PASS printing in the horizontal direction. The second unit matrix is a 3×4 (3 rows and 4 columns) data matrix obtained by horizontally splicing two 3×2 data matrices. As shown Figure 5 The figure shows a schematic diagram of the second unit matrix (the numbers in the figure only indicate the data labels, not the data themselves).
[0091] After the first unit matrix is determined, the second unit matrix is also determined. According to 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. The data in the first unit matrix is rearranged according to the row and column values in the second unit matrix and the preset arrangement rules, which actually obtains the minimum image unit in the actual image dot matrix data after the original image dot matrix data is converted. All the data in the first unit matrix are rearranged in the second unit matrix according to the same preset arrangement rules, and all the second unit matrices constitute the actual printing image dot matrix data after the precision conversion.
[0092] There are many preset arrangement rules here. For example, 360×1200dpi is converted to 240×1800dpi. According to the above description, 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 printing image dot matrix data with a precision of 240×1800 is a 3×2 data matrix. Figure 6 As shown in , the preset arrangement rule during conversion is: place the data of the i-th column and j-th row in the first unit matrix in the j-th row and i-th column in the second unit matrix. As shown in Figure x, place the data of the 1st row and the 2nd row in the 1st column of the first unit matrix in the 1st column and the 2nd column of the 1st row of the second unit matrix; place the data of the 1st row and the 2nd row in the 2nd column of the first unit matrix in the 1st column and the 2nd column of the 1st row... For example, as Figure 7 As shown, the data in the first column and the first row of the first unit matrix is placed in the first row and the second column of the second unit matrix, and the data in the first column and the second row of the first unit matrix is placed in the first row and the first column of the second unit matrix... According to statistics, there are 50 possible permutations and combinations of data when converting the 2×3 first unit matrix into the 3×2 second unit matrix. Figure 8Some arrangements are also shown in FIG.
[0093] Similarly, for multi-PASS printing, for example, 720×1200dpi is converted to 480×1800dpi. According to the above description, the original image dot matrix data with a precision of 720×1200 corresponds to a 2×6 data matrix for the first unit matrix, and the actual printing image dot matrix data with a precision of 480×1800 corresponds to a 3×4 data matrix for the second unit matrix. Fig. 9 As shown, the preset arrangement rule is: place the data of the 1st row and 1st column in the first unit matrix in the 1st row and 1st column of the second unit matrix, place the data of the 1st row and 2nd column in the first unit matrix in the 1st row and 2nd column of the second unit matrix, place the data of the 1st row and 3rd column in the first unit matrix in the 2nd row and 1st column of the second unit matrix, place the data of the 1st row and 4th column in the first unit matrix in the 2nd row and 2nd column of the second unit matrix, place the data of the 1st row and 5th column in the first unit matrix in the 3rd row and 1st column of the second unit matrix, place the data of the 1st row and 6th column in the first unit matrix in the 3rd row and 2nd column of the second unit matrix, place the data of the 2nd row and 1st column in the first unit matrix in the 1st row and 3rd column of the second unit matrix, place the data of the 2nd row and 2nd column in the first unit matrix in the 1st row and 4th column of the second unit matrix…as shown Fig.10 As shown, another different preset arrangement rule is also shown.
[0094] In one embodiment, after using a variety of different preset arrangement rules to convert the original image dot matrix data 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 the 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 the precision conversion.
[0095] In one embodiment, after the original image dot matrix data is converted using a preset arrangement rule to obtain the actual printing image dot matrix data, a position mapping relationship between the dot data in the original image dot matrix data and the corresponding dot data in the actual printing image dot matrix data is established. Subsequently, the position of the dot data in the PRN file of the original printing image can be directly converted according to the position mapping relationship, thereby realizing the conversion of the original printing precision and the precision to be printed or the conversion of the original image dot matrix data and the actual printing image dot matrix data. In one embodiment, a position conversion table of the dot data of the original image dot matrix data and the actual printing image data can also be established, and the conversion is performed according to the position conversion table. It is worth noting that since each dot data (i.e., one pixel) in the dot matrix image is 2 bits, and general data is stored as one byte (8 bits), a position conversion table can be established with 4 dot data (four pixels) as a unit. When performing precision conversion, the search is performed according to the position conversion table in units of four pixels, which reduces the search time compared to searching pixel by pixel.
[0096] In summary, the printing precision conversion method provided by the embodiment of the present invention first determines whether the conversion can be performed by determining whether the original printing precision corresponding to the original image and the first ink dot number and the second ink dot number corresponding to the printing precision (to-be-printed precision) of the actual printing device are consistent. If they are consistent, the original image dot matrix data corresponding to the original image is converted into the actual printing image dot matrix data according to the preset conversion rule. The converted actual printing image dot matrix data is adapted to the actual printing device used to print the image in terms of precision, thereby ensuring the image printing quality. Since there is no need to regenerate the PRN file according to the printing precision of the actual printing device, the image data processing time can be greatly saved and the printing efficiency can be improved.
[0097] Embodiment 2
[0098] See also Fig.11 The embodiment of the present invention provides a printing precision conversion device 200, and the device 200 includes:
[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] A first ink dot data acquisition module 202, configured to acquire a first ink dot number according to the original printing precision;
[0101] The second ink dot data acquisition module 203 is used to acquire the precision to be printed and the second ink dot number corresponding to the precision to be printed;
[0102] The conversion module 204 is used to convert the original image dot matrix data into actual printing image dot matrix data according to a preset rule when the first ink dot number and the second ink dot number are the same, wherein the precision of the actual printing image dot matrix data is the precision to be printed.
[0103] Preferably, the first ink dot number acquisition module 202 includes:
[0104] A first precision acquisition unit, used to acquire the horizontal printing precision and the vertical printing precision of the original printing precision, which are respectively recorded as the first horizontal printing precision and the first vertical printing precision;
[0105] The first ink dot number obtaining unit is used to obtain the first ink dot number according to the product of the first transverse printing accuracy and the first longitudinal printing accuracy.
[0106] A unit for obtaining the precision to be printed, used for determining the precision to be printed according to the printing precision of an actual printing device used to print the original image;
[0107] A second precision acquisition unit, used to acquire the horizontal printing precision and the vertical printing precision of the to-be-printed precision, which are respectively recorded as the second horizontal printing precision and the second vertical printing precision;
[0108] The second ink dot number obtaining unit is used to obtain the second ink dot number according to the product of the second transverse printing precision and the second longitudinal printing precision.
[0109] Preferably, the conversion module 203 includes:
[0110] A first unit matrix acquisition unit, used for dividing the original image dot matrix data into a plurality of first unit matrices;
[0111] A second unit matrix acquisition unit, used for determining a second unit matrix according to the first unit matrix and the precision to be printed, wherein the first unit matrix and the second unit matrix have different row and column values but the same number of data;
[0112] The arrangement unit is used to rearrange the data in all the first unit matrices according to the row and column values in the second unit matrix and a preset arrangement rule to obtain the actual printing image dot matrix data.
[0113] Preferably, the device 200 further includes:
[0114] The mapping relationship establishing module is used to establish the position 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 by the embodiment of the present invention first determines whether the conversion can be performed by determining whether the original printing precision corresponding to the original image and the first ink dot number and the second ink dot number corresponding to the printing precision (to-be-printed precision) of the actual printing device are consistent. If they are consistent, the original image dot matrix data corresponding to the original image is converted into the actual printing image dot matrix data according to the preset conversion rule. The converted actual printing image dot matrix data is adapted to the actual printing device used to print the image in terms of precision, thereby ensuring the image printing quality. Since there is no need to regenerate the PRN file according to the printing precision of the actual printing device, the image data processing time can be greatly saved and the printing efficiency can be improved.
[0116] Embodiment 3
[0117] In addition, the printing precision conversion method of the embodiment of the present invention can be implemented by a printing precision conversion device. Fig.12 A schematic diagram of the hardware structure of a printing precision conversion device provided in an embodiment of the present invention is shown.
[0118] The printing precision 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), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiment of the present invention.
[0120] The memory 302 may include a large capacity memory for data or instructions. For example, but not limitation, the memory 302 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In appropriate cases, the memory 302 may include a removable or non-removable (or fixed) medium. In appropriate cases, the memory 302 may be inside or outside the data processing device. In a specific embodiment, the memory 302 is a non-volatile solid-state memory. In a specific embodiment, the memory 302 includes a read-only memory (ROM). In appropriate cases, 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 a flash memory or a combination of two or more of these.
[0121] The processor 301 implements any one of the printing precision conversion methods in the above embodiments by reading and executing computer program instructions stored in the memory 302 .
[0122] In one example, the printing precision conversion device may further include a communication interface 303 and a bus 310. Fig.12 As shown, the processor 301, the memory 302, and the communication interface 303 are connected via a bus 310 and communicate with each other.
[0123] The communication interface 303 is mainly used to implement the communication between the modules, devices, units and / or equipment in the embodiment of the present invention.
[0124] Bus 310 includes hardware, software or both, and the parts of the printing precision conversion device are coupled to each other. For example, but not limitation, bus 310 may include accelerated graphics port (AGP) or other graphics bus, enhanced industrial standard architecture (EISA) bus, front-end bus (FSB), hypertransport (HT) interconnection, industrial standard architecture (ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 310 may include one or more buses. Although the embodiment of the present invention describes and shows a specific bus, the present invention considers any suitable bus or interconnection.
[0125] Embodiment 4
[0126] In addition, in combination with the printing precision conversion method in the above embodiment, the embodiment of the present invention can provide a computer-readable storage medium for implementation. The computer-readable storage medium stores computer program instructions; when the computer program instructions are executed by the processor 301, any one of the printing precision conversion methods in the above embodiment is implemented.
[0127] In summary, the printing precision conversion method, device, equipment and storage medium provided by the embodiments of the present invention first determine whether the conversion can be performed by determining whether the original printing precision corresponding to the original image and the first ink dot number and the second ink dot number corresponding to the printing precision (to-be-printed precision) of the actual printing device are consistent. If they are consistent, the original image dot matrix data corresponding to the original image is converted into the actual printing image dot matrix data according to the preset conversion rules. The converted actual printing image dot matrix data is adapted to the actual printing device used to print the image in terms of precision, thereby ensuring the image printing quality. Since there is no need to regenerate the PRN file according to the printing precision of the actual printing device, the image data processing time can be greatly saved and the printing efficiency can be improved.
[0128] It should be clear that the present invention is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is 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, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present invention.
[0129] The functional blocks shown in the above-described block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present invention are programs or code segments that are used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link by a data signal 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, optical fiber media, radio frequency (RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.
[0130] It should also be noted that the exemplary embodiments mentioned in the present invention describe some methods or systems based on a series of steps or devices. However, the present invention is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiments, or in a different order from the embodiments, or several steps can be performed simultaneously.
[0131] The above is only a specific implementation of the present invention. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process of the system, module and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here. It should be understood that the protection scope of the present invention is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be covered within the protection scope of the present invention.
Claims
1. A printing precision conversion method, characterized in that: The method comprises: Obtaining the original printing precision and original image dot matrix data corresponding to the original image; Acquire a first ink dot number according to the original printing precision; Acquire the precision to be printed and the second ink dot number corresponding to the precision to be printed; When the first ink dot number and the second ink dot number are the same, the original image dot matrix data is converted into actual printing image dot matrix data according to a preset rule, wherein the precision of the actual printing image dot matrix data is the precision to be printed.
2. The printing precision conversion method according to claim 1, characterized in that: The obtaining of the first ink dot number according to the original printing precision comprises: Obtaining a horizontal printing accuracy and a vertical printing accuracy of the original printing accuracy, which are recorded as a first horizontal printing accuracy and a first vertical printing accuracy respectively; The first ink dot number is obtained according to the product of the first transverse printing accuracy and the first longitudinal printing accuracy.
3. The printing precision conversion method according to claim 1, characterized in that: The obtaining of the precision to be printed and the second number of ink dots corresponding to the precision to be printed comprises: Determining the to-be-printed precision according to the printing precision of an actual printing device used to print the original image; Obtaining the horizontal printing accuracy and the vertical printing accuracy of the to-be-printed accuracy, which are recorded as the second horizontal printing accuracy and the second vertical printing accuracy respectively; The second ink dot number is obtained according to the product of the second transverse printing precision and the second longitudinal printing precision.
4. The printing precision conversion method according to claim 1, characterized in that: The preset conversion rule is: Dividing the original image dot matrix data into a plurality of first unit matrices; Determine a second unit matrix according to the first unit matrix and the precision to be printed, wherein the first unit matrix and the second unit matrix have different row and column values but the same number of data; 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 printing image dot matrix data.
5. The printing precision conversion method according to claim 4, characterized in that: When the printing mode is single-pass scanning, the step of dividing the original image dot matrix data into a plurality of first unit matrices includes: Obtain the greatest common divisor of the original printing precision and the precision to be printed; Determine the minimum data matrix unit of the original image dot matrix data according to the greatest common divisor; The original image dot matrix data is divided according to the minimum data matrix unit to obtain a plurality of the first unit matrices.
6. The printing precision conversion method according to claim 4, characterized in that: When the printing mode is multi-PASS scanning, the step of dividing the original image dot matrix data into a plurality of first unit matrices includes: Get the number of scans required to complete printing of a unit area of an image; According to the scanning times and the original printing precision, a first single scanning precision corresponding to the original printing precision and a second single scanning precision corresponding to the precision to be printed are obtained; Obtaining the greatest common divisor of the first single scanning accuracy and the second single scanning accuracy; Determine the minimum data matrix unit of the original image dot matrix data according to the number of scans and the greatest common divisor; The original image dot matrix data is divided according to the minimum data unit to obtain a plurality of the first unit matrices.
7. 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 in the second unit matrix according to a preset arrangement rule to obtain the actual printing image dot matrix data, the method further includes: A position mapping relationship between the dot data in the original image dot matrix data and the corresponding dot data in the actual printed image dot matrix data is established.
8. A printing precision conversion device, characterized in that: The device comprises: A dot matrix data acquisition module is used to acquire the original printing accuracy and original image dot matrix data corresponding to the original image; A first ink dot data acquisition module, used for acquiring a first ink dot number according to the original printing precision; A second ink dot data acquisition module, used to acquire a precision to be printed and a second ink dot number corresponding to the precision to be printed; A conversion module is used to convert the original image dot matrix data into actual printing image dot matrix data according to a preset rule when the first ink dot number and the second ink dot number are the same, wherein the precision of the actual printing image dot matrix data is the precision to be printed.
9. 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, when the computer program instructions are executed by the processor, implement the method according to any one of claims 1 to 7.
10. A storage medium having computer program instructions stored thereon, characterized in that: When the computer program instructions are executed by a processor, the method according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Image processing device and method
CN101123663A
Dot matrix data transformation method and apparatus for ink-jet printing equipment and ink-jet printing system
CN101383009A
Inkjet printing method, inkjet printing device, and inkjet printing apparatus
CN109254742A
Gerber file conversion precision processing method, system and device and storage medium
CN109683834A
Printing data processing method, device and facility and storage medium
CN111267489A