Method and device for optimizing light and dark color matching curve, equipment and storage medium
Patent Information
- Application Number
- CN202210089639.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-25
- Publication Date
- 2026-09-04
- Estimated Expiration
- 2042-01-25
AI Technical Summary
[0004]有鉴于此,本发明实施例提供了深浅色配比曲线优化方法、装置、设备及存储介质,用以解决现有技术中打印图像颗粒感强、细腻不足的问题
[0046]The present invention provides a method, apparatus, device, and storage medium for optimizing the light and dark color ratio curve. This method involves creating a preset light and dark color ratio curve, then optimizing and adjusting the preset curve using color data corresponding to the dark channel, light channel, and/or light-light channel to obtain a first light and dark color ratio curve. Finally, ink output from the dark channel, light channel, and/or light-light channel is controlled according to the first light and dark color ratio curve. This method automatically adjusts the light and dark color ratio curve using color data, eliminating the need for repeated manual adjustments and optimizations, thus achieving a superior light and dark color ratio curve. By controlling the printing of images with mixed inks according to the first light and dark color ratio curve, the graininess of the printed image can be reduced and the fineness improved, while also ensuring a more uniform transition from light to dark colors, thereby improving the quality of the printed image.
Smart Images

Figure CN116540954B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of inkjet printing technology, and in particular to a method, apparatus, device, and storage medium for optimizing the ratio curve of light and dark colors. Background Technology
[0002] Ink used for industrial inkjet printing comes in four colors: C (cyan), M (magenta), Y (yellow), and K (black). Based on the depth of color, inks can be further divided into dark inks (e.g., K on the ink bottle indicates dark black ink, and C indicates dark cyan ink), light inks (e.g., LK on the ink bottle indicates light black ink, and LC indicates light cyan ink), and very light inks (LLK on the ink bottle indicates very light black ink, and LLC indicates very light cyan ink).
[0003] In inkjet printing, the same color can be printed using dark ink, light ink, and very light ink separately. If dark ink is used, the dot density is low, resulting in a grainy print. If light ink is used, the dot density increases, reducing graininess and producing a smoother print. Using even lighter inks, such as very light inks, yields an even higher dot density, resulting in a smoother and more refined print. However, light inks, due to their pale color, may not achieve the required density when printing dark images, thus failing to accurately represent the darker areas. Conversely, using only dark ink results in insufficient detail. Therefore, controlling the use of dark, light, and very light inks in image printing to reduce graininess and improve detail while meeting density requirements is a technical problem that needs to be solved in this field. Summary of the Invention
[0004] In view of this, embodiments of the present invention provide a method, apparatus, device and storage medium for optimizing the ratio of light and dark colors, in order to solve the problem of strong graininess and insufficient fineness in printed images in the prior art.
[0005] In a first aspect, embodiments of the present invention provide a method for optimizing the ratio of light and dark colors, the method comprising:
[0006] Obtain a preset light and dark color ratio curve, wherein the preset light and dark color ratio curve includes a dark color ratio curve, and at least one of a light color ratio curve and a light-light color ratio curve.
[0007] Obtain the color data corresponding to the dark channel, light channel and / or light-light channel, and record them as dark color data, light color data and / or light-light color data respectively, wherein the dark channel, the light channel and the light-light channel are used to spray dark ink, light ink and light-light ink respectively;
[0008] The first dark-light color ratio curve is obtained by adjusting the preset dark-light color ratio curve according to the dark color data, the light color data and / or the very light color data.
[0009] The ink output of the dark channel, the light channel, and / or the light-light channel is controlled according to the first light-dark color ratio curve.
[0010] Preferably, the step of obtaining a preset light and dark color ratio curve includes a dark color ratio curve, and at least one of a light color ratio curve and a very light color ratio curve includes:
[0011] Set the starting point, highest point, and ending point of the dark color ratio curve, the starting point, highest point, and ending point of the light color ratio curve, and / or the starting point, highest point, and ending point of the very light color ratio curve.
[0012] The dark color ratio curve is obtained based on the starting point, the highest point, and the ending point of the dark color ratio curve.
[0013] The light-color mixing curve is obtained based on the starting point, the highest point, and the ending point of the light-color mixing curve; and / or
[0014] The light color ratio curve is obtained based on the starting point, the highest point, and the ending point of the light color ratio curve.
[0015] According to the dark color ratio curve, the light color ratio curve and at least one of the light-light color ratio curves constitute the preset dark-light color ratio curve.
[0016] Preferably, acquiring the color data corresponding to the dark channel, light channel, and / or very light channel, respectively denoted as dark color data, light color data, and / or very light color data, includes:
[0017] Print preset color block images using the dark channel, the light channel, and / or the light-light channel respectively, to obtain dark color block images, light color block images, and / or light-light color block images;
[0018] Collect color data from the dark color block image, the light color block image, and / or the very light color block image respectively, and obtain the dark color data, the light color data, and / or the very light color data.
[0019] Preferably, the step of adjusting the preset light-dark color ratio curve according to the dark color data, the light color data, and / or the very light color data to obtain the first light-dark color ratio curve includes:
[0020] The first curve, the second curve, and / or the third curve are obtained based on the dark color data, the light color data, and / or the very light color data, respectively.
[0021] Adjust the dark color ratio curve in the preset light and dark color ratio curve according to the first curve;
[0022] Adjust the light color ratio curve in the preset light and dark color ratio curve according to the second curve; and / or
[0023] Adjust the light color ratio curve in the preset light color ratio curve according to the third curve;
[0024] The first dark-light color ratio curve is obtained based on the adjusted dark color ratio curve, the adjusted light color ratio curve, and / or the adjusted very light color ratio curve.
[0025] Preferably, after adjusting the preset light-dark color ratio curve according to the dark color data, the light color data, and / or the very light color data to obtain the first light-dark color ratio curve, the method further includes:
[0026] Based on the first light and dark color matching curve, print a preset color block image to obtain the first color block image;
[0027] Collect the color data of the first color block image and record it as the first color data;
[0028] Adjust the first light and dark color ratio curve based on the first color data.
[0029] Preferably, adjusting the first light and dark color ratio curve according to the first color data includes:
[0030] The fourth curve is obtained based on the first color data;
[0031] Adjust the dark color ratio curve in the first light and dark color ratio curve according to the fourth curve;
[0032] Adjust the light-shading ratio curve in the first light-shading ratio curve according to the fourth curve; and / or
[0033] Adjust the light color ratio curve in the first light color ratio curve according to the fourth curve.
[0034] Preferably, adjusting the first light and dark color ratio curve according to the first color data includes:
[0035] Adjust the dark color ratio curve in the first light and dark color ratio curve according to the first color data;
[0036] Adjust the light-shading ratio curve in the first light-shading ratio curve according to the second curve; and / or
[0037] Adjust the light color ratio curve in the first light color ratio curve according to the third curve.
[0038] Secondly, embodiments of the present invention provide a device for optimizing the ratio of light and dark colors, the device comprising:
[0039] A preset light and dark color ratio curve acquisition module is used to acquire a preset light and dark color ratio curve, wherein the preset light and dark color ratio curve includes a dark color ratio curve, and at least one of a light color ratio curve and a light-light color ratio curve.
[0040] The color data acquisition module is used to acquire color data corresponding to the dark channel, light channel and / or light-light channel, which are respectively denoted as dark color data, light color data and / or light-light color data, wherein the dark channel, the light channel and the light-light channel are respectively used to spray dark ink, light ink and light-light ink;
[0041] The optimization module is used to adjust the preset dark-light color ratio curve according to the dark color data, the light color data and / or the very light color data to obtain the first dark-light color ratio curve;
[0042] The printing module is used to control the ink output of the dark channel, the light channel and / or the light-light channel according to the first light-dark color ratio curve.
[0043] Thirdly, embodiments of the present invention provide a printing device, 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 described above.
[0044] Fourthly, embodiments of the present invention provide a storage medium storing computer program instructions, which, when executed by a processor, implement the method of the first aspect described above.
[0045] In summary, the beneficial effects of the present invention are as follows:
[0046] The present invention provides a method, apparatus, device, and storage medium for optimizing the light and dark color ratio curve. This method involves creating a preset light and dark color ratio curve, then optimizing and adjusting the preset curve using color data corresponding to the dark channel, light channel, and / or light-light channel to obtain a first light and dark color ratio curve. Finally, ink output from the dark channel, light channel, and / or light-light channel is controlled according to the first light and dark color ratio curve. This method automatically adjusts the light and dark color ratio curve using color data, eliminating the need for repeated manual adjustments and optimizations, thus achieving a superior light and dark color ratio curve. By controlling the printing of images with mixed inks according to the first light and dark color ratio curve, the graininess of the printed image can be reduced and the fineness improved, while also ensuring a more uniform transition from light to dark colors, thereby improving the quality of the printed image. Attached Figure Description
[0047] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the embodiments of the present invention will be briefly introduced below. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort, and these are all within the protection scope of the present invention.
[0048] Figure 1a This is a schematic diagram of the preset light and dark color matching curve in an embodiment of the present invention.
[0049] Figure 1b This is a schematic diagram of the preset light and dark color matching curve in an embodiment of the present invention.
[0050] Figure 2 This is another schematic diagram of the preset light and dark color matching curve in an embodiment of the present invention.
[0051] Figure 3 A schematic diagram of key points such as the starting point and the highest point of the dark color ratio curve in an embodiment of the present invention.
[0052] Figure 4 This is a flowchart illustrating the method for optimizing the light and dark color matching curve according to an embodiment of the present invention.
[0053] Figure 5 This is a schematic diagram of a preset color block diagram according to an embodiment of the present invention.
[0054] Figure 6 This is a schematic diagram of a mixed color block diagram according to an embodiment of the present invention.
[0055] Figure 7 These are schematic diagrams of dark color block diagrams, light color block diagrams, and very light color block diagrams according to embodiments of the present invention.
[0056] Figure 8 This is a schematic diagram of the structure of the light and dark color matching curve optimization device according to an embodiment of the present invention.
[0057] Figure 9 This is a schematic diagram of the printing device according to an embodiment of the present invention. Detailed Implementation
[0058] The features and exemplary embodiments of various aspects of the present invention will now be described in detail. To make the objectives, technical solutions, and advantages of the present invention clearer, 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 only configured to explain the present invention and are not configured to limit the present invention. For those skilled in the art, the present invention can 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 invention.
[0059] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising..." does not exclude the presence of additional identical elements in the process, method, article, or apparatus that includes said element.
[0060] Example 1
[0061] This invention provides a method for optimizing the light and dark color ratio curve. This method is applicable to inkjet printing equipment, including reciprocating scanning inkjet printing equipment and single-pass inkjet printing equipment. The inkjet printing equipment includes at least a printhead, a control board, and an ink cartridge. The control board controls the printhead to eject ink from the ink cartridge onto the printing medium to form a printed image.
[0062] To achieve a more delicate and smooth tone in printed images, a mixture of dark, light, and very light inks can be used. The key is controlling the ink ejection of these three types during printing. One proposed method is to create a preset light-dark ink ratio curve (also known as a theoretical light-dark ink ratio curve) to control the printhead's ink concentration at which it ejects dark, light, and / or very light inks. This preset light-dark ink ratio curve is an ink ejection control curve created based on the types of inks used in the printer. If using dark, light, and very light inks, a corresponding preset light-dark ink ratio curve needs to be created, including curves for dark, light, and very light inks. If only dark and light inks are used, then a preset light-dark ink ratio curve needs to be created, including curves for both dark and light inks. If only dark and light inks are used, then a preset dark and light ink ratio curve needs to be created, including both dark and light ink ratio curves. For example, such as... Figure 1a , 1b and Figure 2 The preset light and dark color mixing curve shown represents the ink density of the printer on the horizontal axis and the ink density of the output on the vertical axis. For example... Figure 1a The preset light and dark color mixing curves shown only include light and dark color mixing curves, indicating that only dark and light inks are used together during printing. According to the preset light and dark color mixing curves in Figure 1, when the ink concentration supplied to the printer is 0%, the printer is controlled to eject (output) ink with a concentration of 0%. When the ink concentration supplied to the printer is less than 25%, the printer is controlled to eject (output) light ink according to the light color mixing curve, and the ink concentration is determined according to the light color mixing curve. For example, when the input ink concentration is 10%, the output is light ink with a concentration of 14%. When the ink concentration supplied to the printer is greater than or equal to 25%, the printer is controlled to mix and print (output) light and dark inks according to the light color mixing curve. The output light ink concentration is determined by the light color mixing curve, and the output dark ink concentration is determined by the dark color mixing curve. For example, when the input ink concentration is 60%, the output light ink concentration is 15%, and the output dark ink concentration is 55%.
[0063] Similarly, such as Figure 1b The preset light and dark color mixing curves shown include both light and dark color mixing curves. This indicates that only dark and light inks are used together during printing, according to... Figure 1bAccording to the preset light-dark color mixing curve, when the ink concentration supplied to the printer is 0%, the printer will eject (output) ink with a concentration of 0%. When the ink concentration supplied to the printer is less than 25%, the printer will eject (output) light ink according to the light-dark color mixing curve, and the ink concentration will be determined based on the light-dark color mixing curve. For example, when the input ink concentration is 10%, the output will be light-dark ink with a concentration of 18%. When the ink concentration supplied to the printer is greater than or equal to 25%, the printer will mix light and dark inks according to the light-dark color mixing curve. The concentration of the output light-dark ink will be determined by the light-dark color mixing curve, and the concentration of the output dark ink will be determined by the dark ink mixing curve. For example, when the input ink concentration is 60%, the output light-dark ink concentration will be 12%, and the output dark ink concentration will be 58%.
[0064] Similarly, such as Figure 2 The preset light and dark color mixing curves shown include a light-to-light color mixing curve, a light color mixing curve, and a dark color mixing curve, indicating the use of light-to-light, dark-to-light, and light-to-dark inks during printing, according to... Figure 2 According to the preset light and dark color mixing curves, when the ink concentration supplied to the printer is 0%, the printer will eject (output) ink with a concentration of 0%. When the ink concentration supplied to the printer is less than 25%, the printer will eject (output) light ink according to the light color mixing curve, and the ink concentration will be determined based on the light color mixing curve. When the ink concentration supplied to the printer is greater than or equal to 25% and less than 40%, the printer will mix and eject (output) light ink and very light ink. The concentration of the output very light ink is determined by the very light color mixing curve, and the concentration of the output light ink is determined by the very light color mixing curve. When the ink concentration supplied to the printer is greater than or equal to 40%, all three types of ink will be mixed and ejected. The concentration of the output very light ink is determined by the very light color mixing curve, and the concentration of the output dark ink is determined by the very dark color mixing curve.
[0065] The above-mentioned method for creating the preset light and dark color mixing curves is as follows: Based on the actual production conditions such as printer status and ink batches, set the following key coordinate points (or key parameters): dark color mixing curve start point, dark color mixing curve highest point, dark color mixing curve end point, light color mixing curve start point, light color mixing curve highest point, light color mixing curve end point, light-light color mixing curve start point, light-light color mixing curve highest point, and light-light color mixing curve end point. Here, the dark color mixing curve start point refers to the coordinate point in the dark color mixing curve that represents the beginning of dark ink output; the dark color mixing curve highest point is the point with the largest ordinate value in the dark color mixing curve; and the dark color mixing curve end point is the coordinate point corresponding to an input ink concentration of 100%, representing the output ink concentration corresponding to a dark color mixing curve when the input ink concentration is 100%. The starting point of the light-colored mixing curve refers to the coordinate point on the light-colored mixing curve that represents the beginning of light-colored ink output. The ending point of the light-colored mixing curve refers to the coordinate point on the light-colored mixing curve that represents the end of light-colored ink output. The highest point of the light-colored mixing curve is the point on the light-colored mixing curve with the largest ordinate value. Similarly, the starting point of the very light-colored mixing curve refers to the coordinate point on the very light-colored mixing curve that represents the beginning of light-colored ink output. The ending point of the very light-colored mixing curve is the coordinate point on the very light-colored mixing curve that represents the end of light-colored ink output. The highest point of the very light-colored mixing curve is the point on the very light-colored mixing curve with the largest ordinate value.
[0066] For example, such as Figure 3As shown, point C (40%, 0%) is set as the starting point of the dark color proportion curve, and point E (100%, 100%) is set as the highest point and also the ending point of the dark color proportion curve. Data processing (including but not limited to fitting, interpolation, and smoothing) is performed on points C and E to obtain the dark color proportion curve. In other embodiments, more points can be set for fitting the dark color proportion curve. The more points set, the more accurate the fitted dark color proportion curve, and the more precise the control of ink density output by the printer. Similarly, point F (25%, 0%) is set as the starting point of the light color proportion curve, point G (60%, 25%) as the highest point, and point H (100%, 0%) as the ending point. Fitting (e.g., cubic spline fitting) is performed on points F, G, and H to obtain the light color proportion curve. Point A (0%, 0%) is set as the starting point of the light color proportion curve, point B (25%, 25%) as the highest point of the light color, and point D (65%, 0%) as the ending point of the light color proportion curve. Data processing (including but not limited to fitting, interpolation, and smoothing) is performed on points A, B, and D to obtain the light color proportion curve. This results in a preset light-dark color proportion curve that includes the dark color proportion curve, the light color proportion curve, and the light-dark color proportion curve. However, to obtain a better proportioning effect, multiple adjustments (such as adjusting the above key point parameters) are needed to obtain a relatively optimal preset light-dark color proportion curve. This method requires high manual intervention and is time-consuming and labor-intensive. In other embodiments, before obtaining the preset light-dark color proportion curve, the optimal value range of each key point parameter can be determined based on historical printing data, thereby optimizing the key point parameters to obtain a better preset light-dark color proportion curve. For example, based on historical printing data, it can be seen that when the maximum ink concentration of light-colored ink is between 17% and 27%, adding light-colored ink at this time can ensure that the image printing is both delicate and meets the requirements of image printing density. Therefore, the highest point of the light-colored ink ratio curve can be set between 17% and 27%, and the starting point of the light-colored ink ratio curve can be set within the range of the horizontal axis corresponding to the vertical axis of the light-colored ink ratio curve between 17% and 27%. Similarly, the value ranges of key points such as the highest point of the light-colored ink ratio curve and the starting point of the dark-colored ink ratio curve can be obtained. Based on the corresponding value ranges of each key point, it is possible to quickly determine and ensure that the key points obtained are all optimal points. Thus, based on these key points, an optimal preset light-dark ink ratio curve can be obtained.
[0067] This invention provides a method for optimizing the light and dark color matching curve. This method utilizes color data and automatically adjusts the light and dark color matching curve, eliminating the need for repeated manual adjustments and achieving a better result. Please refer to [link to previous text]. Figure 4 The method for optimizing the light and dark color ratio curve includes the following steps:
[0068] S1: Obtain a preset light and dark color ratio curve, wherein the preset light and dark color ratio curve includes a dark color ratio curve, and at least one of a light color ratio curve and a light-light color ratio curve.
[0069] S2: Obtain the color data corresponding to the dark channel, light channel and / or light-light channel, and record them as dark color data, light color data and / or light-light color data respectively, wherein the dark channel, the light channel and the light-light channel are used to spray dark ink, light ink and light-light ink respectively;
[0070] S3: Adjust the preset dark-light color ratio curve according to the dark color data, the light color data and / or the very light color data to obtain the first dark-light color ratio curve;
[0071] S4: Control the ink output of the dark channel, the light channel and / or the light channel according to the first dark-light color ratio curve.
[0072] Specifically, the method for creating preset light and dark color ratio curves is as described above. It involves fitting the curves to several key parameters: the starting point, highest point, and ending point of the dark color ratio curve; the starting point, highest point, and ending point of the light color ratio curve; and the starting point, highest point, and ending point of the very light color ratio curve. In practical applications, similar to creating individual linearization curves for each of the four CMYK color channels, preset light and dark color ratio curves are created for each of the four CMYK color inks. When adjusting the preset light and dark color ratio curves for different colors, the corresponding color data for each color is used. For example, when adjusting the light and dark color ratio curve for black ink, the color data corresponding to the black channel is used. This is because each color channel includes three single channels: a dark channel, a light channel, and a very light channel. The color data corresponding to these three single channels are respectively called dark color data, light color data, and very light color data.
[0073] Preferably, acquiring the color data corresponding to the dark channel, light channel, and / or very light channel, respectively denoted as dark color data, light color data, and / or very light color data, includes:
[0074] Print preset color block images using the dark channel, the light channel, and / or the light-light channel respectively, to obtain dark color block images, light color block images, and / or light-light color block images;
[0075] Collect color data from the dark color block image, the light color block image, and / or the very light color block image respectively, and obtain the dark color data, the light color data, and / or the very light color data.
[0076] like Figure 5 As shown, the preset color block diagram includes several color blocks with different ink volumes. For example, the preset color block diagram includes 21 color blocks with different ink volumes, arranged in ascending order of ink volume. Assuming the printer's minimum ink output is 0 and the maximum is 100, then the ink volume interval between each color block in the preset color block diagram is 5, and the ink output of each color block is sequentially 0, 5, 10, 15, ..., 100. It is worth noting that the minimum and maximum ink output values in the preset color block diagram are not necessarily 0 and 100; they can be determined based on the actual printing situation. The ink volume interval between each color block and the number of color blocks can also be set according to the actual application and are not limited here. Figure 5 The preset color swatch shown is a single-color channel color swatch. In practical applications, the printer's ink output channels include four color channels: CMYK. Each color channel corresponds to a linearization curve. However, when the printer uses LC, LM, LY, LK and LLC, LLM, LLY, LLK (light and very light shades) inks in addition to the four CMYK inks for mixed printing, then printing this preset color swatch using all channels will result in the following: Figure 6 The image shown is a mixed color block diagram.
[0077] In one embodiment, a preset color swatch image is printed using the dark channel, light channel, and very light channel of each color channel to obtain, for example... Figure 7 The image shows dark, light, and very light color patches. Color data (including spectral data, XYZ tristimulus values, Lab values, etc.) for each patch was acquired using a spectrophotometer.
[0078] After acquiring the color data corresponding to each single channel, the dark color ratio curve, light color ratio curve, and / or very light color ratio curve are adjusted accordingly based on this color data. Preferably, the step of adjusting the preset dark-light color ratio curve to obtain the first dark-light color ratio curve based on the dark color data, the light color data, and / or the very light color data includes:
[0079] The first curve, the second curve, and / or the third curve are obtained based on the dark color data, the light color data, and / or the very light color data, respectively.
[0080] Adjust the dark color ratio curve in the first light and dark color ratio curve according to the first curve;
[0081] Adjust the light-shading ratio curve in the first light-shading ratio curve according to the second curve; and / or
[0082] According to the third adjustment, the light color ratio curve in the first light color ratio curve is adjusted accordingly;
[0083] The first dark-light color ratio curve is obtained based on the adjusted dark color ratio curve, the adjusted light color ratio curve, and / or the adjusted very light color ratio curve.
[0084] In one embodiment, suppose there are N color blocks in the dark color block image, where N is a natural number greater than or equal to 1. The Lab value corresponding to each color block image is obtained, where the ink volume value and Lab value corresponding to each color block in the dark color block image are denoted as (K1, Lab1), (K2, Lab2), ..., (K... N Lab N In the light-colored swatch image, the ink volume value and Lab value corresponding to each swatch are denoted as (LK1, L-Lab1), (LK2, L-Lab2), ..., (LK...). N L-Lab N In the light-colored patch diagram, the ink volume value and Lab value corresponding to each patch are denoted as (LLK1, LL-Lab1), (LLK2, LL-Lab2), ..., (LLK...). N LL-Lab N ), using Lab1~Lab N The first curve is obtained by interpolating the L values or the color difference values of each Lab value; using L-Lab1 to L-Lab N The second curve is obtained by interpolating the L values or the color difference values of each Lab value; using LL-Lab1 to LL-Lab N The third curve is obtained by interpolating the L value or the color difference value of each Lab value.
[0085] The adjustment of the dark color ratio curve in the preset light-dark color ratio curve using the first curve is as follows: Keep the X value in the dark color ratio curve constant, and adjust the Y value in the dark color ratio curve accordingly based on the Y value corresponding to the X value in the first curve, thus obtaining the adjusted dark color ratio curve. Similarly, the adjustment of the light color ratio curve in the preset light-dark color ratio curve using the second curve is as follows: Keep the X value in the light color ratio curve constant, and adjust the Y value in the light color ratio curve accordingly based on the Y value corresponding to the X value in the first curve, thus obtaining the adjusted light color ratio curve. The adjusted light-light color ratio curve is obtained similarly. At this point, all three curves in the preset light-dark color ratio curve have been adjusted, and the adjusted dark color ratio curve, light color ratio curve, and light-light color ratio curve constitute the first light-dark color ratio curve.
[0086] In some embodiments, after adjusting the preset light-dark color ratio curve according to the dark color data, the light color data, and the very light color data to obtain the first light-dark color ratio curve, the method further includes:
[0087] Print the preset color block image according to the first light and dark color ratio curve to obtain the first color block image;
[0088] Collect the color data of the first color block image and record it as the first color data;
[0089] Adjust the first light and dark color ratio curve based on the first color data.
[0090] Based on the first light and dark color mixing curve, the printer is controlled to mix and spray dark ink, light ink, and very light ink to print a preset color block image, thus obtaining the first color block image. The color data of the color blocks in the first color block image is collected and recorded as the first color data.
[0091] In some embodiments, adjusting the first light and dark color ratio curve using the first color data includes:
[0092] The fourth curve is obtained based on the first color data;
[0093] Adjust the dark color ratio curve in the first light and dark color ratio curve according to the fourth curve;
[0094] Adjust the light-shading ratio curve in the first light-shading ratio curve according to the fourth curve; and / or
[0095] Adjust the light color ratio curve in the first light color ratio curve according to the fourth curve.
[0096] The fourth curve is obtained by interpolation using the first color data. Then, the dark color ratio curve, light color ratio curve, and light-light color ratio curve in the first light-dark color ratio curve are adjusted according to the fourth curve. Specifically, adjusting the dark color ratio curve based on the fourth curve involves keeping the Y value in the dark color ratio curve constant and adjusting the X value in the dark color ratio curve accordingly based on the X value corresponding to the Y value in the fourth curve; similarly, the light color ratio curve and light-light color ratio curve are adjusted. The adjusted first light-dark color ratio curve is recorded as the second light-dark color ratio curve. During printing, the ink output of the dark, light, and light color channels is controlled according to the second light-dark color ratio curve.
[0097] The obtained second light-dark color ratio curve is obtained by adjusting the color data (first color data) obtained by mixing ink from the dark channel, light channel, and light-light channel. The purpose is to perform a monotonous smoothing optimization on the dark, light, and light-light color ratio curves in the first light-dark color ratio curve. Finally, by controlling the mixing ink from the dark channel, light channel, and light-light channel to print the image according to the second light-dark color ratio curve, the effect of mixed ink printing can be better. That is, it can reduce the graininess of the printed image and improve the fineness, while making the transition of color from light to dark more uniform, thereby improving the quality of printed image.
[0098] In other embodiments, the second light-dark color matching curve can be obtained by combining the fourth curve and the first curve, and the second curve and the third curve, to adjust the first light-dark color matching curve. Specifically, this includes the following steps:
[0099] Adjust the dark color ratio curve in the first light and dark color ratio curve according to the first color data;
[0100] Adjust the light-shading ratio curve in the first light-shading ratio curve according to the second curve; and / or
[0101] Adjust the light color ratio curve in the first light color ratio curve according to the third curve.
[0102] The fourth curve is obtained by interpolation using the first color data. At this point, only the dark color ratio curve in the first light-dark color ratio curve is adjusted using the fourth curve. The light color ratio curve in the first light-dark color ratio curve is adjusted using the second curve, and the light color curve in the first light-dark color ratio curve is adjusted using the third curve, resulting in the second light-dark color ratio curve. During printing, the ink output of the dark, light, and light color channels is controlled according to the second light-dark color ratio curve. The specific adjustment method is the same as the adjustment method described in the above embodiments, and will not be repeated here.
[0103] The obtained second light-dark color ratio curve is obtained by adjusting the color data (first color data) obtained by mixing ink from the dark channel, light channel, and / or light-light channel. The purpose is to perform a monotonically smoothing optimization on the dark color ratio curve in the first light-dark color ratio curve, and at the same time, use the second curve and / or the third curve to perform monotonically smoothing on the light color ratio curve and the light-light color ratio curve respectively. Finally, according to the second light-dark color ratio curve, the ink mixing of the dark channel, light channel, and / or light-light channel is controlled to print the image, which can make the effect of mixed ink printing better, that is, reduce the graininess of the printed image and improve the fineness, while making the transition of color from light to dark more uniform, thereby improving the quality of printed image.
[0104] In summary, the method for optimizing the light and dark color ratio curve provided in this embodiment of the invention involves creating a preset light and dark color ratio curve, then optimizing and adjusting the preset light and dark color ratio curve using color data corresponding to the dark channel, light channel, and / or light and dark channel to obtain a first light and dark color ratio curve. Finally, ink output from the dark channel, the light channel, and / or the light and dark channel is controlled according to the first light and dark color ratio curve. This method automatically adjusts the light and dark color ratio curve using color data, eliminating the need for repeated manual adjustments and optimizations, thus obtaining a more effective light and dark color ratio curve. By controlling the printing of images with mixed inks according to the first light and dark color ratio curve, the graininess of the printed image can be reduced and the fineness improved, while the transition from light to dark colors is more uniform, thereby improving the quality of the printed image.
[0105] Example 2
[0106] Please see Figure 8 This invention provides a device 200 for optimizing the ratio of light and dark colors, the device 200 comprising:
[0107] The preset light and dark color ratio curve acquisition module 201 is used to acquire a preset light and dark color ratio curve, wherein the preset light and dark color ratio curve includes a dark color ratio curve, and at least one of a light color ratio curve and a light-light color ratio curve.
[0108] The color data acquisition module 202 is used to acquire color data corresponding to the dark channel, light channel and / or light-light channel, which are respectively denoted as dark color data, light color data and / or light-light color data, wherein the dark channel, the light channel and the light-light channel are respectively used to spray dark ink, light ink and light-light ink;
[0109] Optimization module 203 is used to adjust the preset dark-light color ratio curve according to the dark color data, the light color data and / or the very light color data to obtain a first dark-light color ratio curve;
[0110] The printing module 204 is used to control the ink output of the dark channel, the light channel and / or the light-light channel according to the first dark-light color ratio curve.
[0111] Preferably, the preset light and dark color matching curve acquisition module 201 includes:
[0112] The setting unit is used to set the starting point, the highest point, and the ending point of the dark color ratio curve, the starting point, the highest point, and the ending point of the light color ratio curve, and / or the starting point, the highest point, and the ending point of the very light color ratio curve.
[0113] A dark color ratio curve acquisition unit is used to acquire the dark color ratio curve based on the starting point of the dark color ratio curve, the highest point of the dark color ratio curve, and the ending point of the dark color ratio curve;
[0114] A light-color mixing curve acquisition unit is used to acquire the light-color mixing curve based on the starting point, the highest point, and the ending point of the light-color mixing curve; and / or
[0115] A light color mixing ratio curve acquisition unit is used to acquire the light color mixing ratio curve based on the starting point, the highest point, and the ending point of the light color mixing ratio curve.
[0116] The component unit is used to form the preset dark-light color ratio curve based on at least one of the dark color ratio curve, the light color ratio curve, and the light-light color ratio curve.
[0117] Preferably, the color data acquisition module 202 includes:
[0118] Color block image printing is used to print preset color block images using the dark channel, the light channel and / or the light light channel respectively, to obtain dark color block images, light color block images and / or light light color block images;
[0119] The acquisition unit is used to acquire color data of the dark color block image, the light color block image, and / or the very light color block image respectively, and to obtain the dark color data, the light color data, and / or the very light color data.
[0120] Preferably, the optimization module 203 includes:
[0121] The curve acquisition unit is used to acquire a first curve, a second curve, and / or a third curve based on the dark color data, the light color data, and / or the very light color data, respectively.
[0122] The first adjustment unit is used to adjust the dark color ratio curve in the preset light and dark color ratio curve according to the first curve.
[0123] The second adjustment unit is used to adjust the light color ratio curve in the preset light and dark color ratio curve according to the second curve; and / or
[0124] The third adjustment unit is used to adjust the light color ratio curve in the preset light color ratio curve according to the third curve.
[0125] The first dark-light color ratio curve acquisition unit is used to acquire the first dark-light color ratio curve based on the adjusted dark color ratio curve, the adjusted light color ratio curve and / or the adjusted light-light color ratio curve.
[0126] Preferably, the device 200 further includes:
[0127] The first color block image acquisition module is used to obtain the first color block image by printing a preset color block image according to the first light and dark color matching curve.
[0128] The first color data acquisition module is used to collect the color data of the first color block image, which is denoted as the first color data.
[0129] The adjustment module is used to adjust the first light and dark color ratio curve according to the first color data.
[0130] Preferably, the adjustment module includes:
[0131] The third curve acquisition unit is used to acquire the fourth curve based on the first color data;
[0132] The fourth adjustment unit is used to adjust the dark color ratio curve in the first light and dark color ratio curve according to the fourth curve;
[0133] The fifth adjustment unit is used to adjust the light color ratio curve in the first light-dark color ratio curve according to the fourth curve; and / or
[0134] The sixth adjustment unit is used to adjust the light color ratio curve in the first light color ratio curve according to the fourth curve.
[0135] Preferably, the adjustment module includes:
[0136] The seventh adjustment unit is used to adjust the dark color ratio curve in the first light and dark color ratio curve according to the first color data;
[0137] The eighth adjustment unit is used to adjust the light color ratio curve in the first light-dark color ratio curve according to the second curve; and / or
[0138] The ninth adjustment unit is used to adjust the light color ratio curve in the first light color ratio curve according to the third curve.
[0139] In summary, the light and dark color ratio curve optimization device provided in this embodiment of the invention creates a preset light and dark color ratio curve, then optimizes and adjusts the preset light and dark color ratio curve using color data corresponding to the dark channel, light channel, and / or light and dark channel to obtain a first light and dark color ratio curve. Finally, it controls the ink output of the dark channel, the light channel, and / or the light and dark channel according to the first light and dark color ratio curve. This method automatically adjusts the light and dark color ratio curve using color data, eliminating the need for repeated manual adjustments and optimizations, and thus obtaining a better light and dark color ratio curve. By controlling the mixed ink printing image according to the first light and dark color ratio curve, it can reduce the graininess of the printed image and improve its fineness, while also making the transition from light to dark colors more uniform, thereby improving the quality of the printed image.
[0140] Example 3
[0141] In addition, the method for optimizing the light and dark color ratio curve in this embodiment of the invention can be implemented by a printing device. Figure 9 A schematic diagram of the hardware structure of the printing device provided in an embodiment of the present invention is shown.
[0142] The printing device may include a processor 301 and a memory 302 storing computer program instructions.
[0143] Specifically, the processor 301 may include a central processing unit (CPU), an application specific integrated circuit (ASIC), or one or more integrated circuits that can be configured to implement the embodiments of the present invention.
[0144] Memory 302 may include mass storage for data or instructions. For example, and not limitingly, memory 302 may include a hard disk drive (HDD), floppy disk drive, flash memory, optical disk, magneto-optical disk, magnetic tape, or Universal Serial Bus (USB) drive, or a combination of two or more of these. Where appropriate, memory 302 may include removable or non-removable (or fixed) media. Where appropriate, memory 302 may be internal or external to a data processing device. In a particular embodiment, memory 302 is a non-volatile solid-state memory. In a particular embodiment, memory 302 includes read-only memory (ROM). Where appropriate, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (EEPROM), an electrically rewritable ROM (EAROM), or flash memory, or a combination of two or more of these.
[0145] The processor 301 reads and executes computer program instructions stored in the memory 302 to implement any of the light and dark color matching curve optimization methods in the above embodiments.
[0146] In one example, the printing device may also include a communication interface 303 and a bus 310. For example, Figure 9 As shown, the processor 301, memory 302, and communication interface 303 are connected through bus 310 and complete communication with each other.
[0147] The communication interface 303 is mainly used to realize communication between various modules, devices, units and / or equipment in the embodiments of the present invention.
[0148] Bus 310 includes hardware, software, or both, that couples components of a printing device together. For example, and not as a limitation, bus 310 may include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), HyperTransport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an Infinite Bandwidth Interconnect, a Low Pin Count (LPC) bus, a memory bus, a Microchannel 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 buses, or combinations of two or more of these. Where appropriate, bus 310 may include one or more buses. While specific buses are described and illustrated in embodiments of the invention, the invention contemplates any suitable bus or interconnect.
[0149] Example 4
[0150] Furthermore, in conjunction with the light and dark color matching curve optimization method in the above embodiments, this invention can be implemented using a computer-readable storage medium. This computer-readable storage medium stores computer program instructions; when these computer program instructions are executed by the processor 301, they implement any of the light and dark color matching curve optimization methods in the above embodiments.
[0151] In summary, the method, apparatus, device, and storage medium for optimizing the light and dark color ratio curve provided in this invention create a preset light and dark color ratio curve, then optimize and adjust the preset light and dark color ratio curve using color data corresponding to the dark channel, light channel, and / or light and dark channel to obtain a first light and dark color ratio curve. Finally, ink output from the dark channel, the light channel, and / or the light and dark channel is controlled according to the first light and dark color ratio curve. This method automatically adjusts the light and dark color ratio curve using color data, eliminating the need for repeated manual adjustments and optimizations, and thus obtaining a more effective light and dark color ratio curve. By controlling the printing of images with mixed inks according to the first light and dark color ratio curve, the graininess of the printed image can be reduced and the fineness improved, while the transition from light to dark colors is more uniform, thereby improving the quality of the printed image.
[0152] It should be clarified that the present invention is not limited to the specific configurations and processes described above and shown in the figures. For the sake of brevity, detailed descriptions of known methods are omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present invention is not limited to the specific steps described and shown. Those skilled in the art can make various changes, modifications, and additions, or change the order of steps, after understanding the spirit of the present invention.
[0153] The functional blocks shown in the above-described structural diagram can be implemented as hardware, software, firmware, or a combination thereof. When implemented in hardware, they can be, for example, electronic circuits, application-specific integrated circuits (ASICs), appropriate firmware, plug-ins, function cards, etc. When implemented in software, the elements of this invention are programs or code segments used to perform the required tasks. The programs or code segments can be stored on a machine-readable medium or transmitted over a transmission medium or communication link via data signals carried in a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, fiber optic media, radio frequency (RF) links, etc. Code segments can be downloaded via computer networks such as the Internet, intranets, etc.
[0154] It should also be noted that the exemplary embodiments mentioned in this invention describe methods or systems based on a series of steps or apparatus. However, this invention is not limited to the order of the steps described above; that is, the steps can be performed in the order mentioned in the embodiments, or in a different order, or several steps can be performed simultaneously.
[0155] The above description is merely a specific embodiment of the present invention. Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, modules, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here. It should be understood that the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in the present invention, and these modifications or substitutions should all be covered within the protection scope of the present invention.
Claims
1. A method for optimizing the ratio of light and dark colors, characterized in that, The method includes: Obtain a preset light and dark color ratio curve, wherein the preset light and dark color ratio curve includes a dark color ratio curve, and at least one of a light color ratio curve and a light-light color ratio curve. Obtain the color data corresponding to the dark channel, light channel and / or light-light channel, and record them as dark color data, light color data and / or light-light color data respectively, wherein the dark channel, the light channel and the light-light channel are used to spray dark ink, light ink and light-light ink respectively; The first dark-light color ratio curve is obtained by adjusting the preset dark-light color ratio curve according to the dark color data, the light color data and / or the very light color data. The ink output of the dark channel, the light channel, and / or the light-light channel is controlled according to the first dark-light color ratio curve; The step of adjusting the preset light-dark color ratio curve according to the dark color data, the light color data, and / or the very light color data to obtain the first light-dark color ratio curve includes: The first curve, the second curve, and / or the third curve are obtained based on the dark color data, the light color data, and / or the very light color data, respectively. Adjust the dark color ratio curve in the preset light and dark color ratio curve according to the first curve; Adjust the light color ratio curve in the preset light and dark color ratio curve according to the second curve; and / or Adjust the light color ratio curve in the preset light color ratio curve according to the third curve; The first dark-light color ratio curve is obtained based on the adjusted dark color ratio curve, the adjusted light color ratio curve, and / or the adjusted light-light color ratio curve. After adjusting the preset light-dark color ratio curve according to the dark color data, the light color data, and / or the very light color data to obtain the first light-dark color ratio curve, the method further includes: Based on the first light and dark color matching curve, print a preset color block image to obtain the first color block image; Collect the color data of the first color block image and record it as the first color data; Adjust the first light and dark color matching curve according to the first color data; The fourth curve is obtained by interpolation using the first color data. At this time, only the dark color ratio curve in the first light-dark color ratio curve is adjusted using the fourth curve. The light color ratio curve in the first light-dark color ratio curve is adjusted using the second curve, and the light color ratio curve in the first light-dark color ratio curve is adjusted using the third curve, to obtain the second light-dark color ratio curve. During printing, the ink output of the dark channel, light channel, and light color channel is controlled according to the second light-dark color ratio curve.
2. The method for optimizing the light and dark color ratio curve according to claim 1, characterized in that, The step of obtaining a preset light and dark color ratio curve, wherein the preset light and dark color ratio curve includes a dark color ratio curve, and at least one of the light color ratio curve and the light-to-light color ratio curve includes: Set the starting point, highest point, and ending point of the dark color ratio curve, the starting point, highest point, and ending point of the light color ratio curve, and / or the starting point, highest point, and ending point of the very light color ratio curve. The dark color ratio curve is obtained based on the starting point, the highest point, and the ending point of the dark color ratio curve. The light-color mixing curve is obtained based on the starting point, the highest point, and the ending point of the light-color mixing curve; and / or The light color ratio curve is obtained based on the starting point, the highest point, and the ending point of the light color ratio curve. According to the dark color ratio curve, the light color ratio curve and at least one of the light-light color ratio curves constitute the preset dark-light color ratio curve.
3. The method for optimizing the light and dark color ratio curve according to claim 1, characterized in that, Obtain the color data corresponding to the dark channel, light channel, and / or very light channel, denoted as dark color data, light color data, and / or very light color data respectively. Print preset color block images using the dark channel, the light channel, and / or the light-light channel respectively, to obtain dark color block images, light color block images, and / or light-light color block images; Collect color data from the dark color block image, the light color block image, and / or the very light color block image respectively, and obtain the dark color data, the light color data, and / or the very light color data.
4. The method for optimizing the light and dark color ratio curve according to claim 1, characterized in that, The step of adjusting the first light and dark color ratio curve according to the first color data includes: The fourth curve is obtained based on the first color data; Adjust the dark color ratio curve in the first light and dark color ratio curve according to the fourth curve; Adjust the light-shading ratio curve in the first light-shading ratio curve according to the fourth curve; and / or Adjust the light color ratio curve in the first light color ratio curve according to the fourth curve.
5. The method for optimizing the light and dark color matching curve according to claim 1, characterized in that, The step of adjusting the first light and dark color ratio curve according to the first color data includes: Adjust the dark color ratio curve in the first light and dark color ratio curve according to the first color data; Adjust the light-shading ratio curve in the first light-shading ratio curve according to the second curve; and / or Adjust the light color ratio curve in the first light color ratio curve according to the third curve.
6. A device for optimizing the ratio of light and dark colors, characterized in that, The apparatus for implementing the method for optimizing the light and dark color ratio curve as described in any one of claims 1 to 5 includes: A preset light and dark color ratio curve acquisition module is used to acquire a preset light and dark color ratio curve, wherein the preset light and dark color ratio curve includes a dark color ratio curve, and at least one of a light color ratio curve and a light-light color ratio curve. The color data acquisition module is used to acquire color data corresponding to the dark channel, light channel and / or light-light channel, which are respectively denoted as dark color data, light color data and / or light-light color data, wherein the dark channel, the light channel and the light-light channel are respectively used to spray dark ink, light ink and light-light ink; The optimization module is used to adjust the preset dark-light color ratio curve according to the dark color data, the light color data and / or the very light color data to obtain the first dark-light color ratio curve; The printing module is used to control the ink output of the dark channel, the light channel and / or the light-light channel according to the first light-dark color ratio curve.
7. A printing device, characterized in that, include: 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 described in any one of claims 1-5.
8. A storage medium storing computer program instructions thereon, characterized in that, When the computer program instructions are executed by a processor, the method as described in any one of claims 1-5 is implemented.
Citation Information
Patent Citations
Gray balance adjusting method and device and computer readable storage medium
CN112073594A