Disclosure of Invention
The invention aims to solve the technical problem of positioning of spray holes of pixels of scanned images of printing objects in an ink-jet printer, and provides a spray hole positioning chart, a device and a medium of the ink-jet printer, which are used for quickly and automatically identifying spray holes of the pixels of the printed images in a spray hole color difference correction system of the ink-jet printer, namely positioning the spray holes from which the pixels are printed.
For convenience of description, the invention is described with a white point pixel value of 0, which is common in the printer field, and for the case that the white point pixel value is 255 (with an 8-bit image as a column), only the corresponding value is required to be inverted, namely 255-P (x, y), and P (x, y) is an image pixel value, so that the understanding of the invention is not affected.
The invention provides an inkjet printer jet orifice positioning map, which is characterized by comprising one or more coding areas 110, wherein each coding area comprises one or more jet orifice positioning units 104, and each jet orifice positioning unit comprises an optional starting section 201, an optional coding section 202 and an optional ending section 203;
Wherein the nozzle hole positioning unit is further characterized in that,
The width 304 of the nozzle locating unit is greater than or equal to 3 pixels, the width of the nozzle locating unit refers to the number of nozzles required for printing the nozzle locating unit, the value of the pixel of the current nozzle is allowed to be greater than 0, the value of the pixel of other non-current nozzles is 0, and the pixel of the current nozzle refers to the pixel printed by the nozzle of the current nozzle locating unit.
And the spray hole positioning units of different spray holes have different codes.
Preferably, the nozzle hole positioning unit is further characterized in that,
The initial section marks the beginning of the coding section, corresponds to a line segment area formed by one or more pixels in a jet orifice positioning chart of the ink-jet printer, and the number of pixels with the pixel value of more than or equal to T2 in the initial section is more than or equal to 1;
The coding section 202 is composed of a plurality of binary code bits, the code is a number of the spray holes for printing the pixels, the ith code bit corresponds to a line segment region composed of Ni pixels in the spray hole positioning chart of the ink jet printer, and in the Ni pixels, a pixel value of Ni1 pixels is < Ti1, a pixel value of Ni2 pixels > =Ti1, and Ni=Ni1+Ni2, wherein Ni1 is greater than or equal to 0, and Ni2 is greater than 0, wherein i= [0, 1..M-1 ], and M is a coding bit number;
The end section marks the end of the coding section, corresponds to a line segment area formed by one or more pixels in a jet orifice positioning chart of the ink-jet printer, and has the number of pixels with the pixel value more than or equal to T3 more than or equal to 1;
For the color reduction system, ti1, T2 and T3 are larger than 0.
Preferably, the representation of each code bit includes, but is not limited to:
In the first mode, ni 2< T4 represents 0, ni 2> =T4 represents 1, T4 is a code bit decision threshold, and the value T4= [1, ni ]. Or vice versa, ni 2< T4 represents 1, ni 2> =t4 represents 0.
In the second mode, s=sum (Pik), if s < T5 represents 0, and if s > =t5 represents 1, SUM () is a SUM function, pik is the kth pixel in the jet printing pixel sequence of the ith jet hole positioning unit, k= [0, ni-1], and T5 is a decision threshold, which can be set as needed. Or vice versa, if s < T5 represents 1, if s > =t5 represents 0.
Preferably, the coding mode of the coding section of the spray hole positioning unit includes, but is not limited to, original code, inverse code or complement code.
Preferably, in the same coding region, codes of adjacent spray hole positioning units are alternately arranged in an original code, an inverse code or a complementary code mode, so that the code distance of the codes of the adjacent spray hole positioning units can be increased, and the recognition rate is improved.
In particular, the spray hole positioning units of the same spray hole are combined into a logic spray hole positioning unit so as to increase the length of the coding section, and spray hole coding is carried out in the coding section of the logic spray hole positioning unit.
Further, different spray hole positioning units are arranged in a staggered manner, and a logic spray hole positioning unit is formed in a cascading mode to realize spray hole coding, and at the moment, the combination of all spray hole positioning units is regarded as a coding area. Such a case should still be considered to be within the scope of the present invention.
In order to solve the problem of positioning the spray holes of the scanned image pixels of the printing stock in the ink-jet printer, the invention also provides a computer readable storage medium, which is characterized in that the spray hole positioning map of the ink-jet printer provided by the invention is stored on the storage medium.
The invention has the advantages of convenient use, the spray hole number information is encoded in the printing image, and the invention can be used for quickly and automatically identifying the spray hole to which the printing image pixel belongs in a spray hole color difference correction system of the printer, namely positioning the spray hole from which the pixel is printed.
Detailed Description
Features and exemplary embodiments of various aspects of the present invention will be described in detail below, and in order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in further detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely configured to illustrate the invention and are not configured to limit the invention. It will be apparent to one skilled in the art that the present invention may be practiced without some of these specific details.
Specific embodiments of the present invention are described in detail below.
Example 1 inkjet Printer orifice positioning map with Width 3
As shown in fig. 1, 103 is a schematic diagram of an inkjet printer nozzle positioning chart with a width of 3, for convenience of description, the inkjet printhead 101 and its nozzle 102 are described above the inkjet printer nozzle positioning chart 103, and the inkjet printer nozzle positioning chart is printed in a direction perpendicular to the direction in which the nozzles are arranged, in this embodiment, each nozzle is responsible for printing a column of pixels in the inkjet printer nozzle positioning chart, which is also referred to as a home pixel of the nozzle.
In this embodiment, the inkjet printer nozzle positioning chart is composed of a first coding region 110, a second coding region 111 and a third coding region 112, each coding region is composed of a plurality of nozzle positioning units 104, and in this embodiment, the width of the nozzle positioning units is 3, that is, each nozzle positioning unit covers 3 nozzles or 3 pixels, for example, the nozzle positioning unit 104 of the nth nozzle. In the nozzle positioning unit 104 of the nth nozzle, only the pixel value of the corresponding row of the nth nozzle is allowed to be greater than 0, and the pixel values corresponding to the two adjacent rows of nozzles are 0.
In order to determine the operation state of each nozzle by analyzing the inkjet printer nozzle positioning map, it is a primary task to which nozzle each pixel in the inkjet printer nozzle positioning map is printed. For this purpose, the invention proposes a method for coding a sequence of pixels in a nozzle-locating unit for recognition.
As shown in fig. 2, the nozzle hole positioning unit is composed of a start section, a code section, and an end section, wherein the start section and the end section are selectable items. In this embodiment, the nozzle positioning unit is composed of a start section 201, a coding section 202 and an end section 203.
The initial section marks the beginning of the coding section, corresponds to a line segment area formed by one or more pixels in the jet hole positioning map of the ink-jet printer, and the number of pixels with the pixel value larger than T2 in the initial section is larger than or equal to 1.
The code segment 202 is composed of a plurality of binary digits, the code is a number of spray holes for printing the pixels, different spray holes have different codes, the ith code digit corresponds to a line segment region composed of Ni pixels in a spray hole positioning chart of the ink jet printer, and a pixel value of Ni1 pixels is < Ti1, a pixel value of Ni2 pixels > = Ti1, and Ni=Ni1+Ni2, wherein Ni1 is greater than or equal to 0, and Ni2 is greater than 0, wherein i= [0,1, ]. M-1, and M is a code digit.
And the ending section marks the ending of the coding section and corresponds to a line segment area formed by one or more pixels in the jet orifice positioning map of the ink-jet printer, and the number of pixels with pixel values larger than T3 in the ending section is larger than or equal to 1.
For the color reduction system, ti1, T2 and T3 are larger than 0.
As shown in fig. 4, the nozzle positioning unit is an 8-bit image, the pixel value range is [0,255] interval, the thresholds Ti1, T2, T3 of each segment are [1,254], the initial segment of the interval occupies 4 pixels, each code bit occupies 4 pixels, i.e., ni=4, the end segment occupies 4 pixels, wherein the first and third pixel values of the initial segment are 255, and the second and fourth pixel values are 0. In the coding section, the first code bit pixel is all 0, i.e., n11=4, n12=0, indicating that the most significant bit MSB is 0, the first and third pixel values of the second code bit are 255, the second and fourth pixel values are 0, i.e., n11=2, n12=2, and thus the second most significant bit is 1, and so on, the coding value is binary 0110. The coding mode is used for limiting the ink quantity of the spray holes, and preventing excessive ink quantity from causing ink flowing and affecting analysis and processing of scanned images.
The code segments, which are identical in pixel value layout, may represent different code values, i.e. the code segments as shown in fig. 4, the first code bit pixel is all 0, i.e. n11=4, n12=0, the most significant bit MSB is 1, the first and third pixel values of the second code bit are 255, the second and fourth pixel values are 0, i.e. n11=2, n12=2, and thus the second most significant bit is 0, and so on, the code value is binary 1001.
The code adopted by the spray hole positioning unit comprises, but is not limited to, an original code, an inverse code or a complementary code.
In the same coding region, the codes of the adjacent spray hole positioning units adopt an original code, an inverse code or a complementary code alternative mode, so that the code distance of the codes of the adjacent spray hole positioning units can be increased, and the recognition rate is improved.
For the encoded segments, there are two encoding orders, one is the upper bit (MSB) first (left), i.e. the encoded upper bits are arranged next to the start segment, as shown in fig. 5. Another implementation is that the high order bits are later (right), i.e. the encoded highest order bits are arranged immediately after the end segment, as shown in fig. 6.
Example 2 inkjet Printer nozzle positioning map with nozzle positioning Unit width 5
In the inkjet printing technology, ink is printed on a substrate and spread on the substrate due to surface tension, wettability, etc., so that the diameter of ink drops becomes large, and when an image on the substrate is converted by a scanner, more pixels are required to carry ink drops of an orifice. In order to adapt to the large-ink-quantity printing spray head, the invention has no limit on the maximum width of the spray hole positioning unit, and the minimum width is not less than 3.
In order to adapt to a large-volume ink jet head, embodiment 2 of the present invention proposes an inkjet printer nozzle positioning chart 701 with a nozzle positioning unit width of 5, as shown in fig. 7, wherein the inkjet printer nozzle positioning chart is composed of 5 coding areas 704, 705, 706, 707, 708, each coding area is composed of a plurality of parallel nozzle positioning units 703, and in the nozzle positioning units, a middle column of pixels 702 is a pixel responsible for printing of a nozzle to which the nozzle positioning unit belongs.
Further, FIG. 8 illustrates a 20-bit coded, 2-20 orifices maximum searchable inkjet printing system with ink volume limitation, alternating code inversion, and 5 orifice positioning unit width inkjet printer orifice positioning map segments.
Example 3 inkjet Printer orifice positioning map consisting of logical orifice positioning Unit
The spray hole positioning units of the same spray hole are combined into a logic spray hole positioning unit so as to increase the length of the coding section, and spray hole coding is carried out in the coding section of the logic spray hole positioning unit.
In an extreme case, in order to avoid overlapping of pixels covered by ink printed by different orifices, the length of the orifice positioning unit should be greater than or equal to 3, when the limit value is taken to be 3, each orifice positioning unit becomes 3*3 matrix units, only the central pixel can be used for coding, the pixel is also called a encodable pixel, other pixels in the orifice positioning unit are called uncodable pixels, at this time, the orifice positioning unit has no beginning section and ending section, and the coding bit length is only 1 bit, and only 1 orifice can be coded. In order to solve the problem of insufficient coding length, a plurality of spray hole positioning units of the same spray hole are cascaded, the cascaded spray hole positioning units can be logically connected together through coding pixels, the pixels are used for bearing coding bits, the increase of the coding length is realized, and the coding requirement of a system is met.
As shown in fig. 9, the nozzle positioning units 904, 906, 908 of the nozzle n are combined to form one logical nozzle positioning unit. The encodable pixel 905 of the orifice positioning unit 904, the encodable pixel 907 of the orifice positioning unit 906, and the encodable pixel 909 of the orifice positioning unit 908 are combined to form the encodable pixel of the logical orifice positioning unit of the orifice n, which is used for carrying the encoding bit. All orifice positioning units are combined into one coding area 903.
Further, different spray hole positioning units are arranged in a staggered manner, and a logic spray hole positioning unit is formed in a cascading mode to realize spray hole coding, and at the moment, the combination of all spray hole positioning units is regarded as a coding area. Such a case should still be considered to be within the scope of the present invention.
Example 4. Inkjet Printer orifice positioning Pattern storage Medium
In combination with the inkjet printer orifice positioning map in the above embodiment, embodiments of the present invention may be implemented by providing a computer-readable storage medium. The computer readable storage medium stores thereon the inkjet printer orifice positioning chart proposed by the present invention.
The invention has the advantages of convenient use, the spray hole number information is encoded in the printing image, and the invention can be used for quickly and automatically identifying the spray hole to which the printing image pixel belongs in a spray hole color difference correction system of the printer, namely positioning the spray hole from which the pixel is printed.
The above embodiments are only for illustrating the technical solution of the present invention and not for limiting the same, and although the present invention has been described in detail with reference to the embodiments, it should be understood by those skilled in the art that modifications and equivalents may be made thereto without departing from the spirit and scope of the technical solution of the present invention, which is intended to be covered by the scope of the claims of the present invention.