CN111845084A - Printer ink amount adjusting method, device, equipment and medium based on image processing - Google Patents
Printer ink amount adjusting method, device, equipment and medium based on image processing Download PDFInfo
- Publication number
- CN111845084A CN111845084A CN201910343411.3A CN201910343411A CN111845084A CN 111845084 A CN111845084 A CN 111845084A CN 201910343411 A CN201910343411 A CN 201910343411A CN 111845084 A CN111845084 A CN 111845084A
- Authority
- CN
- China
- Prior art keywords
- color
- value
- image
- printed
- color value
- 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.)
- Granted
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 medium for adjusting the ink quantity of a printer based on image processing. The method for adjusting the ink quantity 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; obtaining color values of all pixel points after the background image is removed from the image to be printed, 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 into ink non-discharge data. The printer ink amount adjusting method, device, equipment and medium based on image processing can save ink amount and reduce printing cost.
Description
Technical Field
The invention relates to the field of ink-jet printing, in particular to a method, a device, equipment and a medium for adjusting the ink quantity of a printer based on image processing.
Background
The ink jet printing technology refers to a technology of ejecting ink droplets through nozzles on an ejection head onto a printing medium to obtain an image or characters. With the continuous progress of the technology, the color and 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 includes 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 part of the color in the foreground image is also similar to the color of the printing medium. 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, and if all pixel points are subjected to ink discharge according to the existing method, not only the color ink but also the white ink are wasted, so that the printing cost is increased.
Disclosure of Invention
The embodiment of the invention provides a printer ink amount adjusting method, device, equipment and medium 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 adjustment method for a printer based on image processing, where the method includes:
acquiring a color value of a printing medium, and recording the color value as a first color value;
obtaining color values of all pixel points after the background image is removed from the image to be printed, 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 into ink non-discharge data.
Preferably, the obtaining color values of all pixel points 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 image area 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 pixel points in the foreground image to obtain a second color value of each pixel point.
Preferably, the obtaining color values of all pixel points 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 obtain the 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;
carrying out graying and binarization processing on the intermediate image to obtain a binary image;
determining a foreground image area 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 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
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).
Preferably, the formula of the graying process includes:
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, 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 a corresponding first lab value and a corresponding second lab value according to the color profile;
and obtaining the color difference value corresponding to each pixel point according to the first lab value and the second lab value.
Preferably, the color channels in the printer include: cyan, magenta, yellow, black, and white ink channels.
In a second aspect, an embodiment of the present invention provides an ink amount adjustment 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 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 the 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 color channels of the pixel points corresponding to the color difference value in the printer into ink non-discharge data when the color difference value is smaller than the color threshold value.
In a third aspect, an embodiment of the present invention provides an ink amount adjustment 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 device, the apparatus, and the medium for adjusting the ink amount of the printer based on image processing according to the embodiments of the present invention, 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, from which the background image is removed, to obtain the pixels in the image which are close to the color value of the printing medium, that is, the pixels with the color difference value smaller than the set color threshold, and the data of all the color channels of the pixels in the printer are adjusted to the non-ink-output data, so that a part of the ink amount can be saved, and the printing cost is reduced.
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 adjustment 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 adjustment 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 adjustment method for a printer 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 an ink amount adjusting 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 adjusting 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, an embodiment of the present invention provides a method for adjusting an ink amount of a printer based on image processing, where a color value of a printing medium is obtained, and is compared with color values of all pixels in an image to be printed, where a background image is removed, to obtain pixels in the image that are close to the color value of the printing medium, that is, pixels with a color difference value smaller than a set color threshold, and data of all color channels of the pixels in the printer are adjusted to non-ink-output data, so that a part of the ink amount can be saved, and printing cost is reduced. 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 may beDirectly acquiring a color value input by a user on an image processing interactive interface; when the color value of the printing medium used by the user is unknown, the color value of the printing medium may be acquired by scanning the printing medium using an image scanner (e.g., eyeone). Wherein, the color value input by the user on the image processing interactive interface or scanned and obtained by the image scanner is 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, 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 placed 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 to obtain second color values of all pixel points in the intermediate image (i.e., the foreground image); when a large amount of storage space needs to be consumed when the foreground image is very large, if the requirement on the image precision is not high, the actual printing size of the foreground image can be stored, then the foreground image is zoomed in an equal proportion, the zoomed foreground image is placed into the image with the empty background in the equal proportion, then the second color values of all pixel points in the zoomed foreground image are traversed, and the printing is carried out according to the actual printing size of the stored foreground image during printing.
Preferably, referring to fig. 2, extracting the foreground image from the image to be printed and acquiring the second color value of each pixel point in the foreground image specifically include 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 image area 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 the embodiment, aiming at the condition that the color of the background image is relatively similar to the color of the printing medium, graying and binarization processing is directly performed on the image to be printed to obtain a binary image, then 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 then the foreground image is traversed to obtain second color values of all pixel points in the foreground image. The graying, binarization and foreground image extraction processing of the image to be printed are all processed by using an algorithm function in an image processing library (such as opencv), and if the color value is in an RGB color mode, the grayscale conversion formula is as follows:
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:
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 (R, G, B).
Referring to fig. 3, in another embodiment, 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 includes the following steps:
s221, traversing all pixel points in the image to be printed to obtain the color value of each pixel point, and recording the color value as a third color value;
s222, performing 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 image area 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 the second color value of each pixel point.
Specifically, in this embodiment, for the case that the color of the background map is far from the color of the printing medium, a difference value is first made between the third color values of all the pixel points in the image to be printed and the first color value of the printing medium to obtain an intermediate image, then the intermediate image is grayed and binarized to obtain a binary image, finally, a foreground map region in the image to be printed is determined according to the binary image, a foreground map is extracted from the foreground map region, and the foreground map is traversed to obtain the second color values of all the pixel points in the foreground map. The graying, binarization and foreground image extraction processing of the image to be printed are also processed by using an algorithm function in an image processing library (such as opencv), and if the color value is in an RGB color mode, the grayscale conversion formula is as follows:
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:
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 (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 the first color value and the second color value are differenced to obtain a color difference value of each pixel.
Preferably, referring to fig. 4, 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:
s311, acquiring a color characteristic file of the printer;
s312, 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 color profile;
s313, obtaining the color difference value corresponding to 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 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 calculated and obtained by using the lab value is more accurate than the color difference value calculated and obtained in other color modes.
Preferably, the color difference value is obtained by the following formula:
wherein Δ E represents a color difference value of a pixel point, and the first lab value of the printing medium is (L)1、a1、b1) The second lab value of the pixel point is (L)2、a2、b2)。
Preferably, the color profile includes: an ICC color conversion curve, a mapping table of CMYK color values of the printer to lab values of the target color gamut. Simultaneously still include: mapping tables between different device color fields, such as CMYK color values of a printer to CMYK color values of a target color field, lab values of the target color field to CMYK color values of the printer, CMYK values of the target color field to lab values of the target color field, and the like.
S4, comparing the color difference value with a set color threshold value;
specifically, the obtained color difference 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, so as to determine whether each pixel point produces 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 into ink non-discharge data.
Specifically, when the color difference value is smaller than the color threshold value, it indicates that the color of the pixel point is close to the color of the printing medium, and the pixel point may not discharge ink, that is, the data of all color channels of the pixel point are not discharged ink. Preferably, in this embodiment, the color channels of the printer include: cyan, magenta, yellow, black and white ink channels, and in other embodiments, the color channels of the printer further include spot color channels, such as blue, orange, etc. For example, when printing a medium in the textile industry, a layer of white ink needs to be printed on the printing medium before printing an image, and the ink amount value of the white ink is 100%, when the color difference value of the pixel is calculated to be smaller than the color threshold, the data of the pixel in the printer in the cyan channel, the magenta channel, the yellow channel, the black channel and the white ink channel are all adjusted to be ink non-discharge data, and when the color difference value of the pixel is calculated to be greater than or equal to the color threshold, the data of the pixel in the printer in the cyan channel, the magenta channel, the yellow channel, the black channel and the white ink channel keep the original data thereof unchanged, in this 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 not be printed, so that not only is color ink saved, but also white ink is saved, and the printing cost is reduced. In this embodiment, 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 condition of the ink to be printed on the pixel point. Wherein the white ink channel and the other color channels are a parameter name for setting the use condition of the corresponding ink.
Referring to fig. 5, an embodiment of the present invention provides an ink amount adjusting device for a printer based on image processing, the device including:
a first color value obtaining module 10, configured to obtain a color value of a printing medium, and record the color value as a first color value;
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 point 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 an adjusting module 50, configured to adjust, when the color difference value is smaller than the color threshold, data of all color channels of the pixel point corresponding to the color difference value in the printer to be ink non-discharge data.
Preferably, the obtaining color values of all pixel points 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 image area 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 pixel points in the foreground image to obtain a second color value of each pixel point.
Preferably, the obtaining color values of all pixel points 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 obtain the 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;
carrying out graying and binarization processing on the intermediate image to obtain a binary image;
determining a foreground image area 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 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
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).
Preferably, the formula of the graying process includes:
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, 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 a corresponding first lab value and a corresponding second lab value according to the color profile;
and obtaining the color difference value corresponding to each pixel point according to the first lab value and the second lab value.
Preferably, the color channels in the printer include: cyan, magenta, yellow, black, and white ink channels.
In addition, the printer ink amount adjustment method based on image processing according to the embodiment of the present invention described in conjunction 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 an ink amount adjusting apparatus for a printer based on image processing according to an embodiment of the present invention.
An image processing based printer ink volume adjustment device may include a processor 401 and a memory 402 storing computer program instructions.
Specifically, the processor 401 may include a Central Processing Unit (CPU), or an Application Specific Integrated Circuit (ASIC), or may be configured as one or more Integrated circuits implementing embodiments of the present invention.
The processor 401 reads and executes computer program instructions stored in the memory 402 to implement any one of the image processing-based printer ink amount adjustment methods 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 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 adjustment device to each other. By way of example, and not limitation, a bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a Hypertransport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an infiniband interconnect, a Low Pin Count (LPC) bus, a memory bus, a Micro Channel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a video electronics standards association local (VLB) bus, or other suitable bus or a combination of two or more of these. Bus 410 may include one or more buses, where appropriate. Although specific buses have been described and shown in the embodiments of the invention, any suitable buses or interconnects are contemplated by the invention.
In addition, in combination with the method for adjusting the ink amount of the printer based on image processing in the above embodiments, embodiments of the present invention may be implemented by providing a computer-readable storage medium. The computer readable storage medium having stored thereon computer program instructions; the computer program instructions, when executed by a processor, implement any of the image processing-based printer ink amount adjustment methods of the above embodiments.
In summary, in the method, the device, the apparatus, and the medium for adjusting the ink amount of the printer based on image processing according to the embodiments of the present invention, 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, from which the background image is removed, to obtain the pixels in the image which are close to the color value of the printing medium, that is, the pixels with the color difference value smaller than the set color threshold, and the data of all the color channels of the pixels in the printer are adjusted to the non-ink-output data, so that a part of the ink amount can be saved, and the printing cost is reduced.
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 (10)
1. An ink amount adjusting 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;
obtaining color values of all pixel points after the background image is removed from the image to be printed, 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 into ink non-discharge data.
2. The method of claim 1, wherein the obtaining color values of all pixels of the image to be printed after removing the background image and marking as the second color value comprises:
carrying out graying and binarization processing on the image to be printed to obtain a binary image;
determining a foreground image area 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 pixel points in the foreground image to obtain a second color value of each pixel point.
3. The method of claim 1, wherein the obtaining color values of all pixels of the image to be printed after removing the background image and marking as the second color value comprises:
traversing all pixel points in the image to be printed to obtain the 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;
carrying out graying and binarization processing on the intermediate image to obtain a binary image;
determining a foreground image area 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 pixel points in the foreground image to obtain a second color value of each pixel point.
4. The method of adjusting an ink amount for a printer based on image processing according to claim 2 or 3, wherein the formula of the graying process includes:
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).
5. The method of adjusting an ink amount for a printer based on image processing according to claim 2 or 3, wherein the formula of the graying process includes:
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).
6. The method of claim 2 or 3, wherein the obtaining the color difference value corresponding to each pixel point according to the first color value and the second color value comprises:
acquiring a color characteristic file of the printer;
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 color profile;
and obtaining the color difference value corresponding to each pixel point according to the first lab value and the second lab value.
7. The method of adjusting an ink amount for a printer according to claim 1, wherein the color channels in the printer include: cyan, magenta, yellow, black, and white ink channels.
8. An ink amount adjusting 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 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 the 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 color channels of the pixel points corresponding to the color difference value in the printer into ink non-discharge data when the color difference value is smaller than the color threshold value.
9. An ink amount adjusting 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-7.
10. A storage medium having computer program instructions stored thereon, which when executed by a processor implement the method of any one of claims 1-7.
Priority Applications (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 |
Applications Claiming Priority (1)
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 |
Related Child Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210513716.6A Division CN114889329B (en) | 2019-04-26 | 2019-04-26 | Printer ink quantity adjusting method, device, equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111845084A true CN111845084A (en) | 2020-10-30 |
CN111845084B CN111845084B (en) | 2022-05-17 |
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 Before (1)
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 |
Country Status (1)
Country | Link |
---|---|
CN (2) | CN114889329B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113547846A (en) * | 2021-07-21 | 2021-10-26 | 深圳圣德京粤科技有限公司 | Simulated ink-jet printing method of starch food material |
CN114559746A (en) * | 2020-11-27 | 2022-05-31 | 深圳市汉森软件有限公司 | Processing liquid data printing method, device, equipment and storage medium |
CN115447283A (en) * | 2021-06-08 | 2022-12-09 | 深圳市汉森软件有限公司 | Printing data processing method, device, equipment and medium for improving color block uniformity |
CN116353210A (en) * | 2021-12-28 | 2023-06-30 | 深圳市汉森软件有限公司 | Method, device, equipment and storage medium for detecting and calibrating chromatic aberration between spray heads |
CN116954529A (en) * | 2023-09-11 | 2023-10-27 | 广州中望龙腾软件股份有限公司 | Print color definition optimization method, device, storage medium and computer equipment |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2003231278A (en) * | 2002-02-12 | 2003-08-19 | Canon Inc | Recorder and method of recording |
CN101247463A (en) * | 2007-02-15 | 2008-08-20 | 夏普株式会社 | Image processing method and image processing apparatus |
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 |
CN108944106A (en) * | 2018-07-13 | 2018-12-07 | 森大(深圳)技术有限公司 | Inkjet print image color optimization method, apparatus, equipment and storage medium |
CN109669647A (en) * | 2018-11-30 | 2019-04-23 | 森大(深圳)技术有限公司 | Print image data processing method, device, equipment and storage medium |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH1086413A (en) * | 1996-09-11 | 1998-04-07 | Brother Ind Ltd | Method and apparatus for limiting ink gross volume, ink gross volume limit display color converting method, and storage medium |
JP5694655B2 (en) * | 2009-09-14 | 2015-04-01 | セーレン株式会社 | Computer color matching method and computer readable recording medium recording computer color matching program |
-
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 (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2003231278A (en) * | 2002-02-12 | 2003-08-19 | Canon Inc | Recorder and method of recording |
CN101247463A (en) * | 2007-02-15 | 2008-08-20 | 夏普株式会社 | Image processing method and image processing apparatus |
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 |
CN108944106A (en) * | 2018-07-13 | 2018-12-07 | 森大(深圳)技术有限公司 | Inkjet print image color optimization method, apparatus, equipment and storage medium |
CN109669647A (en) * | 2018-11-30 | 2019-04-23 | 森大(深圳)技术有限公司 | Print image data processing method, device, equipment and storage medium |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114559746A (en) * | 2020-11-27 | 2022-05-31 | 深圳市汉森软件有限公司 | Processing liquid data printing method, device, equipment and storage medium |
CN115447283A (en) * | 2021-06-08 | 2022-12-09 | 深圳市汉森软件有限公司 | Printing data processing method, device, equipment and medium for improving color block uniformity |
CN115447283B (en) * | 2021-06-08 | 2023-08-15 | 深圳市汉森软件有限公司 | Print data processing method, device, equipment and medium for improving color block uniformity |
CN113547846A (en) * | 2021-07-21 | 2021-10-26 | 深圳圣德京粤科技有限公司 | Simulated ink-jet printing method of starch food material |
CN113547846B (en) * | 2021-07-21 | 2022-09-09 | 深圳圣德京粤科技有限公司 | Simulated ink-jet printing method of starch food material |
CN116353210A (en) * | 2021-12-28 | 2023-06-30 | 深圳市汉森软件有限公司 | Method, device, equipment and storage medium for detecting and calibrating chromatic aberration between spray heads |
CN116954529A (en) * | 2023-09-11 | 2023-10-27 | 广州中望龙腾软件股份有限公司 | Print color definition optimization method, device, storage medium and computer equipment |
CN116954529B (en) * | 2023-09-11 | 2024-04-12 | 广州中望龙腾软件股份有限公司 | Print color definition optimization method, device, storage medium and computer equipment |
Also Published As
Publication number | Publication date |
---|---|
CN114889329A (en) | 2022-08-12 |
CN114889329B (en) | 2023-05-23 |
CN111845084B (en) | 2022-05-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111845084B (en) | Printer ink amount adjusting method, device, equipment and medium based on image processing | |
US9649839B2 (en) | Image processing apparatus and image processing method | |
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 | |
CN107767379B (en) | PCB label printing quality detection method | |
JP2012086565A (en) | System and method for detecting missing inkjet in inkjet printer using image data of printed document without prior knowledge of the document | |
US9965227B2 (en) | Image processing apparatus, image processing method, computer-readable recording medium, printing system, and method of producing printed material | |
CN110733253A (en) | Spray head moisturizing printing control method, device, equipment and storage medium | |
CN115071286A (en) | Automatic adjustment method, device and equipment for emergence template and storage medium | |
JP5146029B2 (en) | Printing apparatus, printing control apparatus, printing method, and computer program | |
US8229214B2 (en) | Image processing apparatus and image processing method | |
CN109949379B (en) | Color-tracing method, device, equipment and storage medium for ink-jet printer | |
CN111845098B (en) | Method, device, equipment and medium for adjusting ink amount of printer | |
JP6746350B2 (en) | Signal processing device, signal processing method, image inspection device, and signal extraction processing device | |
US8873112B2 (en) | Image processing apparatus and determination method | |
JP4941331B2 (en) | Printing method, printing apparatus, correspondence table generation method, and program | |
CN111845099B (en) | Method, device, equipment and medium for setting white ink quantity of printer | |
CN111845100B (en) | Printer ink amount setting method, device, equipment and medium based on image processing | |
US10286675B2 (en) | Recording apparatus and recording method | |
JP2010119006A (en) | Image processing apparatus,and image processing method | |
US20120314234A1 (en) | Image processing apparatus, image printing apparatus and image processing method | |
US11057528B2 (en) | Information processing apparatus, method and storage medium | |
US8289573B2 (en) | Method for reducing registration defects in color printing | |
CN112083894A (en) | Method, device, equipment and medium for automatically setting white ink amount of pixel by pixel of image | |
JP2005324459A (en) | Image processing method and image forming system |
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 |