Disclosure of Invention
The embodiment of the invention provides an Onepass ink-jet printing method, device, equipment and storage medium, which are used for solving the problems of low efficiency of multi-pass printing of any width and limitation of application of Onepass printing equipment in the prior art.
In a first aspect, an embodiment of the present invention provides an Onepass inkjet printing method, including:
determining an image printing range according to the characteristic parameters of the printing system and the image parameters;
extracting printing data corresponding to a printing channel, and determining valid data and invalid data in the printing data according to the image printing range;
inputting the effective data into the corresponding printing channel for ink-jet printing;
and inputting the invalid data into the corresponding printing channel after ink non-discharge processing.
Preferably, the printing system characteristic parameters include: printing the number of channels, the length of the channels and the organization structure of the spray head; the image parameters include: the width of the image along the arrangement direction of the printing channels, the length perpendicular to the arrangement direction of the printing channels and the position of the initial printing of the image.
Preferably, the determining the image printing range according to the printing system characteristic parameter and the image parameter includes:
establishing an XY printing coordinate system with pixels as basic units according to the number of the printing channels and the length of the printing channels;
determining a starting printing image coordinate value X1 and an ending printing image coordinate value X2 of an image to be printed on an X axis in the printing coordinate system according to the width of the image along the arrangement direction of a printing channel and the position of the initial printing of the image, wherein X1 is not more than X2;
determining the image printing range according to the start printing image coordinate value X1 and the end printing image coordinate value X1.
Preferably, the extracting the print data corresponding to the print channel, and determining valid data and invalid data in the print data according to the image printing range includes:
determining the arrangement sequence of each printing channel according to the nozzle organization structure, and determining a starting channel coordinate value X3 and an ending channel coordinate value X4 of each printing channel on an X axis in the printing coordinate system according to the arrangement sequence and the channel length, wherein X3 is not less than X4;
determining whether the printing channel is within the image printing range according to a starting channel coordinate value X3 and an ending channel coordinate value X4 of the printing channel;
when the printing channel is in the image printing range, the printing data corresponding to the printing channel is valid data;
and when the printing channel is positioned outside the image printing range, the printing data corresponding to the printing channel is invalid data.
Preferably, the determining whether the print path is within the image printing range according to the start path coordinate value X3 and the end path coordinate value X4 of the print path includes:
when (X1 ≦ X3) ≦ X4 ≦ X2, the print channel is located within the image printing range;
when (X3 ≦ X1)) (X1 ≦ X4 ≦ X2), nozzles in the print channel in the range of X1 to X4 are within the image printing range, nozzles in the print channel in the range of X3 to X1 are outside the image printing range;
when (X1 ≦ X3 ≦ X2) ≦ N (X2 ≦ X4), nozzles in the print channel in the range of X3 to X2 are within the image printing range, nozzles in the print channel in the range of X2 to X4 are outside the image printing range;
when (X4. ltoreq. X1. ltoreq. X2. ltoreq. X3), the printing path is located outside the image printing range.
Preferably, the inputting the corresponding printing channel after the non-ink-discharge processing of the invalid data comprises:
acquiring the length of invalid data, and generating a shielding parameter according to the length of the invalid data;
performing AND operation on the invalid data and the shielding parameters to obtain ink non-discharge data;
inputting the ink non-discharge data into the printing channel.
Preferably, the printing channel corresponds to one spray head or a row of nozzles on one spray head.
In a second aspect, embodiments of the present invention provide an Onepass inkjet printing apparatus, the apparatus including:
the image printing range determining module is used for determining an image printing range according to the characteristic parameters of the printing system and the image parameters;
the data distinguishing module is used for extracting printing data corresponding to a printing channel and determining valid data and invalid data in the printing data according to the image printing range;
the effective data printing module is used for inputting the effective data into the corresponding printing channel to perform ink-jet printing;
and the invalid data processing module is used for inputting the invalid data into the corresponding printing channel after ink non-discharge processing.
In a third aspect, an embodiment of the present invention provides an Onepass inkjet printing apparatus, including: at least one processor, at least one memory, and computer program instructions stored in the memory, which when executed by the processor, implement the method of the first aspect of the embodiments described above.
In a fourth aspect, embodiments of the present invention provide a storage medium having stored thereon computer program instructions, which when executed by a processor, implement the method of the first aspect in the above embodiments.
In summary, the Onepass inkjet printing method, the apparatus, the device and the storage medium provided by the embodiments of the present invention determine the image printing range through the printing system characteristic parameters and the image parameters, and can select an image with any width to print within the total length range of the printing channel; then extracting printing data corresponding to each printing channel, and determining valid data and invalid data in the printing data according to the image printing range; inputting the effective data into the corresponding printing channel for ink-jet printing; and inputting the invalid data into the corresponding printing channel after ink discharging is not performed, thereby ensuring that ink is discharged only in the image printing range as far as possible and realizing dynamic printing with any width.
Detailed Description
Features and exemplary embodiments of various aspects of the present invention will be described in detail below, and in order to make objects, technical solutions and advantages of the present invention more apparent, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not to be construed as limiting 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. The following description of the embodiments is merely intended to provide a better understanding of the present invention by illustrating examples of the present invention.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
Referring to fig. 1, an embodiment of the present invention provides an Onepass inkjet printing method, which determines an image printing range through a printing system characteristic parameter and an image parameter, and can select an image with any width to print within a total length range of a printing channel; then extracting printing data corresponding to each printing channel, and determining valid data and invalid data in the printing data according to the image printing range; inputting the effective data into the corresponding printing channel for ink-jet printing; and inputting the invalid data into the corresponding printing channel after ink discharging is not performed, thereby ensuring that ink is discharged only in the image printing range as far as possible and realizing dynamic printing with any width. The Oneepass ink-jet printing method specifically comprises the following steps:
s1, determining an image printing range according to the characteristic parameters of the printing system and the image parameters;
s2, extracting the printing data corresponding to each printing channel, and determining valid data and invalid data in the printing data according to the image printing range;
s3, inputting the effective data into the corresponding printing channel for ink-jet printing;
and S4, inputting the invalid data into the corresponding printing channel after ink non-discharge processing.
The specific characteristic parameters of the printing system comprise: printing the number of channels, the length of the channels and the organization structure of the spray head; the image parameters include: the width of the image along the arrangement direction of the printing channels, the length perpendicular to the arrangement direction of the printing channels and the position of the initial printing of the image. Wherein the print channel represents a jet when there is only one column of nozzles in the jet; when a nozzle has multiple rows of nozzles, the print channel may represent either a nozzle or a row of nozzles in the nozzle, and when the print channel represents a row of nozzles, the nozzle has multiple print channels. The channel length is expressed in terms of the number of nozzles in the print channel, which is 8 if there are 8 nozzles in the print channel, and 260 if there are 260 nozzles in the print channel. Referring to fig. 2, the nozzle 100 is composed of only one row of nozzles 110, the printing channel represents one nozzle 100, and the printing channel has 6 nozzles 110, so that the channel length is 6.
Preferably, referring to fig. 3, the step S1 specifically includes the following steps:
s11, establishing an XY printing coordinate system with pixels as basic units according to the number of the printing channels and the length of the printing channels;
s12, determining a start printing image coordinate value X1 and an end printing image coordinate value X2 of the image to be printed on the X axis in the printing coordinate system according to the width of the image along the arrangement direction of the printing channel and the position of the start printing of the image, wherein X1 is not less than X2;
s13, determining the image printing range according to the coordinate value X1 of the start printing image and the coordinate value X2 of the end printing image.
Referring to fig. 4, the step S2 specifically includes the following steps:
s21, determining the arrangement sequence of each printing channel according to the nozzle organization structure, and determining a starting channel coordinate X3 and an ending channel coordinate X4 of each printing channel on the X axis in the printing coordinate system according to the arrangement sequence and the channel length, wherein X3 is not less than X4;
s22, determining whether the printing channel is in the image printing range according to the starting channel coordinate X3 and the ending channel coordinate X4 of the printing channel;
s23, when the printing channel is in the image printing range, the printing data corresponding to the printing channel is valid data;
and S24, when the printing channel is located outside the image printing range, the printing data corresponding to the printing channel is invalid data.
In this embodiment, one pixel corresponds to one nozzle, the X-axis of the printing coordinate system corresponds to the printing channels, the coordinates of the starting points of all the printing channels are set to be (0,0), and the coordinates of the starting channel and the ending channel of each printing channel are calculated according to the channel length.
Referring to fig. 5, the step S22 specifically includes the following steps:
s221, when (X1 ≦ X3) andgate (X4 ≦ X2), the printing channel is located within the image printing range;
the printing data corresponding to the printing channel is valid data and can be directly input into the printing channel for ink-jet printing.
S222, when (X3 ≦ X1) andgate (X1 ≦ X4 ≦ X2), nozzles in the print channel in the range of X1 to X4 are within the image printing range, nozzles in the print channel in the range of X3 to X1 are outside the image printing range;
the print data corresponding to the nozzles in the range from X1 to X4 in the print channel is valid data, and can be directly input to the corresponding nozzles for inkjet printing, and the print data corresponding to the nozzles in the range from X3 to X1 in the print channel is invalid data, and the corresponding nozzles can be input only after ink non-discharge processing.
S223, when (X1 ≦ X3 ≦ X2) ≦ N (X2 ≦ X4), nozzles in the print channel in the range of X3 to X2 are within the image printing range, nozzles in the print channel in the range of X2 to X4 are outside the image printing range;
the print data corresponding to the nozzles in the range from X3 to X2 in the print channel is valid data, and can be directly input to the corresponding nozzles for inkjet printing, and the print data corresponding to the nozzles in the range from X2 to X4 in the print channel is invalid data, and the corresponding nozzles can be input only after ink non-discharge processing.
S224, when (X4 ≦ X1 ≦ X2 ≦ X3), the printing path is located outside the image printing range.
The print data corresponding to the print channel is invalid data, and the print data can be input into the corresponding print channel only after ink non-discharge processing.
Referring to fig. 6, when the print data is invalid, step S4 specifically includes:
s41, acquiring the length of invalid data, and generating a shielding parameter according to the length of the invalid data;
s42, carrying out AND operation on the invalid data and the shielding parameters to obtain ink non-discharge data;
and S43, inputting the ink non-discharge data into the printing channel.
In the present embodiment, the print data includes ink discharge data "1" and ink non-discharge data "0", and the mask parameter is ink non-discharge data "0". And generating a shielding parameter with the same length as the invalid data according to the length of the invalid data, carrying out AND operation on the invalid data and the shielding parameter to obtain ink non-discharge data, and inputting the ink non-discharge data into a corresponding printing channel for ink jet printing.
Referring to fig. 7, the embodiment of the Onepass inkjet printing method is as follows: in this embodiment, the number of the printing channels is 7, if one printing channel has 100 nozzles, the length of the printing channel is 100, and one nozzle corresponds to one pixel on the image, the width of the image b along the arrangement direction of the printing channel a is 290 pixels, and the initial printing position of the image b is the 30 th pixel position of the 3 rd printing channel. Establishing a printing coordinate system with pixels as basic units, setting the coordinates of the starting points of all printing channels as (0,0), setting the coordinate values of the initial printing image of the image b on the X axis in the printing coordinate system as 230 and the coordinate values of the ending printing image as 520, and setting the printing range of the image as 230-520, thereby knowing that the 1 st printing channel a12 nd printing channel a2And 7 th printing channel a7Out of the image printing range, the 1 st printing channel a is extracted12 nd printing channel a2And 7 th printing channel a7And the corresponding printing data is invalid data, and the invalid data corresponding to the three channels are input into the corresponding printing channels after ink non-discharge processing. And the 4 th printing pass a4And the 5 th printing passage a5Within the image printing range, the 4 th printing channel a is extracted4And the 5 th printing passage a5The corresponding printing data is effective data and can be directly input into a printing channel for ink-jet printing; 3 rd printing channel a3And the 6 th printing path a6Part of which is located in the image printing range, the 3 rd printing channel a3The print data corresponding to the nozzles in the range of 200 to 230 is invalid data, and the 3 rd print channel a requiring no ink discharge processing3The printing data corresponding to the nozzles in the range of 230 to 300 is effective data, and the ink-jet printing can be directly carried out; print pass 6 a6The print data corresponding to the nozzles in the range of 500 to 530 is effective data, and the 6 th printing channel a is directly used for ink-jet printing6The print data corresponding to the nozzles in the range of 530 to 300 is valid data, and the no-ink-discharge processing is required. The Onepass ink-jet printing method can realize dynamic width printing or local printing of the image only by configuring the printing position parameters of the image, and has high printing speed and high efficiency.
Referring to fig. 8, an embodiment of the present invention provides an Onepass inkjet printing apparatus, including:
an image printing range determining module 10, configured to determine an image printing range according to the printing system characteristic parameter and the image parameter;
the data distinguishing module 20 is configured to extract print data corresponding to a print channel, and determine valid data and invalid data in the print data according to the image printing range;
the valid data printing module 30 is used for inputting the valid data into the corresponding printing channel for ink-jet printing;
and the invalid data processing module 40 is used for inputting the invalid data into the corresponding printing channel after ink non-discharge processing is carried out on the invalid data.
Preferably, the printing system characteristic parameters include: printing the number of channels, the length of the channels and the organization structure of the spray head; the image parameters include: the width of the image along the arrangement direction of the printing channels, the length perpendicular to the arrangement direction of the printing channels and the position of the initial printing of the image.
Preferably, the image printing range determining module 10 includes:
the printing coordinate system establishing unit is used for establishing an XY printing coordinate system which takes the pixel as a basic unit according to the number of the printing channels and the length of the printing channels;
an image coordinate determination unit for determining a start printing image coordinate value X1 and an end printing image coordinate value X2 of an image to be printed on an X axis in the printing coordinate system according to the width of the image along the arrangement direction of a printing channel and the position of the start printing of the image, wherein X1 is not more than X2;
an image printing range determining unit for determining the image printing range according to the start printing image coordinate value X1 and the end printing image coordinate value X2.
Preferably, the data differentiating module 20 includes:
a channel coordinate determination unit for determining an arrangement order of each printing channel according to a nozzle organization structure, and determining a starting channel coordinate value X3 and an ending channel coordinate value X4 of each printing channel on an X axis in the printing coordinate system according to the arrangement order and the channel length, wherein X3 is not more than X4;
the image printing range determining unit is used for determining whether the printing channel is in the image printing range according to the starting channel coordinate value X3 and the ending channel coordinate value X4 of the printing channel;
the effective data determining unit is used for determining that the printing data corresponding to the printing channel is effective data when the printing channel is in the image printing range;
and the invalid data determining unit is used for determining that the printing data corresponding to the printing channel is invalid data when the printing channel is positioned outside the image printing range.
Preferably, the determining whether the print path is within the image printing range according to the start path coordinate value X3 and the end path coordinate value X4 of the print path includes:
when (X1 ≦ X3) ≦ X4 ≦ X2, the print channel is located within the image printing range;
when (X3 ≦ X1) ≦ N (X1 ≦ X4 ≦ X2), nozzles in the print channel in the range of X1 to X4 are within the image printing range, nozzles in the print channel in the range of X3 to X1 are outside the image printing range;
when (X1 ≦ X3 ≦ X2) ≦ N (X2 ≦ X4), nozzles in the print channel in the range of X3 to X2 are within the image printing range, nozzles in the print channel in the range of X2 to X4 are outside the image printing range;
when (X4. ltoreq. X1. ltoreq. X2. ltoreq. X3), the printing path is located outside the image printing range.
Preferably, the invalid data processing module 40 includes:
the shielding parameter generating unit is used for acquiring the length of invalid data and generating shielding parameters according to the length of the invalid data;
the ink non-discharge data obtaining unit is used for carrying out AND operation on the invalid data and the shielding parameters to obtain ink non-discharge data;
and the ink non-discharge data output unit is used for inputting the ink non-discharge data into the printing channel.
In addition, the Onepass inkjet printing method of the embodiment of the invention described in connection with fig. 1 can be implemented by an Onepass inkjet printing apparatus. Fig. 9 shows a schematic hardware structure diagram of the Onepass inkjet printing apparatus provided by the embodiment of the invention.
The Onepass inkjet printing device may include a processor 401 and a memory 402 storing computer program instructions.
Specifically, the processor 401 may include a Central Processing Unit (CPU), or an Application Specific Integrated Circuit (ASIC), or may be configured as one or more Integrated circuits implementing embodiments of the present invention.
Memory 402 may include mass storage for data or instructions. By way of example, and not limitation, memory 402 may include a Hard Disk Drive (HDD), floppy Disk Drive, flash memory, optical Disk, magneto-optical Disk, tape, or Universal Serial Bus (USB) Drive or a combination of two or more of these. Memory 402 may include removable or non-removable (or fixed) media, where appropriate. The memory 402 may be internal or external to the data processing apparatus, where appropriate. In a particular embodiment, the memory 402 is a non-volatile solid-state memory. In a particular embodiment, the memory 402 includes Read Only Memory (ROM). Where appropriate, the ROM may be mask-programmed ROM, Programmable ROM (PROM), Erasable PROM (EPROM), Electrically Erasable PROM (EEPROM), electrically rewritable ROM (EAROM), or flash memory or a combination of two or more of these.
The processor 401 reads and executes computer program instructions stored in the memory 402 to implement any one of the Onepass inkjet printing methods in the above embodiments.
In one example, the Onepass inkjet printing device may also include a communication interface 403 and a bus 410. As shown in fig. 9, the processor 401, the memory 402, and the communication interface 403 are connected via a bus 410 to complete communication therebetween.
The communication interface 403 is mainly used for implementing communication between modules, apparatuses, units and/or devices in the embodiments of the present invention.
Bus 410 includes hardware, software, or both that couple the components of the Onepass inkjet printing device to each other. By way of example, and not limitation, a bus 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 infiniband interconnect, a Low Pin Count (LPC) bus, a memory bus, a Micro Channel 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 bus or a combination of two or more of these. Bus 410 may include one or more buses, where appropriate. Although specific buses have been described and shown in the embodiments of the invention, any suitable buses or interconnects are contemplated by the invention.
In addition, in combination with the Onepass inkjet printing method in the above embodiments, the embodiments of the present invention can be implemented by providing a computer-readable storage medium. The computer readable storage medium having stored thereon computer program instructions; the computer program instructions, when executed by a processor, implement any of the Onepass inkjet printing methods of the above embodiments.
In summary, the Onepass inkjet printing method, the apparatus, the device and the storage medium provided by the embodiments of the present invention determine the image printing range through the printing system characteristic parameters and the image parameters, and can select an image with any width to print within the total length range of the printing channel; then extracting printing data corresponding to each printing channel, and determining valid data and invalid data in the printing data according to the image printing range; inputting the effective data into the corresponding printing channel for ink-jet printing; and inputting the invalid data into the corresponding printing channel after ink discharging is not performed, thereby ensuring that ink is discharged only in the image printing range as far as possible and realizing dynamic printing with any width.
It is to be understood that the invention is not limited to the specific arrangements and instrumentality described above and shown in the drawings. A detailed description of known methods is omitted herein for the sake of brevity. In the above embodiments, several specific steps are described and shown as examples. However, the method processes of the present invention are not limited to the specific steps described and illustrated, and those skilled in the art can make various changes, modifications and additions or change the order between the steps after comprehending the spirit of the present invention.
The functional blocks shown in the above-described structural block diagrams may be implemented as hardware, software, firmware, or a combination thereof. When implemented in hardware, it may be, for example, an electronic circuit, an Application Specific Integrated Circuit (ASIC), suitable firmware, plug-in, function card, or the like. When implemented in software, the elements of the invention are the programs or code segments used to perform the required tasks. The program or code segments may be stored in a machine-readable medium or transmitted by a data signal carried in a carrier wave over a transmission medium or a communication link. A "machine-readable medium" may include any medium that can store or transfer information. Examples of a machine-readable medium include electronic circuits, semiconductor memory devices, ROM, flash memory, Erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, fiber optic media, Radio Frequency (RF) links, and so forth. The code segments may be downloaded via computer networks such as the internet, intranet, etc.
It should also be noted that the exemplary embodiments mentioned in this patent describe some methods or systems based on a series of steps or devices. However, the present invention is not limited to the order of the above-described steps, that is, the steps may be performed in the order mentioned in the embodiments, may be performed in an order different from the order in the embodiments, or may be performed simultaneously.
As described above, only the specific embodiments of the present invention are provided, and it can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the system, the module and the unit described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again. It should be understood that the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive various equivalent modifications or substitutions within the technical scope of the present invention, and these modifications or substitutions should be covered within the scope of the present invention.