Disclosure of Invention
The embodiment of the invention provides a method, a device and equipment for controlling the output ink quantity of an ink-jet printer and a storage medium, which are used for solving the problem of single processing method of the output ink quantity of the ink-jet printer in the prior art.
In a first aspect, an embodiment of the present invention provides an ink output amount control method for an inkjet printer, the method including:
acquiring ink quantity parameters of the ink-jet printer according to a color target diagram output by the ink-jet printer, wherein the ink quantity parameters comprise: density difference values of n reference color blocks in the color target image and saturation difference values of n reference color blocks in the color target image, selecting a density difference value smaller than or equal to a first preset value from the n density difference values as a reference density difference value, selecting a saturation difference value smaller than or equal to a second preset value from the n saturation difference values as a reference saturation difference value, wherein n is an integer larger than or equal to 1;
when the ink quantity parameter meets a first preset condition, the ink quantity adjustment percentage output by the ink-jet printer is L/d, wherein L is a constant, and d is a density difference value corresponding to the (n-1) th color block; the first preset condition includes: the reference density difference is greater than or equal to a first density difference threshold A1, the reference saturation difference is greater than or equal to a first saturation difference threshold B1, the density difference corresponding to the (n-1) th color block is smaller than a second density difference threshold A2, and the saturation difference corresponding to the (n-1) th color block is smaller than or equal to a second saturation difference threshold B2, wherein B2 is greater than or equal to B1, and A2 is greater than or equal to A1;
when the ink amount parameter meets a second preset condition, obtaining an accumulated density difference value according to the density difference value, obtaining an accumulated saturation difference value according to the saturation difference value, obtaining the number of color blocks to be adjusted according to the accumulated density difference value and the accumulated saturation difference value, substituting the number of the color blocks to be adjusted into an ink amount adjusting formula to obtain an output valueThe ink output adjustment percentage is as follows: cn=100–5DcnumWherein, CnExpressing percent ink adjustment, DcnumRepresenting the number of color blocks to be adjusted; the second preset condition includes: the reference density difference value is greater than or equal to a first density difference threshold value A1 and less than or equal to a third density difference threshold value A3, the reference saturation difference value is less than or equal to a first saturation difference threshold value B1 or the reference density difference value is less than or equal to a first density difference threshold value A1, wherein A3 is more than or equal to A2;
and when the ink quantity parameter does not meet the first preset condition and the second preset condition, the ink output quantity of the ink-jet printer is not adjusted.
Preferably, the ink amount parameter of the inkjet printer is obtained according to a color target map output by the inkjet printer, and the ink amount parameter includes: density difference values of n reference color blocks in the color target image and saturation difference values of n reference color blocks in the color target image, wherein one density difference value less than or equal to a first preset density difference value is selected from the n density difference values to serve as a reference density difference value, one saturation difference value less than or equal to a first preset saturation difference value is selected from the n saturation difference values to serve as a reference saturation difference value, and n is an integer greater than or equal to 1, and the method comprises the following steps:
obtaining the density value and the saturation value of each color block in the color target map according to the color target map;
determining color blocks of which the density values meet abnormal value judgment conditions, recording the color blocks as abnormal color blocks, and deleting the abnormal color blocks from the color blocks to obtain reference color blocks, wherein the abnormal value judgment conditions are as follows: for the ith color block, the density value of the ith color block is set as F1(i) And F is1(i+1)<F1(i+2)<……<F1(i+N),F1(i-N)<……<F1(i-2)<F1(i-1); when F is present1(i)>F1(i +1) and F1(i)>F1(i-1), the i-th color block is an abnormal color block, and when F is1(i)<F1(i +1) and F1(i)<F1(i-1), the ith color block is an abnormal color block, i is an integer which is more than or equal to 1 and less than or equal to N, and N is an integer which is more than or equal to 2;
and obtaining the density difference and the saturation difference of the reference color block according to a difference rule, wherein the difference rule is as follows: the density difference value of the xth reference color block is equal to the density value of the xth +1 reference color block minus the density value of the xth reference color block; the saturation difference value of the x-th reference color block is equal to the saturation value of the x +1 th reference color block minus the saturation value of the x-th reference color block, x is an integer which is more than or equal to 4 and less than or equal to N, and N is less than or equal to N.
Preferably, the obtaining an accumulated density difference according to the density difference and obtaining an accumulated saturation difference according to the saturation difference includes:
obtaining color blocks with the density difference value less than or equal to 0 from the density difference value, and determining the color block with the minimum color block number in the color blocks with the density difference value less than or equal to 0 as a starting color block;
respectively calculating the accumulated density difference value and the accumulated saturation difference value corresponding to each color block from the starting color block according to the density difference value and the saturation difference value of each color block, wherein the specific calculation method comprises the following steps: setting the starting color block as the y color block, wherein the density difference value of the starting color block is as follows: f2(y), the cumulative density difference of the starting color blocks is: f2(y), the cumulative density difference of the (y +1) th patch is: f2(y)+F2(y +1), the cumulative density difference of the (y + m) th patch is: f2(y)+F2(y+1)+……+F2(y+m-1)+F2(y + m); and setting the saturation difference value of the starting color block as follows: f3(y), the cumulative saturation difference for the (y +1) th patch is: f3(y)+F3(y +1), the cumulative saturation difference of the (y + m) th color block is: f3(y)+F3(y+1)+……+F3(y+m-1)+F3(y + m), wherein y is an integer of 4 to n-1, and m is an integer of 0 to n-y-1.
Preferably, when the ink amount parameter meets a second preset condition, an accumulated density difference value is obtained according to the density difference value, an accumulated saturation difference value is obtained according to the saturation difference value, and the accumulated saturation difference value and the accumulated saturation are obtained according to the accumulated density difference valueObtaining the number of color blocks to be adjusted by the degree difference value, substituting the number of the color blocks to be adjusted into an ink quantity adjusting formula to obtain the adjustment percentage of the output ink quantity, wherein the ink quantity adjusting formula is as follows: cn=100–5DcnumWherein, CnExpressing percent ink adjustment, DcnumRepresenting the number of color blocks to be adjusted; the second preset condition includes: the reference density difference is equal to or greater than a first density difference threshold A1 and equal to or less than a third density difference threshold A3, and the reference saturation difference is equal to or less than a first saturation difference threshold B1 or the reference density difference is equal to or less than a first density difference threshold A1, wherein A3 is more than or equal to A2, and the method comprises the following steps:
selecting an accumulated density difference value smaller than or equal to a third preset value from the accumulated density difference values as a reference accumulated density difference value, and selecting an accumulated saturation difference value smaller than or equal to a fourth preset value from the accumulated saturation difference values as a reference accumulated saturation difference value;
when the reference accumulated density difference value is less than or equal to the accumulated density difference threshold value C, a first cut patch number is obtained according to the accumulated density difference value and a first judgment condition, where the first judgment condition includes: let the cumulative density difference of the qth patch be: f4(q) in the presence of F4(q) is less than or equal to the cumulative density difference threshold C, and the cumulative density values of the q-th patch to the nth patch are less than or equal to the cumulative density difference threshold C, then q is the first off-color patch number, where q is an integer greater than or equal to 4 and less than or equal to n;
obtaining a second ink cut color block number according to the accumulated density difference, the accumulated saturation difference and a second judgment condition, wherein the second judgment condition comprises: setting the cumulative density difference of the e-th color block as: f4(e) The cumulative saturation difference of the e-th color block is: f5(e) In the presence of F4(e)<F4(e-1) and F5(e)<F5(e-1), then e is the second ink intercepting color block number, wherein e is an integer which is greater than or equal to 4 and less than or equal to n;
obtaining an initial ink cutting color block number according to the first ink cutting color block number and the second ink cutting color block number;
when the reference accumulated density difference value is larger than or equal to an accumulated density difference threshold value C, obtaining an initial ink cut color block number according to the acquired color block number corresponding to the reference density difference value, the acquired color block number corresponding to the reference saturation difference value, the acquired color block number corresponding to the reference accumulated density difference value and the acquired color block number corresponding to the reference accumulated saturation difference value;
obtaining the number of color blocks to be adjusted according to the number of the initial ink intercepting color blocks and the number of the reference color blocks, substituting the number of the color blocks to be adjusted into an ink amount adjustment formula to obtain the adjustment percentage of the output ink amount, wherein the ink amount adjustment formula is as follows: cn=100–5DcnumWherein, CnExpressing percent ink adjustment, DcnumAnd representing the number of color blocks to be adjusted.
Preferably, the obtaining an initial cut ink color block number according to the first cut ink color block number and the second cut ink color block number includes:
when the color block corresponding to the reference accumulated density difference value is the last color block, the number of the initial ink interception color block is as follows:
wherein SI denotes an initial cut color patch number, Q1 denotes the first cut color patch number, and Q2 denotes the second cut color patch number;
when the color block corresponding to the reference accumulated density difference value is not the last color block, the number of the initial ink interception color block is as follows:
where mDIa denotes a color block number corresponding to the reference accumulated density difference value.
Preferably, when the reference cumulative density difference is greater than or equal to the cumulative density difference threshold C, obtaining an initial cut-off color block number according to the acquired color block number corresponding to the reference density difference, the acquired color block number corresponding to the reference saturation difference, the acquired color block number corresponding to the reference cumulative density difference, and the acquired color block number corresponding to the reference cumulative saturation difference includes:
the initial ink cut color block number is obtained by the following formula:
wherein mDI represents the color block number corresponding to the reference density difference, mDIa represents the color block number corresponding to the reference accumulated density difference, mSI represents the color block number corresponding to the reference saturation difference, and mSIa represents the color block number corresponding to the reference accumulated saturation difference.
Preferably, the number of color blocks to be adjusted is obtained according to the number of the initial ink-cut color blocks and the number of the reference color blocks, and the number of the color blocks to be adjusted is substituted into an ink amount adjustment formula to obtain an output ink amount adjustment percentage, where the ink amount adjustment formula is as follows: cn=100–5DcnumWherein, CnExpressing percent ink adjustment, DcnumThe number of the color blocks to be adjusted is represented as follows:
obtaining the number of the color blocks to be initially adjusted according to the number of the initial ink intercepting color blocks and the number of the reference color blocks, wherein the number of the color blocks to be initially adjusted is obtained through the following formula:
SDcnum=n-1-(SI+3)
wherein n represents the number of the reference color blocks, SI represents the number of the initial ink-intercepting color blocks, SDcnumRepresenting the number of color blocks to be adjusted initially;
obtaining a saturation descending amplitude value of the initial color block to be adjusted according to the saturation value and the saturation difference value, and obtaining the color block with the saturation descending amplitude value smaller than a descending amplitude threshold value D from the initial color block to be adjusted and recording the color block as a cut color block;
when the number K of the intercepted color blocks is more than or equal to E and the number of the initial color blocks to be adjusted is less than or equal to E/2, the number of the color blocks to be adjusted is as follows:
wherein, SDcnumRepresenting the number of color blocks to be initially adjusted, K representing the number of the intercepted color blocks, DcnumRepresenting the number of color blocks to be adjusted, and n representing the number of the reference color blocks;
when the number K of the intercepted color blocks is smaller than E and the number of the color blocks to be initially adjusted is larger than E, the number of the color blocks to be adjusted is as follows:
wherein, SDcnumRepresenting the number of color blocks to be initially adjusted, K representing the number of the intercepted color blocks, DcnumRepresenting the number of color blocks to be adjusted, and n representing the number of the reference color blocks;
substituting the number of the color blocks to be adjusted into an ink quantity adjusting formula to obtain the adjustment percentage of the output ink quantity, wherein the ink quantity adjusting formula is as follows: cn=100–5DcnumWhere Cn represents the percent ink adjustment, DcnumAnd representing the number of color blocks to be adjusted.
In a second aspect, an embodiment of the present invention provides an ink output amount control apparatus for an inkjet printer, the apparatus including:
an ink quantity parameter obtaining module, configured to obtain an ink quantity parameter of the inkjet printer according to a color target diagram output by the inkjet printer, where the ink quantity parameter includes: density difference values of n reference color blocks in the color target image and saturation difference values of n reference color blocks in the color target image, selecting a density difference value smaller than or equal to a first preset value from the n density difference values as a reference density difference value, selecting a saturation difference value smaller than or equal to a second preset value from the n saturation difference values as a reference saturation difference value, wherein n is an integer larger than or equal to 1;
a first ink amount adjustment percentage obtaining module, configured to, when the ink amount parameter meets a first preset condition, output an ink amount adjustment percentage L/d by the inkjet printer, where L is a constant and d is a density difference value corresponding to an n-1 th color patch; the first preset condition includes: the reference density difference is greater than or equal to a first density difference threshold A1, the reference saturation difference is greater than or equal to a first saturation difference threshold B1, the density difference corresponding to the (n-1) th color block is smaller than a second density difference threshold A2, and the saturation difference corresponding to the (n-1) th color block is smaller than or equal to a second saturation difference threshold B2, wherein B2 is greater than or equal to B1, and A2 is greater than or equal to A1;
a second ink amount adjustment percentage obtaining module, configured to, when the ink amount parameter satisfies a second preset condition, obtain an accumulated density difference value according to the density difference value, obtain an accumulated saturation difference value according to the saturation difference value, obtain the number of color patches to be adjusted according to the accumulated density difference value and the accumulated saturation difference value, and substitute the number of color patches to be adjusted into an ink amount adjustment formula to obtain an output ink amount adjustment percentage, where the ink amount adjustment formula is: cn=100–5DcnumWherein, CnExpressing percent ink adjustment, DcnumRepresenting the number of color blocks to be adjusted; the second preset condition includes: the reference density difference value is greater than or equal to a first density difference threshold value A1 and less than or equal to a third density difference threshold value A3, the reference saturation difference value is less than or equal to a first saturation difference threshold value B1 or the reference density difference value is less than or equal to a first density difference threshold value A1, wherein A3 is more than or equal to A2;
and the third ink quantity adjustment percentage acquisition module is used for not adjusting the ink output quantity of the ink-jet printer when the ink quantity parameter does not meet the first preset condition and the second preset condition.
In a third aspect, an embodiment of the present invention provides an ink output amount control apparatus for an inkjet printer, 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 method, apparatus, device and storage medium for controlling the amount of ink output of an inkjet printer according to embodiments of the present invention, the method obtains the ink quantity parameter of the ink-jet printer by obtaining the color target graph output by the ink-jet printer, then analyzing the density, the saturation, the density difference, the saturation difference, the accumulated density difference and the accumulated saturation difference and calculating to finally obtain the output ink volume percentage of the ink-jet printer, controlling the output ink volume of the ink-jet printer by controlling the output ink volume percentage, according to the method, the density information and the saturation information are repeatedly utilized to comprehensively obtain ink interception data, a large amount of data such as density difference values, saturation density difference values, accumulated density difference values and accumulated saturation difference values are obtained by converting the density information and the saturation information, and finally the finally obtained ink interception data are accurate and reliable through analysis and deep research modeling of the large amount of data.
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 a method for controlling an ink output amount of an inkjet printer, the method obtaining an ink amount parameter of the inkjet printer by obtaining a color target image output by the inkjet printer, analyzing density, saturation, a density difference, a saturation difference, an accumulated density difference, and an accumulated saturation difference, and performing an operation to obtain an ink output amount percentage of the inkjet printer, controlling an ink output amount of the inkjet printer by controlling the ink output amount percentage, the method repeatedly using density and saturation information to synthesize ink cut data, obtaining a large amount of data such as the density difference, the saturation difference, the accumulated density difference, and the accumulated saturation difference by transforming the density and saturation information, and finally analyzing and deeply exploring modeling the large amount of data to make the finally obtained ink cut data accurate and reliable, the ink interception is to control the ink output amount according to a certain percentage on the basis of the previous normal ink output amount (100%), if the calculated ink interception amount is 0.9, the actual ink output amount of the ink-jet printer is equal to 0.9 times of the initial ink output amount, and the method comprises the following steps:
s1, acquiring ink quantity parameters of the ink-jet printer according to the color target diagram output by the ink-jet printer, wherein the ink quantity parameters comprise: density difference values of n reference color blocks in the color target image and saturation difference values of n reference color blocks in the color target image, selecting a density difference value smaller than or equal to a first preset value from the n density difference values as a reference density difference value, selecting a saturation difference value smaller than or equal to a second preset value from the n saturation difference values as a reference saturation difference value, wherein n is an integer larger than or equal to 1;
in all embodiments of the present invention, the reference density difference is a minimum density difference among the density differences, the reference saturation difference is a minimum saturation difference among the saturation differences, and n is an integer greater than or equal to 1; in other embodiments, the reference density difference may also be a second small density difference in the density differences, the reference saturation difference may also be a second small saturation difference in the saturation differences, and the reference density difference and the saturation difference are specifically selected according to experiments and the device characteristics.
Referring to fig. 2, in the present embodiment, the step S1 specifically includes the following steps:
s11, obtaining the density value and the saturation value of each color block in the color target map according to the color target map;
referring to fig. 3, in the present embodiment, the color target map is a gradient color block map designed according to a dot area ratio interval of 5%, and the color target map includes five color channels, namely, C (cyan), M (magenta), Y (yellow), K (black), and Hybrid (HC). Each color channel has 21 color blocks, the number is numbered from 0 to 20, and the set In of dot area rate input values of 0 to 20 color blocks is as follows: the mixed channel is obtained by mixing C (cyan), M (magenta), Y (yellow) and K (black) four-color channels according to the same dot area ratio. The color target map may further include a spot color channel, which is a color of a specific RGB value, such as large red, green, etc. The method for adjusting the amount of ink output from a monochrome channel of an ink jet printer will be described by taking a cyan (C) channel as an example, and the method for adjusting the amount of ink output from other channels is the same as the method for adjusting the cyan (C) channel. In this embodiment, the density value is obtained by scanning each color block on the color target map by an aliceone device, and the saturation value is obtained by the following formula:
![Figure GDA0002581504410000101](https://patentimages.storage.googleapis.com/4a/db/c2/cd2eece6d35e05/GDA0002581504410000101.png)
wherein S represents a saturation value, a and b represent colorimetric values measured by corresponding color patches, respectively, the colorimetric values are obtained by scanning each color patch on the color target map by an aliceone device, the measuring device may also be a barbieri Spectro LFP S3 spectrophotometer, and the specific measuring device is not limited herein. Before the color target image is measured, the color target image needs to be dried in the air, so that the influence of humidity on the measurement result is avoided.
S12, determining color blocks of which the density values meet the abnormal value judgment condition, recording the color blocks as abnormal color blocks, and deleting the abnormal color blocks from the color blocks to obtain reference color blocks, wherein the abnormal value judgment condition is as follows: for the ith color block, the density value of the ith color block is set as F1(i) And is andF1(i+1)<F1(i+2)<……<F1(i+N),F1(i-N)<……<F1(i-2)<F1(i-1) when F1(i)>F1(i +1) and F1(i)>F1(i-1), the i-th color block is an abnormal color block, and when F is1(i)<F1(i +1) and F1(i)<F1(i-1), the ith color block is an abnormal color block, i is an integer which is more than or equal to 1 and less than or equal to N, and N is an integer which is more than or equal to 2;
in this embodiment, N is equal to 3, when F1(i+1)<F1(i+2)<F1(i+3),F1(i-3)<F1(i-2)<F1When (i-1) is present, if F1(i)>F1(i +1) and F1(i)>F1(i-1), the i-th color block is an abnormal color block, and when F is1(i)<F1(i +1) and F1(i)<F1(i-1), the ith color block is an abnormal color block; when an abnormal color block occurs, the abnormal color block and the parameters corresponding to the abnormal color block are deleted in the embodiment, and meanwhile, the normal color blocks are rearranged from small to large according to the dot area rate. If the 6 th patch is an abnormal patch, i.e., the 5 th patch is an abnormal patch, the original set In of dot area rate input values of 0 to 20 patches is as follows: in ═ 0, 5%, 10%, 15%, 20%, 25%, 30%, 35%, 40%, 45%, 50%, 55%, 60%, 65%, 70%, 75%, 80%, 85%, 90%, 95%, 100% }, the set In' of dot area rate input values for 0 to 19 patches after deletion of an abnormal patch is as follows: in' ═ {0, 5%, 10%, 15%, 20%, 30%, 35%, 40%, 45%, 50%, 55%, 60%, 65%, 70%, 75%, 80%, 85%, 90%, 95%, 100% }.
S13, obtaining the density difference and the saturation difference of the reference color block according to a difference rule, wherein the difference rule is as follows: the density difference value of the xth reference color block is equal to the density value of the xth +1 reference color block minus the density value of the xth reference color block; the saturation difference value of the x-th reference color block is equal to the saturation value of the x +1 th reference color block minus the saturation value of the x-th reference color block, x is an integer which is more than or equal to 4 and less than or equal to N, and N is less than or equal to N.
In this embodiment, the density values and saturation values of the first 4 color patches are not processed, and the other color patches are processed according to the difference rule to obtain the density difference and saturation difference of the reference color patch except for the first 4 color patches.
S2, when the ink quantity parameter meets a first preset condition, the ink quantity adjustment percentage output by the ink-jet printer is L/d, wherein L is a constant, and d is a density difference value corresponding to the (n-1) th color block; the first preset condition includes: the reference density difference is greater than or equal to a first density difference threshold A1, the reference saturation difference is greater than or equal to a first saturation difference threshold B1, the density difference corresponding to the (n-1) th color block is smaller than a second density difference threshold A2, and the saturation difference corresponding to the (n-1) th color block is smaller than a second saturation difference threshold B2, wherein B2 is greater than or equal to B1, and A2 is greater than or equal to A1;
in this embodiment, the reference density difference is a minimum density difference, the reference saturation difference is a minimum saturation difference, the constant F is 0.006, the first density difference threshold a1 is 0.005, the second density difference threshold a2 is 0.015, the first saturation difference threshold B1 is 0.005, and the second saturation difference threshold B2 is 2, all of which are experimentally derived. Of course, other values may be obtained when experimental conditions are varied.
S3, when the ink amount parameter meets a second preset condition, obtaining an accumulated density difference value according to the density difference value, obtaining an accumulated saturation difference value according to the saturation difference value, obtaining the number of color blocks to be adjusted according to the accumulated density difference value and the accumulated saturation difference value, and substituting the number of the color blocks to be adjusted into an ink amount adjustment formula to obtain an output ink amount adjustment percentage, wherein the ink amount adjustment formula is as follows: cn=100–5DcnumWherein, CnExpressing percent ink adjustment, DcnumRepresenting the number of color blocks to be adjusted; the second preset condition includes: the minimum density difference value is greater than a first density difference threshold A1 and less than a third density difference threshold A3, and the minimum saturation difference value is less than a first saturation difference threshold B1 or the minimum density difference value is less than a first density difference threshold A1, wherein A3 is greater than or equal to A2; in the present embodimentThe third density difference threshold a3 is preferably 0.02, which is experimentally obtained. Of course, other values may be obtained when experimental conditions are varied.
Preferably, the obtaining an accumulated density difference according to the density difference and obtaining an accumulated saturation difference according to the saturation difference includes:
obtaining color blocks with the density difference value less than or equal to 0 from the density difference value, and determining the color block with the minimum color block number in the color blocks with the density difference value less than or equal to 0 as a starting color block;
respectively calculating the accumulated density difference value and the accumulated saturation difference value corresponding to each color block from the starting color block according to the density difference value and the saturation difference value of each color block, wherein the specific calculation method comprises the following steps: setting the starting color block as the y color block, wherein the density difference value of the starting color block is as follows: f2(y), the cumulative density difference of the starting color blocks is: f2(y), the cumulative density difference of the (y +1) th patch is: f2(y)+F2(y +1), the cumulative density difference of the (y + m) th patch is: f2(y)+F2(y+1)+……+F2(y+m-1)+F2(y + m); and setting the saturation difference value of the starting color block as follows: f3(y), the cumulative saturation difference for the (y +1) th patch is: f3(y)+F3(y +1), the cumulative saturation difference of the (y + m) th color block is: f3(y)+F3(y+1)+……+F3(y+m-1)+F3(y + m), wherein y is an integer of 4 to n-1, and m is an integer of 0 to n-y-1.
Referring to fig. 4, in a preferred embodiment, the step S3 specifically includes the following steps:
s31, selecting an accumulated density difference value smaller than or equal to a third preset value from the accumulated density difference values as a reference accumulated density difference value, and selecting an accumulated saturation difference value smaller than or equal to a fourth preset value from the accumulated saturation difference values as a reference accumulated saturation difference value;
in this embodiment, the reference cumulative density difference is the smallest value of the cumulative density differences, and the reference cumulative saturation difference is the smallest value of the cumulative saturation differences.
S32, when the reference cumulative density difference value is less than or equal to the cumulative density difference threshold C, obtaining a first ink cut patch number according to the cumulative density difference value and a first judgment condition, where the first judgment condition includes: let the cumulative density difference of the qth patch be: f4(q) in the presence of F4(q) is less than the cumulative density difference threshold value C, and the cumulative density values of the q-th patch to the nth patch are less than the cumulative density difference threshold value C, then q is the first truncated patch number, wherein q is an integer greater than or equal to 4 and less than or equal to n; in the present embodiment, the cumulative density difference threshold value C, which is obtained experimentally, is 0.01.
S33, obtaining a second ink cut color block number according to the accumulated density difference, the accumulated saturation difference and a second judgment condition, wherein the second judgment condition comprises: setting the cumulative density difference of the e-th color block as: f4(e) The cumulative saturation difference of the e-th color block is: f5(e) In the presence of F4(e)<F4(e-1) and F5(e)<F5(e-1), then e is the second ink intercepting color block number, wherein e is an integer which is greater than or equal to 4 and less than or equal to n;
s34, obtaining an initial ink cutting color block number according to the first ink cutting color block number and the second ink cutting color block number;
in this embodiment, the step S34 specifically includes:
s341, when the color block corresponding to the reference cumulative density difference value is the last color block, the number of the initial ink-cut color block is:
wherein SI denotes an initial cut color patch number, Q1 denotes the first cut color patch number, and Q2 denotes the second cut color patch number;
s342, when the color block corresponding to the reference accumulated density difference value is not the last color block, the number of the initial ink-cut color block is:
where mDIa denotes a color block number corresponding to the reference accumulated density difference value.
S35, when the reference accumulated density difference value is larger than or equal to the accumulated density difference threshold value C, obtaining an initial ink intercepting color block number according to the color block number corresponding to the reference density difference value, the color block number corresponding to the reference saturation difference value, the color block number corresponding to the reference accumulated density difference value and the color block number corresponding to the reference accumulated saturation difference value;
preferably, the initial ink cut color block number is:
wherein mDI represents the color block number corresponding to the reference density difference, mDIa represents the color block number corresponding to the reference accumulated density difference, mSI represents the color block number corresponding to the reference saturation difference, and mSIa represents the color block number corresponding to the reference accumulated saturation difference.
S36, obtaining the number of color blocks to be adjusted according to the number of the initial ink-intercepting color blocks and the number of the reference color blocks, substituting the number of the color blocks to be adjusted into an ink amount adjustment formula to obtain the adjustment percentage of the output ink amount, wherein the ink amount adjustment formula is as follows: cn=100–5DcnumWhere Cn represents the percent ink adjustment, DcnumAnd representing the number of color blocks to be adjusted.
Referring to fig. 5, in the present embodiment, the step S36 specifically includes the following steps:
s361, obtaining the number of the color blocks to be initially adjusted according to the number of the initial ink intercepting color blocks and the number of the reference color blocks, wherein the number of the color blocks to be initially adjusted is obtained through the following formula:
SDcnum=n-1-(SI+3)
wherein n represents the number of the reference color blocks, SI represents the number of the initial ink-intercepting color blocks,SDcnumrepresenting the number of color blocks to be adjusted initially;
s362, obtaining a saturation descending amplitude value of the initial color block to be adjusted according to the saturation value and the saturation difference value, and obtaining the color block of which the saturation descending amplitude value is smaller than a descending amplitude threshold value D from the initial color block to be adjusted and recording the color block as a cut color block; in this embodiment, the threshold value of the drop amplitude is 0.5, that is, D is 0.5, the threshold value of the drop amplitude is obtained through experiments, and the truncated color block is merely a name and has no meaning. Of course, other values may be obtained when experimental conditions are varied.
S363, when the number K of the color blocks to be cut is larger than E and the number of the color blocks to be adjusted is smaller than E/2, the number of the color blocks to be adjusted is as follows:
wherein, SDcnumRepresenting the number of color blocks to be initially adjusted, K representing the number of the intercepted color blocks, DcnumRepresenting the number of color blocks to be adjusted, and n representing the number of the reference color blocks;
s364, when the number K of the color blocks is smaller than E and the number of the color blocks to be initially adjusted is larger than E, the number of the color blocks to be adjusted is as follows:
wherein, SDcnumRepresenting the number of color blocks to be initially adjusted, K representing the number of the intercepted color blocks, DcnumRepresenting the number of color blocks to be adjusted, and n representing the number of the reference color blocks;
s365, mixingSubstituting the number of the color blocks to be adjusted into an ink quantity adjusting formula to obtain the adjustment percentage of the output ink quantity, wherein the ink quantity adjusting formula is as follows: cn=100–5DcnumWherein, CnExpressing percent ink adjustment, DcnumAnd representing the number of color blocks to be adjusted.
And S4, when the ink quantity parameter does not meet the first preset condition and the second preset condition, the ink quantity output by the ink-jet printer is not adjusted. That is, the ink is normally discharged in accordance with the preset ink discharge amount, and the previous ink cut processing is not performed.
The method adjusts the output ink quantity of the ink-jet printer, so that the ink quantity output by the ink-jet printer is accurate, the printed product has good quality, good flatness and the like
Referring to fig. 6, an embodiment of the present invention provides an ink output control device for an inkjet printer, the device including:
an ink quantity parameter obtaining module 10, configured to obtain an ink quantity parameter of the inkjet printer according to a color target diagram output by the inkjet printer, where the ink quantity parameter includes: density difference values of n reference color blocks in the color target image and saturation difference values of n reference color blocks in the color target image, selecting a density difference value smaller than or equal to a first preset value from the n density difference values as a reference density difference value, selecting a saturation difference value smaller than or equal to a second preset value from the n saturation difference values as a reference saturation difference value, wherein n is an integer larger than or equal to 1;
a first ink amount adjustment percentage obtaining module 20, configured to, when the ink amount parameter meets a first preset condition, output an ink amount adjustment percentage of L/d by the inkjet printer, where L is a constant and d is a density difference value corresponding to an n-1 th color patch; the first preset condition includes: the reference density difference is greater than or equal to a first density difference threshold A1, the reference saturation difference is greater than or equal to a first saturation difference threshold B1, the density difference corresponding to the (n-1) th color block is smaller than a second density difference threshold A2, and the saturation difference corresponding to the (n-1) th color block is smaller than or equal to a second saturation difference threshold B2, wherein B2 is greater than or equal to B1, and A2 is greater than or equal to A1;
second ink amount adjustmentA percentage obtaining module 30, configured to, when the ink amount parameter satisfies a second preset condition, obtain an accumulated density difference according to the density difference, obtain an accumulated saturation difference according to the saturation difference, obtain the number of color patches to be adjusted according to the accumulated density difference and the accumulated saturation difference, and substitute the number of color patches to be adjusted into an ink amount adjustment formula to obtain an output ink amount adjustment percentage, where the ink amount adjustment formula is: cn=100–5DcnumWherein, CnExpressing percent ink adjustment, DcnumRepresenting the number of color blocks to be adjusted; the second preset condition includes: the reference density difference value is greater than or equal to a first density difference threshold value A1 and less than or equal to a third density difference threshold value A3, the reference saturation difference value is less than or equal to a first saturation difference threshold value B1 or the reference density difference value is less than or equal to a first density difference threshold value A1, wherein A3 is more than or equal to A2;
and a third ink amount adjustment percentage obtaining module 40, configured to, when the ink amount parameter does not satisfy the first preset condition and the second preset condition, not adjust the ink amount output by the inkjet printer.
Preferably, the ink amount parameter acquiring module 10 further includes:
the scanning unit is used for acquiring the density value and the saturation value of each color block in the color target map;
a reference color block obtaining unit, configured to determine a color block whose density value satisfies an abnormal value determination condition, mark the color block as an abnormal color block, and delete the abnormal color block from the color block to obtain a reference color block, where the abnormal value determination condition is: for the ith color block, the density value of the ith color block is set as F1(i) And F is1(i+1)<F1(i+2)<……<F1(i+N),F1(i-N)<……<F1(i-2)<F1(i-1) when F1(i)>F1(i +1) and F1(i)>F1(i-1), the i-th color block is an abnormal color block, and when F is1(i)<F1(i +1) and F1(i)<F1(i-1), the ith color block is an abnormal color block, i is an integer which is more than or equal to 1 and less than or equal to N, and N is an integer which is more than or equal to 2;
a difference value obtaining unit, configured to obtain a density difference value and a saturation difference value of the reference color block according to a difference value rule, where the difference value rule is: the density difference value of the xth reference color block is equal to the density value of the xth +1 reference color block minus the density value of the xth reference color block; the saturation difference value of the x-th reference color block is equal to the saturation value of the x +1 th reference color block minus the saturation value of the x-th reference color block, x is an integer which is more than or equal to 4 and less than or equal to N, and N is less than or equal to N.
Preferably, the obtaining an accumulated density difference according to the density difference and obtaining an accumulated saturation difference according to the saturation difference includes:
obtaining color blocks with the density difference value less than or equal to 0 from the density difference value, and determining the color block with the minimum color block number in the color blocks with the density difference value less than or equal to 0 as a starting color block;
respectively calculating the accumulated density difference value and the accumulated saturation difference value corresponding to each color block from the starting color block according to the density difference value and the saturation difference value of each color block, wherein the specific calculation method comprises the following steps: setting the starting color block as the y color block, wherein the density difference value of the starting color block is as follows: f2(y), the cumulative density difference of the starting color blocks is: f2(y), the cumulative density difference of the (y +1) th patch is: f2(y)+F2(y +1), the cumulative density difference of the (y + m) th patch is: f2(y)+F2(y+1)+……+F2(y+m-1)+F2(y + m); and setting the saturation difference value of the starting color block as follows: f3(y), the cumulative saturation difference for the (y +1) th patch is: f3(y)+F3(y +1), the cumulative saturation difference of the (y + m) th color block is: f3(y)+F3(y+1)+……+F3(y+m-1)+F3(y + m), wherein y is an integer of 4 to n-1, and m is an integer of 0 to n-y-1.
Preferably, the first ink amount adjustment percentage obtaining module 20 further includes:
a reference value obtaining unit, configured to select an accumulated density difference value smaller than or equal to a third preset value from the accumulated density difference values as a reference accumulated density difference value, and select an accumulated saturation difference value smaller than or equal to a fourth preset value from the accumulated saturation difference values as a reference accumulated saturation difference value;
a first ink cut patch number obtaining unit, configured to obtain a first ink cut patch number according to the accumulated density difference value and a first determination condition when the reference accumulated density difference value is smaller than an accumulated density difference threshold C, where the first determination condition includes: let the cumulative density difference of the qth patch be: f4(q) in the presence of F4(q) is less than the cumulative density difference threshold value C, and the cumulative density values of the q-th patch to the nth patch are less than the cumulative density difference threshold value C, then q is the first truncated patch number, wherein q is an integer greater than or equal to 4 and less than or equal to n;
a second cut ink color block number obtaining unit, configured to obtain a second cut ink color block number according to the accumulated density difference, the accumulated saturation difference, and a second determination condition, where the second determination condition includes: setting the cumulative density difference of the e-th color block as: f4(e) The cumulative saturation difference of the e-th color block is: f5(e) In the presence of F4(e)<F4(e-1) and F5(e)<F5(e-1), then e is the second ink intercepting color block number, wherein e is an integer which is greater than or equal to 4 and less than or equal to n;
a first initial ink cut color block number obtaining unit, configured to obtain an initial ink cut color block number according to the first ink cut color block number and the second ink cut color block number;
a second initial cut-off color block number obtaining unit, configured to obtain an initial cut-off color block number according to the color block number corresponding to the reference density difference, the color block number corresponding to the reference saturation difference, the color block number corresponding to the reference accumulated density difference, and the color block number corresponding to the reference accumulated saturation difference when the reference accumulated density difference is greater than or equal to the accumulated density difference threshold C;
a number of color blocks to be adjusted acquiring unit for acquiring the number of color blocks to be adjusted according to the initial ink-cut color block number and the reference color block number, and counting the color blocks to be adjustedSubstituting the number into an ink quantity adjusting formula to obtain the output ink quantity adjusting percentage, wherein the ink quantity adjusting formula is as follows: cn=100–5DcnumWherein, CnExpressing percent ink adjustment, DcnumAnd representing the number of color blocks to be adjusted.
Preferably, when the color block corresponding to the reference accumulated density difference value is the last color block, the initial ink cut block number is:
wherein SI denotes an initial cut color patch number, Q1 denotes the first cut color patch number, and Q2 denotes the second cut color patch number;
when the color block corresponding to the reference accumulated density difference value is not the last color block, the number of the initial ink interception color block is as follows:
where mDIa denotes a color block number corresponding to the reference accumulated density difference value.
Preferably, when the reference cumulative density difference is greater than or equal to the cumulative density difference threshold C, obtaining the initial cut-off color block number according to the color block number corresponding to the reference density difference, the color block number corresponding to the reference saturation difference, the color block number corresponding to the reference cumulative density difference, and the color block number corresponding to the reference cumulative saturation difference includes:
the initial ink cut color block number is obtained by the following formula:
wherein mDI represents the color block number corresponding to the reference density difference, mDIa represents the color block number corresponding to the reference accumulated density difference, mSI represents the color block number corresponding to the reference saturation difference, and mSIa represents the color block number corresponding to the reference accumulated saturation difference.
Preferably, the number of color blocks to be adjusted is obtained according to the number of the initial ink-cut color blocks and the number of the reference color blocks, and the number of the color blocks to be adjusted is substituted into an ink amount adjustment formula to obtain an output ink amount adjustment percentage, where the ink amount adjustment formula is as follows: cn=100–5DcnumWhere Cn represents the percent ink adjustment, DcnumThe number of the color blocks to be adjusted is represented as follows:
obtaining the number of the color blocks to be initially adjusted according to the number of the initial ink intercepting color blocks and the number of the reference color blocks, wherein the number of the color blocks to be initially adjusted is obtained through the following formula:
SDcnum=n-1-(SI+3)
wherein n represents the number of the reference color blocks, SI represents the number of the initial ink-intercepting color blocks, SDcnumRepresenting the number of color blocks to be adjusted initially;
obtaining a saturation descending amplitude value of the initial color block to be adjusted according to the saturation value and the saturation difference value, and obtaining the color block with the saturation descending amplitude value smaller than a descending amplitude threshold value D from the initial color block to be adjusted and recording the color block as a cut color block; in the present embodiment, the drop threshold is 0.5, that is, D is 0.5, and the drop threshold is obtained through experiments.
When the number K of the color blocks to be adjusted is larger than E and the number of the color blocks to be initially adjusted is smaller than E/2, the number of the color blocks to be adjusted is as follows:
wherein, SDcnum represents the number of the color blocks to be adjusted initially, K represents the number of the intercepted color blocks, Dcnum represents the number of the color blocks to be adjusted, and n represents the number of the reference color blocks;
when the number K of the intercepted color blocks is smaller than E and the number of the color blocks to be initially adjusted is larger than E, the number of the color blocks to be adjusted is as follows:
wherein, SDcnumRepresenting the number of color blocks to be initially adjusted, K representing the number of the intercepted color blocks, DcnumRepresenting the number of color blocks to be adjusted, and n representing the number of the reference color blocks;
substituting the number of the color blocks to be adjusted into an ink quantity adjusting formula to obtain the adjustment percentage of the output ink quantity, wherein the ink quantity adjusting formula is as follows: cn=100–5DcnumWherein, CnExpressing percent ink adjustment, DcnumAnd representing the number of color blocks to be adjusted.
In addition, the ink output amount control method of the embodiment of the present invention described in conjunction with fig. 1 may be implemented by an ink output amount control apparatus of an ink jet printer. Fig. 7 is a schematic diagram showing a hardware configuration of an ink output amount control apparatus of an inkjet printer according to an embodiment of the present invention.
An ink jet printer output ink amount control 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 the ink output amount control method of the inkjet printer in any of the above-described embodiments.
In one example, the ink jet printer output ink amount control device may also include a communication interface 403 and a bus 410. As shown in fig. 7, 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.
The bus 410 includes hardware, software, or both that couple the components of the ink jet printer output ink level control device to one another. 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 method for controlling the ink output amount of the inkjet printer in the above embodiments, embodiments of the present invention may 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 ink jet printer output ink amount control methods in the above embodiments.
In summary, the method, apparatus, device and storage medium for controlling the amount of ink output of an inkjet printer according to embodiments of the present invention, the method obtains the ink quantity parameter of the ink-jet printer by obtaining the color target graph output by the ink-jet printer, then analyzing the density, the saturation, the density difference, the saturation difference, the accumulated density difference and the accumulated saturation difference and calculating to finally obtain the output ink volume percentage of the ink-jet printer, controlling the output ink volume of the ink-jet printer by controlling the output ink volume percentage, according to the method, the density information and the saturation information are repeatedly utilized to comprehensively obtain ink interception data, a large amount of data such as density difference values, saturation density difference values, accumulated density difference values and accumulated saturation difference values are obtained by converting the density information and the saturation information, and finally the finally obtained ink interception data are accurate and reliable through analysis and deep research modeling of the large amount of data.
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.