Printing method and device based on ink dot offset, equipment and storage medium
By adjusting the position of the ink dots to convert them from checkerboard to honeycomb arrangement, the problem of uneven image printing in inkjet printing technology is solved, and the printing quality and effect are improved.
Patent Information
- Application Number
- CN202311557598.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-20
- Publication Date
- 2025-05-20
- Estimated Expiration
- 2043-11-20
AI Technical Summary
In the existing inkjet printing technology, the checkerboard-shaped ink dot printing method is prone to poor uniformity of printing images due to machine errors, especially when the ink is thick, the number of PASSs is large or the machine stability is poor, it is easy to have a gangster, which seriously affects the printing quality.
By obtaining the number of scans of the unit area corresponding to the image to be printed, the printer is controlled to print the first test map to determine its uniformity, determine the ink dot row offset value and/or the ink dot column offset value based on the uniformity, and adjust the ink dot landing position to convert it from a checkerboard shape to a honeycomb arrangement.
It reduces the color superposition and mixing caused by mechanical errors during the printing process, reduces the occurrence of underworld and improves the printing quality and effect.
Smart Images

Figure CN120019961A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of inkjet printing, and in particular, to a printing method, apparatus, device, and storage medium based on ink dot offset. Background Art
[0002] Inkjet printing technology refers to ejecting ink droplets onto a printing medium through nozzles on a print head to obtain an image or text, mainly including 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 needs to be interpolated multiple times to complete printing, that is, each unit is composed of multiple pixel points. For example, in 2PASS scanning printing, each unit is composed of 2 pixel points, and in 3PASS scanning printing, each unit is composed of 3 pixel points; as Figure 1 shown, it is a schematic diagram of 4PASS scanning printing. Each unit in the dot matrix data of the image to be printed is composed of 4 pixel points and is arranged in a tic-tac-toe / checkerboard pattern. When inkjetting, the ink dots also eject ink in a tic-tac-toe / checkerboard pattern. Specifically as follows: In the first PASS, the print head moves along the main scanning direction, and inkjet prints pixel position ①. Then the print head and the printing medium move relative to each other by a certain distance, the print head moves in the reverse direction along the main scanning direction, and inkjet prints pixel position ②. Then the print head and the printing medium move relative to each other by a certain distance, the print head moves along the main scanning direction again and inkjet prints pixel position ③. After the print head and the printing medium move relative to each other by a certain distance, it moves in the reverse direction again to inkjet print pixel position ④. This process is repeated until printing is completed.
[0003] However, in actual production applications, this checkerboard-like ink dot printing method is prone to poor or uneven print image uniformity during printing due to machine errors, etc. Especially when the ink is thick, the number of PASSes is large, or the machine stability is poor, the printed image is likely to have some black streaks in the vertical or horizontal direction, seriously affecting the print quality and resulting in the printed image not meeting the printing requirements and having a 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, an embodiment of the present invention provides a printing method based on ink dot offset, the method including:
[0006] Obtaining the number of scans of the unit area corresponding to the image to be printed, where the number of scans of the unit area is a natural number greater than or equal to 2;
[0007] Controlling a printer to print a first test pattern onto a printing medium according to the number of scans of the unit area to obtain a second test pattern;
[0008] Determine the uniformity of the second test pattern;
[0009] Determine the ink dot row offset value and / or ink dot column offset value according to the uniformity, where the ink dot row offset value is the pixel value by which each row of ink dots is horizontally offset relative to the ink dots at the corresponding position in the previous row, and the ink dot column offset value is the pixel value by which each column of ink dots is vertically offset relative to the ink dots at the corresponding position in the previous column;
[0010] Control the printer to eject ink to print the image to be printed according to the ink dot row offset value and / or ink dot column offset value.
[0011] Preferably, the first test pattern is a color block pattern or an image of a single color part in 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] 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 pattern, obtaining a plurality of row average color values and a plurality of column average color values;
[0014] Calculate the row color fluctuation value and the column color fluctuation value respectively according to the average color values of the plurality of rows and the average color values of the plurality of columns;
[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 non-uniform. Preferably, obtaining the uniformity of the second test pattern includes:
[0017] Control the image acquisition device to acquire the second test pattern to obtain a third test pattern;
[0018] Extract the black stripe image from the third test pattern;
[0019] Obtain the number of the black stripe images, denoted as the black stripe number;
[0020] Obtain the color value of the black stripe image, denoted as the black stripe color value;
[0021] When the black stripe number is greater than or equal to the preset number threshold or the black stripe color value is greater than or equal to the preset color threshold, the uniformity of the second test pattern is non-uniform.
[0022] Preferably, obtaining the color value of the black stripe image includes:
[0023] Obtain the average color value of all pixels in the image other than the black stripe image in the third test image, and denote it as the first average color value;
[0024] Obtain the average color value of all pixels in the black stripe image, and denote it as the second average color value;
[0025] Obtain the color value of the black stripe image according to the first average color value and the second average color value.
[0026] Preferably, the method for determining the ink dot row offset value and / or the ink dot column offset value according to the uniformity, where the ink dot row offset value is the pixel value by which each row of ink dots is horizontally offset relative to the corresponding ink dots in the previous row, and the ink dot column offset value is the pixel value by which each column of ink dots is vertically offset relative to the corresponding ink dots 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 vertically offset by R1 pixels relative to the corresponding ink dots in the previous column;
[0028] When the column uniformity is non-uniform, the ink dot row offset value is R2, that is, each row of ink dots is horizontally offset by R2 pixels relative to the corresponding ink dots in the previous row.
[0029] Preferably, when the uniformity is non-uniform, the method for determining the ink dot row offset value and / or the ink dot column offset value according to the uniformity, where the ink dot row offset value is the pixel value by which each row of ink dots is horizontally offset relative to the corresponding ink dots in the previous row, and the ink dot column offset value is the pixel value by which each column of ink dots is vertically offset relative to the corresponding ink dots in the previous column, includes:
[0030] When the number of black stripes is greater than a preset number and the black stripe color value is greater than a 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 horizontally offset by T1 pixels relative to the corresponding ink dots in the previous row, and each column of ink dots is vertically offset by T2 pixels relative to the corresponding ink dots in the previous column;
[0031] When the number of black stripes is greater than a preset number and the black stripe color value is less than a 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 horizontally offset by T3 pixels relative to the corresponding ink dots in the previous row, and each column of ink dots is vertically offset by T4 pixels relative to the corresponding ink dots in the previous column;
[0032] When the number of black lines is less than a preset number and the black line color value is greater than a 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 horizontally offset by T5 pixel values relative to the corresponding position ink dots in the previous row, and each column of ink dots is vertically offset by T6 pixel values relative to the corresponding position ink dots in the previous column;
[0033] When the number of black lines is less than a preset number and the black line color value 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 horizontally offset by T7 pixel values relative to the corresponding position ink dots in the previous row, and each column of ink dots is vertically offset by T8 pixel values relative to the corresponding position ink dots in the previous column;
[0034] 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 the same.
[0035] Preferably, the controlling the printer to eject ink to print the image to be printed according to the ink dot row offset value and the ink dot column offset value includes:
[0036] Converting the ink dot row offset value and the ink dot column offset value into the raster offset value and / or the paper feed pulse offset value of the printer;
[0037] Performing raster processing on the image to be printed to obtain its corresponding dot matrix image;
[0038] Controlling the nozzle to eject ink dots according to the dot matrix image and offsetting the landing points of each ink dot according to the raster offset value and / or the paper feed pulse offset value.
[0039] Preferably, the method further includes:
[0040] S91: Controlling the printer to eject ink to print the first test pattern according to the ink dot row offset value and / or the ink dot column offset value to obtain a new second test pattern;
[0041] S92: Determining a new ink dot row offset value and / or a new ink dot column offset value according to the new second test pattern;
[0042] S93: Repeating steps S91 - S92 until the uniformity of the new second test pattern meets the preset requirements.
[0043] In a second aspect, an embodiment of the present invention provides a printing device based on ink dot offset, and the device includes:
[0044] A scanning times acquisition module, configured to acquire the scanning times of the unit area corresponding to the image to be printed, where the scanning times of the unit area is a natural number greater than or equal to 2;
[0045] A test pattern acquisition module, configured to control a printer to print a first test pattern onto a printing medium according to the number of scans of the unit area to obtain a second test pattern;
[0046] A uniformity determination module, configured to determine the uniformity of the second test pattern;
[0047] An offset value acquisition module, configured to determine a dot row offset value and / or a dot column offset value according to the uniformity, where the dot row offset value is the pixel value by which each row of dots is horizontally offset relative to the corresponding dots in the previous row, and the dot column offset value is the pixel value by which each column of dots is vertically offset relative to the corresponding dots in the previous column;
[0048] A printing module, configured to control the printer to eject ink to print an image to be printed according to the dot row offset value and / or the dot column offset value.
[0049] In a third aspect, an embodiment of the present invention provides a printing device based on dot offset, including: 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 implementation manner is implemented.
[0050] In a fourth aspect, an embodiment of the present invention provides a storage medium, on which computer program instructions are stored, and when the computer program instructions are executed by a processor, the method of the first aspect in the above implementation manner is implemented.
[0051] In summary, the beneficial effects of the present invention are as follows:
[0052] The printing method, device, equipment, and storage medium based on dot offset provided by the embodiments of the present invention obtain the number of scans of the unit area corresponding to the image to be printed; control a printer to print a first test pattern onto a printing medium according to the number of scans of the unit area to obtain a second test pattern; determine the uniformity of the second test pattern; determine a dot row offset value and / or a dot column offset value according to the uniformity; control the printer to eject ink to print the image to be printed according to the dot row offset value and / or the dot column offset value. The method adjusts the arrangement of dot landing positions from a checkerboard pattern in the prior art to a honeycomb pattern. In this honeycomb pattern, adjacent dots are slightly staggered horizontally and / or vertically, thereby reducing color superposition and mixing caused by mechanical errors and the like during printing, reducing the generation of black streaks, and improving the printing quality and effect. Description of the Drawings
[0053] To more clearly illustrate the technical solutions of the embodiments of the present invention, the following will briefly introduce the drawings required to be used in the embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings, and all of these are within the protection scope of the present invention.
[0054] Figure 1 It is a schematic diagram of 4Pass printing in the background technology.
[0055] Figure 2 It is a schematic flowchart of the printing method based on ink dot offset implemented in the present invention.
[0056] Figure 3 It is a schematic diagram of the checkerboard arrangement of ink dots in the embodiment of the present invention.
[0057] Figure 4 It is a schematic diagram of the honeycomb arrangement of ink dots in the embodiment of the present invention.
[0058] Figure 5 It is a schematic diagram of the column offset value of ink dots in the embodiment of the present invention.
[0059] Figure 6 It is a schematic diagram of the row offset value of ink dots in the embodiment of the present invention.
[0060] Figure 7 It is a schematic diagram of the row offset value and column offset value of ink dots in the embodiment of the present invention.
[0061] Figure 8 It is a schematic diagram of the row offset value and column offset value of ink dots in the embodiment of the present invention.
[0062] Figure 9 It is a schematic diagram of the row offset value and column offset value of ink dots in the embodiment of the present invention.
[0063] Figure 10 It is a schematic diagram of the row offset value and column offset value of ink dots in the embodiment of the present invention.
[0064] Figure 11 It is a schematic structural diagram of the printing device based on ink dot offset in the embodiment of the present invention.
[0065] Figure 12 It is a schematic structural diagram of the printing equipment based on ink dot offset in the embodiment of the present invention. Detailed implementation manners
[0066] The features and exemplary embodiments of various aspects of the present invention will be described in detail below. In order to make the objectives, technical solutions and advantages of the present invention more clear, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only 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 some of these specific details. The following description of the embodiments is only to provide a better understanding of the present invention by showing examples of the present invention.
[0067] It should be noted that, in this article, relational terms such as first and second 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 "comprising", "including" or any other variant thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes other elements not expressly listed, or also includes elements inherent to such process, method, article or device. Without further limitation, the elements defined by the statement "including..." do not exclude the existence of additional identical elements in the process, method, article or device including the said elements.
[0068] Embodiment 1
[0069] The embodiment of the present invention provides a printing method based on ink dot offset, which is applicable to a reciprocating scanning inkjet printer. The printer at least includes a print head, and the print head at least includes a column of nozzles for ejecting ink dots. In the embodiment of the present invention, by adjusting the landing position of the ejected ink dots, that is, changing the checkerboard arrangement of the ink dots, the elimination of black streaks is improved and the uniformity of the printed image is improved.
[0070] Please refer to 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 area corresponding to the image to be printed, where the number of scans of the unit area is a natural number greater than or equal to 2;
[0072] S2: Control the printer to print the first test pattern onto the printing medium according to the number of scans of the unit area to obtain the second test pattern;
[0073] S3: Determine the uniformity of the second test pattern, where the uniformity includes uniform and non-uniform;
[0074] S4: Determine the dot row offset value and / or dot column offset value according to the uniformity, where the dot row offset value is the pixel value of the dots in each row offset horizontally relative to the dots at the corresponding positions in the previous row, and the dot column offset value is the pixel value of the dots in each column offset vertically relative to the dots at the corresponding positions in the previous column;
[0075] S5: Control the printer to eject ink for printing the image to be printed according to the dot row offset value and / or dot column offset value
[0076] Specifically, in the embodiments of the invention, first, print a first test pattern to determine the uniformity of the printed image, such as the number, area, position, color, etc. of the black lines. The number of scans of the unit area here is the above-mentioned PASS number. In the embodiments of the present invention, the number of scans of the unit area is a natural number greater than or equal to 2. The number of scans of the unit area of the image to be printed can be determined according to the image accuracy and printing accuracy of the image to be printed. Exemplarily, if the image accuracy of the image to be printed is 720*720 dpi and the printing accuracy is 360*360 dpi, then 4PASS printing is required, that is, as Figure 1 shown, interpolation printing is performed twice horizontally and vertically. Another example is that if the image accuracy of the image to be printed is 720*720 dpi and the printing accuracy is 360*720 dpi, then 2PASS printing is required, that is, interpolation printing is performed twice horizontally.
[0077] Print the first test pattern according to the number of scans of the unit area (hereinafter referred to as the PASS number) of the image to be printed obtained. If the image to be printed needs to be printed in 4PASS (interpolation printing is performed twice horizontally and vertically), print the first test pattern in the same printing method. In one embodiment, the first test pattern is an image designed according to specific conditions. For example, the first test pattern is a solid color block pattern, and the CMYK channel values (color values) of this color block pattern are all 25. The solid color block pattern is simple in design and the color values of all pixels in the entire image are the same. Using it as a test pattern for printing can quickly feedback the number, area, and color values of the black lines in the final printed image, and the test printing speed is fast and the efficiency is high. In another embodiment, the first test pattern is the solid color part image of the image to be printed or the image part with relatively single color. Selecting part of the image in the image to be printed for test printing can more truly and accurately feedback the actual printing problems and obtain more accurate results, but the printing speed is slower and the efficiency is lower compared to printing the solid color block test pattern. In other embodiments, the user can select the test pattern according to the actual situation or design other test patterns, which are not limited here.
[0078] After performing RIP (rasterization) processing on the first test image and inputting it into the printer lower computer, the nozzle is controlled to print on the printing medium to obtain a printed image, denoted as the second test image. The second test image reflects problems such as image non-uniformity, especially black streaks, during actual printing.
[0079] In one embodiment, the uniformity includes row uniformity and column uniformity, and obtaining the uniformity of the second test image includes:
[0080] Controlling a 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, obtaining a plurality of row average color values and a plurality of column average color values;
[0081] Calculating a row color fluctuation value and a column color fluctuation value respectively according to the average color values of the plurality of rows and the average color values of the plurality of columns;
[0082] When the row color fluctuation value is greater than or equal to a first threshold, the row uniformity is non-uniform;
[0083] When the column color fluctuation value is greater than or equal to a second threshold, the column uniformity is 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. Among them, the color values of all pixels in each row are obtained and averaged to obtain the average color values of multiple pixel rows, denoted as row average color values. Similarly, the color values of all pixels in each column are obtained and averaged to obtain the average color values of multiple pixel columns, denoted as column average color values. When the first test image is a color block image, ideally, the row average color values and column average color values in the printed second test image should be consistent, and the black streaks formed during the printing process will affect the row average color values and / or column average color values. Therefore, the row uniformity and column uniformity are determined through these row average color values and column average color values. In one embodiment, the row color fluctuation value is 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 the first threshold, it is considered that the row color fluctuates greatly in the overall image, indicating poor row uniformity, and the row uniformity is considered non-uniform; the column color fluctuation value is 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 the second threshold, it is considered that the column color fluctuates greatly in the overall image, indicating poor column uniformity, and the column uniformity is considered non-uniform. The first threshold and the second threshold here can be determined according to the actual situation and are not limited here.
[0084] Before printing the image to be printed, the image to be printed will be RIP - processed to obtain a dot - matrix image. The dot - matrix image is composed of ink - dot data, and each ink - dot data corresponds to ejecting an ink dot. In actual printing, further, the dot - matrix image of the image to be printed is divided into multiple pieces of data according to the number of times of scanning the unit area. Exemplarily, when the unit scanning times is 2, the dot - matrix data of the whole image is printed in two PASSes. Each time of scanning and printing corresponds to ejecting one PASS of dot - matrix data. In theory, when printing by ejecting ink according to the dot - matrix image, the arrangement of ink dots often is like Figure 3 shown in a checkerboard pattern. The starting positions of the ink dots in each row are the same, and the positions of the ink dots in the same row are the same in the longitudinal (Y - direction). The starting positions of the ink dots in each column are the same, and the positions of the ink dots in the same column are the same in the horizontal (X - direction). In the embodiments of the invention, according to the obtained total area of the black stripes and the average color value, the landing positions of each ink dot during actual printing are adjusted, so that the landing positions of the ink dots are offset during actual printing. Exemplarily, when only the row - offset of the ink - dot positions is performed, the adjustment of the ink - dot positions of the two - PASS dot - matrix data and the final actual arrangement of the ink dots will be like Figure 4 shown in a honeycomb pattern. In Figure 4 , the ink dots in the second row are offset to the left by a certain value relative to the corresponding ink dots in the first row, and the ink - dot positions in the third row are offset to the right by a certain value relative to the corresponding ink dots in the second row... The direction of the offset between each row or column (for example, when performing row - offset of ink dots horizontally, whether to offset left or right between rows; when performing column - offset of ink dots vertically, whether to offset up or down) can be determined according to the actual situation to improve the printing quality of the final image accurately.
[0085] Preferably, determining the ink - dot row - offset value and / or the ink - dot column - offset value according to the uniformity, where the ink - dot row - offset value is the pixel value by which each row of ink dots is offset horizontally relative to the corresponding ink dots in its previous row, and the ink - dot column - offset value is the pixel value by which each column of ink dots is offset vertically relative to the corresponding ink dots in its 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 vertically by R1 pixels relative to the corresponding ink dots in its previous column;
[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 ink dots in its previous row.
[0088] Specifically, as Figure 5As shown, when the row uniformity is non-uniform, the position of the ink dots in each column is offset by R1 pixel values in the longitudinal direction (Y direction) relative to the ink dots at the corresponding position in the previous column. For example, the ink dots in the second column (such as the ink dot in the first row of the second column) are offset by R1 pixel points in the longitudinal direction (downward) relative to the ink dots at the corresponding position in the first column (such as the ink dot in the first row of the first column). The ink dots in the third column (such as the ink dot in the first row of the third column) are offset by R1 pixel points in the longitudinal direction (upward) relative to the ink dots at the corresponding position in the second column (such as the ink dot in the first row of the second column).... The value of R1 can be determined according to the actual situation. Preferably, R1 is 0.5 pixel.
[0089] As Figure 6 shown, when the column uniformity is non-uniform, the position of the ink dots in each row is offset by R2 pixel values in the horizontal direction (X direction) relative to the ink dots at the corresponding position in the previous row. For example, the ink dots in the second row (such as the ink dot in the first column of the second row) are offset by R2 pixel points in the horizontal direction (rightward) relative to the ink dots at the corresponding position in the first row (such as the ink dot in the first column of the first row). The ink dots in the third row (such as the ink dot in the first column of the third row) are offset by R2 pixel points in the horizontal direction (leftward) relative to the ink dots at the corresponding position in the second row (such as the ink dot in the first column of the second row).... The value of R2 can be determined according to the actual situation. Preferably, R2 is 0.5 pixel.
[0090] When the row uniformity is poor, the landing positions of the ink dots in each column are adjusted accordingly. When the column uniformity is poor, the landing positions of the ink dots in each row are adjusted accordingly. When both are poor, the positions of the ink dots in both rows and columns are adjusted. The specific adjustment method is similar to the above. First, the landing positions of the ink dots in rows and columns are adjusted successively to obtain a honeycomb-like ink dot arrangement similar to Figures 7 - 10 shown.
[0091] In one embodiment, by obtaining the number of black lines or color values in the second test pattern, etc., it is determined how to adjust the landing positions of the ink dots to change the checkerboard-like arrangement of the ink dots.
[0092] Preferably, the obtaining of the uniformity of the second test pattern includes:
[0093] Controlling an image acquisition device to acquire the second test pattern to obtain a third test pattern;
[0094] Extracting the black line image in the third test pattern;
[0095] Obtaining the number of the black line images, denoted as the number of black lines;
[0096] Obtaining the color value of the black line image, denoted as the black line color value;
[0097] When the number of black lines is greater than or equal to a preset number threshold or the black line color value is greater than or equal to a preset color threshold, the uniformity of the second test pattern is non-uniform.
[0098] Specifically, an electronic third test image is obtained by using an image acquisition device such as a CCD camera to acquire a second test image. All black stripe images in the third test image are extracted by using image processing technology, and the number of all black stripe images is calculated. In addition, the average color value of all pixels in the image other than the black stripe images in the third test image is obtained and denoted as the first average color value; and the average color value of all pixels in the black stripe images is obtained and denoted as the second average color value; the color value of the black stripe images is obtained by subtracting the second average color value from the first average color value. Exemplarily, if the black stripe is 13 horizontally consecutive pixels, the average color value of these 13 pixels is 70, and the average color value of the remaining pixels in the entire image after removing the 13 pixels of the black stripe is 50, then the color value of the black stripe is 70 - 50 = 20. When the number of black stripes is greater than or equal to a preset number threshold or the color value of the black stripes 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, determining the ink dot row offset value and / or the ink dot column offset value according to the uniformity, where the ink dot row offset value is the pixel value by which each row of ink dots is horizontally offset relative to the corresponding position ink dots in the previous row, and the ink dot column offset value is the pixel value by which each column of ink dots is vertically offset relative to the corresponding position ink dots in the previous column includes:
[0100] When the number of black stripes is greater than a preset number and the color value of the black stripes is greater than a 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 horizontally offset by T1 pixel values relative to the corresponding position ink dots in the previous row, and each column of ink dots is vertically offset by T2 pixel values relative to the corresponding position ink dots in the previous column;
[0101] When the number of black stripes is greater than a preset number and the color value of the black stripes is less than a 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 horizontally offset by T3 pixel values relative to the corresponding position ink dots in the previous row, and each column of ink dots is vertically offset by T4 pixel values relative to the corresponding position ink dots in the previous column;
[0102] When the number of black stripes is less than a preset number and the color value of the black stripes is greater than a 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 horizontally offset by T5 pixel values relative to the corresponding position ink dots in the previous row, and each column of ink dots is vertically offset by T6 pixel values relative to the corresponding position ink dots in the previous column;
[0103] When the number of black channels is less than a preset number and the black channel color value is less than a preset color value, the dot row offset value is T7, and the dot column offset value is T8, that is, each row of dots is horizontally offset by T7 pixel values relative to the corresponding dots in the previous row, and each column of dots is vertically offset by T8 pixel values relative to the corresponding dots 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 all the same
[0105] Specifically, when the number of black channels is greater than a preset number and the black channel color value is greater than a preset color value, the dot row offset value is T1, and the dot column offset value is T2, that is, each row of dots is horizontally offset by T1 pixel values relative to the corresponding dots in the previous row, and each column of dots is vertically offset by T2 pixel values relative to the corresponding dots in the previous column.
[0106] Let the preset number be D and the preset color value be N. Exemplarily, D is 5 and N is 20. When the number of black channels is greater than D and the black channel color value is less than N, as Figure 7 shown, the position of each dot in each row is horizontally offset by T1 pixel values relative to the corresponding dot in the previous row (in the X direction), and the position of each dot in each column is vertically offset by T2 pixel values relative to the corresponding dot in the previous column (in the Y direction). For example: Each dot in the second row (such as the dot in the first column of the second row) is horizontally offset by T1 pixel points to the right relative to the corresponding dot in the first row (such as the dot in the first column of the first row), and each dot in the third row (such as the dot in the first column of the third row) is horizontally offset by T1 pixel points to the left relative to the corresponding dot in the second row (such as the dot in the first column of the second row)..., and each dot in the second column (such as the dot in the first row of the second column) is vertically offset by T2 pixel points downward relative to the corresponding dot in the first column (such as the dot in the first row of the first column), and each dot in the third column (such as the dot in the first row of the third column) is vertically offset by T2 pixel points upward relative to the corresponding dot in the second column (such as the dot in the first row of the second column).... The values of T1 and T2 can be determined according to the actual situation. In one embodiment, the optimal value range of the dot row offset value and the dot column offset value can be obtained by repeated testing when the number of black channels is greater than D and the black channel color value is greater than N, and the values of T1 and T2 are determined from this optimal value range during actual printing.
[0107] When the number of black channels is greater than the preset number D and the black channel color value is less than the preset color value N, the dot row offset value is T3, and the dot column offset value is T4, that is, each row of dots is horizontally offset by T3 pixel values relative to the corresponding dots in the previous row, and each column of dots is vertically offset by T4 pixel values relative to the corresponding dots in the previous column.
[0108] As Figure 8 shown, the position of the ink dots in each row is offset by T3 pixel values in the horizontal direction (X direction) relative to the ink dots at the corresponding position in the previous row, and the position of the ink dots in each column is offset by T4 pixel values in the vertical direction (Y direction) relative to the ink dots at the corresponding position in the previous column. For example: The ink dots in the second row (such as the ink dot in the first column of the second row) are offset by T3 pixel points in the horizontal direction (to the right) relative to the ink dots at the corresponding position in the first row (such as the ink dot in the first column of the first row), and the ink dots in the third row (such as the ink dot in the first column of the third row) are offset by T3 pixel points in the horizontal direction (to the left) relative to the ink dots at the corresponding position in the second row (such as the ink dot in the first column of the second row)..., and the ink dots in the second column (such as the ink dot in the first row of the second column) are offset by T4 pixel points in the vertical direction (downward) relative to the ink dots at the corresponding position in the first column (such as the ink dot in the first row of the first column), and the ink dots in the third column (such as the ink dot in the first row of the third column) are offset by T4 pixel points in the vertical direction (upward) relative to the ink dots at the corresponding position in the second column (such as 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 value ranges of the ink dot row offset value and the ink dot column offset value can be obtained by repeated testing when the number of black lines is greater than D and the black line color value is less than N, and the values of T3 and T4 are determined from this optimal value range during actual printing.
[0109] When the number of the black lines is less than the preset number and the black line color value 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 pixel values in the horizontal direction relative to the ink dots at the corresponding position in the previous row, and each column of ink dots is offset by T6 pixel values in the vertical direction relative to the ink dots at the corresponding position in the previous column.
[0110] As Figure 9As shown, the position of the ink dots in each row is offset by T5 pixel values horizontally (in the X direction) relative to the ink dots at the corresponding position in the previous row, and the position of the ink dots in each column is offset by T6 pixel values vertically (in the Y direction) relative to the ink dots at the corresponding position in the previous column. For example: The ink dots in the second row (such as the ink dot in the first column of the second row) are offset by T5 pixel points horizontally (to the right) relative to the ink dots at the corresponding position in the first row (such as the ink dot in the first column of the first row), and the ink dots in the third row (such as the ink dot in the first column of the third row) are offset by T5 pixel points horizontally (to the left) relative to the ink dots at the corresponding position in the second row (such as the ink dot in the first column of the second row)..., and the ink dots in the second column (such as the ink dot in the first row of the second column) are offset by T6 pixel points vertically (downward) relative to the ink dots at the corresponding position in the first column (such as the ink dot in the first row of the first column), and the ink dots in the third column (such as the ink dot in the first row of the third column) are offset by T6 pixel points vertically (upward) relative to the ink dots at the corresponding position in the second column (such as 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 value range of the ink dot row offset value and the ink dot column offset value can be obtained by repeated testing when the number of black lines is less than D and the black line color value is greater than N, and the values of T5 and T6 are determined from this optimal value range during actual printing.
[0111] When the number of the black lines is less 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 T7, and the ink dot column offset value is T8, that is, each row of ink dots is offset by T7 pixel values horizontally relative to the ink dots at the corresponding position in the previous row, and each column of ink dots is offset by T8 pixel values vertically relative to the ink dots at the corresponding position in the previous column.
[0112] Such as Figure 10As shown, the position of the ink dots in each row is horizontally (in the X direction) offset by T7 pixel values relative to the ink dots at the corresponding position in the previous row, and the position of the ink dots in each column is vertically (in the Y direction) offset by T8 pixel values relative to the ink dots at the corresponding position in the previous column. For example: The ink dots in the second row (such as the ink dot in the first column of the second row) are horizontally (to the right) offset by T7 pixel points relative to the ink dots at the corresponding position in the first row (such as the ink dot in the first column of the first row), and the ink dots in the third row (such as the ink dot in the first column of the third row) are horizontally (to the left) offset by T7 pixel points relative to the ink dots at the corresponding position in the second row (such as the ink dot in the first column of the second row)..., and the ink dots in the second column (such as the ink dot in the first row of the second column) are vertically (downward) offset by T8 pixel points relative to the ink dots at the corresponding position in the first column (such as the ink dot in the first row of the first column), and the ink dots in the third column (such as the ink dot in the first row of the third column) are vertically (downward) offset by T8 pixel points relative to the ink dots at the corresponding position in the second column (such as 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 value ranges of the ink dot row offset value and the ink dot column offset value can be obtained by repeated testing when the number of black stripes is less than D and the black stripe color value is less than N, and the values of T7 and T8 are determined from this optimal value range during actual printing.
[0113] Preferably, the controlling the printer to eject ink to print the image to be printed according to the ink dot row offset value and the ink dot column offset value includes:
[0114] Converting the ink dot row offset value and the ink dot column offset value into the raster offset value and / or the paper feed pulse offset value of the printer;
[0115] Performing raster processing on the image to be printed to obtain its corresponding dot matrix image, controlling the nozzle of the print head to eject ink dots according to the dot matrix image, and offsetting the landing points of each ink dot according to the raster offset value and / or the paper feed pulse offset value.
[0116] After determining the ink dot row offset value and the ink dot column offset value, convert the row offset value and the column offset value corresponding to each ink dot into a raster offset value or a paper feed pulse value. Because during the printing process, the raster value sent by the grating ruler is often used to control the ejection position of the nozzles in the print head and the landing position of the ink dots, and the paper feed pulse value sent by the code disk is used to control the paper feed of the printing medium. After rasterizing the image to be printed, a dot matrix image is obtained, and the dot matrix image is sent to the print head for ejecting ink dots. When ejecting ink dots, control the print head to determine the actual landing point of the ink dots according to the original raster value of the ink dot landing position and the raster offset value and / or the original paper feed pulse value and the paper feed pulse offset value, so that the landing points of each ink dot are arranged in a honeycomb pattern as Figures 5 to 10 shown.
[0117] In one embodiment, after obtaining the dot row offset value and / or the dot column offset value, the nozzle can also be controlled to print a first test image according to the dot row offset value and / or the dot column offset value to obtain a first new second test image, and then determine whether the uniformity of the new second test image meets the requirements. If the requirements are not yet met, new dot row offset values and / or new dot column offset values are determined according to the new second test image, and these values are recorded. Then, according to the new dot row offset value and / or the new dot column offset value, the nozzle is controlled to print the first test image again to obtain a second new second test image, and then determine whether the uniformity of the new second test image meets the requirements. If the requirements are not yet met, the nozzle is controlled to print the first test image again according to the new dot row offset value and / or the new dot column offset value to obtain a third new second test image... Repeat the above process until the uniformity of the second test image meets the requirements. Add all the obtained new dot row offset values to the dot row offset value obtained for the first time to obtain the final dot row offset value, and / or add all the new dot column offset values to the dot column offset value obtained for the first time to obtain the final dot column offset value. Then, control the printer to print the image to be printed according to the final dot row offset value and / or the dot column offset value.
[0118] In summary, the printing method based on dot offset in the embodiment of the present invention obtains the number of scans of the unit area corresponding to the image to be printed; controls the printer to print the first test image onto the printing medium according to the number of scans of the unit area to obtain a second test image; determines the uniformity of the second test image; determines the dot row offset value and / or the dot column offset value according to the uniformity; and controls the printer to eject ink to print the image to be printed according to the dot row offset value and / or the dot column offset value. The method adjusts the arrangement of the dot landing positions from the checkerboard arrangement in the prior art to a honeycomb arrangement. In this honeycomb arrangement, adjacent dots are slightly staggered horizontally and / or vertically, thereby reducing color superposition and mixing caused by mechanical errors and the like during printing, reducing the generation of black streaks, and improving the printing quality and effect.
[0119] Embodiment 2
[0120] Please refer to Figure 11 , the embodiment of the present invention provides a printing device 200 based on dot offset. The device includes:
[0121] A scan number acquisition module 201, configured to acquire the number of scans of the unit area corresponding to the image to be printed, where the number of scans of the unit area is a natural number greater than or equal to 2;
[0122] A test image acquisition module 202, configured to control the printer to print the first test image onto the printing medium according to the number of scans of the unit area to obtain a second test image;
[0123] A uniformity determination module 203, configured to determine the uniformity of the second test pattern;
[0124] An offset value acquisition module 204, configured to determine a dot row offset value and / or a dot column offset value according to the uniformity, where the dot row offset value is the pixel value by which each row of dots is horizontally offset relative to the dots at the corresponding positions in the previous row, and the dot column offset value is the pixel value by which each column of dots is vertically offset relative to the dots at the corresponding positions in the previous column;
[0125] A printing module 205, configured to control the printer to eject ink for printing an image to be printed according to the dot row offset value and / or the dot column offset value.
[0126] Preferably, the uniformity determination module 203 includes:
[0127] A first acquisition unit, configured to control a 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 pattern, so as to obtain a plurality of row average color values and a plurality of column average color values;
[0128] A row uniformity determination unit, configured 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] A column uniformity determination unit, configured 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] A second acquisition unit, configured to control an image acquisition device to acquire the second test pattern to obtain a third test pattern;
[0132] An extraction unit, configured to extract a black stripe image from the third test pattern;
[0133] A black stripe quantity acquisition unit, configured to acquire the quantity of the black stripe images, denoted as the black stripe quantity;
[0134] A black stripe color value acquisition unit, configured to acquire the color value of the black stripe images, denoted as the black stripe color value;
[0135] A determination unit, configured to determine that the uniformity of the second test pattern is non-uniform when the black stripe quantity is greater than or equal to a preset quantity threshold or the black stripe 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 configured to, 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 pixel values longitudinally relative to the corresponding position ink dots in its previous column;
[0138] The second acquisition unit is configured to, when the column uniformity is non-uniform, the ink dot row offset value is R2, that is, each row of ink dots is offset by R2 pixel values horizontally relative to the corresponding position ink dots in its previous row.
[0139] Preferably, the offset value acquisition module 204 includes:
[0140] The third acquisition unit is configured to, when the number of black stripes is greater than a preset number and the black stripe color value is greater than a 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 pixel values horizontally relative to the corresponding position ink dots in its previous row, and each column of ink dots is offset by T2 pixel values longitudinally relative to the corresponding position ink dots in its previous column;
[0141] The fourth acquisition unit is configured to, when the number of black stripes is greater than a preset number and the black stripe color value is less than a 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 pixel values horizontally relative to the corresponding position ink dots in its previous row, and each column of ink dots is offset by T4 pixel values longitudinally relative to the corresponding position ink dots in its previous column;
[0142] The fifth acquisition unit is configured to, when the number of black stripes is less than a preset number and the black stripe color value is greater than a 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 pixel values horizontally relative to the corresponding position ink dots in its previous row, and each column of ink dots is offset by T6 pixel values longitudinally relative to the corresponding position ink dots in its previous column;
[0143] The sixth acquisition unit is configured to, when the number of black stripes is less than a preset number and the black stripe color value 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 pixel values horizontally relative to the corresponding position ink dots in its previous row, and each column of ink dots is offset by T8 pixel values longitudinally relative to the corresponding position ink dots in its previous column;
[0144] Wherein, the values of T1 to T8 are greater than 0 and less than or equal to 1, and T1 to T8 are not all the same.
[0145] Preferably, the printing module 205 includes:
[0146] The conversion unit is configured to convert the ink dot row offset value and the ink dot column offset value into the raster offset value and / or the paper feed pulse offset value of the printer;
[0147] A dot matrix image acquisition unit, configured to perform raster processing on the image to be printed to obtain a corresponding dot matrix image;
[0148] An offset unit, configured to control the nozzle to eject ink dots according to the dot matrix image and offset the landing points of the ink dots according to the raster offset value and / or the paper feed pulse offset value.
[0149] In summary, the printing device based on ink dot offset provided by the embodiment of the present invention obtains the number of scans of the unit area corresponding to the image to be printed; controls the printer to print the first test pattern on the printing medium according to the number of scans of the unit area to obtain a second test pattern; determines the uniformity of the second test pattern; determines the ink dot row offset value and / or the ink dot column offset value according to the uniformity; and controls the printer to eject ink to print the image to be printed according to the ink dot row offset value and / or the ink dot column offset value. The method adjusts the arrangement of the landing points of the ink dots in the prior art from a checkerboard-like arrangement to a honeycomb-like arrangement. In this honeycomb-like arrangement, adjacent ink dots are slightly staggered in the horizontal and / or vertical directions, thereby reducing color superposition and mixing caused by mechanical errors and the like during the printing process, reducing the generation of black streaks, and improving the printing quality and effect.
[0150] Embodiment III
[0151] In addition, the printing method based on ink dot offset in the embodiment of the present invention can be implemented by a printing device based on ink dot offset. Figure 12 The hardware structure diagram of the printing device based on ink dot offset provided by the embodiment of the present invention is shown.
[0152] The printing device based on ink dot offset may include a processor 301 and a memory 302 storing computer program instructions.
[0153] Specifically, the above-mentioned processor 301 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present invention.
[0154] The memory 302 may include a mass storage for data or instructions. By way of example and 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 a suitable case, the memory 302 may include removable or non-removable (or fixed) media. In a suitable case, the memory 302 may be internal or external to the data processing device. In a particular embodiment, the memory 302 is a non-volatile solid-state memory. In a particular embodiment, the memory 302 includes a read-only memory (ROM). In a suitable case, 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.
[0155] The processor 301 reads and executes the computer program instructions stored in the memory 302 to implement any one of the printing methods based on ink dot offset in the above embodiments.
[0156] In one example, the printing device based on ink dot offset may further include a communication interface 303 and a bus 310. Among them, as Figure 12 shown, the processor 301, the memory 302, and the communication interface 303 are connected through the bus 310 and complete communication with each other.
[0157] The communication interface 303 is mainly used to implement communication between the various modules, devices, units, and / or devices in the embodiments of the present invention.
[0158] The bus 310 includes hardware, software, or both, and couples the components of the printing device based on ink dot offset to each other. By way of example and not limitation, the 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), a 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 a combination of two or more of these. In a suitable case, the bus 310 may include one or more buses. Although the embodiments of the present invention describe and illustrate specific buses, the present invention contemplates any suitable bus or interconnect.
[0159] Embodiment 4
[0160] In addition, in combination with the printing method based on ink dot offset in the above embodiments, an embodiment of the present invention can be implemented by providing a computer-readable storage medium. Computer program instructions are stored on the computer-readable storage medium; when the computer program instructions are executed by the processor 301, any one of the printing methods based on ink dot offset in the above embodiments is implemented.
[0161] In summary, the printing method, device, equipment and storage medium based on ink dot offset provided by the embodiments of the present invention obtain the number of scanning times of the unit area corresponding to the image to be printed; control the printer to print the first test pattern onto the printing medium according to the number of scanning times of the unit area to obtain the second test pattern; determine the uniformity of the second test pattern; determine the ink dot row offset value and / or the ink dot column offset value according to the uniformity; and control the printer to eject ink to print the image to be printed according to the ink dot row offset value and / or the ink dot column offset value. The method adjusts the arrangement of the ink dot landing positions from the checkerboard arrangement in the prior art to a honeycomb arrangement. In this honeycomb arrangement, adjacent ink dots are slightly staggered both horizontally and / or vertically, thereby reducing color superposition and mixing caused by mechanical errors and the like during printing, reducing the generation of black streaks, and improving the printing quality and effect.
[0162] It should be clear 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 between steps after understanding the spirit of the present invention.
[0163] The functional blocks shown in the above block diagrams 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 functional card, etc. When implemented in software, the elements of the present invention are programs or code segments for performing the required tasks. The program or code segment can be stored in a machine-readable medium or transmitted via a data signal carried in a carrier wave on a transmission medium or a communication link. A "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 discs, hard disks, fiber optic media, radio frequency (RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.
[0164] It should also be noted that in the exemplary embodiments mentioned in the present invention, some methods or systems are described 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 executed in the order mentioned in the embodiments, or different from the order in the embodiments, or several steps can be executed simultaneously.
[0165] As described above, the above are only specific embodiments of the present invention. Those skilled in the art can clearly understand that for the convenience and conciseness of description, the specific working processes of the above-described systems, modules, and units can refer to the corresponding processes in the foregoing method embodiments and will not be elaborated herein. It should be understood that the protection scope of the present invention is not limited thereto. Any person skilled in the art within the technical scope disclosed by the present invention can easily think of various equivalent modifications or substitutions, 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 comprises: Obtaining the number of unit area scans corresponding to the image to be printed, wherein the number of unit area scans is a natural number greater than or equal to 2; Controlling the printer to print the first test image onto a print medium to obtain a second test image according to the number of scans of the unit area; determining uniformity of the second test pattern; Determine an ink dot row offset value and / or an ink dot column offset value according to the uniformity, wherein the ink dot row offset value is a pixel value of the ink dots of each row offset in the horizontal direction relative to the ink dots at the corresponding positions of the previous row, and the ink dot column offset value is a pixel value of the ink dots of each column offset in the vertical direction relative to the ink dots at the corresponding positions of the previous column; The printer is controlled to discharge ink and print the image to be printed according to the ink dot row offset value and / or the ink dot column offset value.
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 partial image in 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 acquiring the uniformity of the second test pattern includes: 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 to obtain a plurality of row average color values and a plurality of column average color values; Calculate a row color fluctuation value and a column color fluctuation value respectively according to the plurality of row average color values and the plurality of column average color values; When the row color fluctuation value is greater than or equal to a 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 obtaining the uniformity of the second test pattern comprises: Controlling the image acquisition device to acquire the second test image to obtain a third test image; Extracting a black track image in the third test image; Obtaining the number of the black track images, recorded as the black track number; Obtaining a color value of the black track image, recorded as a black track color value; When the number of the black lines is greater than or equal to a preset number threshold or the color value of the black lines is greater than or equal to a preset color threshold, the uniformity of the second test image is uneven.
5. The printing method based on ink dot offset according to claim 4, characterized in that: The obtaining of the color value of the black track image comprises: Obtain an average color value of all pixels in the image other than the black track image in the third test image, and record it as a first average color value; Obtaining an average color value of all pixels in the black track image, recorded as a second average color value; The color value of the black line image is acquired according to 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 the ink dot column offset value according to the uniformity, wherein the ink dot row offset value is the pixel value of each row of ink dots offset in the horizontal direction relative to the ink dots at the corresponding positions in the previous row, and the ink dot column offset value is the pixel value of each column of ink dots offset in the vertical direction relative to the ink dots at the corresponding positions in the previous column, comprises: 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 pixel values in the longitudinal direction relative to the ink dots at the corresponding positions in the previous column; When the column uniformity is non-uniform, the ink dot row offset value is R2, that is, each row of ink dots is offset by R2 pixel values in the horizontal direction relative to the ink dots at the corresponding positions 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 ink dot row offset value and / or ink dot column offset value are determined according to the uniformity, wherein the ink dot row offset value is a pixel value of each row of ink dots offset in the horizontal direction relative to the ink dots at the corresponding positions in the previous row, and the ink dot column offset value is a pixel value of each column of ink dots offset in the vertical direction relative to the ink dots at the corresponding positions in the previous column, including: 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 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 pixel values in the horizontal direction relative to the ink dots at the corresponding position in the previous row, and each column of ink dots is offset by T2 pixel values in the vertical direction relative to the ink dots at the corresponding position in the previous column; When the number of black lines is greater 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 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 dots at the corresponding position in the previous row, and each column of ink dots is offset by T4 pixels in the vertical direction relative to the ink dots at the corresponding position in the previous column; When the number of black lines is less 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 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 ink dots at the corresponding position in the previous row, and each column of ink dots is offset by T6 pixels in the vertical direction relative to the ink dots at the corresponding position in the previous column; When the number of black lines is less than the preset number and the color value of the black lines is less than the 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 dots at the corresponding position in the previous row, and each column of ink dots is offset by T8 pixels in the vertical direction relative to the ink dots at the corresponding position in 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 the same.
8. The printing method based on ink dot offset according to any one of claims 1 to 7, characterized in that: The step of controlling the printer to discharge ink and print the image to be printed according to the ink dot row offset value and the ink dot column offset value comprises: Converting the ink dot row offset value and the ink dot column offset value into a raster offset value and / or a paper feed pulse offset value of the printer; Performing raster processing on the image to be printed to obtain its corresponding dot matrix image; The nozzle 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 the paper feed pulse offset value.
9. The printing method based on ink dot offset according to any one of claims 1 to 7, characterized in that: The method further comprises: S91: controlling the printer to print the first test image according to the ink dot row offset value and / or the ink dot column offset value to obtain a new second test image; S92: determining a new ink dot row offset value and / or a new ink dot column offset value according to the new second test image; S93: Repeat steps S91-S92 until the uniformity of the new second test pattern meets the preset requirement.
10. A printing device based on ink dot offset, characterized in that: The device comprises: A scanning number acquisition module, used to acquire the scanning number of the unit area corresponding to the image to be printed, wherein the scanning number of the unit area is a natural number greater than or equal to 2; A test image acquisition module, used for controlling the printer to print the first test image onto a printing medium to obtain a second test image according to the number of scanning times of the unit area; a uniformity determination module, configured to determine the uniformity of the second test pattern; an offset value acquisition module, used to determine an ink dot row offset value and / or an ink dot column offset value according to the uniformity, wherein the ink dot row offset value is a pixel value of the horizontal offset of each row of ink dots relative to the ink dots at corresponding positions in the previous row, and the ink dot column offset value is a pixel value of the vertical offset of each column of ink dots relative to the ink dots at corresponding positions in the previous column; The printing module is used to control the printer to print the image to be printed according to the ink dot row offset value and / or the ink dot column offset value.
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, when the computer program instructions are executed by the processor, implement the method according to any one of claims 1 to 9.
Citation Information
Patent Citations
Printing data processing method, device and equipment for eliminating ink droplet deviation as well as medium
CN113829751A
Image data grouping printing method and device, control panel, equipment and storage medium
CN114683726A
Bidirectional printing pixel floating point data calibration method and device, equipment and medium
CN115476603A
Printing method, device and equipment based on image real-time deviation correction and storage medium
CN116766806A
Insertion point printing deviation detection method and device, equipment and storage medium
CN117048195A