CN111845100B - Printer ink amount setting method, device, equipment and medium based on image processing - Google Patents

Printer ink amount setting method, device, equipment and medium based on image processing Download PDF

Info

Publication number
CN111845100B
CN111845100B CN201910343405.8A CN201910343405A CN111845100B CN 111845100 B CN111845100 B CN 111845100B CN 201910343405 A CN201910343405 A CN 201910343405A CN 111845100 B CN111845100 B CN 111845100B
Authority
CN
China
Prior art keywords
value
image
ink
color
printed
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910343405.8A
Other languages
Chinese (zh)
Other versions
CN111845100A (en
Inventor
左国云
黄中琨
陈艳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Hansen Software Co.,Ltd.
Original Assignee
Shenzhen Hosonsoft Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Hosonsoft Co Ltd filed Critical Shenzhen Hosonsoft Co Ltd
Priority to CN201910343405.8A priority Critical patent/CN111845100B/en
Publication of CN111845100A publication Critical patent/CN111845100A/en
Application granted granted Critical
Publication of CN111845100B publication Critical patent/CN111845100B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B41PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
    • B41JTYPEWRITERS; SELECTIVE PRINTING MECHANISMS, i.e. MECHANISMS PRINTING OTHERWISE THAN FROM A FORME; CORRECTION OF TYPOGRAPHICAL ERRORS
    • B41J2/00Typewriters or selective printing mechanisms characterised by the printing or marking process for which they are designed
    • B41J2/005Typewriters or selective printing mechanisms characterised by the printing or marking process for which they are designed characterised by bringing liquid or particles selectively into contact with a printing material
    • B41J2/01Ink jet
    • B41J2/21Ink jet for multi-colour printing
    • B41J2/2107Ink jet for multi-colour printing characterised by the ink properties
    • B41J2/2114Ejecting transparent or white coloured liquids, e.g. processing liquids
    • B41J2/2117Ejecting white liquids
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B41PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
    • B41JTYPEWRITERS; SELECTIVE PRINTING MECHANISMS, i.e. MECHANISMS PRINTING OTHERWISE THAN FROM A FORME; CORRECTION OF TYPOGRAPHICAL ERRORS
    • B41J2/00Typewriters or selective printing mechanisms characterised by the printing or marking process for which they are designed
    • B41J2/005Typewriters or selective printing mechanisms characterised by the printing or marking process for which they are designed characterised by bringing liquid or particles selectively into contact with a printing material
    • B41J2/01Ink jet
    • B41J2/21Ink jet for multi-colour printing
    • B41J2/2121Ink jet for multi-colour printing characterised by dot size, e.g. combinations of printed dots of different diameter
    • B41J2/2128Ink jet for multi-colour printing characterised by dot size, e.g. combinations of printed dots of different diameter by means of energy modulation
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B41PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
    • B41JTYPEWRITERS; SELECTIVE PRINTING MECHANISMS, i.e. MECHANISMS PRINTING OTHERWISE THAN FROM A FORME; CORRECTION OF TYPOGRAPHICAL ERRORS
    • B41J2/00Typewriters or selective printing mechanisms characterised by the printing or marking process for which they are designed
    • B41J2/005Typewriters or selective printing mechanisms characterised by the printing or marking process for which they are designed characterised by bringing liquid or particles selectively into contact with a printing material
    • B41J2/01Ink jet
    • B41J2/21Ink jet for multi-colour printing
    • B41J2/2132Print quality control characterised by dot disposition, e.g. for reducing white stripes or banding

Abstract

The invention discloses a method, a device, equipment and a medium for setting ink quantity of a printer based on image processing. The method for setting the ink amount of the printer comprises the steps of acquiring the color value of a printing medium and recording the color value as a first color value; carrying out graying processing on the image to be printed according to the first color value to obtain a first grayscale image; traversing the first gray scale image to obtain a first gray scale value of each pixel point in the gray scale image; comparing the first gray value with a set color threshold value to obtain a comparison result; and setting the ink amount value of a white ink channel of the printer when the image to be printed is printed according to the comparison result. The printer ink amount setting method, device, equipment and medium based on image processing can save ink amount and reduce printing cost, and meanwhile, printed images are good in transition and touch handfeel.

Description

Printer ink amount setting method, device, equipment and medium based on image processing
Technical Field
The invention relates to the field of ink-jet printing, in particular to a method, a device, equipment and a medium for setting ink quantity of a printer based on image processing.
Background
An ink jet printer ejects a color liquid ink onto a printing medium as fine particles through a nozzle. With the continuous progress of the technology, the color and the material of the printing medium are more and more abundant, so that the color of a large area in the image to be printed is consistent with the color of the printing medium, and at the moment, if all pixel points in the image are still discharged, ink waste can be caused. Especially in the textile industry, when a color image is printed, a layer of white ink with an ink value of 100% needs to be printed for bottoming, so that not only color ink but also white ink are wasted, and the printing cost is increased. The existing ink-saving method considers the quality of an ink box, the quality of ink and the quality of machine equipment, avoids the waste of ink caused by ink leakage, incompatibility among the ink and the like, and does not consider the relation between an image and the color of a printing medium.
As disclosed in patent application No. 200610066430.9, a method of printing that saves ink, the method comprising the steps of: (1) starting printing output, and drawing objects on a layout one by one; (2) when drawing the monochrome shading of the object, firstly checking whether the color of the monochrome shading of the object is overprint C100M100Y100K100, if so, performing desalination processing, then starting drawing, and after the drawing is finished, restoring the color value again; otherwise, normal drawing is carried out; (3) and repeating the steps, and finishing the printing process when the objects on all the layouts are drawn. The method only aims at the overprint color during printing to carry out ink-saving treatment, and does not consider the printing effect and the color of a printing medium, so that the quality of a printed product is poor and the hand feeling is not good.
Disclosure of Invention
The embodiment of the invention provides a method, a device, equipment and a medium for setting the ink amount of a printer based on image processing, 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 an ink amount setting method for a printer based on image processing, the method including:
acquiring a color value of a printing medium, and recording the color value as a first color value;
carrying out graying processing on the image to be printed according to the first color value to obtain a first grayscale image;
traversing the first gray scale image to obtain a first gray scale value of each pixel point in the gray scale image;
comparing the first gray value with a set color threshold value to obtain a comparison result;
and setting the ink amount value of the white ink in the white ink channel when the image to be printed is printed according to the comparison result.
Preferably, the performing graying processing on the image to be printed according to the first color value to obtain a grayscale map includes:
obtaining color values corresponding to all pixel points in the image to be printed, and recording the color values as second color values;
acquiring a difference value corresponding to each pixel point according to the first color value and the second color value;
generating an intermediate image according to the difference value corresponding to each pixel point;
and carrying out graying processing on the intermediate image to obtain a corresponding first grayscale image.
Preferably, the first gray value is set as A, the color threshold value is set as T, and when A is larger than or equal to T, the ink quantity value of the white ink in the white ink channel when the image to be printed is as follows:
W=255-A
wherein W is an ink amount value of white ink in a white ink channel when the image to be printed is printed.
Preferably, if a first gray value is a, the color threshold is T, and when a < T, the setting the ink amount value of the white ink in the white ink channel when the image to be printed is printed according to the comparison result includes:
carrying out graying processing on the image to be printed to obtain a second grayscale image;
traversing the second gray scale map to obtain a second gray scale value corresponding to each pixel point in the second gray scale map;
and setting the ink amount value of the white ink in the white ink channel when the image to be printed is printed according to the second gray value.
Preferably, if the second gray value is B, the ink amount of the white ink in the white ink channel when the image to be printed is set according to the second gray value as follows:
W=255-B
wherein W is an ink amount value of white ink in a white ink channel when the image to be printed is printed.
Preferably, the printer further includes a cyan channel, a magenta channel, a yellow channel, and a black channel, and when W is 0, the method further includes:
adjusting the ink values of the cyan channel, the magenta channel, the yellow channel and the black channel of the corresponding pixel point according to the ink value of the white ink channel, so that the ink values of the cyan channel, the magenta channel, the yellow channel and the black channel are as follows:
C=0,M=0,Y=0,K=0
where C is the ink value for the cyan channel, M is the ink value for the magenta channel, Y is the ink value for the yellow channel, and K is the ink value for the black channel.
Preferably, when the color value of a pixel point in the image to be printed is C ═ 0, M ═ 0, Y ═ 0, and K ═ 0, then W ═ 0.
In a second aspect, an embodiment of the present invention provides an ink amount setting apparatus for a printer based on image processing, the apparatus 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 first gray-scale image acquisition module is used for carrying out gray-scale processing on the image to be printed according to the first color value to obtain a first gray-scale image;
the first gray value acquisition module is used for traversing the first gray image to acquire a first gray value of each pixel point in the gray image;
the comparison result acquisition module is used for comparing the first gray value with a set color threshold value to obtain a comparison result;
and the ink amount setting module is used for setting the ink amount of the white ink in the white ink channel when the image to be printed is printed according to the comparison result.
In a third aspect, an embodiment of the present invention provides an ink amount setting apparatus for a printer based on image processing, 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 color value of the printing medium is obtained and compared with the color values of all the pixels in the image to be printed, and the processed image color value is compared with the set color threshold value to obtain the ink amount value of the white ink laid on the bottom of the white ink to be printed at each pixel when the image to be printed is printed, so that not only can part of the ink amount be saved and the printing cost be reduced, but also the ink amount value of the white ink is reasonably set according to the color value of each pixel in the image to be printed instead of directly generating the 100% white ink amount value, so that the printed image has good transition and touch feeling.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required to be used in the embodiments of the present invention will be briefly described below, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of an ink amount setting method for a printer based on image processing according to a first embodiment of the present invention.
Fig. 2 is a flowchart of an ink amount setting method for a printer based on image processing according to a second embodiment of the present invention.
Fig. 3 is a flowchart of an ink amount setting method for a printer based on image processing according to a third embodiment of the present invention.
Fig. 4 is a flowchart of an ink amount setting method for a printer based on image processing according to a fourth embodiment of the present invention.
Fig. 5 is a schematic configuration diagram of an ink amount setting apparatus for a printer based on image processing according to a fifth embodiment of the present invention.
Fig. 6 is a schematic configuration diagram of an ink amount setting apparatus for a printer based on image processing according to a sixth embodiment of the present invention.
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, in the method for setting an ink amount of a printer based on image processing according to the embodiment of the present invention, the color value of a printing medium is obtained, the color value of the printing medium is compared with the color values of all pixels in an image to be printed, and the processed image color value is compared with a set color threshold value to obtain the ink amount value of white ink laid on the bottom of the white ink to be printed at each pixel when the image to be printed is printed, so that not only can a part of the ink amount be saved and the printing cost be reduced, but also the ink amount value of the white ink is reasonably set according to the color value of each pixel in the image to be printed instead of directly outputting the 100% white ink amount value, so that the printed image has good transition and touch feeling. The method specifically comprises 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 user does not know the printing medium used by himselfColor values, color values 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 reflected differently in different color modes, for 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, performing graying processing on the image to be printed according to the first color value to obtain a first gray map;
specifically, in this embodiment, the image to be printed includes a background image and a foreground image, and the color difference between the background image and the printing medium is large, so that the whole image needs to be processed to save ink, to obtain color values of all pixel points in the image to be printed, and then the first color value is subtracted from the color values of all pixel points to obtain an intermediate image, before processing, the first color value needs to be converted into a value that is the same as the color gamut of the pixel points in the image to be printed, and then the intermediate image is processed by graying to obtain a gray image, so that the gray value of each pixel point is a value, unlike the case where each pixel point in the color image in the RGB mode includes R, G, B three values, or the case where each pixel point in the color image in the CMYK mode includes C, M, Y, K four values, the color image cannot be compared in color values, therefore, the image needs to be grayed for color value comparison and data processing. And converting the first color value and the color value of the pixel point in the image to be printed by adopting a color characteristic curve in the printer.
Preferably, when the color value is a color value in an RGB color mode, the conversion formula in the graying processing is:
Gray=R×0.299+G×0.587+B×0.114
wherein Gray represents the Gray value of the pixel or the print medium, and the color value of the pixel or the print medium in the RGB color mode is (R, G, B).
When the color value is the color value in the CMYK color mode, the gray scale conversion formula is:
Figure BDA0002041468190000061
wherein Gray represents the Gray value of the pixel or the print medium, and the color value of the pixel or the print medium in the CMYK color mode is (C, M, Y, K).
Preferably, referring to fig. 2, the step of performing graying processing on the image to be printed according to the first color value to obtain the first grayscale map includes:
s21, obtaining color values corresponding to all pixel points in the image to be printed, and recording the color values as second color values;
s22, acquiring a difference value corresponding to each pixel point according to the first color value and the second color value;
s23, generating an intermediate image according to the difference value corresponding to each pixel point;
and S24, carrying out graying processing on the intermediate image to obtain a corresponding first grayscale image.
Specifically, the first color value and the second color value are converted into color values in the same color mode, such as color values in a CMYK color mode or color values in a lab color mode, and then the first color value and the second color value are differenced to obtain a difference value of each pixel point corresponding to each color channel, such as in the CMYK color mode, the first color value is: c1=20、M1=60、Y1=50、K1The second color value of a certain pixel point is as follows: c2=10、M2=30、Y2=40、K2If the absolute value of the difference value of the pixel point is 50, the absolute value of the difference value of the pixel point is DeltaC ═ C1-C2|=10、△M=|M1-M2|=30、△Y=|M1-M2|=10、△K=|M1-M2|=20。
Preferably, referring to fig. 3, when the color value in the lab color mode is used for calculation, the specific method for obtaining the color difference value of each pixel point includes the following steps:
s211, obtaining an ICC color conversion curve of the printer;
s212, converting the first color value and the second color value into a corresponding first lab value and a corresponding second lab value according to the ICC color conversion curve;
s213, obtaining the corresponding difference value of each pixel point according to the first lab value and the second lab value.
Specifically, an ICC curve of a color management curve of a printer executing a print job is obtained, the first color value and the second color value are converted into a corresponding first lab value and a corresponding second lab value through the ICC curve, a difference value corresponding to each pixel point is calculated by performing a difference between the second lab value corresponding to each pixel point and the first lab value of the print medium, and a result of the color difference value calculated and obtained by using the lab values is more accurate than a result of the color difference value calculated and obtained in other color modes.
S3, traversing the first gray scale image to obtain a first gray scale value of each pixel point in the gray scale image;
specifically, the existing traversal algorithm is adopted to traverse all the pixel points in the first gray scale map to obtain the first gray scale value of each pixel point.
S4, comparing the first gray value with a set color threshold value to obtain a comparison result;
specifically, the first gray value of each pixel point is compared with a color threshold (for example, the color threshold is 1.5) obtained according to the characteristics of the printer to obtain a comparison result, and the ink discharge condition of each pixel point during printing is determined according to the comparison result.
And S5, setting the ink quantity value of the white ink channel when the image to be printed is printed according to the comparison result.
Specifically, in the embodiment, the white ink channel and the other color channels are parameter names for setting the use condition of the corresponding ink, and the range of the ink amount value of the white ink in the white ink channel is 0 to 100%, wherein the specific data value range of the ink amount value of the ink during printing is set according to different printing devices and use environments, and is a standard for quantifying the ink condition of the pixel point needing to be printed. In this embodiment, a first gray value is set as a, the color threshold is set as T, and when a is greater than or equal to T, the ink amount of the white ink in the white ink channel when the image to be printed is:
W=255-A
wherein W is an ink amount value of white ink of a white ink channel when the image to be printed is printed.
Referring to fig. 4, when a < T, the setting of the ink amount value of the white ink channel when the image to be printed is printed according to the comparison result includes:
s51, carrying out graying processing on the image to be printed to obtain a second grayscale image;
s52, traversing the second gray scale map to obtain a second gray scale value corresponding to each pixel point in the second gray scale map;
and S53, setting the ink amount value of the white ink channel when the image to be printed is printed according to the second gray value.
Specifically, graying a color image to be printed to obtain a gray map, marking the gray map as a second gray map, obtaining a second gray value corresponding to each pixel point in the gray map by adopting the existing traversal algorithm, calculating and obtaining an ink volume value of a printer white ink channel when the image to be printed is printed according to the second gray value, setting the second gray value as B, and setting the ink volume value of the printer white ink channel when the image to be printed is printed according to the second gray value as follows:
W=255-B
wherein W is an ink amount value of white ink of a white ink channel when the image to be printed is printed.
Preferably, the printer further includes a cyan channel, a magenta channel, a yellow channel, and a black channel, and when W is 0, the method further includes:
adjusting the ink values of the cyan channel, the magenta channel, the yellow channel and the black channel of the corresponding pixel point according to the ink value of the white ink channel, so that the ink values of the cyan channel, the magenta channel, the yellow channel and the black channel are as follows:
C=0,M=0,Y=0,K=0
where C is the ink value for the cyan channel, M is the ink value for the magenta channel, Y is the ink value for the yellow channel, and K is the ink value for the black channel.
Specifically, when the ink amount value of the white ink channel obtained by calculation is 0, the color values of the other channels of the printer are also adjusted to be 0, that is, the white ink channel does not discharge ink and the other channels do not discharge ink, and in the present embodiment, when the ink amount values of all the channels corresponding to the pixel points in the image to be printed are 0, the ink amount value of the white ink channel is also zero, that is, C is 0, M is 0, Y is 0, and K is 0, W is 0. The printer may also include a spot color channel, such as a red color channel, a blue color channel, and the like, and when the ink amount value of the white ink channel is zero, the ink amount value of the spot color channel is also zero.
The ink quantity value of the white ink channel of the printer is adjusted according to the comparison result of the color value in the image to be printed and the threshold value, instead of directly setting the ink quantity value of the white ink channel to be 100% according to the traditional method, the waste of the ink quantity is avoided, meanwhile, the ink quantity is set according to the color value instead of directly judging whether ink is not discharged or 100% of the ink is discharged, and therefore the printed image is good in transition and good in touch feeling.
Referring to fig. 5, an embodiment of the present invention provides an ink amount setting apparatus for a printer based on image processing, the apparatus 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;
the first grayscale image obtaining module 20 is configured to process the image to be printed according to the first color value to obtain a first grayscale image;
the first gray value obtaining module 30 is configured to traverse the first gray map to obtain a first gray value of each pixel point in the gray map;
a comparison result obtaining module 40, configured to compare the first gray value with a set color threshold to obtain a comparison result;
and the ink quantity setting module 50 is used for setting the ink quantity value of the white ink channel when the image to be printed is printed according to the comparison result.
Preferably, the first grayscale image obtaining module 20 includes:
the second color value acquisition unit is used for acquiring color values corresponding to all pixel points in the image to be printed and recording the color values as second color values;
the color difference value acquisition unit is used for acquiring the difference value corresponding to each pixel point according to the first color value and the second color value;
the intermediate image generating unit is used for generating an intermediate image according to the difference value corresponding to each pixel point;
and the first gray-scale image acquisition unit is used for carrying out gray-scale processing on the intermediate image to obtain a corresponding first gray-scale image.
Preferably, the first gray value is set as A, the color threshold value is set as T, and when A is larger than or equal to T, the ink quantity value of the white ink channel when the image to be printed is as follows:
W=255-A
wherein W is an ink amount value of a white ink channel of the printer when the image to be printed is printed.
Preferably, assuming that the first gray value is a and the color threshold is T, when a < T, the ink amount setting module 50 includes:
the second gray-scale image acquisition unit is used for carrying out gray-scale processing on the image to be printed to obtain a second gray-scale image;
the second gray value acquisition unit is used for traversing the second gray map to acquire a second gray value corresponding to each pixel point in the second gray map;
and the ink amount value acquisition unit is used for setting the ink amount value of the white ink channel when the image to be printed is printed according to the second gray value.
Preferably, if the second gray value is B, the ink amount value of the white ink in the white ink channel when the image to be printed is set according to the second gray value as follows:
W=255-B
wherein W is an ink amount value of white ink of a white ink channel when the image to be printed is printed.
Preferably, the printer further includes a cyan channel, a magenta channel, a yellow channel, and a black channel, and when W is 0, the method further includes:
adjusting the ink values of the cyan channel, the magenta channel, the yellow channel and the black channel of the corresponding pixel point according to the ink value of the white ink channel, so that the ink values of the cyan channel, the magenta channel, the yellow channel and the black channel are as follows:
C=0,M=0,Y=0,K=0
where C is the ink value for the cyan channel, M is the ink value for the magenta channel, Y is the ink value for the yellow channel, and K is the ink value for the black channel.
Preferably, when the color value of a pixel point in the image to be printed is C ═ 0, M ═ 0, Y ═ 0, and K ═ 0, then W ═ 0.
In addition, the printer ink amount setting method based on image processing described in connection with fig. 1 according to the embodiment of the present invention can be implemented by a printer ink amount setting apparatus based on image processing. Fig. 6 is a schematic diagram showing a hardware configuration of an ink amount setting apparatus for a printer based on image processing according to an embodiment of the present invention.
The printer ink amount setting device based on image processing 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 image processing-based printer ink amount setting methods in the above-described embodiments.
In one example, the image processing-based printer ink amount setting apparatus may further 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.
The bus 410 includes hardware, software, or both to couple the components of the image processing based printer ink volume setting 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 conjunction with the printer ink amount setting method based on image processing in the above-described 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 image processing-based printer ink amount setting methods of the above embodiments.
In summary, in the method, the device, the equipment and the medium for setting the ink amount of the printer based on image processing provided by the embodiments of the present invention, the color value of the printing medium is obtained, and is compared with the color values of all the pixels in the image to be printed, and the processed image color value is compared with the set color threshold value to obtain the ink amount value of the white ink laid on the bottom of the white ink to be printed at each pixel when the image to be printed is printed, so that not only can a part of the ink amount be saved, but also the printing cost is reduced, and the white ink amount is reasonably set according to the color value of each pixel in the image to be printed instead of directly outputting the white ink amount value of 100%, so that the printed image has good transition and good touch feeling.
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.

Claims (9)

1. An ink amount setting method for a printer based on image processing, the method comprising:
acquiring a color value of a printing medium, and recording the color value as a first color value;
performing graying processing on the image to be printed according to the first color value to obtain a first grayscale image, wherein the graying processing on the image to be printed according to the first color value to obtain the first grayscale image comprises: obtaining color values corresponding to all pixel points in the image to be printed, and recording the color values as second color values; acquiring a difference value corresponding to each pixel point according to the first color value and the second color value; generating an intermediate image according to the difference value corresponding to each pixel point; carrying out graying processing on the intermediate image to obtain a corresponding first grayscale image;
traversing the first gray scale image to obtain a first gray scale value of each pixel point in the gray scale image;
comparing the first gray value with a set color threshold value to obtain a comparison result;
and setting the ink amount value of the white ink in the white ink channel when the image to be printed is printed according to the comparison result.
2. The method for setting the ink amount of the printer based on the image processing as claimed in claim 1, wherein the first gray value is A, the color threshold value is T, and when A ≧ T, the ink amount of the white ink in the white ink channel when printing the image to be printed is:
W=255-A
wherein W is an ink amount value of white ink in a white ink channel when the image to be printed is printed.
3. The method according to claim 1, wherein the setting of the ink amount of white ink in a white ink channel when printing the image to be printed according to the comparison result when setting the first gradation value as a and the color threshold value as T comprises:
carrying out graying processing on the image to be printed to obtain a second grayscale image;
traversing the second gray scale map to obtain a second gray scale value corresponding to each pixel point in the second gray scale map;
and setting the ink amount value of the white ink in the white ink channel when the image to be printed is printed according to the second gray value.
4. The method according to claim 3, wherein if the second gray value is B, the ink amount of the white ink in the white ink channel when the image to be printed is set according to the second gray value as follows:
W=255-B
wherein W is an ink amount value of white ink in a white ink channel when the image to be printed is printed.
5. The image processing-based printer ink amount setting method according to any one of claims 2 to 4, wherein the printer further includes a cyan channel, a magenta channel, a yellow channel, and a black channel, and when W =0, the method further includes:
adjusting the ink values of the cyan channel, the magenta channel, the yellow channel and the black channel of the corresponding pixel point according to the ink value of the white ink channel, so that the ink values of the cyan channel, the magenta channel, the yellow channel and the black channel are as follows:
C=0,M=0,Y=0,K=0
where C is the ink value for the cyan channel, M is the ink value for the magenta channel, Y is the ink value for the yellow channel, and K is the ink value for the black channel.
6. The image-processing-based printer ink amount setting method according to claim 5, wherein when a color value of a pixel point in an image to be printed is C =0, M =0, Y =0, and K =0, then W = 0.
7. An ink amount setting apparatus for a printer based on image processing, the apparatus comprising:
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 first grayscale image obtaining module is configured to perform a graying process on the image to be printed according to the first color value to obtain a first grayscale image, where performing a graying process on the image to be printed according to the first color value to obtain the first grayscale image includes: obtaining color values corresponding to all pixel points in the image to be printed, and recording the color values as second color values; acquiring a difference value corresponding to each pixel point according to the first color value and the second color value; generating an intermediate image according to the difference value corresponding to each pixel point; carrying out graying processing on the intermediate image to obtain a corresponding first grayscale image;
the first gray value acquisition module is used for traversing the first gray image to acquire a first gray value of each pixel point in the gray image;
the comparison result acquisition module is used for comparing the first gray value with a set color threshold value to obtain a comparison result;
and the ink amount setting module is used for setting the ink amount of the white ink in the white ink channel when the image to be printed is printed according to the comparison result.
8. An ink amount setting apparatus for a printer based on image processing, comprising: at least one processor, at least one memory, and computer program instructions stored in the memory that, when executed by the processor, implement the method of any of claims 1-6.
9. A storage medium having computer program instructions stored thereon, which when executed by a processor implement the method of any one of claims 1-6.
CN201910343405.8A 2019-04-26 2019-04-26 Printer ink amount setting method, device, equipment and medium based on image processing Active CN111845100B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910343405.8A CN111845100B (en) 2019-04-26 2019-04-26 Printer ink amount setting method, device, equipment and medium based on image processing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910343405.8A CN111845100B (en) 2019-04-26 2019-04-26 Printer ink amount setting method, device, equipment and medium based on image processing

Publications (2)

Publication Number Publication Date
CN111845100A CN111845100A (en) 2020-10-30
CN111845100B true CN111845100B (en) 2021-06-18

Family

ID=72951713

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910343405.8A Active CN111845100B (en) 2019-04-26 2019-04-26 Printer ink amount setting method, device, equipment and medium based on image processing

Country Status (1)

Country Link
CN (1) CN111845100B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113157221B (en) * 2021-03-18 2022-11-18 厦门汉印电子技术有限公司 Parameter calibration method, device, equipment and storage medium for visible card printer

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001253065A (en) * 2000-03-08 2001-09-18 Seiko Epson Corp Image forming apparatus and method for forming image
JP2011055395A (en) * 2009-09-04 2011-03-17 Seiko Epson Corp Printing using multiple color inks including white ink
CN102001231A (en) * 2009-08-31 2011-04-06 精工爱普生株式会社 Printing apparatus using plural color inks including white color ink and printing method thereof
CN102019756A (en) * 2009-09-21 2011-04-20 北大方正集团有限公司 Printer total ink volume control method and device
JP2013154516A (en) * 2012-01-27 2013-08-15 Brother Industries Ltd Apparatus and program for generating print data
CN103264582A (en) * 2009-04-03 2013-08-28 精工爱普生株式会社 Printing using inks of plural colors including white color
CN105829114A (en) * 2013-12-18 2016-08-03 惠普发展公司,有限责任合伙企业 Printer calibration for media color
JP2018012262A (en) * 2016-07-21 2018-01-25 株式会社Screenホールディングス Method of processing printing data, printing data processor, and printing data processing program
JP2018171875A (en) * 2017-03-31 2018-11-08 ブラザー工業株式会社 Image formation apparatus
CN108944106A (en) * 2018-07-13 2018-12-07 森大(深圳)技术有限公司 Inkjet print image color optimization method, apparatus, equipment and storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001253065A (en) * 2000-03-08 2001-09-18 Seiko Epson Corp Image forming apparatus and method for forming image
CN103264582A (en) * 2009-04-03 2013-08-28 精工爱普生株式会社 Printing using inks of plural colors including white color
CN102001231A (en) * 2009-08-31 2011-04-06 精工爱普生株式会社 Printing apparatus using plural color inks including white color ink and printing method thereof
JP2011055395A (en) * 2009-09-04 2011-03-17 Seiko Epson Corp Printing using multiple color inks including white ink
CN102019756A (en) * 2009-09-21 2011-04-20 北大方正集团有限公司 Printer total ink volume control method and device
JP2013154516A (en) * 2012-01-27 2013-08-15 Brother Industries Ltd Apparatus and program for generating print data
CN105829114A (en) * 2013-12-18 2016-08-03 惠普发展公司,有限责任合伙企业 Printer calibration for media color
JP2018012262A (en) * 2016-07-21 2018-01-25 株式会社Screenホールディングス Method of processing printing data, printing data processor, and printing data processing program
JP2018171875A (en) * 2017-03-31 2018-11-08 ブラザー工業株式会社 Image formation apparatus
CN108944106A (en) * 2018-07-13 2018-12-07 森大(深圳)技术有限公司 Inkjet print image color optimization method, apparatus, equipment and storage medium

Also Published As

Publication number Publication date
CN111845100A (en) 2020-10-30

Similar Documents

Publication Publication Date Title
CN111845101B (en) Printer ink amount adjusting method, device, equipment and medium based on color management
US8040569B2 (en) Image processing apparatus and method for contrast processing and intermediate color removal
US5729624A (en) Image processing method and apparatus
CN111845084B (en) Printer ink amount adjusting method, device, equipment and medium based on image processing
JP2007150607A (en) Image processor, image forming apparatus, image processing method, image processing program, and its recording medium
JP5146029B2 (en) Printing apparatus, printing control apparatus, printing method, and computer program
EP0924638A2 (en) Removing non-text information from a color image
CN111845100B (en) Printer ink amount setting method, device, equipment and medium based on image processing
CN111845098B (en) Method, device, equipment and medium for adjusting ink amount of printer
US11416723B2 (en) Image processing apparatus, and non-transitory computer-readable recording medium therefor
CN111845099B (en) Method, device, equipment and medium for setting white ink quantity of printer
US7492484B2 (en) Image signal processing method and apparatus for limiting amount of toner stick
US20050024660A1 (en) Image processing apparatus and method for processing image
JP2007088741A (en) Image processing apparatus and image processing method
JP2010119006A (en) Image processing apparatus,and image processing method
JP2001016452A (en) Image processor, image reader loading the same. image forming device and image processing method
JP6381289B2 (en) Image forming apparatus, image forming method, and program
US8203751B2 (en) Color signal converting apparatus, image forming apparatus, color signal conversion method and computer readable medium
US20180270396A1 (en) Automatic post processing of spot color combinations for a constrained colorant set
WO2022065299A1 (en) Image formation device
JP2000357237A (en) Image processor, image reading device and image forming device mounted with the processor, image processing method, and computer-readable storage medium stored with image processing procedure
JP4176053B2 (en) Image processing method, image processing apparatus, image forming apparatus, and computer program
JP2003309732A (en) Image processing apparatus, image forming apparatus, image processing method, computer program, and recording medium
JP6350877B2 (en) Image forming apparatus
JP5162430B2 (en) Image processing apparatus and image processing method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20210524

Address after: 1701, 1703, building C6, Hengfeng Industrial City, 739 Zhoushi Road, Hezhou community, Hangcheng street, Bao'an District, Shenzhen, Guangdong 518000

Applicant after: SHENZHEN HOSONSOFT Co.,Ltd.

Address before: Room 1701, building C6, Hengfeng Industrial Town, Xixiang street, Bao'an District, Shenzhen City, Guangdong Province

Applicant before: SENDA (SHENZHEN) TECHNOLOGY Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address

Address after: 518000 a201-a301, building a, Sino German European Industrial Demonstration Park, Hangcheng Avenue, guxing community, Xixiang street, Bao'an District, Shenzhen, Guangdong

Patentee after: Shenzhen Hansen Software Co.,Ltd.

Address before: 1701, 1703, building C6, Hengfeng Industrial City, 739 Zhoushi Road, Hezhou community, Hangcheng street, Bao'an District, Shenzhen, Guangdong 518000

Patentee before: SHENZHEN HOSONSOFT Co.,Ltd.

CP03 Change of name, title or address