Color chasing method and system for correction of color printer, medium and electronic equipment
Through multiple iterations and polynomial fitting ideas, the color chasing algorithm calculates the printer's correction coefficient and conversion coefficient, solves the problem of color differences between color printers, and achieves high-quality, consistent color printing effects.
Patent Information
- Application Number
- CN202411092354.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-09
- Publication Date
- 2024-10-01
AI Technical Summary
When existing color printers print the same electronic image, color and quality differences are caused by factors such as manufacturing processes, component accuracy, and wear. They lack effective universal correction methods and cannot achieve high-quality, consistent color printing effects.
The color chasing algorithm adopts the idea of multiple iterations and polynomial fitting. By extracting the R, G, and B component values of the center positions of the color patches of the original image and different printers, the correction coefficient and conversion coefficient are calculated, and a first-order correction process is performed to correct the original image. Figure to achieve color consistency across different printers.
It effectively solves the problem of color printing differences between different printers, achieves uniform image quality, reduces color deviations in printing results, and improves printing consistency and accuracy.
Smart Images

Figure CN118741010A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of image printing, and in particular to a color tracking method, system, medium and electronic equipment for color printer calibration. Background Art
[0002] In today's digital age, color printing is widely used in many fields such as office, advertising, design, etc. However, due to factors such as the manufacturing process of the printer itself, the precision of the components, and the wear and tear during use, when different printers print the same electronic image, the paper text obtained often has obvious differences in color and quality.
[0003] This difference has caused a lot of trouble for users. For example, in the design industry, which has high requirements for color accuracy, color deviation may cause the design work to fail to accurately present the expected effect, affecting the quality of the work and customer satisfaction. In the field of commercial printing, color inconsistency may lead to inconsistent brand image and affect the market promotion of products.
[0004] At present, although some printers have built-in correction functions, these functions are usually simple and cannot effectively deal with complex color difference situations. Moreover, the existing correction methods are often only optimized for specific models of printers and lack universality.
[0005] At the technical level, most existing color correction methods are based on fixed parameters and models, which cannot adapt to the individual differences between different printers. At the same time, due to the complex working principle and color processing mechanism of printers, which involve multiple factors such as color space conversion, ink cartridge characteristics, and the influence of printing media, accurate color correction becomes extremely challenging.
[0006] In summary, how to effectively solve the problem of color printing differences between different printers and achieve high-quality and consistent color printing effects has become an important issue that needs to be urgently solved in the current printing technology field. The present invention is based on a color tracking algorithm based on multiple iterations and polynomial fitting ideas, aiming to provide an innovative and effective solution to this problem. Summary of the invention
[0007] In view of the defects in the prior art, the purpose of the present invention is to solve the problem of color printing differences between different printers.
[0008] A color tracking method for color printer calibration provided by the present invention comprises the following steps:
[0009] Step S1, extract the original image electronic version I0, A printer electronic version I A and B Printer Electronic Version I BThe R, G, and B component values of the center position of each color block;
[0010] Step S2, the original electronic version I0 and the B printer electronic version I B The R, G, and B component values of printer B are used as input, and the correction coefficient of printer B is obtained by performing a first-order correction process on printer B;
[0011] Step S3, the correction coefficient of printer B, the electronic version of printer A A The R, G, B component values of the original electronic version I0 are taken as input, and the R, G, B component values of the original electronic version I0 are taken as the color tracking target. I 0 is converted into the color-tracking image I′0, and then the conversion coefficient of the original image is obtained by performing a first-order correction process on the printer B;
[0012] Step S4, taking the original image conversion coefficient as input, correcting the original image electronic version I0 to the corrected image I′ B , and then use printer B to print the correction image I′ B .
[0013] Preferably, in step S1, the electronic version of the original image I0 includes R, G, B component values I 0R ,I 0G ,I 0B ,A Printer Electronic Version I A Including R, G, B component values I AR ,I AG ,I AB , B Printer Electronic Version I B Including R, G, B component values I BR ,I BG ,I BB .
[0014] Preferably, in step S2, the original image electronic version I0 is printed by printer B to obtain printer B electronic version I B The process is a first-order correction process, and the algorithm is expressed as formula (1):
[0015] I0×k xB +b xB =I B (1)
[0016] Among them, k xB 、b xB is the correction factor for printer B.
[0017] Preferably, in step S3, printer A is used as the color tracking target, the electronic version of the original image I0 is converted into the color tracking image I′0, and a first-order correction process is performed on printer B. The algorithm is expressed as formula (2):
[0018] I′0×kxB +b xB =I A (2)
[0019] Where I′0 is the electronic version of the original image modified based on the printer A standard.
[0020] Preferably, in step S3, the algorithm for tracking the color graph I′0 is expressed as formula (3):
[0021] I0×k x0 +b x0 =I′0 (3)
[0022] Among them, k x0 and b x0 It is the conversion coefficient of the original image from I0 to I′0, including the three component coefficients of R, G, and B, and x is r, g, and b.
[0023] Preferably, in step S3, the correction coefficient of printer B and the electronic version of printer A are A The R, G, B component values of and the R, G, B component values of the original electronic version I0 are used as input, and formula (3) is substituted into formula (2) to obtain formula (4):
[0024] (I0×k xB )×k x0 +k xB ×b x0 =I A -b xB (4)
[0025] The k of the three components is obtained by fitting the three components R, G, and B at the center of the color block. x0 、b x0 , that is, k xr , k xg , k xb 、b xr 、b xg 、b xb .
[0026] Preferably, in step S4, the original electronic version I0 is corrected to a corrected image I′ B The algorithm is expressed as formula (5):
[0027] I0×k x0 +b x0 =I′ B (5)
[0028] The present invention also provides a color tracking system for color printer calibration, comprising:
[0029] Extract component value module, extract original image electronic version I0, A printer electronic version I Aand B Printer Electronic Version I B The R, G, and B component values of the center position of each color block;
[0030] Get the correction coefficient module and print the electronic version of B B The R, G, and B component values of printer B are taken as input, and the correction coefficient of printer B is obtained by performing a first-order correction on printer B;
[0031] Get the original image conversion coefficient module, and convert the correction coefficient of printer B and the electronic version of printer A to I A The R, G, B component values of the original image electronic version I0 and the R, G, B component values of the original image electronic version I0 are used as input, and the printer A is used as the color tracking target. The original image electronic version I0 is converted into the color tracking image I′0, and then the original image conversion coefficient is obtained by performing a first-order correction on the printer B;
[0032] Get the correction image module, take the original image conversion coefficient as input, and correct the original image electronic version I0 to the correction image I′ B , and then use printer B to print the correction image I′ B .
[0033] The present invention also provides a computer-readable storage medium storing a computer program, and when the computer program is executed by a processor, the steps of the color tracking method for color printer calibration are implemented.
[0034] The present invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, the steps of the color tracking method for color printer calibration are implemented.
[0035] Compared with the prior art, the present invention has the following beneficial effects:
[0036] The present invention considers the printing process of a printer as a first-order correction process, constructs an overdetermined equation by giving the center values of multiple color blocks of a color block image, and obtains the revised parameters of the original image by analysis, thus solving the problem of inconsistent image quality printed by different printers.
[0037] The present invention proposes a color tracking algorithm based on multiple iterations and polynomial fitting ideas, by which the color value of the printed manuscript can be corrected and the difference in color printing of different printers can be minimized. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Other features, objects and advantages of the present invention will become more apparent from the detailed description of non-limiting embodiments made with reference to the following drawings:
[0039] Figure 1 A flow chart of a color tracking method for calibrating a color printer in an embodiment of the present invention;
[0040] Figure 2 The electronic version of the original image 10 and the electronic version of the printer 1 in the embodiment of the present invention are A and B Printer Electronic Version I B . DETAILED DESCRIPTION
[0041] The present invention proposes a color tracking algorithm based on multiple iterations and polynomial fitting ideas, by which the color value of the printed manuscript can be corrected and the difference in color printing of different printers can be minimized.
[0042] The present invention is described in detail below in conjunction with specific embodiments. The following embodiments will help those skilled in the art to further understand the present invention, but are not intended to limit the present invention in any form. It should be noted that, for those of ordinary skill in the art, several changes and improvements can also be made without departing from the concept of the present invention. These all belong to the protection scope of the present invention.
[0043] Definition of terms
[0044] 1) Printer: ordinary color printer A and printer B;
[0045] 2) Original electronic version: The electronic version of the original image to be printed, represented as I0 in the algorithm, including R, G, B 三 Color components, denoted as I 0R ,I 0G ,I 0B ;
[0046] 3) A printer electronic version: the paper version of the image printed by printer A, the electronic version of the file obtained by scanning with a scanner, represented as I in the algorithm A , including R, G, B 三 Color components are represented as I AR , I AG , I AB ;
[0047] 4) Electronic version of printer B: The paper version of the image printed by printer B, the electronic version of the file obtained by scanning with a scanner, represented as I in the algorithm B , including R, G, B 三 Color components are represented as I BR , I BG , I BB ;
[0048] 5) The electronic version of the original image modified with printer A as the standard: With printer A as the color tracking target, the electronic version of the original image is transformed by the algorithm to obtain a new electronic version file, which is then printed by printer B, represented as I′0 in the algorithm;
[0049] 6) B printer color tracking electronic version B2: electronic version I′ obtained by 5) printing and scanning by printer B B .
[0050] Embodiment 1:
[0051] Figure 1 The present invention is a flowchart of a color tracking method for calibrating a color printer in an embodiment of the present invention.
[0052] like Figure 1 As shown, the present invention provides a color tracking method for color printer calibration, comprising the following steps:
[0053] Step S1, extract the original image electronic version I0, A printer electronic version I A and B Printer Electronic Version I B The R, G, and B component values at the center of each color block.
[0054] In this embodiment, the electronic version of the original image I0 is an image containing standard color block content.
[0055] Figure 2 The electronic version of the original image 10 and the electronic version of the printer 10 in the embodiment of the present invention are shown in FIG. A and B Printer Electronic Version I B .
[0056] The electronic version of the original image I0 includes R, G, B component values I 0R ,I 0G ,I 0B ,A Printer Electronic Version I A Including R, G, B component values I AR ,I AG ,I AB , B Printer Electronic Version I B Including R, G, B component values I BR ,I BG ,I BB .
[0057] Step S2, the original electronic version I0 and the B printer electronic version I B The R, G, and B component values of printer B are taken as input, and the correction coefficient of printer B is obtained by performing a first-order correction process on printer B.
[0058] The original electronic version I0 is printed by printer B to obtain the electronic version I of printer B BThe process is a first-order correction process, and the algorithm is expressed as formula (1):
[0059] I0×k xB +b xB =I B (1)
[0060] Among them, k xB 、b xB is the correction factor for printer B.
[0061] Taking the R, G, and B component values at the center of each color block as input, the above formula can form an overdetermined equation with multiple inputs, which can be used to solve the correction coefficient of printer B.
[0062] Step S3, the correction coefficient of printer B, the electronic version of printer A A The R, G, B component values of the original image and the R, G, B component values of the original electronic version I0 are taken as input, and printer A is taken as the color tracing target. The original electronic version I0 is converted into the color tracing image I′0, and then the original image conversion coefficient is obtained by performing a first-order correction process on printer B.
[0063] Specifically, printer A is used as the color tracking target, the electronic version of the original image I0 is converted into the color tracking image I′0, and a first-order correction process is performed on printer B. The algorithm is expressed as formula (2):
[0064] I′0×k xB +b xB =I A (2)
[0065] Where I′0 is the electronic version of the original image modified based on the printer A standard.
[0066] The algorithm for tracking the color graph I′0 is expressed as formula (3):
[0067] I0×k x0 +b x0 = I′0 (3)
[0068] Among them, k x0 and b x0 It is the conversion coefficient of the original image from I0 to I′0, that is, the correction coefficient of the original image, including the three component coefficients of R, G, and B, and x is r, g, and b.
[0069] To obtain k x0 and b x0 , the correction coefficient of printer B, the electronic version of printer A A The R, G, B component values of and the R, G, B component values of the original electronic version I0 are used as input, and formula (3) is substituted into formula (2) to obtain formula (4):
[0070] (I0×k xB )×k x0 +k xB ×b x0 =I A -b xB (4)
[0071] The k of the three components is obtained by fitting the three components R, G, and B at the center of the color block. x0 , b x0 , that is, k xr , k xg , k xb , b xr , b xg , b xb .
[0072] Step S4, taking the original image conversion coefficient as input, correcting the original image electronic version I0 to the corrected image I′ B , and then use printer B to print the correction image I′ B .
[0073] Correct the original electronic version of the image I0 to the corrected image I′ B The algorithm is expressed as formula (5):
[0074] I0×k x0 +b x0 =I′ B (5)
[0075] Embodiment 2:
[0076] The present invention also provides a color tracking system for color printer calibration. The color tracking system for color printer calibration can be implemented by executing the process steps of the color tracking method for color printer calibration, that is, those skilled in the art can understand the color tracking method for color printer calibration as a preferred implementation of the color tracking system for color printer calibration.
[0077] A color tracking system for color printer calibration in this embodiment includes:
[0078] Extract component value module, extract original image electronic version I0, A printer electronic version I A and B Printer Electronic Version I B The R, G, and B component values of the center position of each color block;
[0079] Get the correction coefficient module and print the electronic version of B B The R, G, and B component values of printer B are taken as input, and the correction coefficient of printer B is obtained by performing a first-order correction on printer B;
[0080] Get the original image conversion coefficient module, and convert the correction coefficient of printer B and the electronic version of printer A to I A The R, G, B component values of the original image electronic version I0 and the R, G, B component values of the original image electronic version I0 are used as input, and the printer A is used as the color tracking target. The original image electronic version I0 is converted into the color tracking image I′0, and then the original image conversion coefficient is obtained by performing a first-order correction on the printer B;
[0081] Get the correction image module, take the original image conversion coefficient as input, and correct the original image electronic version I0 to the correction image I′ B , and then use printer B to print the correction image I′ B .
[0082] Embodiment 3:
[0083] The present invention also provides a computer-readable storage medium storing a computer program, and when the computer program is executed by a processor, the steps of the color tracking method for color printer calibration of the above-mentioned embodiment 1 are implemented.
[0084] Embodiment 4:
[0085] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the steps of the color tracking method for color printer correction in the above-mentioned embodiment 1.
[0086] Those skilled in the art know that, in addition to realizing the system and its various devices, modules, and units provided by the present invention in a purely computer-readable program code, it is entirely possible to realize the same functions in the form of logic gates, switches, application-specific integrated circuits, programmable logic controllers, and embedded microcontrollers by logically programming the method steps. Therefore, the system and its various devices, modules, and units provided by the present invention can be considered as a hardware component, and the devices, modules, and units included therein for realizing various functions can also be regarded as structures within the hardware component; the devices, modules, and units for realizing various functions can also be regarded as both software modules for realizing the method and structures within the hardware component.
[0087] In the description of the present application, it should be understood that the terms "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", etc., indicating orientations or positional relationships, are based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present application and simplifying the description, and do not indicate or imply that the referred device or element must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present application.
[0088] The above describes the specific embodiments of the present invention. It should be understood that the present invention is not limited to the above specific embodiments, and those skilled in the art can make various changes or modifications within the scope of the claims, which does not affect the essence of the present invention. In the absence of conflict, the embodiments of the present application and the features in the embodiments can be combined with each other arbitrarily.
Claims
1. A color tracking method for color printer calibration, characterized in that: The steps include: Step S1, extract the original image electronic version I0, A printer electronic version I A and B Printer Electronic Version I B The R, G, and B component values of the center position of each color block; Step S2, the electronic version of the original image I0 and the electronic version of the B printer I B The R, G, and B component values of the printer B are used as input, and a correction coefficient of the printer B is obtained by performing a first-order correction process on the printer B; Step S3, the correction coefficient of the printer B, the electronic version I of the printer A A The R, G, B component values of the original image electronic version I0 and the R, G, B component values of the original image electronic version I0 are used as input, and the printer A is used as the color tracking target to convert the original image electronic version I0 into the color tracking image I ′ 0, and then the original image conversion coefficient is obtained by performing a first-order correction process on printer B; Step S4, taking the original image conversion coefficient as input, correcting the original image electronic version I0 to the corrected image I ′ B , and then use the printer B to print the correction image I ′ B .
2. The color tracking method for color printer calibration according to claim 1, characterized in that: In step S1, the electronic version of the original image I0 includes R, G, and B component values I 0R ,I 0G ,I 0B , the A printer electronic version I A Including R, G, B component values I AR ,I AG ,I AB , the B printer electronic version I B Including R, G, B component values I BR ,I BG ,I BB .
3. The color tracking method for color printer calibration according to claim 2, characterized in that: In step S2, the original image electronic version I0 is printed by printer B to obtain the B printer electronic version I B The process is a first-order correction process, and the algorithm is expressed as formula (1): I0×k xB +b xB =I B (1) Among them, k xB , b xB is the correction coefficient of the printer B.
4. The color tracking method for color printer calibration according to claim 3, characterized in that: In step S3, printer A is used as the color tracking target, and the original electronic version I0 is converted into the color tracking image I ′ 0, perform a first-order correction process on printer B, and the algorithm is expressed as formula (2): I0 ′ ×k xB +b xB =I A (2) Where I0 ′ This is the electronic version of the original image modified based on printer A.
5. The color tracking method for color printer calibration according to claim 3, characterized in that: In the step S3, the color tracking image I ′ The algorithm of 0 is expressed as formula (3): I0×k X0 +b x0 =I0 ′ (3) Among them, k x0 and b x0 I0 to I0 ′ The original image conversion coefficient includes the three component coefficients of R, G, and B, where x is r, g, and b.
6. The color tracking method for color printer calibration according to claim 4, characterized in that: In step S3, the correction coefficient of printer B and the electronic version I of printer A are A The R, G, B component values of and the R, G, B component values of the original electronic version I0 are used as input, and formula (3) is substituted into formula (2) to obtain formula (4): (I0×k xB )×k x0 +k xB ×b x0 =I A -b xB (4) The k of the three components is obtained by fitting the three components R, G, and B at the center of the color block. x0 , b x0 , that is, k xr , k xg , k xb , b xr , b xg , b xb .
7. The color tracking method for color printer calibration according to claim 5, characterized in that: In step S4, the original electronic version I0 is corrected to the corrected image I ′ B The algorithm is expressed as formula (5): I0×k x0 +b x0 =I ′ B (5) 8. A color tracking system for color printer calibration, characterized in that: include: Extract component value module, extract original image electronic version I0, A printer electronic version I A and B Printer Electronic Version I B The R, G, and B component values of the center position of each color block; Obtain the correction coefficient module and print the electronic version of B B The R, G, and B component values of the printer B are taken as input, and a correction coefficient of the printer B is obtained by performing a first-order correction on the printer B; The module for obtaining the original image conversion coefficient converts the correction coefficient of the printer B and the electronic version I of the printer A into A The R, G, B component values of the original image electronic version I0 and the R, G, B component values of the original image electronic version I0 are used as input, and the printer A is used as the color tracking target to convert the original image electronic version I0 into the color tracking image I ′ 0, and then the original image conversion coefficient is obtained by performing a first-order correction on printer B; The module for obtaining the modified image takes the original image conversion coefficient as input and modifies the original image electronic version I0 into the modified image I ′ B , and then use the printer B to print the correction image I ′ B .
9. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the color tracking method for color printer calibration according to any one of claims 1 to 7 are implemented.
10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the computer program is executed by a processor, the steps of the color tracking method for color printer calibration according to any one of claims 1 to 7 are implemented.
