Disclosure of Invention
The embodiment of the invention provides a printer ink amount adjusting method, a printer ink amount adjusting device, printer ink amount adjusting equipment and a printer ink amount adjusting medium based on color management, which are used for solving the problems that in the prior art, when the color of a large area in an image to be printed is consistent with the color of a printing medium, all pixel points are completely discharged, so that ink is wasted, and the printing cost is increased.
In a first aspect, an embodiment of the present invention provides a method for adjusting an ink amount of a printer based on color management, where the method includes:
acquiring a color value of a printing medium, and recording the color value as a first color value;
establishing a color profile in the color management of the printer according to the first color value;
acquiring the color value of each pixel point in the image to be printed, and recording the color value as a second color value;
and acquiring a printing color value and a white ink value corresponding to each pixel point according to each second color value and the color characteristic file.
Preferably, the color profile includes: and the forward lookup table and the reverse lookup table of the lab color space, wherein the forward lookup table is a mapping from an image to be printed or a printing medium input color space to the lab color space, and the reverse lookup table is a mapping from the lab color space to the color space input to the printer.
Preferably, the obtaining a third color value and a white ink amount value corresponding to each pixel point according to each second color value and the color profile includes:
according to eachThe second color value and the color characteristic file acquire a third color value corresponding to each pixel point, wherein the second color value P is a color value of the color characteristic file1Is as follows, P1=(C1、M1、Y1、K1) Said third color value P2Is as follows, P2=(C2、M2、Y2、K2A), C is an ink volume concentration value corresponding to a cyan channel of the printer, M is an ink volume concentration value corresponding to a magenta channel of the printer, Y is an ink volume concentration value corresponding to a yellow channel of the printer, K is an ink volume concentration value corresponding to a black channel of the printer, and a is an ink volume concentration value corresponding to a first color channel of the printer;
and setting a printing color value corresponding to each pixel point and an ink quantity concentration value corresponding to the white ink channel according to each third color value.
Preferably, the printing color value P corresponding to each pixel point3Is as follows, P3=(C2、M2、Y2、K2And 0), the ink volume concentration value W of the white ink channel corresponding to each pixel point is 255-A.
Preferably, the obtaining a third color value corresponding to each pixel point according to each second color value and the color profile includes:
converting each second color value into a lab value according to the forward lookup table;
And converting each lab value into a third color value according to the reverse lookup table.
Preferably, the creating a color profile in the color management of the printer according to the first color value includes:
establishing a sample color value of a color characteristic file according to the first color value and the primary color setting of the printer;
printing according to the sample color values to obtain a color target graph;
scanning the color target image to obtain a lab value corresponding to each color block;
and establishing a mapping relation between the sample color value and the lab value to obtain the reverse lookup table of the printer.
Preferably, the forward lookup table is used for conversion of color values of a CMYK color gamut to a lab color gamut.
In a second aspect, an embodiment of the present invention provides an ink amount adjustment device for a printer based on color management, the device including:
the first color value acquisition module is used for acquiring the color value of the printing medium and recording the color value as the first color value;
the color characteristic file acquisition module is used for establishing a color characteristic file in the color management of the printer according to the first color value;
the second color value acquisition module is used for acquiring the color value of each pixel point in the image to be printed and recording the color value as a second color value;
And the printing color value acquisition module is used for acquiring the printing color value and the white ink value corresponding to each pixel point according to each second color value and the color characteristic file.
In a third aspect, an embodiment of the present invention provides a printer ink amount adjustment apparatus based on color management, 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, in the method, the apparatus, the device, and the medium for adjusting the ink amount of the printer based on color management provided in the embodiments of the present invention, the color value of the print medium is obtained and recorded as the first color value, and is combined with the color management of the printer, then the color value corresponding to each pixel point in the image to be printed is input and recorded as the second color value, and the second color value is converted through the color management to obtain the print color value corresponding to each pixel point and the ink amount value of the white ink. Therefore, partial ink amount can be saved, printing cost is reduced, and the white ink value is reasonably set according to the first color value instead of directly outputting the 100% white ink value, so that the printed image is good in transition and touch handfeel.
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.
In the method for adjusting the ink amount of the printer based on color management provided by the embodiment of the invention, the color value of the printing medium is acquired, recorded as the first color value, and is combined with the color management of the printer, then the color value corresponding to each pixel point in the image to be printed is input and recorded as the second color value, and the second color value is converted through the color management so as to obtain the printing color value corresponding to each pixel point and the ink amount value of white ink. Therefore, partial ink amount can be saved, printing cost is reduced, and the white ink value is reasonably set according to the first color value instead of directly outputting the 100% white ink value, so that the printed image is good in transition and touch handfeel.
Fig. 1 is a block diagram of color management software in this embodiment, where the color management software includes: the device comprises a color management main control module, a color correction equipment module, a printer drive calling module, a scan data standby module, a white ink batch processing module, a paper management module, a dark and light color proportioning module, a dilution configuration module, an ink amount control module, a linearization correction module, a gray balance adjustment module and a black decomposition module; the color management main control module is respectively and independently connected with and controls the color correction equipment module, the printer drive calling module, the scan data standby module, the white ink batch processing module, the paper management module and the dark and light color matching module; the color correction device module is used for managing device characteristics of a printing device, a scanning device and the like, in the embodiment, the scanning device mainly includes eye-one and Barbieri Spectro, the white ink batch processing module is used for carrying out batch processing on white ink with different requirements, if some images to be printed need white ink paving and white ink is required to be printed in formal images, the white ink batch processing module can carry out batch processing on white ink curves, and the paper management module is used for managing characteristics of printing media, such as color, thickness, material and the like of the printing media; the dark and light color matching module is connected with the diluting and configuring module and is used for matching the colors of the images to be printed with dark and light color dots and diluting and configuring the dots to ensure uniform color distribution of the printed images, then adjusting the ink amount setting of each color channel in the images to be printed, meanwhile, in order to ensure accurate color of the images to be printed, the ink amount value of each color channel is sequentially input into the linearization correcting module, the gray balance adjusting module and the black decomposing module to sequentially carry out linearization correction, gray balance adjustment and black decomposition, then the data of the images to be printed are sent to the printing equipment to be printed, the black decomposing module is used for decomposing the printed black into other colors to be printed, for example, the black is decomposed into cyan, magenta and black in the printer, Yellow is printed.
Referring to fig. 2, the method for adjusting the ink amount of the printer based on the color management specifically includes the following steps:
s1, acquiring a color value of the printing medium and recording the color value as a first color value;
specifically, when the color value of the printing medium used by the user is known, the color value input by the user on the image processing interactive interface can be directly obtained; when the color value of the printing medium used by the user is unknown, the color value of the printing medium may be acquired by scanning the printing medium using an image scanner (e.g., eyeone). Wherein, the color value input by the user on the image processing interactive interface or scanned and obtained by the image scanner is different in different color modesFor example, in the CMYK color mode, the first color value of the printing medium is (C)0、M0、Y0、K0) If in the RGB color mode, the first color value of the print medium is (R)0、G0、B0)。
S2, establishing a color characteristic file in the color management of the printer according to the first color value;
specifically, the first color value is input into color management software of the printer to form a first color value channel, which is a spot color channel except for a primary color channel, where the primary color channel of the printer in this embodiment includes: a cyan channel, a magenta channel, a yellow channel, and a black channel; then, a color profile of a channel with four primary colors and a first color value is established in color management software, so that the color value of each pixel point in the image to be printed can be converted into a lab value through the color profile, and then the lab value is converted into the output color value of the printer. Preferably, the color profile includes: and the forward lookup table and the reverse lookup table of the lab color space, wherein the forward lookup table is a mapping from an image to be printed or a printing medium input color space to the lab color space, and the reverse lookup table is a mapping from the lab color space to the color space input to the printer.
Preferably, referring to fig. 3, the specific method for acquiring the color profile includes the following steps:
s21, establishing a sample color value of a color characteristic file according to the first color value and the primary color setting of the printer;
s22, printing according to the sample color values to obtain a color target graph;
s23, scanning the color target map to obtain lab values corresponding to each color block;
s24, establishing a mapping relation between the sample color values and the lab values to obtain the reverse lookup table of the printer.
Specifically, in the present embodiment, first, the black ink is uniformly sampled in predetermined steps over its entire range of ink amount values (from 0 to 100%), while the ink amount values of the other colors are set to 0, with only the ink amount value of the black ink as an output; then, after a space curve section corresponding to the black ink is formed by a curve fitting method, the space curve section is uniformly divided, and each typical black ink value with uniform visual effect can be obtained; next, typical ink values are determined C, M, Y, A; and finally, completely combining each typical ink amount with each typical ink amount of other four colors to obtain a corresponding ink amount combination, namely a sample set of sample color values, printing and outputting the sample set to obtain a color target diagram, measuring by using a light splitting color measuring instrument to obtain lab values corresponding to each color block, namely the color values of each ink amount combination data in space, and establishing a corresponding relation between the sample color values of each color block and the lab values to obtain the reverse lookup table.
S3, obtaining the color value of each pixel point in the image to be printed, and recording the color value as a second color value;
specifically, a second color value corresponding to each pixel point in the image to be printed is obtained by adopting the existing traversal algorithm.
And S4, acquiring a printing color value and a white ink value corresponding to each pixel point according to each second color value and the color characteristic file.
Specifically, each of the second color values is input into color management software, and the second color values are converted into third color values from the second color values P by using a color profile1Is as follows, P1=(C1、M1、Y1、K1) Said third color value P2Is as follows, P2=(C2、M2、Y2、K2A), C is an ink volume concentration value corresponding to a cyan channel of the printer, M is an ink volume concentration value corresponding to a magenta channel of the printer, Y is an ink volume concentration value corresponding to a yellow channel of the printer, K is an ink volume concentration value corresponding to a black channel of the printer, and a is an ink volume concentration value corresponding to a first color channel of the printer; and then, printing a color value and an ink quantity concentration value corresponding to the white ink channel by using the third color value.
Preferably, referring to fig. 4, the obtaining of the third color value corresponding to each pixel point according to each second color value and the color profile is specifically obtained through the following steps:
S41, converting each second color value into a lab value according to the forward lookup table;
and S42, converting each lab value into a third color value according to the reverse lookup table.
Specifically, in this embodiment, the range of the ink amount value of the white ink in the white ink channel is 0 to 100%, where the specific data value range of the ink amount value of the ink during printing is set according to different printing devices and usage environments, and is a standard for quantifying the condition of the ink to be printed on the pixel point. Setting the printing color value P corresponding to each pixel point3Is as follows, P3=(C2、M2、Y2、K2And 0), the ink volume concentration value W of the white ink channel corresponding to each pixel point is 255-A. Thus, the ink amount of the white ink channel is not 100% of the original value, thereby saving the ink amount.
Preferably, in this example, the forward lookup table is a conversion of the CMYK color gamut to the lab color gamut. Wherein, the forward lookup table can also be the conversion of CMYK + a/b to lab color gamut.
Referring to fig. 5, an embodiment of the present invention provides an ink amount adjusting device for a printer based on color management, the device including:
a first color value obtaining module 10, configured to obtain a color value of a printing medium, and record the color value as a first color value;
A color profile obtaining module 20, configured to establish a color profile in color management of the printer according to the first color value;
a second color value obtaining module 30, configured to obtain a color value of each pixel point in the image to be printed, and record the color value as a second color value;
and the printing color value obtaining module 40 is configured to obtain a printing color value and a white ink value corresponding to each pixel point according to each second color value and the color profile.
Preferably, the color profile includes: and the forward lookup table and the reverse lookup table of the lab color space, wherein the forward lookup table is a mapping from an image to be printed or a printing medium input color space to the lab color space, and the reverse lookup table is a mapping from the lab color space to the color space input to the printer.
Preferably, the obtaining a third color value and a white ink amount value corresponding to each pixel point according to each second color value and the color profile includes:
obtaining a third color value corresponding to each pixel point according to each second color value and the color characteristic file, wherein the two color values P1Is as follows, P1=(C1、M1、Y1、K1) Said third color value P 2Is as follows, P2=(C2、M2、Y2、K2A), C is an ink volume concentration value corresponding to a cyan channel of the printer, M is an ink volume concentration value corresponding to a magenta channel of the printer, Y is an ink volume concentration value corresponding to a yellow channel of the printer, K is an ink volume concentration value corresponding to a black channel of the printer, and a is an ink volume concentration value corresponding to a first color channel of the printer;
and setting a printing color value corresponding to each pixel point and an ink quantity concentration value corresponding to the white ink channel according to each third color value.
Preferably, the printing color value P corresponding to each pixel point3Is as follows, P3=(C2、M2、Y2、K2And 0), the ink volume concentration value W of the white ink channel corresponding to each pixel point is 255-A.
Preferably, the obtaining a third color value corresponding to each pixel point according to each second color value and the color profile includes:
converting each second color value into a lab value according to the forward lookup table;
and converting each lab value into a third color value according to the reverse lookup table.
Preferably, the creating a color profile in the color management of the printer according to the first color value includes:
establishing a sample color value of a color characteristic file according to the first color value and the primary color setting of the printer;
Printing according to the sample color values to obtain a color target graph;
scanning the color target image to obtain a lab value corresponding to each color block;
and establishing a mapping relation between the sample color value and the lab value to obtain the reverse lookup table of the printer.
Preferably, the forward lookup table is used for conversion of color values of a CMYK color gamut to a lab color gamut.
In addition, the color management based printer ink amount adjustment method of the embodiment of the present invention described in conjunction with fig. 1 can be implemented by a color management based printer ink amount adjustment apparatus. Fig. 6 is a schematic diagram showing a hardware configuration of a color management-based ink amount adjustment apparatus for a printer according to an embodiment of the present invention.
The color management based printer ink volume adjustment device may include a processor 401 and a memory 402 storing computer program instructions.
Specifically, the processor 401 may include a Central Processing Unit (CPU), or an Application Specific Integrated Circuit (ASIC), or may be configured as one or more Integrated circuits implementing embodiments of the present invention.
Memory 402 may include mass storage for data or instructions. By way of example, and not limitation, memory 402 may include a Hard Disk Drive (HDD), floppy Disk Drive, flash memory, optical Disk, magneto-optical Disk, tape, or Universal Serial Bus (USB) Drive or a combination of two or more of these. Memory 402 may include removable or non-removable (or fixed) media, where appropriate. The memory 402 may be internal or external to the data processing apparatus, where appropriate. In a particular embodiment, the memory 402 is a non-volatile solid-state memory. In a particular embodiment, the memory 402 includes Read Only Memory (ROM). Where appropriate, the ROM may be mask-programmed ROM, Programmable ROM (PROM), Erasable PROM (EPROM), Electrically Erasable PROM (EEPROM), electrically rewritable ROM (EAROM), or flash memory or a combination of two or more of these.
The processor 401 reads and executes computer program instructions stored in the memory 402 to implement any of the color management based printer ink amount adjustment methods in the above-described embodiments.
In one example, the color management based printer ink volume adjustment device may also include a communication interface 403 and a bus 410. As shown in fig. 6, the processor 401, the memory 402, and the communication interface 403 are connected via a bus 410 to complete communication therebetween.
The communication interface 403 is mainly used for implementing communication between modules, apparatuses, units and/or devices in the embodiments of the present invention.
Bus 410 includes hardware, software, or both to couple the components of the color management based printer ink volume adjustment device to each other. By way of example, and not limitation, a bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a Hypertransport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an infiniband interconnect, a Low Pin Count (LPC) bus, a memory bus, a Micro Channel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a video electronics standards association local (VLB) bus, or other suitable bus or a combination of two or more of these. Bus 410 may include one or more buses, where appropriate. Although specific buses have been described and shown in the embodiments of the invention, any suitable buses or interconnects are contemplated by the invention.
In addition, in combination with the method for adjusting the ink amount of the printer based on color management in the above embodiments, the embodiments of the present invention can be implemented by providing a computer-readable storage medium. The computer readable storage medium having stored thereon computer program instructions; the computer program instructions, when executed by a processor, implement any of the color management based printer ink volume adjustment methods of the above embodiments.
In summary, in the method, the apparatus, the device, and the medium for adjusting the ink amount of the printer based on color management provided in the embodiments of the present invention, the color value of the print medium is obtained and recorded as the first color value, and is combined with the color management of the printer, then the color value corresponding to each pixel point in the image to be printed is input and recorded as the second color value, and the second color value is converted through the color management to obtain the print color value corresponding to each pixel point and the ink amount value of the white ink. Therefore, partial ink amount can be saved, printing cost is reduced, and the white ink value is reasonably set according to the first color value instead of 100% white ink amount, so that the printed image is good in transition and touch handfeel.
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.