Ink jet numbering machine and its spray printing concentration regulating method and device
Technical field
The present invention relates to code-spraying printing technical field, in particular to the spray printing concentration regulating method of a kind of ink jet numbering machine, one kind
The spray printing concentration adjusting device of computer readable storage medium, a kind of ink jet numbering machine and a kind of ink jet numbering machine.
Background technique
Existing TIJ (Thermal Inkjet Technology, heat foamable technology) ink jet numbering machine generallys use two ways
The printing ink concentration for adjusting spray printing is sprayed one is adjusting concentration is achieved the purpose that by the way that single twin-jet nozzle is arranged using single injector
Print reaches the spray printing effect of normal printing ink concentration, or reaches the spray printing effect for doubling printing ink concentration using twin-jet nozzle;It is another
It is by the points in original spray printing mode from Y-axis extraction half without spray printing, to reach the spray printing that printing ink concentration halves
Effect, or the points of extraction half are without spray printing from Y-axis and X-axis respectively in original spray printing mode, to reach ink
The spray printing effect of concentration reduction a quarter.However the spray printing effect of both regulative modes is restricted, and can only be realized
The secured adjusted of spray printing effect, cannot random adjusting need the printing ink concentration of spray printing, the different demands of user can not be adapted to.
Summary of the invention
The present invention is directed to solve one of the technical problem in above-mentioned technology at least to a certain extent.For this purpose, of the invention
One purpose is to propose a kind of spray printing concentration regulating method of ink jet numbering machine, by carrying out to the corresponding pixel number of spray printing data
The adjusting to realize spray printing concentration is randomly selected, ink cost can be not only reduced, can also sufficiently be met the needs of users.
Second object of the present invention is to propose a kind of computer readable storage medium.
Third object of the present invention is to propose a kind of ink jet numbering machine.
Fourth object of the present invention is to propose a kind of spray printing concentration adjusting device of ink jet numbering machine.
In order to achieve the above objectives, a kind of spray printing concentration adjusting side for ink jet numbering machine that first aspect present invention embodiment proposes
Method, comprising the following steps: obtain spray printing data;By the spray printing data conversion at by 0 or 1 indicate binary data stream,
Wherein, 1 in the binary data stream indicates to need a pixel of spray printing;Judge current desired spray printing concentration whether be
100%;If it is not, then being extracted the pixel in the binary data stream to adjust according to current desired spray printing concentration
Spray printing concentration.
The spray printing concentration regulating method of ink jet numbering machine according to an embodiment of the present invention, it is first when ink jet numbering machine carries out spray printing work
Spray printing data are first obtained, then by spray printing data conversion at the binary data stream indicated by 0 or 1, and binary data stream
In 1 indicate to need a pixel of spray printing, in this way when current desired spray printing concentration is not 100% according to current desired spray
Print concentration extracts the pixel in binary data stream, so that spray printing concentration is thin out, realizes any tune of spray printing concentration
Section, can not only reduce ink cost, also sufficiently meet the needs of users.
In addition, the spray printing concentration regulating method of the ink jet numbering machine proposed according to that above embodiment of the present invention can also have it is as follows
Additional technical characteristic:
Optionally, the pixel in the binary data stream is extracted to adjust according to current desired spray printing concentration
Spray printing concentration, comprising: calculate the pixel sum of the spray printing data and the pixel number of each row of data, and according to described current
The pixel sum of required spray printing concentration and the spray printing data calculates the pixel sum that need to be extracted;According to each row of data
Pixel number, the spray printing data pixel sum and the pixel sum that need to extract calculate each row of data and need to extract
Pixel number;The pixel number and each row of data that need to be extracted according to the pixel number of each row of data, each row of data
In every segment data be continuously 1 width calculate each row of data in every segment data be continuously 1 width domestic demand extract pixel number;
According to segment data every in each row of data be continuously the pixel number of 1 width domestic demand extraction and every segment data is continuously
1 width calculates mean breadth, and carries out pixel extraction to continuous according to the mean breadth for 1 every segment data, until
The pixel number being drawn into reaches the pixel number that each row of data need to extract;The corresponding data of the pixel of extraction are set to
0。
Optionally, the pixel sum that need to be extracted calculates according to the following formula:
DelDot=Dot* (100-N)/100, wherein Dot is the pixel sum of the spray printing data, and N is described works as
Spray printing concentration needed for preceding, DelDot are the pixel sum that need to be extracted.
Optionally, the pixel number that each row of data need to extract calculates according to the following formula:
DelDoti=TolDoti*DelDot/Dot-TolDelDoti-1, wherein TolDotiTo be added to from the first row
The pixel number of i row, TolDelDoti-1For the pixel number extracted, DelDotiThe pixel that need to be extracted for each row of data
Number, Dot are the pixel sum of the spray printing data, and DelDot is the pixel sum that need to be extracted.
Optionally, in each row of data every segment data be continuously 1 width domestic demand extract pixel number according to following
Formula calculates:
DelSecDotj=TolWj*DelDoti/Doti-TolSecDelj-1, wherein DelSecDotjFor every line number
Every segment data is continuously the pixel number of 1 width domestic demand extraction, TolW injFor the width for from the first segment data being continuously 1
The sum for the width that be added to jth segment data continuously be 1, DelDotiFor the pixel number that each row of data need to extract, DotiFor
The pixel number of each row of data, TolSecDelj-1For the pixel number extracted in the row data.
Optionally,
The mean breadth is rounded is calculated according to the following formula:
Stpj=[Wj+(DelSecDotj-X)-1]/(DelSecDotj- X),
Wherein, StpjFor the mean breadth, WjIt is continuously 1 width, DelSecDot for every segment datajIt is described
Every segment data is continuously the pixel number of 1 width domestic demand extraction in each row of data, and X is the pixel that current continuous width has extracted
Points.
In order to achieve the above objectives, second aspect of the present invention embodiment proposes a kind of computer readable storage medium, thereon
The spray printing concentration for being stored with ink jet numbering machine adjusts program, and the spray printing concentration of the ink jet numbering machine is adjusted when program is executed by processor and realized such as
The spray printing concentration regulating method of above-mentioned ink jet numbering machine.
Computer readable storage medium according to an embodiment of the present invention, the spray printing concentration by storing ink jet numbering machine adjust journey
Sequence, the spray printing concentration of such ink jet numbering machine, which is adjusted, realizes that the spray printing concentration such as above-mentioned ink jet numbering machine is adjusted when program is executed by processor
Method realizes any adjusting of spray printing concentration, can not only reduce ink cost, can also sufficiently meet the needs of users.
In order to achieve the above objectives, third aspect present invention embodiment proposes a kind of ink jet numbering machine, including print cartridge and corresponding institute
State the nozzle of print cartridge setting, the ink jet numbering machine further include memory, processor and storage on a memory and can be on a processor
The spray printing concentration of the ink jet numbering machine of operation adjusts program, and the processor is executed when the spray printing concentration adjusts program and realized as above-mentioned
Ink jet numbering machine spray printing concentration regulating method.
Ink jet numbering machine according to an embodiment of the present invention executes above-mentioned spray printing concentration regulating method by processor, to realize spray
Any adjusting for printing concentration, can not only reduce ink cost, can also sufficiently meet the needs of users.
In order to achieve the above objectives, a kind of spray printing concentration for ink jet numbering machine that fourth aspect present invention embodiment proposes adjusts dress
It sets, comprising: module is obtained, for obtaining spray printing data;Conversion module is used for the spray printing data conversion at by 0 or 1 table
The binary data stream shown, wherein 1 in the binary data stream indicates to need a pixel of spray printing;Judgment module,
For judging whether current desired spray printing concentration is 100%;Adjustment module, for not being 100% in current desired spray printing concentration
When the pixel in the binary data stream is extracted according to current desired spray printing concentration to adjust spray printing concentration.
The spray printing concentration adjusting device of ink jet numbering machine according to an embodiment of the present invention leads to when ink jet numbering machine carries out spray printing work
It crosses acquisition module and obtains spray printing data, and pass through conversion module for spray printing data conversion into the binary data indicated by 0 or 1
Stream, and 1 in binary data stream indicates to need a pixel of spray printing, judges current desired spray printing in judgment module in this way
When concentration is not 100%, adjustment module extracts the pixel in binary data stream according to current desired spray printing concentration,
So that spray printing concentration is thin out, realizes any adjusting of spray printing concentration, can not only reduce ink cost, also sufficiently meet user's
Demand.
In addition, the spray printing concentration adjusting device of the ink jet numbering machine proposed according to that above embodiment of the present invention can also have it is as follows
Additional technical characteristic:
Optionally, the adjustment module is further used for, and calculates the pixel sum and each row of data of the spray printing data
Pixel number, and the picture that need to extract is calculated according to the pixel sum of the current desired spray printing concentration and the spray printing data
Vegetarian refreshments sum;According to the pixel number of each row of data, the pixel sum and the picture that need to be extracted of the spray printing data
Vegetarian refreshments sum calculates the pixel number that each row of data need to extract;According to the pixel number of each row of data, each row of data
In the pixel number and each row of data that need to be extracted every segment data be continuously 1 width calculate each row of data in every segment data be continuously
The pixel number that 1 width domestic demand extracts;The picture extracted according to the width domestic demand that segment data every in each row of data is continuously 1
Vegetarian refreshments number and every segment data are continuously that 1 width calculates mean breadth, and according to the mean breadth to it is continuous for 1 it is every
Segment data carries out pixel extraction, until the pixel number being drawn into reaches the pixel number that each row of data need to extract;It will
The corresponding data of the pixel of extraction are set to 0.
Detailed description of the invention
Fig. 1 is the flow diagram according to the spray printing concentration regulating method of the ink jet numbering machine of the embodiment of the present invention;
Fig. 2 is the flow diagram according to the spray printing concentration regulating method of the ink jet numbering machine of one embodiment of the invention;
Fig. 3 is the process extracted according to pixel in the spray printing concentration regulating method of the ink jet numbering machine of one embodiment of the invention
Schematic diagram;
Fig. 4 is that required spray printing concentration is in the spray printing concentration regulating method according to the ink jet numbering machine of one embodiment of the invention
10% effect diagram;
Fig. 5 is that required spray printing concentration is in the spray printing concentration regulating method according to the ink jet numbering machine of one embodiment of the invention
50% effect diagram;
Fig. 6 is that required spray printing concentration is in the spray printing concentration regulating method according to the ink jet numbering machine of one embodiment of the invention
100% effect diagram;
Fig. 7 is the effect being applied in anti-fake according to the spray printing concentration regulating method of the ink jet numbering machine of one embodiment of the invention
Schematic diagram;
Fig. 8 is the block diagram according to the spray printing concentration adjusting device of the ink jet numbering machine of the embodiment of the present invention.
Specific embodiment
The embodiment of the present invention is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end
Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached
The embodiment of figure description is exemplary, it is intended to is used to explain the present invention, and is not considered as limiting the invention.
In the related technology, heat foamable ink jet numbering machine generally adjusts the concentration of inkjet inks in spray printing by two ways,
A kind of mode is to achieve the purpose that adjust concentration by the way that single twin-jet nozzle is arranged, and single injector is to only use a column nozzle to be sprayed
Print, wherein it may be configured as left nozzle or right nozzle carry out spray printing, go out 150 pixels in 0.5 inch of upper spray printing, this spray printing
Concentration is normal spray printing effect, and twin-jet nozzle is using two column nozzles while to carry out spray printing, goes out 300 in 0.5 inch of upper spray printing
Pixel, the concentration of this spray printing are the spray printing effect doubled under normal circumstances;Another way is by economy half
Or economy 3/4ths realizes that economy half is averagely to extract half from Y-axis on the basis of original spray printing mode
Points do not spray, to achieve the effect that concentration halves, economy four/third is that from X-axis and Y on the basis of original spray printing mode
The points that axis extracts half respectively are not sprayed, to achieve the effect that spray printing goes out a quarter of original content.However, both technologies are equal
Fixed concentration effect can only be set, cannot random adjustings need the printing ink concentration of spray printing, the different need of user can not be adapted to
It asks.
Therefore, in order to keep the printing ink concentration of spray printing adjustable at random, to better meet the different demands of client, the present invention is real
Apply example proposition ink jet numbering machine spray printing concentration regulating method, by the corresponding pixel number of spray printing data randomly selected come
The adjusting for realizing spray printing concentration, can not only reduce ink cost, can also sufficiently meet the needs of users.
In order to better understand the above technical scheme, the exemplary reality that the present invention will be described in more detail below with reference to accompanying drawings
Apply example.Although showing exemplary embodiment of the present invention in attached drawing, it being understood, however, that may be realized in various forms this hair
It is bright and should not be limited by the embodiments set forth herein.It is to be able to thoroughly understand this on the contrary, providing these embodiments
Invention, and the scope of the present invention can be fully disclosed to those skilled in the art.
In order to better understand the above technical scheme, in conjunction with appended figures and specific embodiments to upper
Technical solution is stated to be described in detail.
Fig. 1 is the flow diagram according to the spray printing concentration regulating method of the ink jet numbering machine of the embodiment of the present invention.Such as Fig. 1 institute
Show, the spray printing concentration regulating method of the ink jet numbering machine the following steps are included:
Step 101, spray printing data are obtained.
Wherein, spray printing data are adapted with to spray printing data.
Step 102, by spray printing data conversion at the binary data stream indicated by 0 or 1, wherein binary data stream
In 1 indicate to need a pixel of spray printing.
That is, by spray printing data conversion at the monochrome bitmap being only made of two kinds of colors of black and white, i.e., with 1 or 0 number
The binary data stream that code indicates, wherein 1 indicates to need a pixel of spray printing, and 0 indicates a pixel without spray printing
Point.
Step 103, judge whether current desired spray printing concentration is 100%.
Step 104, if it is not, then being extracted according to current desired spray printing concentration to the pixel in binary data stream
To adjust spray printing concentration.
That is, judgement currently needs the spray printing the effect whether concentration of spray printing is 100%, if so, directly carrying out
Spray printing;If it is not, then realizing spray printing according to currently needing the concentration of spray printing to extract the pixel in binary data stream
The thin out effect of concentration, so as to realize any adjusting of spray printing concentration.
As one embodiment, when currently needing the concentration of spray printing to be 10%, then according to the concentration pair for currently needing spray printing
Pixel in binary data stream is extracted, and makes the pixel after extracting without spray printing, final spray printing effect picture is such as
Shown in Fig. 4.
As one embodiment, when currently needing the concentration of spray printing to be 50%, then according to the concentration pair for currently needing spray printing
Pixel in binary data stream is extracted, and makes the pixel after extracting without spray printing, final spray printing effect picture is such as
Shown in Fig. 5.
The spray printing concentration regulating method of ink jet numbering machine according to an embodiment of the present invention, it is first when ink jet numbering machine carries out spray printing work
Spray printing data are first obtained, then by spray printing data conversion at the binary data stream indicated by 0 or 1, and binary data stream
In 1 indicate to need a pixel of spray printing, in this way when current desired spray printing concentration is not 100% according to current desired spray
Print concentration extracts the pixel in binary data stream, so that spray printing concentration is thin out, realizes any tune of spray printing concentration
Section, can not only reduce ink cost, also sufficiently meet the needs of users.
Fig. 2 is the flow diagram according to the spray printing concentration regulating method of the ink jet numbering machine of one embodiment of the invention.Such as Fig. 2
It is shown, the spray printing concentration regulating method of the ink jet numbering machine the following steps are included:
Step 201, spray printing data are obtained.
Step 202, by spray printing data conversion at the binary data stream indicated by 0 or 1, wherein binary data stream
In 1 indicate to need a pixel of spray printing.
That is, by spray printing data conversion at the monochrome bitmap being only made of two kinds of colors of black and white, i.e., with 1 or 0 number
The binary data stream that code indicates, wherein 1 indicates to need a pixel of spray printing, and 0 indicates a pixel without spray printing
Point.
Step 203, judge whether current desired spray printing concentration is 100%.If so, thening follow the steps 205;If not,
Then follow the steps 204.
Step 204, the pixel in binary data stream is extracted according to current desired spray printing concentration, and will extracted
Pixel be set to 0.
Wherein, as one embodiment, when currently needing the concentration of spray printing to be 10%, then basis currently needs the dense of spray printing
Degree extracts the pixel in binary data stream, makes the pixel after extracting without spray printing, final spray printing effect
Figure is as shown in Figure 4.
As one embodiment, when currently needing the concentration of spray printing to be 50%, then according to the concentration pair for currently needing spray printing
Pixel in binary data stream is extracted, and makes the pixel after extracting without spray printing, final spray printing effect picture is such as
Shown in Fig. 5.
Step 205, data spray printing is sent.
That is, judgement currently need spray printing concentration whether 100%, if it is, directly by binary data stream
In pixel carry out spray printing output;If it is not, then according to current desired spray printing concentration to the pixel in binary data stream
It is extracted to adjust spray printing concentration.
Wherein, points are not extracted then, are directly transmitted when currently needing the concentration of spray printing to be 100% as one embodiment
The final spray printing effect picture of data spray printing is as shown in Figure 6.
It further, is to be extracted according to pixel in the spray printing concentration regulating method of the ink jet numbering machine of one embodiment of the invention
Flow diagram.As shown in figure 3, the abstracting method includes:
Step 301, the pixel sum of spray printing data and the pixel number of each row of data are calculated, and according to current desired spray
The pixel sum of print concentration and spray printing data calculates the pixel sum that need to be extracted.
It should be noted that the pixel sum that need to be extracted calculates according to the following formula:
DelDot=Dot* (100-N)/100,
Wherein, Dot is the pixel sum of spray printing data, and N is current desired spray printing concentration, and DelDot is the picture that need to be extracted
Vegetarian refreshments sum.
As one embodiment, current desired spray printing concentration can be to preset.
Step 302, total according to the pixel that the pixel of the pixel number of each row of data, spray printing data is total and need to extract
Number calculates the pixel number that each row of data need to extract.
It should be noted that the pixel number that each row of data need to extract calculates according to the following formula:
DelDoti=TolDoti*DelDot/Dot-TolDelDoti-1,
Wherein, TolDotiFor the pixel number for being added to the i-th row from the first row, TolDelDoti-1For the picture extracted
Vegetarian refreshments number, DelDotiFor the pixel number that each row of data need to extract, Dot is the pixel sum of spray printing data, and DelDot is to need
The pixel sum of extraction.
That is, the first row data need the pixel number extracted are as follows:
DelDot1=TolDot1*DelDot/Dot-TolDelDot0, wherein TolDot1=Dot1, TolDelDot0=0;
Dot1For the pixel sum of the first row spray printing data.
Second row data need the pixel number extracted are as follows:
DelDot2=TolDot2*DelDot/Dot-TolDelDot1, wherein TolDot2=Dot1+Dot2
TolDelDot1=DelDot1;Dot2For the pixel sum of the second row spray printing data.
The third line data need the pixel number extracted are as follows:
DelDot3=TolDot3*DelDot/Dot-TolDelDot2, wherein TolDot3=Dot1+Dot2+Dot3,
TolDelDot2=DelDot1+DelDot2;Dot3For the pixel sum of the third line spray printing data.
…………
And so on, calculate the pixel number that each row of data need to extract.
Step 303, every in the pixel number and each row of data that need to be extracted according to the pixel number of each row of data, each row of data
Segment data is continuously that 1 width calculates the pixel number that every segment data in each row of data is continuously 1 width domestic demand extraction.
It should be noted that in each row of data every segment data be continuously 1 width domestic demand extract pixel number according to
Lower formula calculates:
DelSecDotj=TolWj*DelDoti/Doti-TolSecDelj-1,
Wherein, DelSecDotjIt is continuously the pixel number of 1 width domestic demand extraction for segment data every in each row of data,
TolWjFor the sum for from the first segment data being continuously the 1 width width that be added to jth segment data continuously be 1, DelDotiFor every row
The pixel number that data need to extract, DotiFor the pixel number of each row of data, entirely every a line is corresponding in original spray printing data
Pixel number, TolSecDelj-1For the pixel number extracted in the row data.
That is, the first segment data is continuously the pixel number of 1 width domestic demand extraction in the first row data are as follows:
DelSecDot1=TolW1*DelDot1/Dot1-TolSecDel0, wherein TolW1=W1, TolSecDel0=0;W1
It is continuously 1 width for the first segment data in the first row.
DelSecDot2=TolW2*DelDot1/Dot1-TolSecDel1, wherein TolW2=W1+W2, TolSecDel1=
DelSecDot1;W2It is continuously 1 width for the second segment data in the first row.
DelSecDot3=TolW3*DelDot1/Dot1-TolSecDel2, wherein TolW3=W1+W2+W3, TolSecDel2
=DelSecDot1+DelSecDot2;W3It is continuously 1 width for third segment data in the first row.
…………
And so on, calculate the pixel number that the width domestic demand that every one piece of data in the first row data is continuously 1 extracts.
DelSecDot1=TolW1*DelDot2/Dot2-TolSecDel0, wherein TolW1=W1, TolSecDel0=0;W1
It is continuously 1 width for the first segment data in the second row.
DelSecDot2=TolW2*DelDot2/Dot2-TolSecDel1, wherein TolW2=W1+W2, TolSecDel1=
DelSecDot1;W2It is continuously 1 width for the second segment data in the second row.
DelSecDot3=TolW3*DelDot2/Dot2-TolSecDel2, wherein TolW3=W1+W2+W3, TolSecDel2
=DelSecDot1+DelSecDot2;W3It is continuously 1 width for third segment data in the second row.
…………
And so on, calculate the pixel number that the width domestic demand that every one piece of data in the second row data is continuously 1 extracts.
Finally calculate the pixel number that the width domestic demand that every segment data in each row of data is continuously 1 extracts.
Step 304, the pixel number and every number of segment extracted according to the width domestic demand that segment data every in each row of data is continuously 1
Mean breadth is calculated according to the continuous width for 1, and pixel extraction is carried out to continuous for 1 every segment data according to mean breadth,
Until the pixel number being drawn into reaches the pixel number that each row of data need to extract.
It is calculated it should be noted that mean breadth is rounded according to the following formula:
Stpj=[Wj+(DelSecDotj-X)-1]/(DelSecDotj- X),
Wherein, StpjFor mean breadth, WjIt is continuously 1 width, DelSecDot for every segment datajIt is every in each row of data
Segment data is continuously 1 pixel number that extracts of width domestic demand, X be currently continuously be 1 width in the pixel number that has extracted.
That is, being extracted according to mean breadth to pixel, on first data segment of the first row, from first
Start on the position that data are 1 to StpjPosition on, randomly select a pixel, behind each pixel position
It is the position of the pixel of a upper extraction plus Stpj, terminate until being extracted on the width for being continuously 1, after calculate
The pixel number X currently extracted obtains this section also to need the pixel number extracted being DelSecDotj- X, to obtain new
Mean breadth, and so on, until the points DelSecDot that this section need to extractjIt extracts and completes.
Step 305, the corresponding data of the pixel of extraction are set to 0.
That is, setting 0 for the pixel of extraction, make the corresponding data of pixel extracted without spray printing.
As a specific embodiment, it is assumed that spray printing data are the black patch picture of 100*100 pixel, and current desired spray
Printing concentration is 10%.
Then, the pixel sum Dot=100*100=10000 of spray printing data;
The pixel sum Dot of every a line spray printing datai=100;
Pixel sum DelDot=10000* (the 100-10)/100=9000 that need to be extracted;
The pixel number DelDot that each row of data need to extracti=90;
The first segment data is continuously the pixel number DelSecDot of 1 width domestic demand extraction in the first row data1=90;
Such as shown in the following table 1:
1 pixel of table extracts quantity table
Marker bit |
0 |
1 |
2 |
3 |
4 |
5 |
. |
. |
. |
94 |
95 |
96 |
97 |
98 |
99 |
When non-snap shot |
1 |
1 |
1 |
1 |
1 |
1 |
|
|
|
1 |
1 |
1 |
1 |
1 |
1 |
First time snap shot is set to 0 |
1 |
0 |
1 |
0 |
1 |
0 |
|
|
|
1 |
0 |
1 |
0 |
1 |
0 |
Second of snap shot is set to 0 |
1 |
0 |
0 |
0 |
1 |
0 |
|
|
|
1 |
0 |
1 |
0 |
0 |
0 |
Third time snap shot is set to 0 |
0 |
0 |
0 |
0 |
1 |
0 |
|
|
|
1 |
0 |
1 |
0 |
0 |
0 |
The mean breadth Stp calculated for the first timej=[100+90-1]/90=2.1, mean breadth after rounding are 2, then from
It is randomly selected in 0 to 1 a bit, such as extracts the 1st, then the pixel number extracted later is the 3rd, the 5th ..., this pumping
50 are taken;90 are not pumped full, then need to extract 40 in the width again;
Second of mean breadth Stp calculatedj=[100+40-1]/40=3.475, the mean breadth after rounding are 3, then
Randomly selected a bit in from 0 to 2, such as extract the 2nd, then after the pixel number that extracts be the 5th, the 8th ..., this
17 have been extracted, has not pumped full 90, then has needed to extract 23 in the first row again;
The mean breadth Stp that third time calculatesj=[100+23-1]/23=5.3, mean breadth after rounding are 5, then from
0th is randomly selected a bit to 4, such as extract the 0th, then after extract pixel number be the 5th, the 10th ..., this
7 have been extracted, has not pumped full 90, then has needed to extract 16 in the first row again;
And so on, extraction is recycled according to identical extraction mode, the pixel number until pumping full extraction needed for this section.
In addition, as shown in fig. 7, the spray printing concentration regulating method of ink jet numbering machine of the invention applies also in anti-fake;Due to
Extraction mode is different, and the concentration effect of realization is naturally also different, so Contrast on effect of the present invention by gradation, and extract
Pixel random distribution, to achieve the purpose that anti-fake.
In order to realize above-described embodiment, the invention proposes a kind of computer readable storage mediums, are stored thereon with coding
The spray printing concentration of machine adjusts program, and the spray printing concentration of the ink jet numbering machine adjusts when program is executed by processor and realizes such as above-mentioned coding
The spray printing concentration regulating method of machine.
Computer readable storage medium according to an embodiment of the present invention, the spray printing concentration by storing ink jet numbering machine adjust journey
Sequence, the spray printing concentration of such ink jet numbering machine, which is adjusted, realizes that the spray printing concentration such as above-mentioned ink jet numbering machine is adjusted when program is executed by processor
Method realizes any adjusting of spray printing concentration, can not only reduce ink cost, can also sufficiently meet the needs of users.
In order to realize above-described embodiment, the invention proposes a kind of ink jet numbering machines, the spray including print cartridge and corresponding print cartridge setting
Mouth, ink jet numbering machine further include memory, processor and the spray printing for storing the ink jet numbering machine that can be run on a memory and on a processor
Concentration adjusts program, and processor executes the spray printing concentration adjusting side realized when spray printing concentration adjusts program such as above-mentioned ink jet numbering machine
Method.
Ink jet numbering machine according to an embodiment of the present invention executes above-mentioned spray printing concentration regulating method by processor, to realize spray
Any adjusting for printing concentration, can not only reduce ink cost, can also sufficiently meet the needs of users.
Fig. 8 is the block diagram according to the spray printing concentration adjusting device of the ink jet numbering machine of the embodiment of the present invention.Such as Fig. 8 institute
Show, which includes: to obtain module 401, conversion module 402, judgment module 403 and adjustment module 404.
Wherein, module 401 is obtained, for obtaining spray printing data;
Conversion module 402, for by spray printing data conversion at by 0 or 1 indicate binary data stream, wherein two into
1 in data flow processed indicates to need a pixel of spray printing;
Judgment module 403, for judging whether current desired spray printing concentration is 100%;
Adjustment module 404, for when current desired spray printing concentration is not 100% according to current desired spray printing concentration to two
Pixel in binary data stream is extracted to adjust spray printing concentration.
Further, adjustment module 404 is also used to, and calculates the pixel sum of spray printing data and the pixel of each row of data
Number, and the pixel sum that need to be extracted is calculated according to the pixel sum of current desired spray printing concentration and spray printing data;According to every
The pixel number of row data, the pixel sum of spray printing data and the pixel sum that need to be extracted calculate what each row of data need to extract
Pixel number;Every segment data in the pixel number and each row of data that need to be extracted according to the pixel number of each row of data, each row of data
The pixel number that the width domestic demand that every segment data in each row of data is continuously 1 that the continuous width for 1 calculates extracts;According to every line number
Every segment data is continuously 1 pixel number that extracts of width domestic demand in and every segment data is continuously that 1 width calculates average width
Degree, and pixel extraction is carried out to continuous for 1 every segment data according to mean breadth, until the pixel number being drawn into reaches every
The pixel number that row data need to extract;The corresponding data of the pixel of extraction are set to 0.
It should be noted that the illustration previously for the spray printing concentration regulating method of ink jet numbering machine is equally applicable to this reality
The spray printing speed lifting device of an ink jet numbering machine is applied, details are not described herein again.
The spray printing concentration adjusting device of ink jet numbering machine according to an embodiment of the present invention leads to when ink jet numbering machine carries out spray printing work
It crosses acquisition module and obtains spray printing data, and pass through conversion module for spray printing data conversion into the binary data indicated by 0 or 1
Stream, and 1 in binary data stream indicates to need a pixel of spray printing, judges current desired spray printing in judgment module in this way
When concentration is not 100%, adjustment module extracts the pixel in binary data stream according to current desired spray printing concentration,
So that spray printing concentration is thin out, realizes any adjusting of spray printing concentration, can not only reduce ink cost, also sufficiently meet user's
Demand.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program
Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention
Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the present invention, which can be used in one or more,
The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces
The form of product.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions
The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs
Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce
A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real
The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates,
Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or
The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one
The step of function of being specified in a box or multiple boxes.
It should be noted that in the claims, any reference symbol between parentheses should not be configured to power
The limitation that benefit requires.Word "comprising" does not exclude the presence of component or step not listed in the claims.Before component
Word "a" or "an" does not exclude the presence of multiple such components.The present invention can be by means of including several different components
It hardware and is realized by means of properly programmed computer.In the unit claims listing several devices, these are filled
Several in setting, which can be, to be embodied by the same item of hardware.The use of word first, second, and third is not
Indicate any sequence.These words can be construed to title.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basic
Property concept, then additional changes and modifications may be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as
It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art
Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies
Within, then the present invention is also intended to include these modifications and variations.
In the description of the present invention, it is to be understood that, term " first ", " second " are used for description purposes only, and cannot
It is interpreted as indication or suggestion relative importance or implicitly indicates the quantity of indicated technical characteristic.Define as a result, " the
One ", the feature of " second " can explicitly or implicitly include one or more of the features.In the description of the present invention,
The meaning of " plurality " is two or more, unless otherwise specifically defined.
In the present invention unless specifically defined or limited otherwise, term " installation ", " connected ", " connection ", " fixation " etc.
Term shall be understood in a broad sense, for example, it may be being fixedly connected, may be a detachable connection, or integral;It can be mechanical connect
It connects, is also possible to be electrically connected;It can be directly connected, can also can be in two elements indirectly connected through an intermediary
The interaction relationship of the connection in portion or two elements.It for the ordinary skill in the art, can be according to specific feelings
Condition understands the concrete meaning of above-mentioned term in the present invention.
In the present invention unless specifically defined or limited otherwise, fisrt feature in the second feature " on " or " down " can be with
It is that the first and second features directly contact or the first and second features pass through intermediary mediate contact.Moreover, fisrt feature exists
Second feature " on ", " top " and " above " but fisrt feature be directly above or diagonally above the second feature, or be merely representative of
First feature horizontal height is higher than second feature.Fisrt feature can be under the second feature " below ", " below " and " below "
One feature is directly under or diagonally below the second feature, or is merely representative of first feature horizontal height less than second feature.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show
The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example
Point is included at least one embodiment or example of the invention.In the present specification, schematic expression of the above terms are not
It is interpreted as that identical embodiment or example must be directed to.Moreover, particular features, structures, materials, or characteristics described
It may be combined in any suitable manner in any one or more of the embodiments or examples.In addition, without conflicting with each other, this
The technical staff in field can be by the spy of different embodiments or examples described in this specification and different embodiments or examples
Sign is combined.
Although the embodiments of the present invention has been shown and described above, it is to be understood that above-described embodiment is example
Property, it is not considered as limiting the invention, those skilled in the art within the scope of the invention can be to above-mentioned
Embodiment is changed, modifies, replacement and variant.