Color matching method and device, terminal and computer readable storage medium
By presetting the target chromaticity information and color-to-color component attribute information, the formulation data is optimized to match the target chromaticity, and the color difference problem of structural color products is solved, improving production efficiency and product quality.
Patent Information
- Application Number
- CN202311630385.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-30
- Publication Date
- 2025-05-30
AI Technical Summary
During the large-scale mass production process, due to fluctuations in the environment, equipment and process, there is a color difference between different batches of structural color products, resulting in slow speed and low efficiency of obtaining the products corresponding to the target color.
By presetting the target chromaticity information, target chromaticity value and attribute information of each color tone component, multiple formula data and their mixed chromaticity information are determined, and based on the deviation between the color difference value and the target chromaticity value, the target formula data corresponding to the target chromaticity information is obtained.
It achieves products that quickly and accurately obtain target colors, improves efficiency, and maximizes the total mass of the product, making it easier to color adjustment in large batches of products.
Smart Images

Figure CN120072122A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of optical pigments, and particularly to a color mixing method, device, terminal, and computer-readable storage medium. Background Art
[0002] Structural color is achieved by changing the microscopic interface structure to cause light to undergo reflection, refraction, interference, etc. on the interface. Different gloss and color effects can be seen from different angles. It has the characteristics of high brightness, high saturation, different colors with the viewing angle, never fading, environmental protection, etc., and has broad application scenarios. During large-scale mass production, due to fluctuations in the environment, equipment, and process, there will inevitably be color differences between products of different batches. How to quickly and accurately obtain products corresponding to the target color and improve efficiency is an urgent problem to be solved currently. Summary of the Invention
[0003] The main technical problem to be solved by the present invention is to provide a color mixing method, device, terminal, and computer-readable storage medium to solve the problems of slow speed and low efficiency in obtaining products corresponding to the target color.
[0004] To solve the above technical problem, the first technical solution adopted by the present invention is: to provide a color mixing method, the color mixing method includes: presetting target chromaticity information, obtaining the target color difference value, and the attribute information of each color mixing component; the attribute information of the color mixing component includes the total mass of each color mixing component and the chromaticity information of each color mixing component; based on the target chromaticity information and the attribute information of each color mixing component, determining a plurality of formulation data and the mixed chromaticity information of each formulation data; the formulation data includes the proportion of each color mixing component in the total mass of each color mixing component; based on the color difference value between each mixed chromaticity information and the target chromaticity information and the target color difference value, determining the target formulation data corresponding to the target chromaticity information.
[0005] Among them, based on the color difference value between each mixed chromaticity information and the target chromaticity information and the target color difference value, determining the target formulation data corresponding to the target chromaticity information includes: based on the color difference value between each mixed chromaticity information and the target chromaticity information and the target color difference value, determining the deviation value corresponding to each mixed chromaticity information; in response to the deviation value corresponding to the formulation data being less than the preset difference value, taking the formulation data corresponding to the deviation value as the target formulation data corresponding to the target chromaticity information.
[0006] Among them, the color mixing method further includes: obtaining a multi-objective optimization function by combining the attribute information of each color mixing component, and the multi-objective optimization function simultaneously satisfies the minimum color difference optimization criterion and the maximum total mass optimization criterion; determining the target formula data corresponding to the target chromaticity information based on the color difference between each mixed chromaticity information and the target chromaticity information and the target color difference, including: optimizing and searching each formula data based on the multi-objective optimization function to obtain the target formula data corresponding to the target chromaticity information, and the deviation between the color difference corresponding to the target formula data and the target color difference is the smallest and the total mass of the product corresponding to the target formula data is the largest.
[0007] Among them, the multi-objective optimization function includes a first viewing angle color difference minimum objective function and a first viewing angle mass maximum objective function. The first viewing angle color difference minimum objective function is the minimum value between zero and the deviation value between the color difference ΔE between the mixed chromaticity information and the target chromaticity information and the target color difference E 1 ; the first viewing angle mass maximum objective function is the product of the function parameter and the total weight of the product corresponding to the target chromaticity information.
[0008] Among them, the multi-objective optimization function further includes a second viewing angle color difference minimum objective function and a second viewing angle mass maximum objective function. The total mass of the color mixing components in the second viewing angle mass maximum objective function is equal to the total mass of the color mixing components in the first viewing angle mass maximum objective function, and the function parameter in the second viewing angle mass maximum objective function is different from the function parameter in the first viewing angle mass maximum objective function.
[0009] Among them, the function parameter is determined based on the order of magnitude of the total weight of all color mixing components.
[0010] Among them, the mixed chromaticity information includes the color Lab value; based on the target chromaticity information and the attribute information of each color mixing component, determining multiple formula data and the mixed chromaticity information of each formula data, including: based on the target chromaticity information, obtaining multiple formula data by mixing each color mixing component in different proportions; adding the product of the proportion of the mass of each color mixing component in the formula data to the total mass of each color mixing component and the spectral data in the chromaticity information of the color mixing component to obtain the mixed color spectral data of the formula data; converting the mixed color spectral data of the formula data to obtain the color Lab value of the formula data.
[0011] To solve the above technical problems, the second technical solution adopted by the present invention is: to provide a color mixing device, which includes: a preset module for presetting target chromaticity information, target color difference value, and attribute information of each color mixing component; the attribute information of the color mixing component includes the total mass of the color mixing component and the chromaticity information of the color mixing component; a processing module for determining a plurality of formula data and the mixed chromaticity information of each formula data based on the target chromaticity information and the attribute information of each color mixing component; the formula data includes the proportion of the mass of each color mixing component in the total mass of each color mixing component; an optimization module for determining the target formula data corresponding to the target chromaticity information based on the color difference value between each mixed chromaticity information and the target chromaticity information and the target color difference value; a mixing module for mixing materials based on the target formula data to obtain a product corresponding to the target chromaticity information.
[0012] To solve the above technical problems, the third technical solution adopted by the present invention is: to provide a terminal, which includes a memory, a processor, and a computer program stored in the memory and running on the processor, and the processor is used to execute the program data to implement the steps in the color mixing method as described above.
[0013] To solve the above technical problems, the fourth technical solution adopted by the present invention is: to provide a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, it implements the steps in the color mixing method as described above.
[0014] The beneficial effects of the present invention are: different from the prior art, a color mixing method, device, terminal, and computer-readable storage medium are provided. The color mixing method includes: presetting target chromaticity information, target color difference value, and attribute information of each color mixing component; the attribute information of the color mixing component includes the total mass of each color mixing component and the chromaticity information of the color mixing component; determining a plurality of formula data and the mixed chromaticity information of each formula data based on the target chromaticity information and the attribute information of each color mixing component; the formula data includes the proportion of the mass of each color mixing component in the total mass of each color mixing component; determining the target formula data corresponding to the target chromaticity information based on the color difference value between each mixed chromaticity information and the target chromaticity information and the target color difference value, and the total mass of the product corresponding to the target formula data is the largest. The color mixing method provided by this application determines a plurality of formula data and the mixed chromaticity information of each formula data based on the target chromaticity information and the attribute information of each color mixing component, determines the color difference value through the mixed chromaticity information and the target chromaticity information, makes the color difference value close to the target color difference value, and then determines the target formula data corresponding to the target chromaticity information. While improving the accuracy of the target formula data corresponding to the target chromaticity information, it can also take into account the maximization of the total mass of the product corresponding to the target chromaticity information, which is convenient for large-scale product color mixing and improves efficiency. Description of the Drawings
[0015] To more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the accompanying drawings required for the description of the embodiments. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other accompanying drawings can be obtained based on these drawings.
[0016] Figure 1 is a schematic flowchart of the color adjustment method provided by the present invention;
[0017] Figure 2 is Figure 1 another schematic flowchart of step S30 in
[0018] Figure 3 is a comparison chart of the color spectrum data of the product and the target color spectrum data;
[0019] Figure 4(a) is a comparison chart of the color spectrum data of the product and the target color spectrum data from the front view;
[0020] Figure 4(b) is a comparison chart of the color spectrum data of the product and the target color spectrum data from the side view;
[0021] Figure 5 is a schematic framework diagram of an embodiment of the color adjustment device provided by the present invention;
[0022] Figure 6 is a schematic framework diagram of an embodiment of the terminal provided by the present invention;
[0023] Figure 7 is a schematic framework diagram of an embodiment of the computer-readable storage medium provided by the present invention. Detailed implementation manners
[0024] The following details the solutions of the embodiments of the present application in conjunction with the accompanying drawings of the specification.
[0025] In the following description, for the purpose of illustration rather than limitation, specific details such as specific system architectures, interfaces, and technologies are presented to thoroughly understand the present application.
[0026] In this article, the term "and / or" only describes the associated relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist simultaneously, and B exists alone. In addition, the character " / " in this article generally represents an "or" relationship between the associated objects before and after. In addition, "multiple" in this article means two or more than two.
[0027] To enable those skilled in the art to better understand the technical solutions of the present invention, the following further details a color adjustment method provided by the present invention in conjunction with the accompanying drawings and specific implementation manners.
[0028] At present, it is extremely important to mix different batches of color - adjusting components in appropriate proportions and control them to reach a specified color - difference range compared with the target chromaticity information to ensure the stable and controllable quality of the final product. In addition, the color - adjusting components of one color can be mixed and adjusted with those of another color or several other colors in a certain proportion to achieve a completely new color, expand the color library, and improve the development efficiency. Whether it is for the mixed control of color difference of multi - batch products or for modulating a completely new color using several existing color - adjusting components, almost all adopt the method of manual color adjustment. The formula is adjusted through multiple experiments to obtain the formula proportion that meets the color - difference requirements or target chromaticity information. The manual color - adjustment method is time - consuming, inefficient, and highly dependent on experience. Especially for a large number of batches or difficult - to - formulate colors, it is very difficult to quickly obtain accurate results. At the same time, due to the property of structural color that it has different colors at different viewing angles, during the process of color formulation, not only the color difference when viewed from the front needs to be controlled, but also the color difference at one or more viewing angles from the side needs to be controlled, which makes the manual formulation method more difficult and less efficient.
[0029] Please refer to Figure 1 , Figure 1 which is a schematic flow chart of the color - adjusting method provided by the present invention.
[0030] In this embodiment, a color - adjusting method is provided. The method embodiments provided in the embodiments of the present application can be executed on a mobile terminal, a computer terminal, or a similar computing device. The color - adjusting method includes the following steps.
[0031] S10: Obtain the target chromaticity information, the target color - difference value, and the attribute information of each color - adjusting component.
[0032] Specifically, the target chromaticity information includes the target color Lab value, and may also include the target color spectral data. The attribute information of the color - adjusting component includes the total mass of each color - adjusting component and the chromaticity information of the color - adjusting component. Each color - adjusting component is associated with a corresponding production batch and identification information. The identification information includes the name of the color - adjusting component. Among them, the chromaticity information of the color - adjusting component includes spectral data and / or color Lab value.
[0033] In one embodiment, when performing color adjustment under a single viewing angle, the target color - difference value can be set according to the actual situation. For example, the target color - difference value can be no more than 1.5, 1.25, 1.0, 0.75, 0.5, or 0.25, etc.
[0034] In one embodiment, when performing color adjustment under multiple viewing angles, a corresponding target color - difference value needs to be set for each viewing angle. The target color - difference values of each viewing angle can be the same or different, and are specifically set according to the actual situation.
[0035] In one embodiment, the calculation method of color difference can also be preset. There are three calculation methods of color difference, namely CIE1976 color difference formula, CIE1994 color difference formula, and CIEDE2000 color difference formula. In this embodiment, the calculation method of color difference is not limited.
[0036] S20: Based on the target chromaticity information and the attribute information of each color mixing component, determine a plurality of formula data and the mixed chromaticity information of each formula data.
[0037] The mixed chromaticity information of the formula data includes the color Lab value corresponding to the formula data and / or the mixed color spectrum data corresponding to the formula data.
[0038] Specifically, based on the target chromaticity information, a plurality of formula data are obtained by mixing each color mixing component according to different ratios; based on the principle of spectral addition, the sum of the products of the proportion of the mass of each color mixing component in the formula data to the total mass of each color mixing component and the spectral data in the chromaticity information of the color mixing component is calculated to obtain the mixed color spectrum data of the formula data; the mixed color spectrum data of the formula data is converted to obtain the color Lab value of the formula data.
[0039] In a specific embodiment, the product of the proportion of each color mixing component in the formula data and the spectral data of the corresponding color mixing component is calculated to obtain the updated spectrum of each color mixing component, and then the updated spectra of each color mixing component are mixed and superimposed to obtain the mixed color spectrum data of the formula data. Finally, the mixed color spectrum data is converted into the color Lab value corresponding to the formula data.
[0040] S30: Based on the color difference value between each mixed chromaticity information and the target chromaticity information and the target color difference value, determine the target formula data corresponding to the target chromaticity information.
[0041] Specifically, based on the color difference value between each mixed chromaticity information and the target chromaticity information and the target color difference value, determine the deviation value corresponding to each mixed chromaticity information; in response to the deviation value corresponding to each mixed chromaticity information being less than the preset difference value, the formula data corresponding to the deviation value is used as the target formula data corresponding to the target chromaticity information.
[0042] In a specific embodiment, using the preset calculation method of color difference, based on the color Lab value of each formula data and the target color Lab value, determine the color difference value corresponding to each formula data. Select the formula data corresponding to the color difference value with the smallest deviation from the target color difference value as the target formula data corresponding to the target chromaticity information.
[0043] In a specific embodiment, a color difference calculation method is used to calculate the color difference between the color Lab value of a formulation data and the target color Lab value, and the deviation value between the calculated color difference value and the target color difference value is obtained. In response to the deviation value between the color difference value and the target color difference value being greater than a preset difference value, the formulation data is mutated, crossed, and selected to obtain updated formulation data, and the deviation value is recalculated. Mutation is to update the proportion of each color mixing component in the formulation data. Crossing is to compare the proportion of each updated color mixing component with the original proportion dimension by dimension. In response to the proportion of each color mixing component being better after mutation, the proportion of each color mixing component after mutation is used to replace the original proportion. Selection is to use the proportion of each color mixing component after mutation and crossing as another formulation data. In response to the deviation value between the color difference value and the target color difference value being less than the preset difference value, the formulation data corresponding to the deviation value is used as the target formulation data corresponding to the target chromaticity information. In this embodiment, the value range of the preset deviation value can be 0.001 to 0.1.
[0044] S40: Mix materials based on the target formulation data to obtain a product corresponding to the target chromaticity information.
[0045] The color mixing method provided in this embodiment includes: obtaining target chromaticity information, a target color difference value, and the attribute information of each color mixing component; the attribute information of the color mixing component includes the total mass of each color mixing component and the chromaticity information of the color mixing component; based on the target chromaticity information and the attribute information of each color mixing component, multiple formulation data and the mixed chromaticity information of each formulation data are determined; the formulation data includes the proportion of the mass of each color mixing component in the total mass of each color mixing component; based on the color difference value between the mixed chromaticity information and the target chromaticity information and the target color difference value, the target formulation data corresponding to the target chromaticity information is determined; mix materials based on the target formulation data to obtain a product corresponding to the target chromaticity information. The color mixing method provided in this application determines multiple formulation data and the mixed chromaticity information of each formulation data based on the target chromaticity information and the attribute information of each color mixing component, determines the color difference value through the mixed chromaticity information and the target chromaticity information, makes the color difference value close to the target color difference value, and then determines the target formulation data corresponding to the target chromaticity information, which can improve the accuracy of the target formulation data corresponding to the target chromaticity information while taking into account the maximization of the total mass of the product corresponding to the target chromaticity information, facilitating the color mixing of large batches of products and improving efficiency.
[0046] Please refer to Figure 2 , Figure 2 is Figure 1 Another process schematic diagram of step S30 in
[0047] S31: Combine the attribute information of each color mixing component to obtain a multi-objective optimization function.
[0048] S32: An optimization algorithm is adopted to optimize and search each formulation data based on a multi-objective optimization function, and the target formulation data corresponding to the target chromaticity information is obtained.
[0049] Specifically, the multi-objective optimization function should simultaneously satisfy the minimum color difference optimization criterion and the maximum total quality optimization criterion. In this article, a differential evolution algorithm is specifically used to mutate, crossover, and select each formulation data, and the updated formulation data is obtained through optimized search. Mutation is to update the proportion of each colorant component in the formulation data. Crossover is to compare the proportion of the updated colorant component with the original proportion dimension by dimension. In response to the proportion of each colorant component after mutation being better, the proportion of each colorant component after mutation is used to replace the original proportion. Selection is to use the proportion of each colorant component after mutation and crossover as another formulation data. If the deviation value between the color difference value obtained through optimized search and the target color difference value is less than the preset difference value, the formulation data corresponding to the deviation value is used as the target formulation data corresponding to the target chromaticity information.
[0050] In this embodiment, the number of cores for parallel optimization of the computer processor needs to be set in advance. The maximum number of optimization times of the multi-objective optimization function needs to be set in advance. For example, it can be 1000 times.
[0051] In one embodiment, the multi-objective optimization function includes a first minimum viewing angle color difference objective function and a first maximum viewing angle quality objective function. The first minimum viewing angle color difference objective function is the minimum value between zero and the deviation value between the color difference ΔE between the zero-sum mixed chromaticity information and the target chromaticity information and the target color difference value E 1 ; The first maximum viewing angle quality objective function is the product of the function parameter and the total weight of the product corresponding to the target chromaticity information.
[0052] g = min(0, ΔE - E 1 ) - αW (Formula 1)
[0053] In the formula: g represents the value of the dual-objective function, min(0, ΔE - E 1 ) represents the first minimum viewing angle color difference objective function, αW represents the first maximum viewing angle quality objective function, ΔE represents the color difference between the mixed chromaticity information and the target chromaticity information, E 1 represents the target color difference value, α represents the function parameter, and W represents the total mass of the product.
[0054] In a specific embodiment, the function parameter is determined based on the order of magnitude of the total weight of all colorant components. α needs to be set in advance to balance the relationship between the color difference ΔE between the mixed chromaticity information and the target chromaticity information and the total mass W of the product. Specifically, the setting range of α is (0.05 divided by the order of magnitude of the total mass of all colorant components) to (5.0 divided by the order of magnitude of the total mass of all colorant components). In actual use, we need to try different α values multiple times to find the best formulation.
[0055] Optimize the formulation data based on a multi-objective optimization function. In response to the deviation value between the color difference value between the mixed chromaticity information and the target chromaticity information and the target color difference value being less than a preset difference value, and / or the number of optimization times of the multi-objective optimization function exceeding the maximum number of optimization times, determine to use the formulation data corresponding to the mixed chromaticity information as the target formulation data corresponding to the target chromaticity information. The preset difference value can be 0.001, 0.005, 0.01, etc.
[0056] In response to the obtained target formulation data not satisfying the minimum color difference optimization criterion and the maximum total mass optimization criterion, adjust α, and then optimize the formulation data through the multi-objective optimization function until the obtained target formulation data satisfies the minimum color difference optimization criterion and the maximum total mass optimization criterion. In response to a smaller α, the multi-objective optimization function emphasizes optimizing the color difference value ΔE between the mixed chromaticity information and the target chromaticity information to make the color difference value ΔE lower; in response to a larger α, the multi-objective optimization function emphasizes optimizing the total mass W of the product to make the total mass W larger.
[0057] In one embodiment, preset the target color difference value not exceeding 1.5, the target color space Lab value as (41.26, 3.53, -5.61), α is set to 0.001, the calculation method of the color difference is set to CIE1976, the number of cores for parallel optimization is 3, the maximum number of optimization times is 200, the number of color matching formulations found simultaneously is 16, the preset difference value is 0.001, the calculation file name is IR1, where the file IR1 contains the names, total masses, and spectral data of each color matching component. The names include the production batch and identification. The processor running the color matching method in this embodiment is Intel(R) Core(TM) i5-8250U CPU@1.60GHz 1.80GHz, the memory RAM is 8.00GB, and the number of cores is 4.
[0058] Optimize the formulation data through a two-objective optimization function, and obtain that the color difference value ΔE between the mixed chromaticity information and the target chromaticity information is 1.50, and the total mass of the product corresponding to the target formulation data accounts for 88% of the total mass of all color matching components, and the result satisfies the requirements of the minimum color difference optimization criterion and the maximum total mass optimization criterion. The names, masses, and target formulation data of each specific color matching component are shown in Table 1.
[0059] Table 1
[0060]
[0061]
[0062] Among them, the name refers to the name of each color - mixing component, the initial mass refers to the total mass of each color - mixing component, and the mixing mass refers to the mass of each color - mixing component in the target formula data.
[0063] Please refer to Figure 3 , Figure 3 which is a comparison chart of the color spectral data of the product and the target color spectral data.
[0064] As Figure 3 shown, the color spectral data of the product and the target color spectral data are obtained from the target formula data. The color Lab value of the product can be converted according to the color spectral data of the product.
[0065] In another specific embodiment, it is also possible to balance the color difference values under multiple perspectives and the total mass of the product, so that the color difference values under each perspective are minimized and the total mass of the product is maximized.
[0066] The following embodiments are described in detail by taking two perspectives, the front view and the side view, as examples.
[0067] The multi - objective optimization function includes the first front - view color - difference minimum objective function, the first front - view mass maximum objective function, the second side - view color - difference minimum objective function, and the second side - view mass maximum objective function. The total mass of the color - mixing components in the first front - view mass maximum objective function is equal to the total mass of the color - mixing components in the second side - view mass maximum objective function, and the function parameters in the first front - view mass maximum objective function are different from the function parameters in the second side - view mass maximum objective function.
[0068] Specifically, two observation perspectives, the front view and the side view, are added, and multiple optimization objectives are set, that is, the front - view color - difference ΔE 1 , the side - view color - difference ΔE 2 and the total mass W. By adjusting the function parameter α 1 under the front view and the function parameter α 2 under the side view, based on the multi - objective optimization function, multiple optimization objectives, the front - view color - difference ΔE 1 , the side - view color - difference ΔE 2 and the maximum total mass W are optimized to obtain the target formula data that simultaneously satisfies the minimum front - view color - difference ΔE 1 , the side - view color - difference ΔE 2 and the maximum total mass W.
[0069] In one embodiment, the function parameter setting range in the maximum first perspective quality objective function is (0.05 divided by the order of magnitude of the total mass of all colorant components) to (5.0 divided by the order of magnitude of the total mass of all colorant components), and the function parameter setting range in the maximum second perspective quality objective function is (0.1 divided by the order of magnitude of the total mass of all colorant components) to (10.0 divided by the order of magnitude of the total mass of all colorant components). For example, α in the maximum first perspective quality objective function 1 is set to 0.001, 0.002, 0.003, 0.004, 0.005, 0.006, etc., and α in the maximum second perspective quality objective function 2 is set to 0.08, 0.09, 0.10, 0.11, 0.12, 0.13, etc.
[0070] In response to the target formulation data obtained by optimization not meeting the minimum color difference optimization criterion and the maximum total mass optimization criterion, adjust α in the front view 1 and α in the side view 2 , and then optimize the formulation data through the multi-objective optimization function until the obtained target formulation data meets the minimum color difference optimization criterion and the maximum total mass optimization criterion.
[0071] In this specific embodiment, two observation perspectives of the front view and the side view (25° to the left) are realized. In this embodiment, the parameter information is first set as follows: the target color difference value in the front view does not exceed 1.0, the target color Lab value in the front view is (69.61, -1.34, 2.84), α corresponding to the front view is set to 0.005, the color difference value in the side view does not exceed 2.5, the target color Lab in the side view is (89.86, -8.6, 2.15), α corresponding to the side view is set to 0.1, the calculation method of the color difference is set to CIE1976, the number of cores for parallel optimization is 3, the maximum number of optimization times is 1000, the number of color formulation to be searched simultaneously is 16, the preset difference is 0.001, the calculation file name is WB1, and the file WB1 contains the names, total masses, and spectral data of each colorant component. The names include the production batch and identification. The processor running the color formulation method in this embodiment is Intel(R) Core(TM) i5-8250U CPU@1.60GHz 1.80GHz, the memory RAM is 8.00GB, and the number of cores is 4.
[0072] Optimize the formulation data through the bi-objective optimization function to obtain a front view color difference ΔE 1 of 0.94 and a side view color difference ΔE 2 of 2.5. The total mass of the product corresponding to the target formulation data accounts for 90% of the total mass of all colorant components, and the result meets the requirements of the minimum color difference optimization criterion and the maximum total mass optimization criterion. The specific names, masses, and target formulation data of each colorant component are shown in Table 2.
[0073] Table 2
[0074] Name Initial mass (g) Blended mass (g) Toning component 1 52.5 52.5 Toning component 2 42 42 Toning component 3 41.8 41.6 Toning component 4 41.3 41 Toning component 5 40.85 40.8 Toning component 6 40 40 Toning component 7 28.2 0.2
[0075] Among them, the name refers to the name of each color mixing component, the initial mass refers to the total mass of each color mixing component, and the mixing mass refers to the mass used for each color mixing component in the target formulation data.
[0076] Please refer to FIGS. 4(a) and 4(b). FIG. 4(a) is a comparison diagram of the color spectral data of the product and the target color spectral data from the front view angle; FIG. 4(b) is a comparison diagram of the color spectral data of the product and the target color spectral data from the side view angle.
[0077] As shown in FIG. 4(a), the color spectral data of the product and the target color spectral data from the front view angle are obtained through the target formulation data; as shown in FIG. 4(b), the color spectral data of the product and the target color spectral data from the side view angle are obtained through the target formulation data. The color Lab value of the product can be obtained by converting the color spectral data of the product.
[0078] In this application, after obtaining the target formulation data corresponding to the target chromaticity information, a multi-objective optimization function is used to precisely control the deviation value between the color difference value between the mixed chromaticity information and the target chromaticity information and the target color difference value. At the same time, meeting the minimum color difference optimization criterion and the maximum total mass optimization criterion can quickly and accurately obtain the target formulation data corresponding to the target chromaticity information, take into account the total mass of the product corresponding to the target chromaticity information, facilitate the color mixing of large batches of products, and improve the color mixing efficiency.
[0079] Please refer to Figure 5 , Figure 5 is a schematic framework diagram of an embodiment of the color mixing device provided by the present invention. In this embodiment, a color mixing device 60 is provided. The color mixing device 60 includes a preset module 61, a processing module 62, an optimization module 63, and a mixing module 64.
[0080] The preset module 61 is used to preset the target chromaticity information, the target color difference value, and the attribute information of each color mixing component; the attribute information of the color mixing component includes the total mass of each color mixing component and the chromaticity information of the color mixing component.
[0081] Among them, the target chromaticity information includes the target color Lab value and the color difference calculation method; among them, the chromaticity information of the color mixing component includes the name, weight, and spectral data; currently, there are 3 kinds of color difference calculation methods, namely the CIE1976 color difference formula, the CIE1994 color difference formula, and the CIEDE2000 color difference formula. The color difference calculation method is not limited in this embodiment.
[0082] The processing module 62 is used to determine a plurality of formulation data and the mixed chromaticity information of each formulation data based on the target chromaticity information and the attribute information of each color mixing component; the formulation data includes the proportion of each color mixing component in the total mass of the corresponding color mixing component.
[0083] Among them, based on the target chromaticity information, a plurality of formulation data are obtained by taking each color mixing component according to different proportions; the sum of the products of the proportion of the mass of each color mixing component in the formulation data in the total mass of the color mixing component and the spectral data in the chromaticity information of the color mixing component is used to obtain the mixed color spectral data of the formulation data; the mixed color spectral data of the formulation data is converted to obtain the color Lab value of the formulation data.
[0084] Among them, first, based on the product of the proportion of each color mixing component in the formulation data and the spectral data in the chromaticity information of the color mixing component, the toner spectrum of each color mixing component is obtained, then based on the mixing and superposition of the toner spectra of each color mixing component, the mixed color spectrum of the formulation data is obtained, and finally, based on the mixed color spectral data, the color Lab value corresponding to the mixed color spectral data, that is, the color Lab value of the formulation data, is calculated.
[0085] The optimization module 63 is used to determine the target formulation data corresponding to the target chromaticity information based on the color difference between each mixed chromaticity information and the target chromaticity information and the target color difference.
[0086] Among them, based on the color difference between each mixed chromaticity information and the target chromaticity information and the target color difference, the deviation value corresponding to each mixed chromaticity information is determined; in response to the deviation value corresponding to the formulation data being less than the preset difference, the formulation data corresponding to the deviation value is used as the target formulation data corresponding to the target chromaticity information.
[0087] Among them, based on the mixed color spectral data, its corresponding color Lab value and the target color Lab value in the target chromaticity information are calculated. According to the color difference calculation method, the color difference between each mixed chromaticity information and the target chromaticity information is calculated. Based on the color difference between each mixed chromaticity information and the target chromaticity information and the target color difference, the deviation value between each mixed chromaticity information and the target chromaticity information is determined. The smaller the deviation value, the formulation data corresponding to the deviation value is used as the optimal formulation data corresponding to the target chromaticity information. If the preset difference is set to 0.001, the formulation data with a deviation value less than the preset difference of 0.001 is the target formulation data.
[0088] The mixing module 64 mixes materials based on the target formulation data to obtain the product corresponding to the target chromaticity information.
[0089] The color mixing device provided by this application includes a preset module for presetting target chromaticity information, target color difference value, and attribute information of each color mixing component. The attribute information of the color mixing component includes the total mass of each color mixing component and the chromaticity information of the color mixing component. A processing module is used to determine a plurality of formulation data and the mixed chromaticity information of each formulation data based on the target chromaticity information and the attribute information of each color mixing component. The formulation data includes the proportion of the mass of each color mixing component to the total mass of each color mixing component. An optimization module is used to determine the target formulation data corresponding to the target chromaticity information based on the color difference between each mixed chromaticity information and the target chromaticity information and the target color difference value. The color mixing device provided by this application determines a plurality of formulation data and the mixed chromaticity information of each formulation data based on the target chromaticity information and the attribute information of each color mixing component, determines the deviation value between the color difference value and the target color difference value based on the color difference between the mixed chromaticity information and the target chromaticity information, and optimizes the deviation value, thereby quickly obtaining the optimal formulation data for the target color.
[0090] Please refer to Figure 6 , Figure 6 which is a schematic framework diagram of an embodiment of the terminal provided by the present invention. The terminal 80 includes a memory 81 and a processor 82 that are coupled to each other. The processor 82 is used to execute program instructions stored in the memory 81 to implement the steps of any of the above color mixing method embodiments. In a specific implementation scenario, the terminal 80 may include, but is not limited to, a microcomputer and a server. In addition, the terminal 80 may also include mobile devices such as a laptop computer and a tablet computer, which are not limited herein.
[0091] Specifically, the processor 82 is used to control itself and the memory 81 to implement the steps of any of the above color mixing method embodiments. The processor 82 may also be referred to as a CPU (Central Processing Unit). The processor 82 may be an integrated circuit chip with signal processing capabilities. The processor 82 may also be a general-purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. Additionally, the processor 82 may be implemented jointly by integrated circuit chips.
[0092] Please refer to Figure 7 , Figure 7A schematic framework diagram of an embodiment of the computer-readable storage medium provided by the present invention. The computer-readable storage medium 90 stores program instructions 901 that can be run by a processor, and the program instructions 901 are used to implement the steps of any of the above-described color adjustment method embodiments.
[0093] In some embodiments, the functions or modules included in the device provided by the embodiments of the present disclosure can be used to execute the methods described in the above method embodiments. The specific implementation can refer to the description of the above method embodiments. For the sake of brevity, it will not be repeated here.
[0094] The above descriptions of the various embodiments tend to emphasize the differences between the various embodiments. Their similarities or similarities can be referred to each other. For the sake of brevity, they will not be repeated in this article.
[0095] In several embodiments provided by the present application, it should be understood that the disclosed methods and devices can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of modules or units is only a logical function division. In actual implementation, there may be other division methods. For example, units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed couplings or direct couplings or communication connections to each other can be through some interfaces. The indirect couplings or communication connections of the devices or units can be in electrical, mechanical or other forms.
[0096] In addition, the functional units in the various embodiments of the present application can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit. The above integrated units can be implemented in the form of hardware or in the form of software functional units.
[0097] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to execute all or part of the steps of the methods of the various embodiments of the present application. And the foregoing storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memories (ROMs), random access memories (RAMs), magnetic disks, or optical discs that can store program codes.
[0098] The above are only the embodiments of the present invention, and do not limit the patent protection scope of the present invention accordingly. Any equivalent structure or equivalent process transformation made by using the content of the specification and drawings of the present invention, or directly or indirectly applied in other related technical fields, shall be similarly included in the patent protection scope of the present invention.
Claims
1. A color - matching method, characterized in that, the color - matching method includes: obtaining target chromaticity information, target color difference value, and attribute information of each color - matching component; the attribute information of the color - matching component includes the total mass of each color - matching component and the chromaticity information of the color - matching component; based on the target chromaticity information and the attribute information of each color - matching component, determining a plurality of formulation data and the mixed chromaticity information of each formulation data; the formulation data includes the proportion of each color - matching component in the total mass of the corresponding color - matching component; based on the color difference value between each mixed chromaticity information and the target chromaticity information and the target color difference value, determining the target formulation data corresponding to the target chromaticity information; mixing materials based on the target formulation data to obtain a product corresponding to the target chromaticity information.
2. The color - matching method according to claim 1, characterized in that, the step of determining the target formulation data corresponding to the target chromaticity information based on the color difference value between each mixed chromaticity information and the target chromaticity information and the target color difference value includes: determining the deviation value corresponding to each mixed chromaticity information based on the color difference value between each mixed chromaticity information and the target chromaticity information and the target color difference value; in response to the deviation value corresponding to each mixed chromaticity information being less than a preset difference value, taking the formulation data corresponding to the deviation value as the target formulation data corresponding to the target chromaticity information.
3. The color - matching method according to claim 1, characterized in that, the color - matching method further includes: combining the attribute information of each color - matching component to obtain a multi - objective optimization function, the multi - objective optimization function simultaneously satisfying the minimum color difference optimization criterion and the maximum total mass optimization criterion; the step of determining the target formulation data corresponding to the target chromaticity information based on the color difference value between each mixed chromaticity information and the target chromaticity information and the target color difference value includes: using an optimization algorithm to search for each formulation data based on the multi - objective optimization function to obtain the target formulation data corresponding to the target chromaticity information, the deviation between the color difference value corresponding to the target formulation data and the target color difference value is the smallest and the total mass of the product corresponding to the target formulation data is the largest.
4. The color - matching method according to claim 3, characterized in that, The multi-objective optimization function includes a first minimum visual angle deviation objective function and a first maximum visual angle quality objective function. The first minimum visual angle deviation objective function is the minimum value between zero and the deviation value between the color difference ΔE between the mixed chromaticity information and the target chromaticity information and the target color difference E 1 ; the first - perspective maximum mass objective function is the product of the function parameter and the total weight of the product corresponding to the target chromaticity information.
5. The color - matching method according to claim 4, characterized in that, the multi - objective optimization function further includes a second - perspective minimum color difference objective function and a second - perspective maximum mass objective function, the total mass of the product in the second - perspective maximum mass objective function is equal to the total mass of the product in the first - perspective maximum mass objective function, and the function parameter in the second - perspective maximum mass objective function is different from the function parameter in the first - perspective maximum mass objective function.
6. The color - matching method according to claim 5, characterized in that, the function parameter is determined based on the order of magnitude of the total weight of all color - matching components.
7. The color mixing method according to claim 1, wherein, the mixed chromaticity information includes color Lab values; the determining of a plurality of formulation data and the mixed chromaticity information of each of the formulation data based on the target chromaticity information and the attribute information of each of the color mixing components includes: based on the target chromaticity information, obtaining a plurality of the formulation data by mixing each of the color mixing components in different proportions; summing the product of the proportion of the mass of each of the color mixing components in the formulation data to the total mass of each of the color mixing components and the spectral data in the chromaticity information of each of the color mixing components to obtain the mixed color spectral data of the formulation data; converting the mixed color spectral data of the formulation data to obtain the color Lab value of the formulation data.
8. A color mixing device, wherein, the color mixing device includes: a presetting module configured to preset target chromaticity information, target color difference values, and the attribute information of each of the color mixing components; the attribute information of the color mixing components includes the total mass and chromaticity information of each of the color mixing components; a processing module configured to determine a plurality of formulation data and the mixed chromaticity information of each of the formulation data based on the target chromaticity information and the attribute information of each of the color mixing components; the formulation data includes the proportion of the mass of each of the color mixing components to the total mass of each of the color mixing components; an optimization module configured to determine the target formulation data corresponding to the target chromaticity information based on the color difference between each of the mixed chromaticity information and the target chromaticity information and the target color difference value, and the total mass of the product corresponding to the target formulation data is the largest; a mixing module configured to mix materials based on the target formulation data to obtain the product corresponding to the target chromaticity information.
9. A terminal, wherein, the terminal includes a memory, a processor, and a computer program stored in the memory and running on the processor, and the processor is configured to execute program data to implement the steps in the color mixing method according to any one of claims 1 to 7.
10. A computer-readable storage medium, wherein, a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps in the color mixing method according to any one of claims 1 to 7 are implemented.