CN114889329B - Printer ink quantity adjusting method, device, equipment and storage medium - Google Patents
Printer ink quantity adjusting method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN114889329B CN114889329B CN202210513716.6A CN202210513716A CN114889329B CN 114889329 B CN114889329 B CN 114889329B CN 202210513716 A CN202210513716 A CN 202210513716A CN 114889329 B CN114889329 B CN 114889329B
- Authority
- CN
- China
- Prior art keywords
- color
- value
- image
- printed
- printer
- 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
Links
Images
Classifications
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B41—PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
- B41J—TYPEWRITERS; SELECTIVE PRINTING MECHANISMS, i.e. MECHANISMS PRINTING OTHERWISE THAN FROM A FORME; CORRECTION OF TYPOGRAPHICAL ERRORS
- B41J2/00—Typewriters or selective printing mechanisms characterised by the printing or marking process for which they are designed
- B41J2/005—Typewriters 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/01—Ink jet
- B41J2/17—Ink jet characterised by ink handling
- B41J2/175—Ink supply systems ; Circuit parts therefor
- B41J2/17566—Ink level or ink residue control
Landscapes
- Facsimile Image Signal Circuits (AREA)
- Color Image Communication Systems (AREA)
- Image Processing (AREA)
Abstract
The invention discloses a method, a device, equipment and a storage medium for adjusting the ink quantity of a printer. The printer ink quantity adjusting method of the invention is characterized in that the color value of a printing medium is obtained and recorded as a first color value; acquiring color values of all pixel points in the image to be printed after the background image is removed, and recording the color values as second color values; acquiring a color difference value corresponding to each pixel point according to the first color value and the second color value; comparing the color difference value with a set color threshold value; and when the color difference value is smaller than the color threshold value, adjusting the data of all color channels of the pixel points corresponding to the color difference value in the printer to be no ink output data. The printer ink quantity adjusting method, device and equipment based on image processing and the medium can save the ink quantity and reduce the printing cost.
Description
The present application is a divisional application of an invention patent application with application number 201910343411.3, filed on 2019, 4 and 26, entitled "method, apparatus, device, and medium for adjusting printer ink amount based on image processing".
Technical Field
The present invention relates to the field of inkjet printing, and in particular, to a method, apparatus, device, and storage medium for adjusting an ink amount of a printer.
Background
Inkjet printing technology refers to technology that ejects ink droplets through nozzles on a printhead onto a print medium to obtain an image or text. Along 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, for example, the image to be printed comprises a background image and a foreground image, the color of the background image is similar to or almost the same as the color of the printing medium, and the color of part of the foreground image is similar to the color of the printing medium. In particular, in the textile industry, a layer of white ink with an ink value of 100% needs to be printed for bottoming when a color image is printed, and if all pixel points are inked according to the existing method, the color ink is wasted, the white ink is wasted, and the printing cost is increased.
Disclosure of Invention
The embodiment of the invention provides a method, a device, equipment and a storage medium for adjusting the ink quantity of a printer, which are used for solving the problems of ink waste and printing cost increase caused by all ink output of all pixel points when the color of a large area in an image to be printed is consistent with the color of a printing medium in the prior art.
In a first aspect, an embodiment of the present invention provides a method for adjusting an ink amount of a printer, the method including:
acquiring a color value of a printing medium, and recording the color value as a first color value;
acquiring color values of all pixel points in the image to be printed after the background image is removed, and recording the color values as second color values;
acquiring a color difference value corresponding to each pixel point according to the first color value and the second color value;
comparing the color difference value with a set color threshold value;
and when the color difference value is smaller than the color threshold value, adjusting the data of all color channels of the pixel points corresponding to the color difference value in the printer to be no ink output data.
Preferably, the image to be printed includes a background image and a foreground image, and the obtaining the color values of all the pixels in the image to be printed after the background image is removed, and the marking as the second color value includes:
extracting the foreground image from the image to be printed, and putting the foreground image into a background empty image to form an intermediate image only containing the foreground image;
and obtaining second color values of all pixel points in the intermediate image.
Preferably, the obtaining the color value of all the pixels in the image to be printed after the background image is removed, and the marking as the second color value includes:
carrying out graying and binarization processing on the image to be printed to obtain a binary image;
determining a foreground region in the image to be printed according to the binary image;
extracting a foreground image in the foreground image area from the image to be printed;
and traversing all the pixel points in the foreground image to obtain a second color value of each pixel point.
Preferably, the obtaining the color value of all the pixels in the image to be printed after the background image is removed, and the marking as the second color value includes:
traversing all pixel points in the image to be printed to acquire a color value of each pixel point, and recording the color value as a third color value;
performing data processing on the third color value and the first color value to obtain a corresponding intermediate image;
graying and binarizing the intermediate image to obtain a binary image;
determining a foreground region in the image to be printed according to the binary image;
extracting a foreground image in the foreground image area from the image to be printed;
and traversing all the pixel points in the foreground image to obtain a second color value of each pixel point.
Preferably, the formula of the graying process includes:
Gray=R×0.299+G×0.587+B×0.114
where Gray represents the Gray value of the pixel or print medium, and the color value of the pixel or print medium in RGB color mode is (R, G, B).
Preferably, the formula of the graying process includes:
where Gray represents the Gray value of the pixel or print medium, and the color value of the pixel or print medium in CMYK color mode is (C, M, Y, K).
Preferably, the obtaining the color difference value corresponding to each pixel according to the first color value and the second color value includes:
acquiring a color characteristic file of the printer;
converting the first color value and the second color value into corresponding first lab value and second lab value according to the color characteristic file;
and obtaining a color difference value corresponding to each pixel point according to the first lab value and the second lab value.
Preferably, the color channel in the printer includes: cyan channel, magenta channel, yellow channel, black channel, and white ink channel.
In a second aspect, an embodiment of the present invention provides a printer ink amount adjustment 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 a first color value;
the second color value acquisition module is used for acquiring color values of all pixel points in the image to be printed after the background image is removed, and recording the color values as second color values;
the color difference value acquisition module is used for acquiring a color difference value corresponding to each pixel point according to the first color value and the second color value;
the comparison module is used for comparing the color difference value with a set color threshold value;
and the adjusting module is used for adjusting the data of all the color channels of the pixel points corresponding to the color difference value in the printer to be no ink output data when the color difference value is smaller than the color threshold value.
In a third aspect, an embodiment of the present invention provides a printer ink amount adjustment apparatus, 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 as in 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 a method as in the first aspect of the embodiments described above.
In summary, according to the method, the device, the equipment and the medium for adjusting the ink amount of the printer provided by the embodiment of the invention, the color value of the printing medium is obtained and compared with the color value of all the pixels of the image to be printed, from which the background image is removed, so that the pixels which are similar to the color value of the printing medium in comparison, namely, the pixels with the color difference value smaller than the set color threshold value, are obtained, and the data of all the color channels of the pixels in the printer are adjusted to be not to be the ink output data, so that part of the ink amount can be saved and the printing cost is reduced.
Drawings
In order to more clearly illustrate the technical solution of the embodiments of the present invention, the drawings that are needed to be used in the embodiments of the present invention will be briefly described, and other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a printer ink amount adjustment method based on image processing according to a first embodiment of the present invention.
Fig. 2 is a flowchart of a printer ink amount adjustment method based on image processing according to a second embodiment of the present invention.
Fig. 3 is a flowchart of a printer ink amount adjustment method based on image processing according to a third embodiment of the present invention.
Fig. 4 is a flowchart of a printer ink amount adjustment method based on image processing according to a fourth embodiment of the present invention.
Fig. 5 is a schematic structural view of a printer ink amount adjustment device based on image processing according to a fifth embodiment of the present invention.
Fig. 6 is a schematic structural view of a printer ink amount adjustment apparatus 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 the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in further detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely configured to illustrate the invention and are not configured to limit 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 invention by showing examples of the invention.
It is noted that relational terms such as first and second, and the like are 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. Moreover, 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 like 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 adjusting an ink amount of a printer based on image processing, where color values of a print medium are obtained and compared with color values of all pixels in an image to be printed from which a background image is removed, and pixels in which the color values are similar to the color values of the print medium, that is, pixels in which the color difference values are smaller than a set color threshold value are obtained, and data of all color channels of the pixels in the printer are adjusted to be free of ink data, so that a portion of ink amount can be saved and printing cost is reduced. The method specifically comprises the following steps:
s1, acquiring a color value of a printing medium, and recording the color value as a first color value;
specifically, when the user knows the color value of the printing medium used by the user, the user can directly acquire the color value input by the user on the image processing interactive interface; when the user does not know the color value of the printing medium used by himself, the color value of the printing medium can be acquired by scanning the printing medium using an image scanner (e.g., eyeone). Wherein the color values input by the user at the image processing interactive interface or scanned by the image scanner are differently represented in different color modes, for example, in the CMYK color mode, the first color value of the printing medium is (C 0 、M 0 、Y 0 、K 0 ) If in RGB color mode, the first color value of the print medium is (R 0 、G 0 、B 0 )。
S2, obtaining color values of all pixel points in the image to be printed after the background image is removed, and recording the color values as second color values;
specifically, in this embodiment, the image to be printed includes a background image and a foreground image, the foreground image is extracted from the image to be printed and put into an image with a blank background and a size consistent with that of the original image, so as to form an intermediate image only including the foreground image, and the intermediate image is printed during printing, so as to obtain second color values of all pixel points in the intermediate image (i.e., the foreground image); when the foreground image is particularly large and a large amount of storage space is required, if the requirement on the image precision is not high, the actual printing size of the foreground image can be saved, then the foreground image is scaled in an equal proportion, the scaled foreground image is placed into an image with an equal scaled background being empty, then the second color values of all pixel points in the scaled foreground image are traversed, and printing is performed according to the saved actual printing size of the foreground image during printing.
Preferably, referring to fig. 2, the step of extracting the foreground image from the image to be printed and obtaining the second color value of each pixel point in the foreground image specifically includes the following steps:
s211, carrying out graying and binarization processing on the image to be printed to obtain a binary image;
s212, determining a foreground region in the image to be printed according to the binary image;
s213, extracting a foreground image in the foreground image area from the image to be printed;
s214, traversing all the pixel points in the foreground image to obtain a second color value of each pixel point.
Specifically, in this embodiment, for the case that the color of the background image is similar to the color of the print medium, the image to be printed is directly subjected to graying and binarization processing to obtain a binary image, then a foreground image area in the image to be printed is determined according to the binary image, the foreground image is extracted from the foreground image area, and then the foreground image is traversed to obtain second color values of all pixel points in the foreground image. The graying, binarizing and foreground image extracting processes of the image to be printed are all processed by using algorithm functions in an image processing library (such as opencv), and if the color value is a color value in an RGB color mode, the gray conversion formula is as follows:
Gray=R×0.299+G×0.587+B×0.114
where Gray represents the Gray value of the pixel or print medium, and the color value of the pixel or print medium in RGB color mode is (R, G, B).
When the color value is the color value in the CMYK color mode, the gray conversion formula is:
where Gray represents the Gray value of the pixel or print medium, and the color value of the pixel or print medium in CMYK color mode is (R, G, B).
Referring to fig. 3, in another embodiment, extracting the foreground image from the image to be printed and obtaining the second color value of each pixel point in the foreground image specifically includes the following steps:
s221, traversing all pixel points in the image to be printed to acquire a color value of each pixel point, and marking the color value as a third color value;
s222, carrying out data processing on the third color value and the first color value to obtain a corresponding intermediate image;
s223, carrying out graying and binarization processing on the intermediate image to obtain a binary image;
s224, determining a foreground region in the image to be printed according to the binary image;
s225, extracting a foreground image in the foreground image area from the image to be printed;
s226, traversing all the pixel points in the foreground image to obtain a second color value of each pixel point.
Specifically, in this embodiment, for the case that the color of the background image is far away from the color of the print medium, a difference is made between the third color values of all the pixel points in the image to be printed and the first color values of the print medium to obtain an intermediate image, then the intermediate image is subjected to graying and binarization processing to obtain a binary image, finally, a foreground image area in the image to be printed is determined according to the binary image, a foreground image is extracted from the foreground image area, and the second color values of all the pixel points in the foreground image are obtained by traversing the foreground image. The graying, binarizing and foreground image extracting processes of the image to be printed are also processed by using algorithm functions in an image processing library (such as opencv), and if the color value is a color value in an RGB color mode, the gray conversion formula is as follows:
Gray=R×0.299+G×0.587+B×0.114
where Gray represents the Gray value of the pixel or print medium, and the color value of the pixel or print medium in RGB color mode is (R, G, B).
When the color value is the color value in the CMYK color mode, the gray conversion formula is:
where Gray represents the Gray value of the pixel or print medium, and the color value of the pixel or print medium in CMYK color mode is (R, G, B).
S3, acquiring a color difference value corresponding to each pixel point according to the first color value and the second color value;
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 a difference is made between the first color value and the second color value, so as to obtain a color difference value of each pixel point.
Preferably, referring to fig. 4, when calculating a color value in a lab color mode, a specific method for obtaining a color difference value of each pixel point includes the following steps:
s311, acquiring a color characteristic file of the printer;
s312, converting the first color value and the second color value into corresponding first lab value and second lab value according to the color characteristic file;
s313, obtaining a color difference value corresponding to each pixel point according to the first lab value and the second lab value.
Specifically, a color management curve ICC curve of a printer for executing a print job is acquired, 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 between the second lab value corresponding to each pixel point and the first lab value of the print medium is calculated to obtain a color difference value corresponding to each pixel point, and the color difference value obtained by calculating the lab value is more accurate than the color difference value obtained by calculating in other color modes.
Preferably, the color difference value is obtained by the following formula:
wherein ΔE represents a color difference value of the pixel point, and the first lab value of the printing medium is (L 1、 a 1、 b 1 ) The second lab value of the pixel is (L 2、 a 2、 b 2 )。
Preferably, the color profile includes: ICC color conversion curve, mapping table of CMYK color values of printer to lab values of target color gamut. And simultaneously also comprises the following steps: mapping tables between CMYK color values of the printer to CMYK color values of the target color gamut, lab values of the target color gamut to CMYK color values of the printer, and lab values of the target color gamut to CMYK of the target color gamut.
S4, comparing the color difference value with a set color threshold value;
specifically, the color difference value of each pixel point obtained is compared with a color threshold value (for example, the color threshold value is 1.5) obtained according to the characteristics of the printer, so as to determine whether each pixel point emits ink during printing.
And S5, when the color difference value is smaller than the color threshold value, adjusting the data of all color channels of the pixel points corresponding to the color difference value in the printer to be no ink output data.
Specifically, when the color difference value is smaller than the color threshold value, the color of the pixel point is close to the color of the printing medium, and the pixel point can not emit ink, that is, the data of all color channels of the pixel point are all not emitted ink. Preferably, in the present embodiment, the color channel of the printer includes: cyan, magenta, yellow, black, and white ink channels, in other embodiments, the printer's color channels further include spot color channels, such as blue, orange, and the like. When printing a medium in textile industry, a layer of white ink needs to be printed on the printing medium before an image is printed, and the ink values of the white ink are all 100%, when the color difference value of a calculated pixel point is smaller than a color threshold value, the data of a cyan channel, a magenta channel, a yellow channel, a black channel and a white ink channel of the pixel point in the printer are all adjusted to be no ink data, and when the color difference value of the calculated pixel point is larger than or equal to the color threshold value, the data of the cyan channel, the magenta channel, the yellow channel, the black channel and the white ink channel of the pixel point in the printer keep the original data unchanged, and in the embodiment, the original data of the white ink channel is 100%. Therefore, pixel points with the same or similar color as the printing medium can be not printed, so that color ink is saved, white ink is saved, and printing cost is reduced. In this embodiment, the range of the ink value of the white ink in the white ink channel is 0 to 100%, where the specific range of the data value of the ink value during printing is set according to different printing devices and usage environments, and is a standard for quantifying the ink condition of the pixel point that needs to be printed. Wherein, the white ink channel and other color channels are all parameter names for setting the use condition of the corresponding ink.
Referring to fig. 5, an embodiment of the present invention provides an apparatus for adjusting an ink amount of a printer based on image processing, the apparatus including:
a first color value acquisition module 10 for acquiring a color value of a printing medium, denoted as a first color value;
the second color value obtaining module 20 is configured to obtain color values of all pixel points in the image to be printed after the background image is removed, and record the color values as second color values;
a color difference value obtaining module 30, configured to obtain a color difference value corresponding to each pixel according to the first color value and the second color value;
a comparison module 40, configured to compare the color difference value with a set color threshold;
and the adjusting module 50 is configured to adjust data of all color channels of the pixel point corresponding to the color difference value in the printer to be no ink output data when the color difference value is smaller than the color threshold value.
Preferably, the obtaining the color value of all the pixels in the image to be printed after the background image is removed, and the marking as the second color value includes:
carrying out graying and binarization processing on the image to be printed to obtain a binary image;
determining a foreground region in the image to be printed according to the binary image;
extracting a foreground image in the foreground image area from the image to be printed;
and traversing all the pixel points in the foreground image to obtain a second color value of each pixel point.
Preferably, the obtaining the color value of all the pixels in the image to be printed after the background image is removed, and the marking as the second color value includes:
traversing all pixel points in the image to be printed to acquire a color value of each pixel point, and recording the color value as a third color value;
performing data processing on the third color value and the first color value to obtain a corresponding intermediate image;
graying and binarizing the intermediate image to obtain a binary image;
determining a foreground region in the image to be printed according to the binary image;
extracting a foreground image in the foreground image area from the image to be printed;
and traversing all the pixel points in the foreground image to obtain a second color value of each pixel point.
Preferably, the formula of the graying process includes:
Gray=R×0.299+G×0.587+B×0.114
where Gray represents the Gray value of the pixel or print medium, and the color value of the pixel or print medium in RGB color mode is (R, G, B).
Preferably, the formula of the graying process includes:
where Gray represents the Gray value of the pixel or print medium, and the color value of the pixel or print medium in CMYK color mode is (C, M, Y, K).
Preferably, the obtaining the color difference value corresponding to each pixel according to the first color value and the second color value includes:
acquiring a color characteristic file of the printer;
converting the first color value and the second color value into corresponding first lab value and second lab value according to the color characteristic file;
and obtaining a color difference value corresponding to each pixel point according to the first lab value and the second lab value.
Preferably, the color channel in the printer includes: cyan channel, magenta channel, yellow channel, black channel, and white ink channel.
In addition, the printer ink amount adjustment method based on image processing according to the embodiment of the present invention described in connection with fig. 1 may be implemented by a printer ink amount adjustment apparatus based on image processing. Fig. 6 is a schematic diagram showing a hardware configuration of a printer ink amount adjustment apparatus based on image processing according to an embodiment of the present invention.
The image processing-based printer ink amount adjustment apparatus may include a processor 401 and a memory 402 storing computer program instructions.
In particular, the processor 401 described above may include a Central Processing Unit (CPU), or an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), or may be configured as one or more integrated circuits implementing embodiments of the present invention.
The processor 401 reads and executes the computer program instructions stored in the memory 402 to implement any of the printer ink amount adjustment methods based on image processing in the above-described embodiments.
In one example, the image processing-based printer ink amount adjustment device 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 by a bus 410 and perform communication with each other.
The communication interface 403 is mainly used to implement communication between each module, device, unit and/or apparatus in the embodiment of the present invention.
The bus 410 includes hardware, software, or both, coupling components of the image processing-based printer ink amount adjustment device to each other. By way of example, and not limitation, the buses 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 the above. Bus 410 may include one or more buses, where appropriate. Although embodiments of the invention have been described and illustrated with respect to a particular bus, the invention contemplates any suitable bus or interconnect.
In addition, in combination with the printer ink amount adjustment method based on image processing in the above-described embodiments, the embodiments of the present invention may be implemented by providing a computer-readable storage medium. The computer readable storage medium has stored thereon computer program instructions; the computer program instructions, when executed by a processor, implement any of the image processing-based printer ink adjustment methods of the above embodiments.
In summary, according to the method, the device, the equipment and the medium for adjusting the ink amount of the printer based on the image processing provided by the embodiment of the invention, the color value of the printing medium is obtained and compared with the color value of all the pixels of the image to be printed, from which the background image is removed, so that the pixels which are similar to the color value of the printing medium in comparison, namely, the pixels with the color difference value smaller than the set color threshold value, are obtained, and the data of all the color channels of the pixels in the printer are adjusted to be not to be ink data, so that part of ink amount can be saved, and the printing cost is reduced.
It should also be noted that the exemplary embodiments mentioned in this disclosure 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, or may be performed in a different order from the order in the embodiments, or several steps may be performed simultaneously.
In the foregoing, only the specific embodiments of the present invention are described, and it will be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the systems, modules and units described above may refer to the corresponding processes in the foregoing method embodiments, which are not repeated herein. It should be understood that the scope of the present invention is not limited thereto, and any equivalent modifications or substitutions can be easily made by those skilled in the art within the technical scope of the present invention, and they should be included in the scope of the present invention.
Claims (11)
1. A method of adjusting an ink amount of a printer, the method comprising:
acquiring a color value of a printing medium, and recording the color value as a first color value;
acquiring color values of all pixel points in the image to be printed after the background image is removed, and recording the color values as second color values;
acquiring a color difference value corresponding to each pixel point according to the first color value and the second color value;
comparing the color difference value with a set color threshold value;
and when the color difference value is smaller than the color threshold value, adjusting the data of all color channels of the pixel points corresponding to the color difference value in the printer to be no ink output data.
2. The method for adjusting the ink amount of a printer according to claim 1, wherein the image to be printed includes a background image and a foreground image, and the obtaining the color values of all pixels in the image to be printed after the background image is removed and the color values are recorded as the second color values includes:
extracting the foreground image from the image to be printed, and putting the foreground image into a background empty image to form an intermediate image only containing the foreground image;
and obtaining second color values of all pixel points in the intermediate image.
3. The method for adjusting the ink amount of a printer according to claim 1, wherein the obtaining the color value of all pixels of the image to be printed after the background image is removed, and the marking as the second color value includes:
carrying out graying and binarization processing on the image to be printed to obtain a binary image;
determining a foreground region in the image to be printed according to the binary image;
extracting a foreground image in the foreground image area from the image to be printed;
and traversing all the pixel points in the foreground image to obtain a second color value of each pixel point.
4. The method for adjusting the ink amount of a printer according to claim 1, wherein the obtaining the color value of all pixels of the image to be printed after the background image is removed, and the marking as the second color value includes:
traversing all pixel points in the image to be printed to acquire a color value of each pixel point, and recording the color value as a third color value;
performing data processing on the third color value and the first color value to obtain a corresponding intermediate image;
graying and binarizing the intermediate image to obtain a binary image;
determining a foreground region in the image to be printed according to the binary image;
extracting a foreground image in the foreground image area from the image to be printed;
and traversing all the pixel points in the foreground image to obtain a second color value of each pixel point.
5. The printer ink amount adjustment method according to claim 3 or 4, wherein the formula of the graying process includes:
Gray = R×0.299 + G×0.587 + B×0.114
where Gray represents the Gray value of the pixel or print medium, and the color value of the pixel or print medium in RGB color mode is (R, G, B).
7. The method according to claim 3 or 4, wherein the obtaining a color difference value corresponding to each pixel point according to the first color value and the second color value includes:
acquiring a color characteristic file of the printer;
converting the first color value and the second color value into corresponding first lab value and second lab value according to the color characteristic file;
and obtaining a color difference value corresponding to each pixel point according to the first lab value and the second lab value.
8. The printer ink amount adjustment method according to claim 1, wherein the color channel in the printer includes: cyan channel, magenta channel, yellow channel, black channel, and white ink channel.
9. A printer ink amount adjustment apparatus, 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 a first color value;
the second color value acquisition module is used for acquiring color values of all pixel points in the image to be printed after the background image is removed, and recording the color values as second color values;
the color difference value acquisition module is used for acquiring a color difference value corresponding to each pixel point according to the first color value and the second color value;
the comparison module is used for comparing the color difference value with a set color threshold value;
and the adjusting module is used for adjusting the data of all the color channels of the pixel points corresponding to the color difference value in the printer to be no ink output data when the color difference value is smaller than the color threshold value.
10. A printer ink amount adjustment apparatus, characterized by comprising: 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 any one of claims 1-8.
11. A storage medium having stored thereon computer program instructions, which when executed by a processor, implement the method of any of claims 1-8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210513716.6A CN114889329B (en) | 2019-04-26 | 2019-04-26 | Printer ink quantity adjusting method, device, equipment and storage medium |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910343411.3A CN111845084B (en) | 2019-04-26 | 2019-04-26 | Printer ink amount adjusting method, device, equipment and medium based on image processing |
CN202210513716.6A CN114889329B (en) | 2019-04-26 | 2019-04-26 | Printer ink quantity adjusting method, device, equipment and storage medium |
Related Parent Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910343411.3A Division CN111845084B (en) | 2019-04-26 | 2019-04-26 | Printer ink amount adjusting method, device, equipment and medium based on image processing |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114889329A CN114889329A (en) | 2022-08-12 |
CN114889329B true CN114889329B (en) | 2023-05-23 |
Family
ID=72951647
Family Applications (2)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210513716.6A Active CN114889329B (en) | 2019-04-26 | 2019-04-26 | Printer ink quantity adjusting method, device, equipment and storage medium |
CN201910343411.3A Active CN111845084B (en) | 2019-04-26 | 2019-04-26 | Printer ink amount adjusting method, device, equipment and medium based on image processing |
Family Applications After (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910343411.3A Active CN111845084B (en) | 2019-04-26 | 2019-04-26 | Printer ink amount adjusting method, device, equipment and medium based on image processing |
Country Status (1)
Country | Link |
---|---|
CN (2) | CN114889329B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114559746B (en) * | 2020-11-27 | 2023-06-09 | 深圳市汉森软件有限公司 | Processing liquid data printing method, device, equipment and storage medium |
CN115447283B (en) * | 2021-06-08 | 2023-08-15 | 深圳市汉森软件有限公司 | Print data processing method, device, equipment and medium for improving color block uniformity |
CN113547846B (en) * | 2021-07-21 | 2022-09-09 | 深圳圣德京粤科技有限公司 | Simulated ink-jet printing method of starch food material |
CN116353210B (en) * | 2021-12-28 | 2025-03-18 | 深圳市汉森软件股份有限公司 | Method, device, equipment and storage medium for color difference detection and calibration between print heads |
CN116954529B (en) * | 2023-09-11 | 2024-04-12 | 广州中望龙腾软件股份有限公司 | Print color definition optimization method, device, storage medium and computer equipment |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6057932A (en) * | 1996-09-11 | 2000-05-02 | Brother Kogyo Kabushiki Kaisha | Data conversion method with total ink amount limiting function |
JP2003231278A (en) * | 2002-02-12 | 2003-08-19 | Canon Inc | Recorder and method of recording |
JP2011059060A (en) * | 2009-09-14 | 2011-03-24 | Seiren Co Ltd | Computer color matching method, and computer readable recording medium recording computer color matching program |
CN102843494A (en) * | 2011-06-21 | 2012-12-26 | 柯尼卡美能达商用科技株式会社 | Image forming apparatus |
JP2013154516A (en) * | 2012-01-27 | 2013-08-15 | Brother Industries Ltd | Apparatus and program for generating print data |
CN104504661A (en) * | 2014-11-27 | 2015-04-08 | 厦门美图之家科技有限公司 | Method for processing image to be in black and white effect |
CN105829114A (en) * | 2013-12-18 | 2016-08-03 | 惠普发展公司,有限责任合伙企业 | Printer calibration for media color |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4427065B2 (en) * | 2007-02-15 | 2010-03-03 | シャープ株式会社 | Image processing method and image processing apparatus |
CN108944106B (en) * | 2018-07-13 | 2020-04-14 | 森大(深圳)技术有限公司 | Ink-jet printing image color optimization method, device, equipment and storage medium |
CN109669647B (en) * | 2018-11-30 | 2022-04-12 | 森大(深圳)技术有限公司 | Print image data processing method, apparatus, device and storage medium |
-
2019
- 2019-04-26 CN CN202210513716.6A patent/CN114889329B/en active Active
- 2019-04-26 CN CN201910343411.3A patent/CN111845084B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6057932A (en) * | 1996-09-11 | 2000-05-02 | Brother Kogyo Kabushiki Kaisha | Data conversion method with total ink amount limiting function |
JP2003231278A (en) * | 2002-02-12 | 2003-08-19 | Canon Inc | Recorder and method of recording |
JP2011059060A (en) * | 2009-09-14 | 2011-03-24 | Seiren Co Ltd | Computer color matching method, and computer readable recording medium recording computer color matching program |
CN102843494A (en) * | 2011-06-21 | 2012-12-26 | 柯尼卡美能达商用科技株式会社 | Image forming apparatus |
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 |
CN104504661A (en) * | 2014-11-27 | 2015-04-08 | 厦门美图之家科技有限公司 | Method for processing image to be in black and white effect |
Also Published As
Publication number | Publication date |
---|---|
CN111845084A (en) | 2020-10-30 |
CN114889329A (en) | 2022-08-12 |
CN111845084B (en) | 2022-05-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN114889329B (en) | Printer ink quantity adjusting method, device, equipment and storage medium | |
US8040569B2 (en) | Image processing apparatus and method for contrast processing and intermediate color removal | |
CN111845101B (en) | Printer ink amount adjusting method, device, equipment and medium based on color management | |
CN102029818B (en) | Printing apparatus and calibration method | |
US9965227B2 (en) | Image processing apparatus, image processing method, computer-readable recording medium, printing system, and method of producing printed material | |
CN104756477A (en) | Image processing device, image forming device comprising same, image forming method, and recording medium | |
KR101116682B1 (en) | Image forming apparatus and control method thereof | |
CN111930324B (en) | Automatic import file printing method, device, equipment and storage medium | |
CN115071286A (en) | Automatic adjustment method, device and equipment for emergence template and storage medium | |
US8873112B2 (en) | Image processing apparatus and determination method | |
CN114475005B (en) | Method, device, equipment and medium for setting white ink quantity based on foreground image | |
CN111845098B (en) | Method, device, equipment and medium for adjusting ink amount of printer | |
JP2005153469A (en) | Imaging method and imaging apparatus | |
US20050265597A1 (en) | Color information acquisition apparatus, color information acquisition method, and color information acquisition program product | |
US20200055324A1 (en) | Image Processing Device Generating Print Data Using Profile Corresponding to Printing Direction | |
CN111845100B (en) | Printer ink amount setting method, device, equipment and medium based on image processing | |
US10286675B2 (en) | Recording apparatus and recording method | |
US20120314234A1 (en) | Image processing apparatus, image printing apparatus and image processing method | |
US8289573B2 (en) | Method for reducing registration defects in color printing | |
JP7536268B1 (en) | Printed matter inspection system, processing device used in said inspection system, and inspection method | |
EP2299690A2 (en) | Print controller | |
JP4552641B2 (en) | Image processing system, image processing method, and image processing program | |
CN114202591A (en) | Color transition method, device, device and storage medium based on background color removal | |
US20050012849A1 (en) | Image processing using image generation record information | |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |