Printing method and device based on ink dot offset, equipment and storage medium
By adjusting the ink dot offset value, the checkerboard pattern was changed to a honeycomb pattern, which solved the problem of uneven images in inkjet printing and improved print quality.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- SHENZHEN HOSONSOFT CO LTD
- Filing Date
- 2023-11-20
- Publication Date
- 2026-06-05
AI Technical Summary
In existing inkjet printing technology, the checkerboard pattern of ink droplets results in poor image uniformity, especially when the ink concentration is high or the machine stability is poor, which can easily lead to black streaks and affect print quality.
By adjusting the offset values of the ink dots, the checkerboard pattern is changed to a honeycomb pattern. The number of scans of the unit area of the image to be printed is obtained by the printer, the row offset value and column offset value of the ink dots are determined, and the ink output of the printer is controlled to improve the uniformity of the image.
It reduces color overlap and mixing caused by mechanical errors during the printing process, reduces black streaks, and improves print quality and effect.
Smart Images

Figure CN120019961B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of inkjet printing technology, and in particular to a printing method, apparatus, device, and storage medium based on ink dot offset. Background Technology
[0002] Inkjet printing technology refers to the process of ejecting ink droplets from nozzles on a printhead onto a printing medium to obtain images or text. It mainly includes reciprocating scanning or multi-pass scanning printing, OnePass high-speed printing, etc. Multi-pass scanning printing means that each unit of the image to be printed must be interpolated multiple times to complete the printing process; that is, each unit consists of multiple pixels. For example, in 2-pass scanning printing, each unit consists of 2 pixels, and in 3-pass scanning printing, each unit consists of 3 pixels. Figure 1 The diagram shows a 4-pass scanning print. Each unit in the dot matrix data of the image to be printed consists of 4 pixels, arranged in a grid pattern. During inkjet printing, the ink droplets also exit in a grid pattern, as follows: In the first pass, the printhead moves along the main scanning direction and prints pixel ①. Then, the printhead moves a certain distance relative to the printing medium and moves in the opposite direction along the main scanning direction, printing pixel ②. Next, the printhead moves a certain distance relative to the printing medium and moves again along the main scanning direction, printing pixel ③. After the printhead moves a certain distance relative to the printing medium, it moves in the opposite direction again and prints pixel ④. This process is repeated until printing is complete.
[0003] However, in actual production applications, this checkerboard-patterned ink dot printing method is prone to poor or uneven uniformity of printed images due to machine errors during the printing process. In particular, when the ink is thick, the number of passes is high, or the machine stability is poor, the printed image is prone to some black lines in the vertical or horizontal direction, which seriously affects the printing quality and makes the printed image unable to meet the printing requirements, resulting in poor effect. Summary of the Invention
[0004] In view of this, embodiments of the present invention provide a printing method, apparatus, device and storage medium based on ink dot offset to solve the problem of uneven image printing in the prior art.
[0005] In a first aspect, embodiments of the present invention provide a printing method based on ink dot offset, the method comprising:
[0006] Obtain the number of scans of the cell region corresponding to the image to be printed, wherein the number of scans of the cell region is a natural number greater than or equal to 2;
[0007] Based on the number of scans of the unit area, the printer is controlled to print the first test image onto the printing medium to obtain the second test image;
[0008] Determine the uniformity of the second test pattern;
[0009] The ink dot row offset value and / or ink dot column offset value are determined based on the uniformity, wherein the ink dot row offset value is the pixel value of the horizontal offset of each row of ink dots relative to the corresponding position of the ink dot in the previous row, and the ink dot column offset value is the pixel value of the vertical offset of each column of ink dots relative to the corresponding position of the ink dot in the previous column.
[0010] The printer is controlled to output ink and print the image to be printed based on the ink dot row offset value and / or ink dot column offset value.
[0011] Preferably, the first test image is a color block image or a single color portion of the image to be printed.
[0012] Preferably, the uniformity includes row uniformity and column uniformity, and obtaining the uniformity of the second test pattern includes:
[0013] The color acquisition device is controlled to acquire the average color value of each row of pixels and the average color value of each column of pixels in the second test image, so as to obtain multiple row average color values and multiple column average color values.
[0014] Calculate the row color fluctuation value and the column color fluctuation value based on the average color values of the multiple rows and the average color values of the multiple columns, respectively.
[0015] When the row color fluctuation value is greater than or equal to the first threshold, the row uniformity is non-uniform.
[0016] When the column color fluctuation value is greater than or equal to the second threshold, the column uniformity is considered non-uniform. Preferably, obtaining the uniformity of the second test image includes:
[0017] The image acquisition device is controlled to acquire the second test image to obtain the third test image;
[0018] Extract the black street image from the third test image;
[0019] The number of the gangster images is obtained and denoted as the number of gangsters;
[0020] Obtain the color value of the black street image and record it as the black street color value;
[0021] When the number of black bars is greater than or equal to a preset number threshold or the black bar color value is greater than or equal to a preset color threshold, the uniformity of the second test image is non-uniform.
[0022] Preferably, obtaining the color value of the gangster image includes:
[0023] The average color value of all pixels in the third test image, excluding the black street image, is obtained and denoted as the first average color value.
[0024] The average color value of all pixels in the black street image is obtained and denoted as the second average color value.
[0025] The color value of the blackout image is obtained based on the first average color value and the second average color value.
[0026] Preferably, the step of determining the ink dot row offset value and / or ink dot column offset value based on the uniformity, wherein the ink dot row offset value is the pixel value of the horizontal offset of each row of ink dots relative to the corresponding position of the ink dot in the previous row, and the ink dot column offset value is the pixel value of the vertical offset of each column of ink dots relative to the corresponding position of the ink dot in the previous column, includes:
[0027] When the row uniformity is non-uniform, the ink dot column offset value is R1, that is, each column of ink dots is offset by R1 pixels in the vertical direction relative to the corresponding position of the previous column of ink dots.
[0028] When the column uniformity is non-uniform, the ink dot row offset value is R2, that is, each row of ink dots is offset horizontally by R2 pixels relative to the corresponding position of the previous row of ink dots.
[0029] Preferably, when the uniformity is non-uniform, the step of determining the ink dot row offset value and / or ink dot column offset value based on the uniformity, wherein the ink dot row offset value is the pixel value of the horizontal offset of each row of ink dots relative to the corresponding position of the ink dot in the previous row, and the ink dot column offset value is the pixel value of the vertical offset of each column of ink dots relative to the corresponding position of the ink dot in the previous column, includes:
[0030] When the number of black lines is greater than the preset number and the color value of the black lines is greater than the preset color value, the ink dot row offset value is T1 and the ink dot column offset value is T2. That is, each row of ink dots is offset by T1 pixels in the horizontal direction relative to the ink dot at the corresponding position of the previous row, and each column of ink dots is offset by T2 pixels in the vertical direction relative to the ink dot at the corresponding position of the previous column.
[0031] When the number of black lines is greater than the preset number and the color value of the black line is less than the preset color value, the ink dot row offset value is T3 and the ink dot column offset value is T4. That is, each row of ink dots is offset by T3 pixels in the horizontal direction relative to the ink dot at the corresponding position of the previous row, and each column of ink dots is offset by T4 pixels in the vertical direction relative to the ink dot at the corresponding position of the previous column.
[0032] When the number of black lines is less than the preset number and the color value of the black line is greater than the preset color value, the ink dot row offset value is T5 and the ink dot column offset value is T6. That is, each row of ink dots is offset by T5 pixels in the horizontal direction relative to the corresponding ink dot in the previous row, and each column of ink dots is offset by T6 pixels in the vertical direction relative to the corresponding ink dot in the previous column.
[0033] When the number of black lines is less than a preset number and the color value of the black lines is less than a preset color value, the ink dot row offset value is T7 and the ink dot column offset value is T8. That is, each row of ink dots is offset by T7 pixels in the horizontal direction relative to the ink dot at the corresponding position of the previous row, and each column of ink dots is offset by T8 pixels in the vertical direction relative to the ink dot at the corresponding position of the previous column.
[0034] The values of T1 to T8 are greater than 0 and less than or equal to 1, and T1 to T8 are not completely identical.
[0035] Preferably, controlling the printer to output ink and print the image to be printed based on the ink dot row offset value and the ink dot column offset value includes:
[0036] The ink dot row offset value and ink dot column offset value are converted into the raster offset value and / or paper feed pulse offset value of the printer;
[0037] The image to be printed is rasterized to obtain its corresponding dot matrix image;
[0038] The printhead is controlled to eject ink dots according to the dot matrix image, and the landing point of each ink dot is offset according to the grating offset value and / or paper feed pulse offset value.
[0039] Preferably, the method further includes:
[0040] S91: Based on the ink dot row offset value and / or ink dot column offset value, control the printer to output ink and print the first test pattern to obtain a new second test pattern;
[0041] S92: Determine new ink dot row offset values and / or new ink dot column offset values based on the new second test chart;
[0042] S93: Repeat steps S91-S92 until the uniformity of the new second test pattern meets the preset requirements.
[0043] Secondly, embodiments of the present invention provide a printing apparatus based on ink dot offset, the apparatus comprising:
[0044] The scan count acquisition module is used to acquire the scan count of the unit region corresponding to the image to be printed, wherein the scan count of the unit region is a natural number greater than or equal to 2;
[0045] The test pattern acquisition module is used to control the printer to print the first test pattern onto the printing medium to obtain the second test pattern based on the number of scans of the unit area.
[0046] A uniformity determination module is used to determine the uniformity of the second test pattern;
[0047] The offset value acquisition module is used to determine the ink dot row offset value and / or ink dot column offset value according to the uniformity, wherein the ink dot row offset value is the pixel value of the horizontal offset of each row of ink dots relative to the corresponding position of the previous row of ink dots, and the ink dot column offset value is the pixel value of the vertical offset of each column of ink dots relative to the corresponding position of the previous column of ink dots.
[0048] The printing module is used to control the printer to output ink and print the image to be printed based on the ink dot row offset value and / or ink dot column offset value.
[0049] Thirdly, embodiments of the present invention provide a printing device based on ink dot offset, 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.
[0050] 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.
[0051] In summary, the beneficial effects of the present invention are as follows:
[0052] The printing method, apparatus, device, and storage medium based on ink dot offset provided in this invention involves: acquiring the number of scans of a unit area corresponding to the image to be printed; controlling the printer to print a first test image onto the printing medium to obtain a second test image based on the number of scans of the unit area; determining the uniformity of the second test image; determining ink dot row offset values and / or ink dot column offset values based on the uniformity; and controlling the printer to output ink and print the image to be printed based on the ink dot row offset values and / or ink dot column offset values. This method adjusts the checkerboard arrangement of ink dots in the prior art to a honeycomb arrangement. In this honeycomb arrangement, adjacent ink dots are slightly offset in the horizontal and / or vertical directions, thereby reducing color superposition and mixing caused by mechanical errors during printing, mitigating the formation of black streaks, and improving print quality and effect. Attached Figure Description
[0053] 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.
[0054] Figure 1 This is a schematic diagram of 4Pass printing in the background technology.
[0055] Figure 2 This is a schematic flowchart of the printing method based on ink dot offset implemented in this invention.
[0056] Figure 3 This is a schematic diagram of the checkerboard pattern of ink dots according to an embodiment of the present invention.
[0057] Figure 4 This is a schematic diagram of the honeycomb arrangement of ink dots according to an embodiment of the present invention.
[0058] Figure 5 This is a schematic diagram of the ink dot column offset values according to an embodiment of the present invention.
[0059] Figure 6 This is a schematic diagram of the ink dot line offset values according to an embodiment of the present invention.
[0060] Figure 7 This is a schematic diagram of the ink dot row offset value and ink dot column offset value according to an embodiment of the present invention.
[0061] Figure 8 This is a schematic diagram of the ink dot row offset value and ink dot column offset value according to an embodiment of the present invention.
[0062] Figure 9 This is a schematic diagram of the ink dot row offset value and ink dot column offset value according to an embodiment of the present invention.
[0063] Figure 10 This is a schematic diagram of the ink dot row offset value and ink dot column offset value according to an embodiment of the present invention.
[0064] Figure 11 This is a schematic diagram of the structure of a printing device based on ink dot offset according to an embodiment of the present invention.
[0065] Figure 12 This is a schematic diagram of the structure of a printing device based on ink dot offset according to an embodiment of the present invention. Detailed Implementation
[0066] 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.
[0067] 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.
[0068] Example 1
[0069] This invention provides a printing method based on ink dot offset, applicable to reciprocating scanning inkjet printers. The printer includes at least one printhead, and the printhead includes at least one row of nozzles for ejecting ink dots. In this invention, by adjusting the landing position of the ejected ink dots, i.e., changing the checkerboard arrangement of the ink dots, the uniformity of the printed image is improved by eliminating black streaks.
[0070] Please see Figure 2 The printing method based on ink dot offset specifically includes the following steps:
[0071] S1: Obtain the number of scans of the unit region corresponding to the image to be printed, wherein the number of scans of the unit region is a natural number greater than or equal to 2;
[0072] S2: Based on the number of scans of the unit area, control the printer to print the first test image onto the printing medium to obtain the second test image;
[0073] S3: Determine the uniformity of the second test pattern, wherein the uniformity includes uniformity and non-uniformity;
[0074] S4: Determine the ink dot row offset value and / or ink dot column offset value based on the uniformity, wherein the ink dot row offset value is the pixel value of the horizontal offset of each row of ink dots relative to the corresponding position of the previous row of ink dots, and the ink dot column offset value is the pixel value of the vertical offset of each column of ink dots relative to the corresponding position of the previous column of ink dots.
[0075] S5: Control the printer to output ink and print the image to be printed based on the ink dot row offset value and / or ink dot column offset value.
[0076] Specifically, in this embodiment, the uniformity of the printed image is first determined by printing a first test image, such as the number, area, position, and color of black bars. The number of scans of the unit region here is the aforementioned pass count. In this embodiment, the number of scans of the unit region is a natural number greater than or equal to 2. The number of scans of the unit region of the image to be printed can be determined based on the image resolution and printing resolution of the image to be printed. For example, if the image resolution of the image to be printed is 720*720 dpi, and the printing resolution is 360*360 dpi, then 4 passes are required for printing. Figure 1 As shown, two interpolation points are printed in both the horizontal and vertical directions. For example, if the image to be printed has a resolution of 720*720dpi, but the printing resolution is 360*720dpi, then 2-pass printing is required, meaning two interpolation points are printed horizontally.
[0077] The first test image is printed according to the number of scans per unit area of the image to be printed (hereinafter referred to as the PASS number). For example, if the image to be printed requires 4 PASSes (two interpolations each horizontally and vertically), the first test image is printed in the same way. In one embodiment, the first test image is an image designed according to a specific situation, such as a solid color block image where all CMYK channel values (color values) are 25. Solid color block images are simple to design and have consistent color values for all pixels throughout the image. Using it as a test image for printing can quickly reflect the number, area, and color values of black bars in the final printed image, and the test printing speed is fast and efficient. In another embodiment, the first test image is a solid color portion of the image to be printed or a portion of an image with a relatively uniform color. Selecting a portion of the image to be printed for test printing can more realistically and accurately reflect actual printing problems and obtain more accurate results, but the printing speed is slower and the efficiency is lower compared to printing a solid color block test image. In other embodiments, users can select test images or design other test images according to actual conditions, without limitation.
[0078] The first test image is processed by RIP (rasterization) and then input into the printer's lower-level machine. The printhead is then controlled to print on the printing medium to obtain the printed image, which is recorded as the second test image. The second test image reflects the unevenness of the image during actual printing, especially problems such as black lines.
[0079] In one embodiment, the uniformity includes row uniformity and column uniformity, and obtaining the uniformity of the second test image includes:
[0080] The color acquisition device is controlled to acquire the average color value of each row of pixels and the average color value of each column of pixels in the second test image, so as to obtain multiple row average color values and multiple column average color values.
[0081] Calculate the row color fluctuation value and the column color fluctuation value based on the average color values of the multiple rows and the average color values of the multiple columns, respectively.
[0082] When the row color fluctuation value is greater than or equal to the first threshold, the row uniformity is non-uniform.
[0083] When the column color fluctuation value is greater than or equal to the second threshold, the column uniformity is considered non-uniform. Specifically, a color acquisition device such as an eyeone spectrophotometer is used to scan the second test image to obtain the color values of all pixels. Specifically, the color values of all pixels in each row are acquired and averaged to obtain the average color value of multiple pixel rows, denoted as the row average color value. Similarly, the color values of all pixels in each column are acquired and averaged to obtain the average color value of multiple pixel columns, denoted as the column average color value. When the first test image is a color block image, ideally, the average color values of each row and each column in the printed second test image should be consistent. However, the black lines formed during the printing process will affect the average color values of each row and / or column. Therefore, row uniformity and column uniformity are determined through these row average color values and column average color values. In one embodiment, row color fluctuation values are obtained by calculating the standard deviation, variance, range, or coefficient of variation of multiple row average color values. When the obtained row color fluctuation value is greater than or equal to a first threshold, the row color fluctuation in the overall image is considered large, indicating poor row uniformity, and thus the row uniformity is classified as non-uniform. Similarly, column color fluctuation values are obtained by calculating the standard deviation, variance, range, or coefficient of variation of multiple column average color values. When the obtained column color fluctuation value is greater than or equal to a second threshold, the column color fluctuation in the overall image is considered large, indicating poor column uniformity, and thus the column uniformity is classified as non-uniform. The first and second thresholds can be determined according to the actual situation and are not limited here.
[0084] Before printing the image to be printed, it is first processed into a raster image, which is composed of ink dot data, with each ink dot corresponding to one ink dot being ejected. In actual printing, the raster image to be printed is further divided into multiple data sets according to the number of scans of a unit area. For example, when the number of scans per unit area is 2, the raster data of the entire image is divided into two passes for printing, with one pass of raster data being ejected for each scan. Theoretically, when printing based on the raster image, the ink dots are often arranged as follows: Figure 3 The diagram shows a checkerboard pattern where each ink dot in each row starts at the same position, and within the same row, each ink dot is positioned vertically (Y-direction). Similarly, within each column, each ink dot starts at the same position, and within the same column, each ink dot is positioned horizontally (X-direction). In this embodiment, the actual ink dot placement is adjusted based on the obtained total area of the black lines and the average color value, causing a shift in the actual ink dot placement. For example, when only row shifting of ink dot positions is performed, the ink dot position adjustment for the two PASS dot matrix data and the final actual ink dot arrangement will be as follows: Figure 4 The honeycomb pattern shown. In Figure 4 In the process, the ink dots in the second row are offset to the left relative to the corresponding ink dots in the first row by a certain value, and the ink dots in the third row are offset to the right relative to the corresponding ink dots in the second row by a certain value... The direction of the offset between each row or column (e.g., whether to offset to the left or right when offsetting ink dots in a horizontal row, or to the up or down when offsetting ink dots in a vertical column) can be determined according to the actual situation to accurately improve the final image printing quality.
[0085] Preferably, the step of determining the ink dot row offset value and / or ink dot column offset value based on the uniformity, wherein the ink dot row offset value is the pixel value of the horizontal offset of each row of ink dots relative to the corresponding position of the ink dot in the previous row, and the ink dot column offset value is the pixel value of the vertical offset of each column of ink dots relative to the corresponding position of the ink dot in the previous column, includes:
[0086] When the row uniformity is non-uniform, the ink dot column offset value is R1, that is, each column of ink dots is offset by R1 pixels in the vertical direction relative to the corresponding position of the previous column of ink dots.
[0087] When the column uniformity is non-uniform, the ink dot row offset value is R2, that is, each row of ink dots is offset horizontally by R2 pixels relative to the corresponding position of the previous row of ink dots.
[0088] Specifically, such as Figure 5As shown, when the row uniformity is non-uniform, the position of each ink dot in a column is offset by R1 pixels vertically (in the Y direction) relative to the corresponding ink dot in the previous column. For example, each ink dot in the second column (e.g., the ink dot in the first row of the second column) is offset vertically (downward) by R1 pixels relative to the corresponding ink dot in the first column (e.g., the ink dot in the first row of the first column), and each ink dot in the third column (e.g., the ink dot in the first row of the third column) is offset vertically (upward) by R1 pixels relative to the corresponding ink dot in the second column (e.g., the ink dot in the first row of the second column), and so on. The value of R1 can be determined according to the actual situation. Preferably, R1 is 0.5 pixels.
[0089] like Figure 6 As shown, when the column uniformity is non-uniform, the position of each ink dot in a row is offset by R2 pixels horizontally (in the X direction) relative to the corresponding ink dot in the previous row. For example, each ink dot in the second row (e.g., the first column of the second row) is offset by R2 pixels horizontally (to the right) relative to its corresponding ink dot in the first row (e.g., the first column of the first row); each ink dot in the third row (e.g., the first column of the third row) is offset by R2 pixels horizontally (to the left) relative to its corresponding ink dot in the second row (e.g., the first column of the second row)... The value of R2 can be determined according to the actual situation. Preferably, R2 is 0.5 pixels.
[0090] When row uniformity is poor, adjust the ink drop position of each column accordingly; when column uniformity is poor, adjust the ink drop position of each row accordingly; when both are poor, adjust both row and column ink drop positions, following a similar adjustment method as described above, adjusting the row and column ink drop positions sequentially to achieve a result similar to... Figure 7-10 The honeycomb-shaped ink dot arrangement is shown.
[0091] In one embodiment, the number or color value of black lines in a second test image is used to determine how to adjust the ink dot placement to change the checkerboard pattern of the ink dots.
[0092] Preferably, obtaining the uniformity of the second test pattern includes:
[0093] The image acquisition device is controlled to acquire the second test image to obtain the third test image;
[0094] Extract the black street image from the third test image;
[0095] The number of the gangster images is obtained and denoted as the number of gangsters;
[0096] Obtain the color value of the black street image and record it as the black street color value;
[0097] When the number of black bars is greater than or equal to a preset number threshold or the black bar color value is greater than or equal to a preset color threshold, the uniformity of the second test image is non-uniform.
[0098] Specifically, a second test image is acquired using an image acquisition device such as a CCD camera to obtain a third test image. Image processing technology is used to extract all black bars from the third test image and calculate the number of black bars. Furthermore, the average color value of all pixels in the third test image excluding the black bars is obtained and recorded as the first average color value; and the average color value of all pixels in the black bars is obtained and recorded as the second average color value. The color value of the black bars is obtained by subtracting the second average color value from the first average color value. For example, if a black bar consists of 13 horizontally continuous pixels, and the average color value of these 13 pixels is 70, while the average color value of the remaining pixels after removing the 13 black bars is 50, then the color value of the black bars is 70 - 50 = 20. When the number of black bars is greater than or equal to a preset threshold or the black bar color value is greater than or equal to a preset color threshold, the uniformity of the second test image is considered non-uniform.
[0099] Preferably, when the uniformity is non-uniform, the step of determining the ink dot row offset value and / or ink dot column offset value based on the uniformity, wherein the ink dot row offset value is the pixel value of the horizontal offset of each row of ink dots relative to the corresponding position of the ink dot in the previous row, and the ink dot column offset value is the pixel value of the vertical offset of each column of ink dots relative to the corresponding position of the ink dot in the previous column, includes:
[0100] When the number of black lines is greater than the preset number and the color value of the black lines is greater than the preset color value, the ink dot row offset value is T1 and the ink dot column offset value is T2. That is, each row of ink dots is offset by T1 pixels in the horizontal direction relative to the ink dot at the corresponding position of the previous row, and each column of ink dots is offset by T2 pixels in the vertical direction relative to the ink dot at the corresponding position of the previous column.
[0101] When the number of black lines is greater than the preset number and the color value of the black line is less than the preset color value, the ink dot row offset value is T3 and the ink dot column offset value is T4. That is, each row of ink dots is offset by T3 pixels in the horizontal direction relative to the ink dot at the corresponding position of the previous row, and each column of ink dots is offset by T4 pixels in the vertical direction relative to the ink dot at the corresponding position of the previous column.
[0102] When the number of black lines is less than the preset number and the color value of the black line is greater than the preset color value, the ink dot row offset value is T5 and the ink dot column offset value is T6. That is, each row of ink dots is offset by T5 pixels in the horizontal direction relative to the corresponding ink dot in the previous row, and each column of ink dots is offset by T6 pixels in the vertical direction relative to the corresponding ink dot in the previous column.
[0103] When the number of black lines is less than a preset number and the color value of the black lines is less than a preset color value, the ink dot row offset value is T7 and the ink dot column offset value is T8. That is, each row of ink dots is offset horizontally by T7 pixels relative to the corresponding ink dot in the previous row, and each column of ink dots is offset vertically by T8 pixels relative to the corresponding ink dot in the previous column.
[0104] Among them, the values of T1 to T8 are greater than 0 and less than or equal to 1, and T1 to T8 are not completely identical.
[0105] Specifically, when the number of black lines is greater than a preset number and the color value of the black lines is greater than a preset color value, the row offset value of the ink dots is T1 and the column offset value of the ink dots is T2. That is, each row of ink dots is offset by T1 pixels horizontally relative to the corresponding ink dot in the previous row, and each column of ink dots is offset by T2 pixels vertically relative to the corresponding ink dot in the previous column.
[0106] Let the preset quantity be D, and the preset color value be N. For example, D is 5 and N is 20. When the number of black bars is greater than D and the black bar color value is less than N, such as... Figure 7 As shown, the position of the ink dot in each row is offset by T1 pixels horizontally (in the X direction) relative to the corresponding position of the ink dot in the previous row, and the position of the ink dot in each column is offset by T2 pixels vertically (in the Y direction) relative to the corresponding position of the ink dot in the previous column. For example: each ink dot in the second row (e.g., the ink dot in the first column of the second row) is offset by T1 pixels horizontally (to the right) relative to the corresponding ink dot in the first row (e.g., the ink dot in the first column of the first row); each ink dot in the third row (e.g., the ink dot in the first column of the third row) is offset by T1 pixels horizontally (to the left) relative to the corresponding ink dot in the second row (e.g., the ink dot in the first column of the second column); and each ink dot in the second column (e.g., the ink dot in the first row of the second column) is offset by T2 pixels vertically (downward) relative to the corresponding ink dot in the first column (e.g., the ink dot in the first row of the third column); and each ink dot in the third column (e.g., the ink dot in the first row of the third column) is offset vertically (upward) relative to the corresponding ink dot in the second column (e.g., the ink dot in the first row of the second column) ... In one embodiment, the optimal range of ink dot row offset and ink dot column offset values can be obtained by repeatedly testing and obtaining the optimal range of values when the number of black dots is greater than D and the black dot color value is greater than N. The values of T1 and T2 can then be determined from this optimal range during actual printing.
[0107] When the number of black lines is greater than the preset number D and the black line color value is less than the preset color value N, the ink dot row offset value is T3 and the ink dot column offset value is T4. That is, each row of ink dots is offset by T3 pixels horizontally relative to the corresponding ink dot in the previous row, and each column of ink dots is offset by T4 pixels vertically relative to the corresponding ink dot in the previous column.
[0108] like Figure 8 As shown, the position of the ink dot in each row is offset by T3 pixels horizontally (in the X direction) relative to the corresponding position of the ink dot in the previous row, and the position of the ink dot in each column is offset by T4 pixels vertically (in the Y direction) relative to the corresponding position of the ink dot in the previous column. For example: each ink dot in the second row (e.g., the ink dot in the first column of the second row) is offset horizontally (to the right) by T3 pixels relative to its corresponding position in the first row (e.g., the ink dot in the first column of the first row); each ink dot in the third row (e.g., the ink dot in the first column of the third row) is offset horizontally (to the left) by T3 pixels relative to its corresponding position in the second row (e.g., the ink dot in the first column of the second column); and each ink dot in the second column (e.g., the ink dot in the first row of the second column) is offset vertically (downward) by T4 pixels relative to its corresponding position in the first column (e.g., the ink dot in the first row of the third column); and each ink dot in the third column (e.g., the ink dot in the first row of the third column) is offset vertically (upward) by T4 pixels relative to its corresponding position in the second column (e.g., the ink dot in the first row of the second column)... The values of T3 and T4 can be determined according to the actual situation. In one embodiment, the optimal range of ink dot row offset and ink dot column offset values can be obtained by repeatedly testing and obtaining the optimal range of values when the number of black dots is greater than D and the black dot color value is less than N. The values of T3 and T4 can then be determined from this optimal range during actual printing.
[0109] When the number of black dots is less than a preset number and the color value of the black dots is greater than a preset color value, the row offset value of the ink dots is T5 and the column offset value of the ink dots is T6. That is, each row of ink dots is offset by T5 pixels horizontally relative to the corresponding ink dot in the previous row, and each column of ink dots is offset by T6 pixels vertically relative to the corresponding ink dot in the previous column.
[0110] like Figure 9As shown, the position of the ink dot in each row is offset by T5 pixels horizontally (in the X direction) relative to the corresponding position of the ink dot in the previous row, and the position of the ink dot in each column is offset by T6 pixels vertically (in the Y direction) relative to the corresponding position of the ink dot in the previous column. For example: each ink dot in the second row (e.g., the ink dot in the first column of the second row) is offset horizontally (to the right) by T5 pixels relative to its corresponding position in the first row (e.g., the ink dot in the first column of the first row); each ink dot in the third row (e.g., the ink dot in the first column of the third row) is offset horizontally (to the left) by T5 pixels relative to its corresponding position in the second row (e.g., the ink dot in the first column of the second column); and each ink dot in the second column (e.g., the ink dot in the first row of the second column) is offset vertically (downward) by T6 pixels relative to its corresponding position in the first column (e.g., the ink dot in the first row of the third column); and each ink dot in the third column (e.g., the ink dot in the first row of the third column) is offset vertically (upward) by T6 pixels relative to its corresponding position in the second column (e.g., the ink dot in the first row of the second column)... The values of T5 and T6 can be determined according to the actual situation. In one embodiment, the optimal range of ink dot row offset and ink dot column offset values can be obtained by repeatedly testing and obtaining the optimal range of values when the number of black dots is less than D and the black dot color value is greater than N. The values of T5 and T6 can then be determined from this optimal range during actual printing.
[0111] When the number of black lines is less than the preset number D and the color value of the black line is less than the preset color value N, the row offset value of the ink dots is T7 and the column offset value of the ink dots is T8. That is, each row of ink dots is offset by T7 pixels horizontally relative to the corresponding ink dot in the previous row, and each column of ink dots is offset by T8 pixels vertically relative to the corresponding ink dot in the previous column.
[0112] like Figure 10As shown, the position of the ink dot in each row is offset by T7 pixels horizontally (in the X direction) relative to the corresponding position of the ink dot in the previous row, and the position of the ink dot in each column is offset by T8 pixels vertically (in the Y direction) relative to the corresponding position of the ink dot in the previous column. For example: each ink dot in the second row (e.g., the ink dot in the first column of the second row) is offset horizontally (to the right) by T7 pixels relative to its corresponding position in the first row (e.g., the ink dot in the first column of the first row); each ink dot in the third row (e.g., the ink dot in the first column of the third row) is offset horizontally (to the left) by T7 pixels relative to its corresponding position in the second row (e.g., the ink dot in the first column of the second column); and each ink dot in the second column (e.g., the ink dot in the first row of the second column) is offset vertically (downward) by T8 pixels relative to its corresponding position in the first column (e.g., the ink dot in the first row of the third column); and each ink dot in the third column (e.g., the ink dot in the first row of the third column) is offset vertically (downward) by T8 pixels relative to its corresponding position in the second column (e.g., the ink dot in the first row of the second column)... The values of T7 and T8 can be determined according to the actual situation. In one embodiment, the optimal range of ink dot row offset and ink dot column offset values can be obtained by repeatedly testing and obtaining the optimal range of values when the number of black lines is less than D and the black line color value is less than N. The values of T7 and T8 can then be determined from this optimal range during actual printing.
[0113] Preferably, controlling the printer to output ink and print the image to be printed based on the ink dot row offset value and the ink dot column offset value includes:
[0114] The ink dot row offset value and ink dot column offset value are converted into the raster offset value and / or paper feed pulse offset value of the printer;
[0115] The image to be printed is rasterized to obtain its corresponding dot matrix image. The printhead is controlled to eject ink dots according to the dot matrix image, and the landing point of each ink dot is offset according to the raster offset value and / or the paper feed pulse offset value.
[0116] After determining the row and column offset values of the ink dots, the row and column offset values corresponding to each ink dot are converted into raster offset values or paper feed pulse values. This is because during printing, the spray position of the nozzles and the landing position of the ink dots are often controlled by the raster values sent by the raster ruler, and the paper feed pulse values sent by the encoder disk control the paper feed of the printing media. After rasterizing the image to be printed to obtain a dot matrix image, the dot matrix image is sent to the printhead for ink dot ejection. During ink dot ejection, the printhead is controlled to determine the actual landing point of the ink dot based on the raster values and raster offset values of the original ink dot landing position and / or the original paper feed pulse values and paper feed pulse offset values, so that the landing points of each ink dot are as follows: Figures 5 to 10 The honeycomb arrangement shown.
[0117] In one embodiment, after obtaining the ink dot row offset value and / or ink dot column offset value, the printhead can be controlled to print a first test image to obtain a first new second test image based on the ink dot row offset value and / or ink dot column offset value. Then, it is determined whether the uniformity of the new second test image meets the requirements. If it does not meet the requirements, new ink dot row offset values and / or new ink dot column offset values are determined based on the new second test image, these values are recorded, and the printhead is controlled to print the first test image again based on the new ink dot row offset value and / or new ink dot column offset value to obtain a second new second test image. Then, the uniformity of the new second test image is determined. If the uniformity does not meet the requirements, the printhead is controlled again to print the first test pattern based on the new ink dot row offset value and / or the new ink dot column offset value to obtain a third new second test pattern... The above process is repeated until the uniformity of the second test pattern meets the requirements. All the new ink dot row offset values are added to the first ink dot row offset value to obtain the final ink dot row offset value, and / or all the new ink dot column offset values are added to the first ink dot column offset value to obtain the final ink dot column offset value. Then, the printer is controlled to print the image to be printed based on the final ink dot row offset value and / or ink dot column offset value.
[0118] In summary, the ink dot offset-based printing method of this invention obtains the number of scans of the unit area corresponding to the image to be printed; controls the printer to print a first test image onto the printing medium to obtain a second test image based on the number of scans of the unit area; determines the uniformity of the second test image; determines the ink dot row offset value and / or ink dot column offset value based on the uniformity; and controls the printer to output ink and print the image to be printed based on the ink dot row offset value and / or ink dot column offset value. This method adjusts the checkerboard arrangement of ink dots in the prior art to a honeycomb arrangement. In this honeycomb arrangement, adjacent ink dots are slightly offset in the horizontal and / or vertical directions, thereby reducing color superposition and mixing caused by mechanical errors during printing, reducing the generation of black streaks, and improving print quality and effect.
[0119] Example 2
[0120] Please see Figure 11 This invention provides a printing device 200 based on ink dot offset, the device comprising:
[0121] The scan count acquisition module 201 is used to acquire the scan count of the unit region corresponding to the image to be printed, wherein the scan count of the unit region is a natural number greater than or equal to 2;
[0122] Test pattern acquisition module 202 is used to control the printer to print the first test pattern onto the printing medium to obtain the second test pattern based on the number of scans of the unit area;
[0123] Uniformity determination module 203 is used to determine the uniformity of the second test pattern;
[0124] The offset value acquisition module 204 is used to determine the ink dot row offset value and / or ink dot column offset value according to the uniformity, wherein the ink dot row offset value is the pixel value of the horizontal offset of each row of ink dots relative to the corresponding position of the previous row of ink dots, and the ink dot column offset value is the pixel value of the vertical offset of each column of ink dots relative to the corresponding position of the previous column of ink dots.
[0125] The printing module 205 is used to control the printer to output ink and print the image to be printed based on the ink dot row offset value and / or ink dot column offset value.
[0126] Preferably, the uniformity determination module 203 includes:
[0127] The first acquisition unit is used to control the color acquisition device to acquire the average color value of each row of pixels and the average color value of each column of pixels in the second test image, so as to obtain multiple row average color values and multiple column average color values.
[0128] A row uniformity determination unit is used to determine that the row uniformity is non-uniform when the row color fluctuation value is greater than or equal to a first threshold.
[0129] The column uniformity determination unit is used to determine that the column uniformity is non-uniform when the column color fluctuation value is greater than or equal to a second threshold.
[0130] The uniformity determination module 203 includes:
[0131] The second acquisition unit is used to control the image acquisition device to acquire the second test image to obtain the third test image;
[0132] Extraction unit, used to extract the black mafia image from the third test image;
[0133] The gangster quantity acquisition unit is used to acquire the number of gangster images, denoted as the gangster quantity;
[0134] The black line color value acquisition unit is used to acquire the color value of the black line image, which is denoted as the black line color value.
[0135] The determining unit is configured to determine that the uniformity of the second test image is non-uniform when the number of black bars is greater than or equal to a preset number threshold or the black bar color value is greater than or equal to a preset color threshold.
[0136] Preferably, the offset value acquisition module 204 includes:
[0137] The first acquisition unit is used to determine the ink dot column offset value as R1 when the row uniformity is non-uniform, that is, each column of ink dots is offset by R1 pixels in the vertical direction relative to the corresponding position of the previous column of ink dots.
[0138] The second acquisition unit is used to determine the ink dot row offset value as R2 when the column uniformity is non-uniform, that is, each row of ink dots is offset by R2 pixels in the horizontal direction relative to the corresponding position of the previous row of ink dots.
[0139] Preferably, the offset value acquisition module 204 includes:
[0140] The third acquisition unit is used to set the ink dot row offset value to T1 and the ink dot column offset value to T2 when the number of black dots is greater than the preset number and the color value of the black dots is greater than the preset color value. That is, each row of ink dots is offset by T1 pixels in the horizontal direction relative to the ink dot at the corresponding position of the previous row, and each column of ink dots is offset by T2 pixels in the vertical direction relative to the ink dot at the corresponding position of the previous column.
[0141] The fourth acquisition unit is used to set the ink dot row offset value to T3 and the ink dot column offset value to T4 when the number of black dots is greater than the preset number and the color value of the black dots is less than the preset color value. That is, each row of ink dots is offset by T3 pixels in the horizontal direction relative to the corresponding ink dot in the previous row, and each column of ink dots is offset by T4 pixels in the vertical direction relative to the corresponding ink dot in the previous column.
[0142] The fifth acquisition unit is used to set the ink dot row offset value to T5 and the ink dot column offset value to T6 when the number of black dots is less than a preset number and the color value of the black dots is greater than a preset color value. That is, each row of ink dots is offset by T5 pixels in the horizontal direction relative to the corresponding ink dot in the previous row, and each column of ink dots is offset by T6 pixels in the vertical direction relative to the corresponding ink dot in the previous column.
[0143] The sixth acquisition unit is used to set the ink dot row offset value to T7 and the ink dot column offset value to T8 when the number of black dots is less than a preset number and the color value of the black dots is less than a preset color value. That is, each row of ink dots is offset by T7 pixels in the horizontal direction relative to the corresponding ink dot in the previous row, and each column of ink dots is offset by T8 pixels in the vertical direction relative to the corresponding ink dot in the previous column.
[0144] The values of T1 to T8 are greater than 0 and less than or equal to 1, and T1 to T8 are not completely identical.
[0145] Preferably, the printing module 205 includes:
[0146] A conversion unit is used to convert the ink dot row offset value and ink dot column offset value into the raster offset value and / or paper feed pulse offset value of the printer.
[0147] A dot matrix image acquisition unit is used to perform raster processing on the image to be printed to obtain its corresponding dot matrix image;
[0148] The offset unit is used to control the printhead to eject ink dots according to the dot matrix image and to offset the landing point of each ink dot according to the grating offset value and / or the paper feed pulse offset value.
[0149] In summary, the ink dot offset-based printing device provided in this embodiment of the invention obtains the number of scans of the unit area corresponding to the image to be printed; controls the printer to print a first test image onto the printing medium to obtain a second test image based on the number of scans of the unit area; determines the uniformity of the second test image; determines the ink dot row offset value and / or ink dot column offset value based on the uniformity; and controls the printer to output ink and print the image to be printed based on the ink dot row offset value and / or ink dot column offset value. This method adjusts the checkerboard arrangement of ink dots in the prior art to a honeycomb arrangement. In this honeycomb arrangement, adjacent ink dots are slightly offset in the horizontal and / or vertical directions, thereby reducing color superposition and mixing caused by mechanical errors during printing, reducing the generation of black streaks, and improving printing quality and effect.
[0150] Example 3
[0151] Furthermore, the ink dot offset-based printing method of this invention can be implemented by an ink dot offset-based printing device. Figure 12 A schematic diagram of the hardware structure of a printing device based on ink dot offset provided in an embodiment of the present invention is shown.
[0152] A printing device based on ink dot offset may include a processor 301 and a memory 302 storing computer program instructions.
[0153] 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.
[0154] 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.
[0155] The processor 301 reads and executes computer program instructions stored in the memory 302 to implement any of the ink dot offset-based printing methods in the above embodiments.
[0156] In one example, the ink dot offset-based printing device may also include a communication interface 303 and a bus 310. Wherein, as Figure 12 As shown, the processor 301, memory 302, and communication interface 303 are connected through bus 310 and complete communication with each other.
[0157] 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.
[0158] Bus 310 includes hardware, software, or both, that couples components of a printing device together based on ink dot offset. For example, and not as a limitation, 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.
[0159] Example 4
[0160] Furthermore, in conjunction with the ink dot offset-based printing method 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 executed by the processor 301, these computer program instructions implement any of the ink dot offset-based printing methods described in the above embodiments.
[0161] In summary, the printing method, apparatus, device, and storage medium based on ink dot offset provided in this invention obtain the number of scans of the unit area corresponding to the image to be printed; control the printer to print a first test image onto the printing medium to obtain a second test image based on the number of scans of the unit area; determine the uniformity of the second test image; determine the ink dot row offset value and / or ink dot column offset value based on the uniformity; and control the printer to output ink and print the image to be printed based on the ink dot row offset value and / or ink dot column offset value. The method adjusts the checkerboard arrangement of ink dots in the prior art to a honeycomb arrangement. In this honeycomb arrangement, adjacent ink dots are slightly offset in the horizontal and / or vertical directions, thereby reducing color superposition and mixing caused by mechanical errors during printing, reducing the generation of black streaks, and improving printing quality and effect.
[0162] 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.
[0163] 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.
[0164] 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.
[0165] 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 printing method based on ink dot offset, characterized in that, The method includes: Obtain the number of scans of the cell region corresponding to the image to be printed, wherein the number of scans of the cell region is a natural number greater than or equal to 2; Based on the number of scans of the unit area, the printer is controlled to print the first test image onto the printing medium to obtain the second test image; The uniformity of the second test image is determined based on the number and / or color of black bars in the second test image. The ink dot row offset value and / or ink dot column offset value are determined based on the uniformity, wherein the ink dot row offset value is the pixel value of the horizontal offset of each row of ink dots relative to the corresponding position of the ink dot in the previous row, and the ink dot column offset value is the pixel value of the vertical offset of each column of ink dots relative to the corresponding position of the ink dot in the previous column. The printer is controlled to output ink and print the image to be printed based on the ink dot row offset value and / or ink dot column offset value, so as to adjust the ink dot landing point and change the checkerboard arrangement of the ink dots to form a honeycomb arrangement.
2. The printing method based on ink dot offset according to claim 1, characterized in that, The first test image is a color block image or a single color portion of the image to be printed.
3. The printing method based on ink dot offset according to claim 1, characterized in that, The uniformity includes row uniformity and column uniformity, and obtaining the uniformity of the second test image includes: The color acquisition device is controlled to acquire the average color value of each row of pixels and the average color value of each column of pixels in the second test image, so as to obtain multiple row average color values and multiple column average color values. Calculate the row color fluctuation value and the column color fluctuation value based on the multiple row average color values and the multiple column average color values, respectively. When the row color fluctuation value is greater than or equal to the first threshold, the row uniformity is non-uniform. When the column color fluctuation value is greater than or equal to the second threshold, the column uniformity is non-uniform.
4. The printing method based on ink dot offset according to claim 1, characterized in that, The process of obtaining the uniformity of the second test image includes: The image acquisition device is controlled to acquire the second test image to obtain the third test image; Extract the black street image from the third test image; The number of the gangster images is obtained and denoted as the number of gangsters; Obtain the color value of the black street image and record it as the black street color value; When the number of black bars is greater than or equal to a preset number threshold or the black bar color value is greater than or equal to a preset color threshold, the uniformity of the second test image is non-uniform.
5. The printing method based on ink dot offset according to claim 4, characterized in that, The process of obtaining the color value of the underworld image includes: The average color value of all pixels in the third test image, excluding the black street image, is obtained and denoted as the first average color value. The average color value of all pixels in the black street image is obtained and denoted as the second average color value. The color value of the blackout image is obtained based on the first average color value and the second average color value.
6. The printing method based on ink dot offset according to claim 3, characterized in that, The step of determining the ink dot row offset value and / or ink dot column offset value based on the uniformity, wherein the ink dot row offset value is the pixel value of the horizontal offset of each row of ink dots relative to the corresponding position of the ink dot in the previous row, and the ink dot column offset value is the pixel value of the vertical offset of each column of ink dots relative to the corresponding position of the ink dot in the previous column, includes: When the row uniformity is non-uniform, the ink dot column offset value is R1, that is, each column of ink dots is offset by R1 pixels in the vertical direction relative to the corresponding position of the previous column of ink dots. When the column uniformity is non-uniform, the ink dot row offset value is R2, that is, each row of ink dots is offset horizontally by R2 pixels relative to the corresponding ink dot in the previous row.
7. The printing method based on ink dot offset according to claim 4, characterized in that, When the uniformity is non-uniform, the step of determining the ink dot row offset value and / or ink dot column offset value based on the uniformity, wherein the ink dot row offset value is the pixel value of the horizontal offset of each row of ink dots relative to the corresponding position of the ink dot in the previous row, and the ink dot column offset value is the pixel value of the vertical offset of each column of ink dots relative to the corresponding position of the ink dot in the previous column, includes: When the number of black lines is greater than the preset number and the color value of the black lines is greater than the preset color value, the ink dot row offset value is T1 and the ink dot column offset value is T2. That is, each row of ink dots is offset by T1 pixels in the horizontal direction relative to the ink dot at the corresponding position of the previous row, and each column of ink dots is offset by T2 pixels in the vertical direction relative to the ink dot at the corresponding position of the previous column. When the number of black lines is greater than the preset number and the color value of the black line is less than the preset color value, the ink dot row offset value is T3 and the ink dot column offset value is T4. That is, each row of ink dots is offset by T3 pixels in the horizontal direction relative to the ink dot at the corresponding position of the previous row, and each column of ink dots is offset by T4 pixels in the vertical direction relative to the ink dot at the corresponding position of the previous column. When the number of black lines is less than the preset number and the color value of the black line is greater than the preset color value, the ink dot row offset value is T5 and the ink dot column offset value is T6. That is, each row of ink dots is offset by T5 pixels in the horizontal direction relative to the corresponding ink dot in the previous row, and each column of ink dots is offset by T6 pixels in the vertical direction relative to the corresponding ink dot in the previous column. When the number of black lines is less than a preset number and the color value of the black lines is less than a preset color value, the ink dot row offset value is T7 and the ink dot column offset value is T8. That is, each row of ink dots is offset by T7 pixels in the horizontal direction relative to the ink dot at the corresponding position of the previous row, and each column of ink dots is offset by T8 pixels in the vertical direction relative to the ink dot at the corresponding position of the previous column. The values of T1 to T8 are greater than 0 and less than or equal to 1, and T1 to T8 are not completely identical.
8. The printing method based on ink dot offset according to any one of claims 1-7, characterized in that, The step of controlling the printer to output ink and print the image to be printed based on the ink dot row offset value and the ink dot column offset value includes: The ink dot row offset value and ink dot column offset value are converted into the raster offset value and / or paper feed pulse offset value of the printer; The image to be printed is rasterized to obtain its corresponding dot matrix image; The printhead is controlled to eject ink dots according to the dot matrix image, and the landing point of each ink dot is offset according to the grating offset value and / or paper feed pulse offset value.
9. The printing method based on ink dot offset according to any one of claims 1-7, characterized in that, The method further includes: S91: Based on the ink dot row offset value and / or ink dot column offset value, control the printer to output ink and print the first test pattern to obtain a new second test pattern; S92: Determine new ink dot row offset values and / or new ink dot column offset values based on the new second test chart; S93: Repeat steps S91-S92 until the uniformity of the new second test pattern meets the preset requirements.
10. A printing apparatus based on ink dot offset, characterized in that, The device includes: The scan count acquisition module is used to acquire the scan count of the unit region corresponding to the image to be printed, wherein the scan count of the unit region is a natural number greater than or equal to 2; The test pattern acquisition module is used to control the printer to print the first test pattern onto the printing medium to obtain the second test pattern based on the number of scans of the unit area. A uniformity determination module is used to determine the uniformity of the second test image based on the number and / or color of black bars in the second test image. The offset value acquisition module is used to determine the ink dot row offset value and / or ink dot column offset value according to the uniformity, wherein the ink dot row offset value is the pixel value of the horizontal offset of each row of ink dots relative to the corresponding position of the previous row of ink dots, and the ink dot column offset value is the pixel value of the vertical offset of each column of ink dots relative to the corresponding position of the previous column of ink dots. The printing module is used to control the printer to output ink and print the image to be printed based on the ink dot row offset value and / or ink dot column offset value, so as to adjust the ink dot landing point and thus change the checkerboard arrangement of ink dots to form a honeycomb arrangement.
11. A printing device based on ink dot offset, 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-9.