Summary of the invention
The embodiment of the invention provides onepass inkjet printing methods, device, equipment and storage mediums, existing to solve
There is the problem that the product efficiency that any width is printed in technology is low and print image positioning is difficult.
In a first aspect, the embodiment of the invention provides a kind of onepass inkjet printing methods, which comprises
According to print system characteristic parameter and image parameter, the Loading position of image is determined;
Loading position according to described image determine type channel and the storage address of image data in memory it
Between mapping relations;
The corresponding print data of each type channel is extracted according to the mapping relations;
Inkjet printing is carried out according to the print data.
Preferably, the print system characteristic parameter includes: type channel number, passage length and spray head institutional framework;
Described image parameter include: image along the width of type channel orientation, image perpendicular to type channel orientation length
Degree.
Preferably, the Loading position according to described image determines type channel and image data in memory
Mapping relations between storage address include:
It is established according to the type channel number and the passage length using pixel as the XY coordinate system of basic unit, with institute
The direction for stating type channel arrangement is X-axis, using the direction of the vertical type channel arrangement as Y-axis;
Loading position according to described image determines the start-print coordinate of image, is beaten according to the starting of described image
Print coordinate determines the starting pixels point coordinate of each type channel;
The initial memory address for obtaining image data, the starting pixels point coordinate, described according to each type channel
Image is beaten along the width of type channel orientation, the initial memory address and printing times of described image data, fitting
Print the mapping relations between the storage address of channel and image data in memory.
Preferably, the mapping relations include:
Caddress=Oaddress+Opixels+Pwidth*Yoffset
Wherein, CaddressIndicate the corresponding storage address of type channel, OaddressIndicate that the starting of image data stores ground
Location, OpixelsIndicate the starting pixels point coordinate of each type channel, PwidthIndicate image along type channel orientation
Width, YoffsetIndicate the Y axis coordinate of current print line.
Preferably, described to include: according to print data progress inkjet printing
Image is determined along the width of type channel orientation and the Loading position of described image according to described image
The start-print image coordinate value X1 and end print image of print range, i.e. image in the X-axis in the printing coordinate system
Coordinate value X2, wherein X1≤X2;
Valid data and invalid data in the print data are determined according to described image print range;
The corresponding type channel of valid data input is subjected to inkjet printing;
The corresponding type channel is inputted after the invalid data is carried out processing not out of ink.
Preferably, described to determine valid data and invalid data in the print data according to described image print range
Include:
According to putting in order for the spray head tissue each type channel of structure determination, put in order and the channel according to described in
Length determines starting channel coordinate value X3 and end channel coordinate of each type channel in the X-axis in the printing coordinate system
Value X4, wherein X3≤X4;
According to the starting channel coordinate value X3 and end channel coordinate value X4 of the type channel, the type channel is determined
Whether in described image print range;
When the type channel is in described image print range, then the corresponding print data of the type channel is to have
Imitate data;
When except the type channel being located at described image print range, then the corresponding print data of the type channel
For invalid data.
Preferably, inputting the corresponding type channel after the processing not out of ink by invalid data progress includes:
The length for obtaining invalid data, the length according to the invalid data generate shielding parameter;
The invalid data is carried out mutually not obtain inking data with operation with the shielding parameter.
Second aspect, the embodiment of the invention provides a kind of onepass inkjet-printing device, described device includes:
The Loading position determining module of image, for determining figure according to print system characteristic parameter and image parameter
The Loading position of picture;
Mapping relations establish module, for determining type channel and image data in memory according to the Loading position
In storage address between mapping relations;
Data extraction module, for extracting the corresponding print data of each type channel according to the mapping relations;
Ink jet printing module, for carrying out inkjet printing according to the print data.
The third aspect, the embodiment of the invention provides a kind of onepass ink jet printing devices, comprising: at least one processing
Device, at least one processor and computer program instructions stored in memory, when computer program instructions are by processor
The method such as first aspect in above embodiment is realized when execution.
Fourth aspect, the embodiment of the invention provides a kind of storage mediums, are stored thereon with computer program instructions, work as meter
The method such as first aspect in above embodiment is realized when calculation machine program instruction is executed by processor.
In conclusion onepass inkjet printing methods, device, equipment and storage medium provided in an embodiment of the present invention, institute
Method is stated by print system characteristic parameter and image parameter, determines the Loading position of image;Then, according to the starting
Print position determines the mapping relations between the storage address of type channel and image data in memory;It is closed according to the mapping
System extracts the corresponding print data of each type channel;Inkjet printing is carried out according to the print data.It is straight according to mapping relations
It connects and extracts the corresponding print data progress inkjet printing of the type channel;And the printing except image print range is logical
Road needs to carry out shielding processing to the corresponding print data of the type channel extracted according to the mapping relations, so that institute
It is not out of ink to state type channel, to the greatest extent and ensure that only it is out of ink in image print range, only using part spray head is printed, save
The step of nursing cleaning is carried out to all spray heads, and onepass does not need spray head reciprocating motion and saves the print time, improves
Printing effect.
Specific embodiment
The feature and exemplary embodiment of various aspects of the invention is described more fully below, in order to make mesh of the invention
, technical solution and advantage be more clearly understood, with reference to the accompanying drawings and embodiments, the present invention is further retouched in detail
It states.It should be understood that specific embodiment described herein is only configured to explain the present invention, it is not configured as limiting the present invention.
To those skilled in the art, the present invention can be real in the case where not needing some details in these details
It applies.Below the description of embodiment is used for the purpose of better understanding the present invention to provide by showing example of the invention.
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality
Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation
In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to
Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those
Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment
Intrinsic element.In the absence of more restrictions, the element limited by sentence " including ... ", it is not excluded that including
There is also other identical elements in the process, method, article or equipment of the element.
Referring to Figure 1, the embodiment of the invention provides a kind of onepass inkjet printing methods, the method passes through printing
System characteristic parameters and image parameter determine the Loading position of image;Then, it is beaten according to Loading position determination
Print the mapping relations between the storage address of channel and image data in memory;Each printing is extracted according to the mapping relations
The corresponding print data in channel;Inkjet printing is carried out according to the print data.The printing is directly extracted according to mapping relations
The corresponding print data in channel carries out inkjet printing;And the type channel except image print range, it needs to foundation
The corresponding print data of the type channel that the mapping relations are extracted carries out shielding processing, so that the type channel does not go out
Ink, to the greatest extent and ensure that only it is out of ink in image print range, only use part spray head carry out printing save to all spray heads into
The step of row nursing cleaning, and onepass does not need spray head reciprocating motion and saves the print time, improves printing effect.Institute
Onepass inkjet printing methods are stated to specifically comprise the following steps:
S1, according to print system characteristic parameter and image parameter, determine the Loading position of image;
S2, it is determined between the storage address of type channel and image data in memory according to the Loading position
Mapping relations;
S3, the corresponding print data of each type channel is extracted according to the mapping relations;
S4, inkjet printing is carried out according to the print data.
The specific print system characteristic parameter includes: type channel number, passage length and spray head institutional framework;Institute
Stating image parameter includes: width of the image along type channel orientation, the length perpendicular to type channel orientation, image
The position of start-print.Wherein, when there was only a column nozzle in a spray head, the type channel indicates a spray head;When one
Spray head has type channel when multiple row nozzle that can indicate a spray head or indicate the column nozzle in spray head, when described
As soon as type channel indicates column nozzle, then spray head has multiple type channels.The passage length is logical with the printing
Number of nozzle in road is come what is indicated, and as having 8 nozzles in the type channel, then the passage length is 8, if described beat
Print has 260 nozzles in channel, then the passage length is 260.Referring to Fig. 2, the spray head 100 only has a column nozzle 110
Composition, the type channel indicate a spray head 100, have 6 nozzles 110 in the type channel, then the passage length is
6。
Preferably, referring to Fig. 3, the step S2 specifically comprises the following steps:
S21, it is established according to the type channel number and the passage length using pixel as the XY coordinate system of basic unit,
Using the direction of type channel arrangement as X-axis, using the direction of the vertical type channel arrangement as Y-axis;
S22, the start-print coordinate that image is determined according to the Loading position of described image, according to rising for described image
Begin to print the starting pixels point coordinate that coordinate determines each type channel;
S23, obtain image data initial memory address, according to each type channel starting pixels point coordinate,
Described image is fitted along the width of type channel orientation, the initial memory address and printing times of described image data
Mapping relations between the storage address of type channel and image data in memory.
In the present embodiment, the corresponding nozzle of a pixel, the X-axis and the type channel phase of the printing coordinate system
It is corresponding.
Preferably, the mapping relations include:
Caddress=Oaddress+Opixels+Pwidth*Yoffset
Wherein, CaddressIndicate the corresponding storage address of type channel, OaddressIndicate that the starting of image data stores ground
Location, OpixelsIndicate the starting pixels point coordinate of each type channel, PwidthIndicate image along type channel orientation
Width, YoffsetIndicate the Y axis coordinate of current print line.
Referring to Fig. 4, the step S4 specifically comprises the following steps:
S41, it is determined according to described image along the width of type channel orientation and the Loading position of described image
The start-print image coordinate value X1 and end printing of image print range, i.e. image in the X-axis in the printing coordinate system
Image coordinate value X2, wherein X1≤X2;
S42, valid data and invalid data in the print data are determined according to described image print range;
S43, the corresponding type channel of valid data input is subjected to inkjet printing;
S44, the corresponding type channel is inputted after the invalid data is carried out processing not out of ink.
Referring to Fig. 5, the step S42 specifically comprises the following steps:
S421, it putting in order, putting in order according to described in and institute according to the spray head tissue each type channel of structure determination
It states passage length and determines that starting channel coordinate value X3 and end of each type channel in the X-axis in the printing coordinate system are logical
Road coordinate value X4, wherein X3≤X4;
S422, the starting channel coordinate value X3 according to the type channel and end channel coordinate value X4, determine described beat
Channel is printed whether in described image print range;
S423, when the type channel is in described image print range, then the corresponding printing number of the type channel
According to for valid data;
S424, except the type channel is located at described image print range when, then the type channel is corresponding beats
Printing evidence is invalid data.
Referring to Fig. 6, the step S422 specifically comprises the following steps:
S4221, as (X1≤X3) ∩ (X4≤X2), the type channel is located within described image print range;
Then the corresponding print data of the type channel is that valid data can directly input type channel and carry out ink-jet
Printing.
S4222, as (X3≤X1) ∩ (X1≤X4≤X2), the nozzle in the type channel in X1 to X4 range is in institute
It states within image print range, the nozzle in the type channel in X3 to X1 range is except described image print range;
Then the corresponding print data of nozzle in the type channel in X1 to X4 range is that valid data can directly input
Corresponding nozzle carries out inkjet printing, and the corresponding print data of nozzle in type channel in X3 to X1 range is that invalid data should not
Corresponding nozzle could be inputted after carrying out processing not out of ink.
S4223, as (X1≤X3≤X2) ∩ (X2≤X4), the nozzle in the type channel in X3 to X2 range is in institute
It states within image print range, the nozzle in the type channel in X2 to X4 range is except described image print range;
Then the corresponding print data of nozzle in the type channel in X3 to X2 range is that valid data can directly input
Corresponding nozzle carries out inkjet printing, and the corresponding print data of nozzle in type channel in X2 to X4 range is invalid data needs
Corresponding nozzle could be inputted after carrying out processing not out of ink.
S4224, as (X4≤X1) ∪ (X2≤X3), the type channel is located at except described image print range.
Then the corresponding print data of the type channel is that invalid data needs that correspondence could be inputted after carrying out processing not out of ink
Type channel.
Referring to Fig. 7, then step S44 is specifically included when the print data is invalid:
S441, the length for obtaining invalid data, the length according to the invalid data generate shielding parameter;
S442, the invalid data is carried out mutually not obtain inking data with operation with the shielding parameter;
S443, it described will not go out the inking data input type channel.
It in the present embodiment, include inking data " 1 " and not going out inking data " 0 " in the print data, the shielding ginseng
Number can not be inking data " 0 ".Length according to the invalid data generates the shielding parameter with the invalid data equal length,
Then the invalid data carries out phase and has just obtained inking data after operation with the shielding parameter, described will not go out inking data
It inputs corresponding type channel and carries out inkjet printing.
Referring to Fig. 8, the specific embodiment of the onepass inkjet printing methods is as follows: in the present embodiment, described
Type channel number is 7, and a type channel has 100 nozzles, then the passage length is 100, while a spray
A pixel in mouth correspondence image, image b are 290 pixels along the width of type channel a orientation, and image b starting is beaten
The position of print is at the 30th pixel position of the 3rd type channel.One is established with the Loading position of image with picture
Element is the printing coordinate system of basic unit, then start-print image coordinate of the image b in the X-axis in the printing coordinate system is
0 and terminate print image coordinate 290, then image print range be 0~290, thus know, the 1st type channel a1, the 2nd beat
Print channel a2With the 7th type channel a7Starting channel coordinate value difference except described image print range and in X-axis
It is -230, -130,370, then the 1st type channel a extracted1, the 2nd type channel a2With the 7th type channel a7It is corresponding
Print data is invalid data, inputs the corresponding printing after the corresponding invalid data in three channels is carried out processing not out of ink
Channel.And the 4th type channel a4With the 5th type channel a5Its starting channel in X-axis within image print range
Coordinate value is respectively 70,170, then the 4th extracted type channel a4With the 5th type channel a5Corresponding print data is to have
Effect data can directly input type channel and carry out inkjet printing;3rd type channel a3With the 6th type channel a6Part position
In in described image print range, the 3rd type channel a3In the corresponding print data of nozzle in -30 to 0 range be invalid
Data need to carry out processing not out of ink, the 3rd type channel a3In the corresponding print data of nozzle in 0 to 70 ranges be to have
Effect data can directly carry out inkjet printing;6th type channel a6In the corresponding printing number of nozzle in 500 to 530 ranges
Inkjet printing, the 6th type channel a are directly carried out according to for valid data6In the corresponding printing of nozzle in 530 to 300 ranges
Data are valid data, need to carry out processing not out of ink.Onepass inkjet printing methods of the invention only need to configure image
Print position parameter, so that it may realize that the dynamic width printing of image or partial printing, print speed are fast, high-efficient.
Referring to Fig. 9, the embodiment of the invention provides a kind of onepass inkjet-printing device, described device includes:
The Loading position determining module 10 of image, for determining according to print system characteristic parameter and image parameter
The Loading position of image;
Mapping relations establish module 20, determine type channel and picture number for the Loading position according to described image
According to the mapping relations between storage address in memory;
Data extraction module 30, for extracting the corresponding print data of each type channel according to the mapping relations;
Ink jet printing module 40, for carrying out inkjet printing according to the print data.
Preferably, the print system characteristic parameter includes: type channel number, passage length and spray head institutional framework;
Described image parameter include: image along the width of type channel orientation, image perpendicular to type channel orientation length
Degree.
Preferably, the mapping relations establish module 20 and include:
Establishment of coordinate system unit is basic for being established according to the type channel number and the passage length with pixel
The XY coordinate system of unit, using the direction of type channel arrangement as X-axis, the direction with the vertical type channel arrangement is Y
Axis;
Starting pixels point coordinate unit determines that the starting of image is beaten for the Loading position according to described image
Coordinate is printed, the starting pixels point coordinate of each type channel is determined according to the start-print coordinate of described image;
Mapping relations establish unit, for obtaining the initial memory address of image data, according to each type channel
Starting pixels point coordinate, described image is along the width of type channel orientation, the initial memory address of described image data
And printing times, fitting obtain the mapping relations between the storage address of type channel and image data in memory.
Preferably, the mapping relations include:
Caddress=Oaddress+Opixels+Pwidth*Yoffset
Wherein, CaddressIndicate the corresponding storage address of type channel, OaddressIndicate that the starting of image data stores ground
Location, OpixelsIndicate the starting pixels point coordinate of each type channel, PwidthIndicate image along type channel orientation
Width, YoffsetIndicate the Y axis coordinate of current print line.
Preferably, the ink jet printing module includes:
Image print range determination unit, for the width and the figure according to described image along type channel orientation
The Loading position of picture determines image print range, i.e. start-print figure of the image in the X-axis in the printing coordinate system
As coordinate value X1 and terminate print image coordinate value X2, wherein X1≤X2;
Data separation unit, for determining valid data and nothing in the print data according to described image print range
Imitate data;
Valid data input unit is beaten for the corresponding type channel of valid data input to be carried out ink-jet
Print;
Invalid data processing unit, for inputting the corresponding printing after the invalid data is carried out processing not out of ink
Channel.
Preferably, described to determine valid data and invalid data in the print data according to described image print range
Include:
According to putting in order for the spray head tissue each type channel of structure determination, put in order and the channel according to described in
Length determines starting channel coordinate value X3 and end channel coordinate of each type channel in the X-axis in the printing coordinate system
Value X4, wherein X3≤X4;
According to the starting channel coordinate value X3 and end channel coordinate value X4 of the type channel, the type channel is determined
Whether in described image print range;
When the type channel is in described image print range, then the corresponding print data of the type channel is to have
Imitate data;
When except the type channel being located at described image print range, then the corresponding print data of the type channel
For invalid data.
Preferably, inputting the corresponding type channel after the processing not out of ink by invalid data progress includes:
The length for obtaining invalid data, the length according to the invalid data generate shielding parameter;
The invalid data is carried out mutually not obtain inking data with operation with the shielding parameter.
In addition, the onepass inkjet printing methods in conjunction with Fig. 1 embodiment of the present invention described can be by onepass ink-jet
Printing device is realized.Figure 10 shows the hardware configuration signal of onepass ink jet printing device provided in an embodiment of the present invention
Figure.
Onepass ink jet printing device may include processor 401 and the memory for being stored with computer program instructions
402。
Specifically, above-mentioned processor 401 may include central processing unit (CPU) or specific integrated circuit
(Application Specific Integrated Circuit, ASIC), or may be configured to implement implementation of the present invention
One or more integrated circuits of example.
Memory 402 may include the mass storage for data or instruction.For example it rather than limits, memory
402 may include hard disk drive (Hard Disk Drive, HDD), floppy disk drive, flash memory, CD, magneto-optic disk, tape or logical
With the combination of universal serial bus (Universal Serial Bus, USB) driver or two or more the above.It is closing
In the case where suitable, memory 402 may include the medium of removable or non-removable (or fixed).In a suitable case, it stores
Device 402 can be inside or outside data processing equipment.In a particular embodiment, memory 402 is nonvolatile solid state storage
Device.In a particular embodiment, memory 402 includes read-only memory (ROM).In a suitable case, which can be mask
ROM, programming ROM (PROM), erasable PROM (EPROM), the electric erasable PROM (EEPROM), electrically-alterable ROM of programming
(EAROM) or the combination of flash memory or two or more the above.
Processor 401 is by reading and executing the computer program instructions stored in memory 402, to realize above-mentioned implementation
Any one onepass inkjet printing methods in example.
In one example, onepass ink jet printing device may also include communication interface 403 and bus 410.Wherein, such as
Shown in Figure 10, processor 401, memory 402, communication interface 403 connect by bus 410 and complete mutual communication.
Communication interface 403 is mainly used for realizing in the embodiment of the present invention between each module, device, unit and/or equipment
Communication.
Bus 410 includes hardware, software or both, and the component of onepass ink jet printing device is coupled to each other together.
For example it rather than limits, bus may include accelerated graphics port (AGP) or other graphics bus, enhancing Industry Standard Architecture
(EISA) bus, front side bus (FSB), super transmission (HT) interconnection, Industry Standard Architecture (ISA) bus, infinite bandwidth interconnect, are low
Number of pins (LPC) bus, memory bus, micro- channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-
Express (PCI-X) bus, Serial Advanced Technology Attachment (SATA) bus, Video Electronics Standards Association part (VLB) bus or
The combination of other suitable buses or two or more the above.In a suitable case, bus 410 may include one
Or multiple buses.Although specific bus has been described and illustrated in the embodiment of the present invention, the present invention considers any suitable bus
Or interconnection.
In addition, in conjunction with the onepass inkjet printing methods in above-described embodiment, the embodiment of the present invention can provide a kind of calculating
Machine readable storage medium storing program for executing is realized.Computer program instructions are stored on the computer readable storage medium;The computer program
Any one onepass inkjet printing methods in above-described embodiment are realized in instruction when being executed by processor.
In conclusion onepass inkjet printing methods, device, equipment and storage medium provided in an embodiment of the present invention, institute
Method is stated by print system characteristic parameter and image parameter, determines the Loading position of image;Then, according to the starting
Print position determines the mapping relations between the storage address of type channel and image data in memory;It is closed according to the mapping
System extracts the corresponding print data of each type channel;Inkjet printing is carried out according to the print data.It is straight according to mapping relations
It connects and extracts the corresponding print data progress inkjet printing of the type channel;And the printing except image print range is logical
Road needs to carry out shielding processing to the corresponding print data of the type channel extracted according to the mapping relations, so that institute
It is not out of ink to state type channel, to the greatest extent and ensure that only it is out of ink in image print range, only use part spray head and carry out printing saving
The step of nursing cleaning is carried out to all spray heads, and onepass does not need spray head reciprocating motion and saves the print time, improves
Printing effect.
It should be clear that the invention is not limited to specific configuration described above and shown in figure and processing.
For brevity, it is omitted here the detailed description to known method.In the above-described embodiments, several tools have been described and illustrated
The step of body, is as example.But method process of the invention is not limited to described and illustrated specific steps, this field
Technical staff can be variously modified, modification and addition after understanding spirit of the invention, or suitable between changing the step
Sequence.
Functional block shown in structures described above block diagram can be implemented as hardware, software, firmware or their group
It closes.When realizing in hardware, it may, for example, be electronic circuit, specific integrated circuit (ASIC), firmware appropriate, insert
Part, function card etc..When being realized with software mode, element of the invention is used to execute program or the generation of required task
Code section.Perhaps code segment can store in machine readable media program or the data-signal by carrying in carrier wave is passing
Defeated medium or communication links are sent." machine readable media " may include any medium for capableing of storage or transmission information.
The example of machine readable media includes electronic circuit, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), soft
Disk, CD-ROM, CD, hard disk, fiber medium, radio frequency (RF) link, etc..Code segment can be via such as internet, inline
The computer network of net etc. is downloaded.
It should also be noted that, the exemplary embodiment referred in the present invention, is retouched based on a series of step or device
State certain methods or system.But the present invention is not limited to the sequence of above-mentioned steps, that is to say, that can be according in embodiment
The sequence referred to executes step, may also be distinct from that the sequence in embodiment or several steps are performed simultaneously.
The above description is merely a specific embodiment, it is apparent to those skilled in the art that,
For convenience of description and succinctly, the system, module of foregoing description and the specific work process of unit can refer to preceding method
Corresponding process in embodiment, details are not described herein.It should be understood that scope of protection of the present invention is not limited thereto, it is any to be familiar with
Those skilled in the art in the technical scope disclosed by the present invention, can readily occur in various equivalent modifications or substitutions,
These modifications or substitutions should be covered by the protection scope of the present invention.