Plastic color matching method, system, device and storage medium
Through color difference calculation and pigment proportional allocation, new plastic formulas are quickly generated, solving the problems of inefficiency and dependence on existing formula libraries in the existing technology, and achieving efficient plastic color matching.
Patent Information
- Application Number
- CN202411785015.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-06
- Publication Date
- 2025-04-22
- Estimated Expiration
- 2044-12-06
AI Technical Summary
The existing plastic color matching technology is inefficient, and it is impossible to quickly generate new formulas, and it depends on the existing formula library.
By obtaining the basic plastic color parameters, target color parameters and pigment database parameters, color difference calculation and pigment proportional allocation are used to calculate the amount of raw materials added in the color scheme, and the rapid generation of new formulas is achieved.
The rapid generation of new formulas is achieved, reducing dependence on the existing formula library and improving the efficiency of plastic color matching.
Smart Images

Figure CN119272534B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of plastic color matching, and in particular to a plastic color matching method, system, device and storage medium. Background Art
[0002] Plastic (Polymer material) refers to polymer (arbitrarily deformable) materials. Plastics include rubber (elastomer), fiber (fabric, leather), plastic, polymer adhesive, coating, auxiliary materials, etc. Plastic materials have low cost, good weather resistance, and are easy to process. They are widely used in daily life, industry, transportation, science and technology, and medical fields. Because plastics have the characteristics of good durability, easy processing, and low cost, they are widely used in all walks of life. In the process of plastic production and processing, the raw materials need to be color-adjusted so that the color of the finished plastic products produced can better meet the requirements.
[0003] The existing plastic color matching technology generally stores the already prepared formulas to obtain a formula database. When a certain color formula is needed, the appropriate formula is selected from the database for use. However, this method can only analyze the existing formulas and cannot achieve rapid color matching for new formulas. In the prior art, the pigment components of different colors are selected mainly based on experience, and then the new formula is debugged. The debugging process of the new formula often needs to be repeated. Therefore, the efficiency of plastic color matching in the prior art is low. Summary of the invention
[0004] The present invention provides a plastic color matching method, system, device and storage medium, which can obtain plastic basic color parameters, target color parameters and pigment database parameters, use color difference calculation and pigment ratio distribution, calculate the addition amount of each raw material in the color matching scheme, realize the rapid generation of new formulas, and reduce the dependence on the existing formula library.
[0005] In a first aspect, in order to solve the above technical problems, the present invention provides a plastic color matching method, comprising:
[0006] Obtain plastic base color parameters, target color parameters and pigment database parameters;
[0007] Calculating a color difference value according to the basic color parameter and the target color parameter;
[0008] Classifying the color difference values according to a preset threshold value to obtain a first color difference value, a second color difference value, and a third color difference value;
[0009] Calculating a first color value, a second color value, and a third color value according to the first color difference value, the second color difference value, and the third color difference value;
[0010] Calculating a pigment ratio according to the pigment database parameter, the first color value, the second color value, and the third color value;
[0011] The addition amount of each raw material in the color matching scheme is calculated according to the pigment ratio, the first color value, the second color value and the third color value.
[0012] Preferably, the basic plastic color parameter is a three-dimensional vector, expressed as: ;in, For plastic Basic color parameters, For the The brightness component of the base color, For the The color components of the base colors along the red-green axis, For the The color component of the base color in the direction of the yellow-blue axis;
[0013] The target color parameter is a three-dimensional vector, expressed as: ;in, is the target color parameter, is the brightness component of the target color, is the color component of the target color in the red-green axis direction, is the color component of the target color in the direction of the yellow-blue axis;
[0014] The pigment database parameter is a three-dimensional vector, expressed as: ;in, The pigment database Color parameters of the pigments, For the The brightness component of the pigment, For the The color component of the pigment in the red-green axis direction, For the The color component of a pigment along the yellow-blue axis.
[0015] Preferably, the calculating the color difference value according to the basic color parameter and the target color parameter includes:
[0016] The color difference value is calculated by the following formula:
[0017]
[0018] In the formula, is the brightness component of the target color; is the color component of the target color in the red-green axis direction; is the color component of the target color in the direction of the yellow-blue axis; For the The brightness component of the base color; For the The color component of the base color along the red-green axis; For the The color component of the base color in the direction of the yellow-blue axis; is the color difference value, indicating The color difference between the base color and the target color.
[0019] Preferably, classifying the color difference values according to a preset threshold value to obtain a first color difference value, a second color difference value and a third color difference value includes:
[0020] When the color difference value is less than a first threshold, it is determined to be a first color difference value;
[0021] When the color difference value is greater than or equal to the first threshold value and less than the second threshold value, it is determined to be a second color difference value;
[0022] When the color difference value is greater than or equal to the second threshold value and less than a third threshold value, it is determined to be a third color difference value.
[0023] Preferably, calculating the first color value, the second color value and the third color value according to the first color difference value, the second color difference value and the third color difference value comprises:
[0024] When the color difference value is less than the first threshold, the first color value is calculated by the following formula:
[0025]
[0026] When the color difference value is greater than or equal to the first threshold value and less than the second threshold value, the second color value is calculated by the following formula:
[0027]
[0028] When the color difference value is greater than or equal to the second threshold value and less than the third threshold value, the third color value is calculated by the following formula:
[0029]
[0030] In the formula, For plastic Basic color parameters, For the The brightness component of the base color, For the The color components of the base colors along the red-green axis, For the The color component of the base color in the direction of the yellow-blue axis; is the brightness component of the target color, is the color component of the target color in the red-green axis direction, is the color component of the target color in the direction of the yellow-blue axis; For the The color difference between the base color and the target color, that is, the color difference value; is the first threshold; is the second threshold; is the component of the first color value, where the first color value is represented by ; is the component of the second color value, where the second color value is expressed as ; is the component of the third color value, where the third color value is expressed as ; The maximum acceptable color difference between the base color parameter and the target color parameter.
[0031] Preferably, calculating the pigment ratio according to the pigment database parameter, the first color value, the second color value and the third color value comprises:
[0032] The pigment ratio is calculated by the following formula:
[0033]
[0034] In the formula, Respectively The ratio of the first color value, the second color value, and the third color value; is the total number of pigment types in the pigment database; is the first color value; is the second color value; is the third color value; The pigment database Color parameters of the pigments; The pigment database Color parameters of the pigment.
[0035] Preferably, the calculation of the addition amount of each raw material in the color matching scheme according to the pigment ratio, the first color value, the second color value and the third color value includes:
[0036] The amount of each raw material added in the color scheme is calculated by the following formula:
[0037]
[0038] In the formula, For the The amount of raw materials added corresponding to the type of pigment; Respectively The ratio of the first color value, the second color value, and the third color value; is the first color value; is the second color value; Is the third color value.
[0039] In a second aspect, the present invention provides a plastic color matching system, comprising:
[0040] A parameter acquisition module is used to obtain plastic basic color parameters, target color parameters and pigment database parameters;
[0041] A difference calculation module, used for calculating a color difference value according to the basic color parameter and the target color parameter;
[0042] a difference classification module, used for classifying the color difference value according to a preset threshold value to obtain a first color difference value, a second color difference value and a third color difference value;
[0043] A color calculation module, configured to calculate a first color value, a second color value, and a third color value according to the first color difference value, the second color difference value, and the third color difference value;
[0044] a ratio calculation module, for calculating a pigment ratio according to the pigment database parameter, the first color value, the second color value and the third color value;
[0045] The raw material calculation module is used to calculate the addition amount of each raw material in the color matching scheme according to the pigment ratio, the first color value, the second color value and the third color value.
[0046] In a third aspect, the present invention further provides an electronic device, comprising a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein the processor implements any one of the above-mentioned methods for color matching of plastics when executing the computer program.
[0047] In a fourth aspect, the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute any one of the above-mentioned plastic color matching methods.
[0048] Compared with the prior art, the present invention has the following beneficial effects: the embodiments of the present invention provide a plastic color matching method, system, device and storage medium. The method includes: obtaining plastic basic color parameters, target color parameters and pigment database parameters; calculating color difference values according to the basic color parameters and the target color parameters; classifying the color difference values according to a preset threshold value to obtain a first color difference value, a second color difference value and a third color difference value; calculating the first color value, the second color value and the third color value according to the first color difference value, the second color difference value and the third color difference value; calculating the pigment ratio according to the pigment database parameters, the first color value, the second color value and the third color value; calculating the addition amount of each raw material in the color matching scheme according to the pigment ratio, the first color value, the second color value and the third color value.
[0049] In the present invention, the method constructs a comprehensive color matching data foundation by acquiring plastic basic color parameters, target color parameters and pigment database parameters. These parameters are represented by three-dimensional vectors, including brightness components and color components in the red-green and yellow-blue directions, to ensure comprehensive coverage of color features. The color difference value between the target color and the basic color is then calculated using a mathematical formula to accurately measure the difference in brightness and chromaticity. This step ensures that the deviation between the target color and the existing formula can be accurately captured, providing a basis for subsequent optimization. The color difference value is then classified based on a preset threshold and refined into a first color difference value, a second color difference value and a third color difference value to achieve graded processing for different degrees of difference. For different color difference values, the corresponding first color value, second color value and third color value are calculated by a graded formula to form a layered color adjustment strategy, so as to be closer to the target color. Combined with the pigment database parameters and the graded color values, the ratio of each pigment to the first color value, the second color value and the third color value is calculated. Finally, by calculating the relationship between the ratio of each pigment and the color value, the addition amount of each raw material in the color matching scheme is automatically generated. In summary, the method can realize the rapid generation of new formulas and reduce the dependence on the existing formula library. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] Figure 1 is a schematic flow chart of a plastic color matching method provided by a first embodiment of the present invention;
[0051] Figure 2 2 is a schematic diagram of the structure of a plastic color matching system provided by the second embodiment of the present invention. DETAILED DESCRIPTION
[0052] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0053] Reference Figure 1 The first embodiment of the present invention provides a method for color matching of plastic, comprising the following steps:
[0054] S11, obtaining plastic basic color parameters, target color parameters and pigment database parameters.
[0055] S12: Calculate a color difference value according to the basic color parameter and the target color parameter.
[0056] S13, classifying the color difference values according to a preset threshold value to obtain a first color difference value, a second color difference value, and a third color difference value.
[0057] S14, calculating a first color value, a second color value, and a third color value according to the first color difference value, the second color difference value, and the third color difference value.
[0058] S15, calculating a pigment ratio according to the pigment database parameter, the first color value, the second color value, and the third color value.
[0059] S16, calculating the addition amount of each raw material in the color matching scheme according to the pigment ratio, the first color value, the second color value and the third color value.
[0060] It is worth mentioning that plastic (Polymer material) refers to polymer (arbitrarily deformable) materials. Plastic includes rubber (elastomer), fiber (fabric, leather), plastic, polymer adhesive, coating, auxiliary materials, etc. Plastic materials have low cost, good weather resistance, and are easy to process. They are widely used in daily life, industry, transportation, science and technology, and medical fields. Because plastic has the characteristics of good durability, easy processing and low cost, it is widely used in all walks of life. In the process of plastic production and processing, the raw materials need to be color-adjusted so that the color of the finished plastic products produced can better meet the requirements.
[0061] In order to facilitate the understanding of the present invention, some preferred embodiments of the present invention are further described below.
[0062] In step S11 , plastic basic color parameters, target color parameters and pigment database parameters are obtained.
[0063] Preferably, the basic plastic color parameter is a three-dimensional vector, expressed as: ;in, For plastic Basic color parameters, For the The brightness component of the base color, For the The color components of the base colors along the red-green axis, For the The color component of the base color in the direction of the yellow-blue axis;
[0064] The target color parameter is a three-dimensional vector, expressed as: ;in, is the target color parameter, is the brightness component of the target color, is the color component of the target color in the red-green axis direction, is the color component of the target color in the direction of the yellow-blue axis;
[0065] The pigment database parameter is a three-dimensional vector, expressed as: ;in, The pigment database Color parameters of the pigments, For the The brightness component of the pigment, For the The color component of the pigment in the red-green axis direction, For the The color component of a pigment along the yellow-blue axis.
[0066] Specifically, the plastic base color parameters, target color parameters and pigment database parameters are expressed as three-dimensional vectors, which is based on the need for accurate description of color characteristics and is convenient for quantification and processing in the calculation process. Color is determined by the wavelength distribution of light in the visible spectrum, and the human eye's perception of color can be quantified using a visual model.
[0067] Specifically, common color representation methods are: 1. RGB model: based on the additive mixing of red, green, and blue light. 2. CIELAB model: designed based on human visual perception, including brightness (L) and chromaticity (A and B) components, reflecting the visual difference of color. In the present invention, the three-dimensional vector representation of the basic color parameters of plastics, target color parameters, and pigment database parameters adopts a method similar to the CIELAB model, which is a brightness component and two chromaticity components, respectively, which can more intuitively reflect the physical and visual properties of color.
[0068] It is worth mentioning that the brightness component reflects the lightness of the color and is directly related to the intensity of light. The introduction of the brightness component can distinguish between dark and light plastics. For example, although black and dark gray have similar tones, they have different brightness. In calculations, brightness is used to adjust the light and dark matching of colors and is an important basis for color matching optimization. The red-green direction component represents the distribution of colors between red and green. Positive values indicate reddishness and negative values indicate greenishness. This is based on the high sensitivity of human vision to the contrast between red and green. It is used to adjust the red / green tone ratio in plastic color matching to help achieve accurate color matching. The yellow-blue direction component represents the distribution of colors between yellow and blue. Positive values indicate yellowishness and negative values indicate blueishness. The human eye is highly sensitive to the contrast between yellow and blue, especially in light tones. Therefore, this component is used to adjust the proportion of yellow or blue tones in the formula to refine the color matching process.
[0069] It is worth noting that the basic color parameters reflect the color characteristics of the plastic raw materials themselves and provide an initial reference for target color matching. Representing them as a three-dimensional vector can intuitively describe the inherent color characteristics of the plastic material. The target color parameters represent the final color required by the customer or product design. By comparing with the basic color parameters, the pigment ratio adjustment is guided. The pigment database parameters describe the color characteristics of each pigment and are used to calculate the combination effect of the pigments. Using a three-dimensional vector representation can fully characterize the effect of the pigment on brightness and hue, supporting more accurate color scheme generation.
[0070] In step S12, a color difference value is calculated according to the basic color parameter and the target color parameter.
[0071] Preferably, the calculating the color difference value according to the basic color parameter and the target color parameter includes:
[0072] The color difference value is calculated by the following formula:
[0073]
[0074] In the formula, is the brightness component of the target color; is the color component of the target color in the red-green axis direction; is the color component of the target color in the direction of the yellow-blue axis; For the The brightness component of the base color; For the The color component of the base color along the red-green axis; For the The color component of the base color in the direction of the yellow-blue axis; is the color difference value, indicating The color difference between the base color and the target color.
[0075] Specifically, the color difference value is an important indicator to measure the degree of visual difference between the target color and the base color. By calculating the color difference value, the difference between the two colors can be intuitively quantified, providing a clear target and reference for adjusting the formula. If the color difference value is smaller, it means that the base color is closer to the target color. The color difference calculation formula is derived from the internationally standardized CIELAB color space, which is characterized by being highly correlated with human visual perception.
[0076] Preferably, classifying the color difference values according to a preset threshold value to obtain a first color difference value, a second color difference value and a third color difference value includes:
[0077] When the color difference value is less than a first threshold, it is determined to be a first color difference value;
[0078] When the color difference value is greater than or equal to the first threshold value and less than the second threshold value, it is determined to be a second color difference value;
[0079] When the color difference value is greater than or equal to the second threshold value and less than a third threshold value, it is determined to be a third color difference value.
[0080] It is worth noting that the color difference value is the comprehensive difference between the target color and the basic color in terms of brightness, red-green direction, and yellow-blue direction. By calculating the classification results of different color difference value ranges (first color difference value, second color difference value, third color difference value), the specific color value can be calculated according to different situations. The color difference values are divided into three categories (first color difference value, second color difference value, third color difference value). The main purpose is to grade the color difference. Different difference value ranges correspond to different processing methods. This grading method has the following purposes:
[0081] First, in order to meet different adjustment needs: when the color difference value is small, only the basic color needs to be slightly adjusted to achieve the target color. When the color difference value is large, the color parameters need to be adjusted significantly, and more pigments need to be changed to achieve an effect close to the target color.
[0082] Second, to optimize the color values step by step:
[0083] By calculating the first color value, the second color value and the third color value respectively for different categories of color difference values, the gap with the target color can be gradually narrowed to avoid excessive or wrong adjustment caused by too large an adjustment at one time.
[0084] In step S13, the color difference values are classified according to a preset threshold value to obtain a first color difference value, a second color difference value and a third color difference value.
[0085] Preferably, when the color difference value is less than a first threshold, it is determined to be a first color difference value;
[0086] When the color difference value is greater than or equal to the first threshold value and less than the second threshold value, it is determined to be a second color difference value;
[0087] When the color difference value is greater than or equal to the second threshold value and less than a third threshold value, it is determined to be a third color difference value.
[0088] Specifically, when the color difference value is less than the first threshold, it is determined to be the first color difference value, indicating that the difference between the base color and the target color is very small, and only fine-tuning is required to achieve the target color. When the color difference value is greater than or equal to the first threshold, and less than the second threshold, it is determined to be the second color difference value, indicating a moderate difference, and the color parameters need to be adjusted to a large extent. When the color difference value is greater than or equal to the second threshold, and less than the third threshold, it is determined to be the third color difference value, indicating that the difference is large, and the formula needs to be significantly adjusted to approach the target color. The purpose of this classification processing is to optimize the color value calculation process step by step, and to perform layered processing according to the size of the difference, so that color adjustment is more accurate and efficient.
[0089] It is worth noting that in the subsequent color value calculation, when classified as the first color difference value, the first color value is calculated; when classified as the second color difference value, the second color value is calculated; when classified as the third color difference value, the third color value is calculated.
[0090] In step S14, a first color value, a second color value, and a third color value are calculated according to the first color difference value, the second color difference value, and the third color difference value.
[0091] Preferably, calculating the first color value, the second color value and the third color value according to the first color difference value, the second color difference value and the third color difference value comprises:
[0092] When the color difference value is less than the first threshold, the first color value is calculated by the following formula:
[0093]
[0094] When the color difference value is greater than or equal to the first threshold value and less than the second threshold value, the second color value is calculated by the following formula:
[0095]
[0096] When the color difference value is greater than or equal to the second threshold value and less than the third threshold value, the third color value is calculated by the following formula:
[0097]
[0098] In the formula, For plastic Basic color parameters, For the The brightness component of the base color, For the The color components of the base colors along the red-green axis, For the The color component of the base color in the direction of the yellow-blue axis; is the brightness component of the target color, is the color component of the target color in the red-green axis direction, is the color component of the target color in the direction of the yellow-blue axis; For the The color difference between the base color and the target color, that is, the color difference value; is the first threshold; is the second threshold; is the component of the first color value, where the first color value is represented by ; is the component of the second color value, where the second color value is expressed as ; is the component of the third color value, where the third color value is expressed as ; The maximum acceptable color difference between the base color parameter and the target color parameter.
[0099] Specifically, the main function of this step is to gradually adjust the color parameters (brightness and chromaticity) to generate color values closer to the target color, and ultimately provide a basis for formula adjustment. Its specific functions include:
[0100] First, adjust the color parameters in steps: according to the size of the color difference value (classification result), use different adjustment ranges to gradually optimize the color parameters.
[0101] Second, improve the accuracy of color adjustment: avoid the uncertainty caused by large-scale one-time adjustments through layered optimization.
[0102] Third, the color values calculated step by step provide accurate input for subsequent pigment ratio calculations, thereby improving the efficiency of formula adjustment.
[0103] Specifically, The function of is to normalize the current color difference value to ensure that the adjustment range fits the maximum color difference range. The characteristic of the formula is that within the small color difference range, the adjustment range is small, and the characteristics of the basic color are more retained, and only fine-tuning is done. When calculating the second color value, is the first threshold; As the second threshold, they define the range of medium color difference and determine the linear weight of the adjustment scale. The function is to normalize the current color difference value so that the current color difference value is Linear mapping to The adjustment range increases gradually. Its characteristic is that within the medium color difference range, the adjustment range is moderate and gradually approaches the target color. When calculating the third color value, the basic color is directly adjusted to the parameter value of the target color. When the color difference value is large, it is directly set to the target color value, quickly eliminating the large color difference and no longer retaining the basic color characteristics.
[0104] It is worth mentioning that It is the maximum acceptable color difference between the plastic base color parameter and the target color parameter. It is a pre-set threshold used to normalize the current color difference value to control the adjustment range. It reflects the upper limit of the allowable difference range between the base color and the target color. If the current color difference value exceeds , you need to change the base color or pigment formula.
[0105] In step S15, a pigment ratio is calculated according to the pigment database parameter, the first color value, the second color value and the third color value.
[0106] Preferably, calculating the pigment ratio according to the pigment database parameter, the first color value, the second color value and the third color value comprises:
[0107] The pigment ratio is calculated by the following formula:
[0108]
[0109] In the formula, Respectively The ratio of the first color value, the second color value, and the third color value; is the total number of pigment types in the pigment database; is the first color value; is the second color value; is the third color value; The pigment database Color parameters of the pigments; The pigment database Color parameters of the pigment.
[0110] Specifically, is the first color value, is the second color value, is the third color value, corresponding to the color values of small color difference, medium color difference and large color difference, respectively. These values represent the intermediate state of the target color after optimization under the current classification. It is worth noting that Indicates The Euclidean distance between the color parameters of the pigment and the current color value is expressed by the following formula: .
[0111] It is worth noting that the pigment ratio denominator in the calculation formula corresponding to each color value is the sum of the distances between all pigments and the current color value, which is used for normalization to ensure that the sum of all pigment ratios is 1. Specifically, Indicates The distance indicates the closeness between the pigment and the current color value. A smaller distance indicates that the pigment color is close to the target color and the ratio is lower; a larger distance indicates that the pigment color is far from the target color and the ratio is higher.
[0112] Specifically, the pigment ratio is achieved by accurately mixing the amount of different pigments added so that the base color is gradually adjusted to the target color. Different pigments have different effects on brightness, red-green direction, and yellow-blue direction. By reasonably allocating the pigment ratio, the color components can be accurately adjusted to reduce the color difference between the target color and the actual color. In the color space, the pigment ratio controls the direction and amplitude of the overall color moving toward the target color, thereby achieving a comprehensive match. For example, if the target color is a yellowish color with a higher brightness, it is necessary to increase the pigment that contributes more to the brightness, while increasing the pigment that contributes more to the yellow direction and reducing the pigment that contributes more to the blue direction. These operations will be reflected in the calculated pigment ratio.
[0113] In step S16, the addition amount of each raw material in the color matching scheme is calculated according to the pigment ratio, the first color value, the second color value and the third color value.
[0114] Preferably, the step of calculating the amount of each raw material to be added in the color matching scheme according to the pigment ratio, the first color value, the second color value and the third color value comprises:
[0115] The amount of each raw material added in the color scheme is calculated by the following formula:
[0116]
[0117] In the formula, For the The amount of raw materials added corresponding to the type of pigment; Respectively The ratio of the first color value, the second color value, and the third color value; is the first color value; is the second color value; Is the third color value.
[0118] Specifically, For the The amount of raw materials added to each pigment determines the proportion of pigments that need to be added in actual production and is the direct basis for the formulation production process. is the first color value; is the second color value; are the third color values, which correspond to the color adjustment target values within the range of small color difference, medium color difference and large color difference respectively. They are the transition state in the color adjustment process and the intermediate result of gradually optimizing the color in the color matching scheme, reflecting the color characteristics that need to be adjusted at the current stage. Respectively The ratio of the jth pigment to the first color value, the second color value, and the third color value indicates the contribution of the jth pigment to the first color value, the second color value, and the third color value. The larger the ratio, the greater the contribution of the pigment to the current color value. The ratio of different color values comprehensively determines the final addition amount of each pigment.
[0119] Specifically, the formula combines the comprehensive effects of small color difference, medium color difference and large color difference adjustment through weighted processing, so that the calculation result is closer to actual needs, because the addition amount of each pigment is determined by the weighted sum of the first color value, the second color value and the third color value. =60, = 70, =80, =0.3, =0.4, =0.3, then =70, that is, the amount of the 𝑗th pigment added is 70. In summary, in the present invention, the formula can comprehensively consider the small color difference, medium color difference and large color difference stages, and can dynamically adjust the amount of pigment added. By combining the pigment ratio and color value, the accuracy of the formula is ensured while speeding up the mixing speed.
[0120] The following describes the working process of the present invention by taking a relatively common scenario as an example. The working process is as follows:
[0121] The color characteristics of the basic plastic material are measured, including brightness, red-green direction, and yellow-blue direction, which are used as the initial state of color matching.
[0122] Determine the target color parameters expected by the user, including brightness, red-green direction, and yellow-blue direction, which are used as the final goal of color matching.
[0123] Provides color parameters (brightness, red-green direction, yellow-blue direction) of each pigment in the pigment database to calculate the contribution of different pigments to color matching.
[0124] Based on the difference between the target color and the base color, the overall color difference value is calculated, which represents the distance between the base color and the target color. The color difference value is calculated by combining the difference in brightness, red-green direction, and yellow-blue direction.
[0125] The calculated color difference value is compared with the preset threshold and classified into three ranges: small color difference, medium color difference and large color difference. Among them, small color difference means that the difference is small, and only fine-tuning of the basic color is required; medium color difference means that the difference is medium, and significant color adjustment is required; large color difference means that the difference is large, and the color needs to be significantly modified or even the pigment needs to be completely replaced.
[0126] According to the classification results, the corresponding formula is used to calculate the adjusted color value, and the adjusted color value provides a basis for the subsequent pigment ratio calculation.
[0127] Based on the adjusted color values and the pigment database, the proportion of each pigment in the formula is calculated: the color parameters of each pigment are compared to the adjusted color values to determine its contribution to the color adjustment.
[0128] Combine the pigment ratio and color value to calculate the actual amount of each pigment added. According to the weight ratio of each pigment, the first color value, the second color value and the third color value are combined to determine the specific amount of each pigment in the formula. The raw material addition amount can be directly used in actual production.
[0129] It is worth noting that in the present invention, the basic color of plastic products is often not single, but is formed by the color combination of different materials or raw materials, so it will involve multiple basic color parameters, and subsequent calculations will involve the calculation of each basic color parameter, and the calculation method is the same. Specifically, each basic color needs to calculate the difference value with the target color, including brightness difference, red-green direction difference and yellow-blue direction difference. After the difference value is calculated, the overall color difference value is determined according to the comprehensive effect of multiple basic colors. When calculating the color value, the brightness, red-green direction and yellow-blue direction of each basic color need to be adjusted respectively to obtain the color value of each color. Different basic colors may require different adjustment ranges, and the specific adjustment range depends on the difference between each and the target color. When calculating the pigment ratio, each basic color contributes differently to the target color, so the calculation of the pigment ratio needs to comprehensively consider the matching degree of multiple basic colors with the target color. The adjustment result of each basic color has a direct impact on the allocation of the pigment ratio. When calculating the amount of raw materials to be added, each base color has a different matching degree to the final color after adjustment, so when calculating the amount of each pigment to be added, it is necessary to combine the adjustment results of each base color. Calculate the amount of pigment added for each base color separately, and then summarize the amount of pigment added for all base colors according to the overall demand.
[0130] In summary, the present invention provides a color matching method for plastic, including: obtaining basic color parameters, target color parameters and pigment database parameters of plastic; calculating color difference values according to the basic color parameters and the target color parameters; classifying the color difference values according to a preset threshold value to obtain a first color difference value, a second color difference value and a third color difference value; calculating a first color value, a second color value and a third color value according to the first color difference value, the second color difference value and the third color difference value; calculating a pigment ratio according to the pigment database parameters, the first color value, the second color value and the third color value; calculating the addition amount of each raw material in the color matching scheme according to the pigment ratio, the first color value, the second color value and the third color value.
[0131] In the present invention, the method constructs a comprehensive color matching data foundation by acquiring plastic basic color parameters, target color parameters and pigment database parameters. These parameters are represented by three-dimensional vectors, including brightness components and color components in the red-green and yellow-blue directions, to ensure comprehensive coverage of color features. The color difference value between the target color and the basic color is then calculated using a mathematical formula to accurately measure the difference in brightness and chromaticity. This step ensures that the deviation between the target color and the existing formula can be accurately captured, providing a basis for subsequent optimization. The color difference value is then classified based on a preset threshold and refined into a first color difference value, a second color difference value and a third color difference value to achieve graded processing for different degrees of difference. For different color difference values, the corresponding first color value, second color value and third color value are calculated by a graded formula to form a layered color adjustment strategy, so as to be closer to the target color. Combined with the pigment database parameters and the graded color values, the ratio of each pigment to the first color value, the second color value and the third color value is calculated. Finally, by calculating the relationship between the ratio of each pigment and the color value, the addition amount of each raw material in the color matching scheme is automatically generated. In summary, the method can realize the rapid generation of new formulas and reduce the dependence on the existing formula library.
[0132] Reference Figure 2 The second embodiment of the present invention provides a plastic color matching system, comprising:
[0133] A parameter acquisition module is used to obtain plastic basic color parameters, target color parameters and pigment database parameters;
[0134] A difference calculation module, used for calculating a color difference value according to the basic color parameter and the target color parameter;
[0135] a difference classification module, used for classifying the color difference value according to a preset threshold value to obtain a first color difference value, a second color difference value and a third color difference value;
[0136] A color calculation module, configured to calculate a first color value, a second color value, and a third color value according to the first color difference value, the second color difference value, and the third color difference value;
[0137] a ratio calculation module, for calculating a pigment ratio according to the pigment database parameter, the first color value, the second color value and the third color value;
[0138] The raw material calculation module is used to calculate the addition amount of each raw material in the color matching scheme according to the pigment ratio, the first color value, the second color value and the third color value.
[0139] It should be noted that a plastic color matching system provided in an embodiment of the present invention is used to execute all process steps of a plastic color matching method in the above embodiment, and the working principles and beneficial effects of the two correspond one to one, so they will not be described in detail.
[0140] The embodiment of the present invention further provides an electronic device. The electronic device includes: a processor, a memory, and a computer program stored in the memory and executable on the processor, such as a plastic color matching method program. When the processor executes the computer program, the steps in the above-mentioned plastic color matching method embodiments are implemented, such as Figure 1 Alternatively, when the processor executes the computer program, the functions of each module / unit in the above-mentioned device embodiments are realized, such as the raw material calculation module.
[0141] Exemplarily, the computer program may be divided into one or more modules / units, which are stored in the memory and executed by the processor to implement the present invention. The one or more modules / units may be a series of computer program instruction segments capable of implementing specific functions, which are used to describe the execution process of the computer program in the electronic device.
[0142] The electronic device may be a computing device such as a desktop computer, a notebook, a PDA, and a smart tablet. The electronic device may include, but is not limited to, a processor and a memory. Those skilled in the art will appreciate that the above components are merely examples of electronic devices and do not constitute a limitation on the electronic device. The electronic device may include more or fewer components than the above components, or a combination of certain components, or different components. For example, the electronic device may also include input and output devices, network access devices, buses, etc.
[0143] The processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc. The processor is the control center of the electronic device, and uses various interfaces and lines to connect various parts of the entire electronic device.
[0144] The memory can be used to store the computer program and / or module, and the processor realizes various functions of the electronic device by running or executing the computer program and / or module stored in the memory, and calling the data stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0145] Wherein, if the module / unit integrated in the electronic device 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 such an understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Wherein, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.
[0146] It should be noted that the device embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, in the accompanying drawings of the device embodiments provided by the present invention, the connection relationship between the modules indicates that there is a communication connection between them, which may be specifically implemented as one or more communication buses or signal lines. A person of ordinary skill in the art may understand and implement it without paying any creative effort.
[0147] The specific embodiments described above further illustrate the purpose, technical solutions and beneficial effects of the present invention. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. It is particularly pointed out that for those skilled in the art, any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the scope of protection of the present invention.
Claims
1. A method for color matching of plastic, characterized in that: include: Obtain plastic base color parameters, target color parameters and pigment database parameters; Calculating a color difference value according to the basic color parameter and the target color parameter; Classifying the color difference values according to a preset threshold value to obtain a first color difference value, a second color difference value, and a third color difference value; Calculating a first color value, a second color value, and a third color value according to the first color difference value, the second color difference value, and the third color difference value; Calculating a pigment ratio according to the pigment database parameter, the first color value, the second color value, and the third color value; Calculating the amount of each raw material added in the color matching scheme according to the pigment ratio, the first color value, the second color value and the third color value; According to the classification results of the color difference values, different adjustment ranges are adopted to gradually optimize the color values in different layers; When the color difference value is less than the first threshold, it is determined to be the first color difference value, and the first color value is calculated by the following formula: When the color difference value is greater than or equal to the first threshold value and less than the second threshold value, it is determined to be a second color difference value, and the second color value is calculated by the following formula: When the color difference value is greater than or equal to the second threshold value and less than the third threshold value, it is determined to be a third color difference value, and the third color value is calculated by the following formula: In the formula, For the The brightness component of the base color, For the The color components of the base colors along the red-green axis, For the The color component of the base color in the direction of the yellow-blue axis; is the brightness component of the target color, is the color component of the target color in the red-green axis direction, is the color component of the target color in the direction of the yellow-blue axis; For the The color difference between the base color and the target color, that is, the color difference value; is the first threshold; is the second threshold; is the component of the first color value; is the component of the second color value; is the component of the third color value; The maximum acceptable color difference between the base color parameter and the target color parameter.
2. The method for color matching of plastic according to claim 1, characterized in that: The plastic basic color parameter is a three-dimensional vector, expressed as: ;in, For plastic Basic color parameters, For the The brightness component of the base color, For the The color components of the base colors along the red-green axis, For the The color component of the base color in the direction of the yellow-blue axis; The target color parameter is a three-dimensional vector, expressed as: ;in, is the target color parameter, is the brightness component of the target color, is the color component of the target color in the red-green axis direction, is the color component of the target color in the direction of the yellow-blue axis; The pigment database parameter is a three-dimensional vector, expressed as: ;in, The pigment database Color parameters of the pigments, For the The brightness component of the pigment, For the The color component of the pigment in the red-green axis direction, For the The color component of a pigment along the yellow-blue axis.
3. The plastic color matching method according to claim 2, characterized in that: The step of calculating the color difference value according to the basic color parameter and the target color parameter includes: The color difference value is calculated by the following formula: In the formula, is the brightness component of the target color; is the color component of the target color in the red-green axis direction; is the color component of the target color in the direction of the yellow-blue axis; For the The brightness component of the base color; For the The color component of the base color along the red-green axis; For the The color component of the base color in the direction of the yellow-blue axis; is the color difference value, indicating The color difference between the base color and the target color.
4. The method for color matching of plastic according to claim 1, characterized in that: The step of calculating the pigment ratio according to the pigment database parameter, the first color value, the second color value and the third color value comprises: The pigment ratio is calculated by the following formula: In the formula, Respectively The ratio of the first color value, the second color value, and the third color value; is the total number of pigment types in the pigment database; is the first color value; is the second color value; is the third color value; The pigment database Color parameters of the pigments; The pigment database Color parameters of the pigment.
5. The plastic color matching method according to claim 4, characterized in that: The step of calculating the amount of each raw material added in the color matching scheme according to the pigment ratio, the first color value, the second color value and the third color value comprises: The amount of each raw material added in the color scheme is calculated by the following formula: In the formula, For the The amount of raw materials added corresponding to the type of pigment; Respectively The ratio of the first color value, the second color value, and the third color value; is the first color value; is the second color value; Is the third color value.
6. A plastic color matching system, characterized in that: A method for color matching of plastic according to any one of claims 1 to 5, comprising: A parameter acquisition module is used to obtain plastic basic color parameters, target color parameters and pigment database parameters; A difference calculation module, used for calculating a color difference value according to the basic color parameter and the target color parameter; a difference classification module, used for classifying the color difference value according to a preset threshold value to obtain a first color difference value, a second color difference value and a third color difference value; A color calculation module, configured to calculate a first color value, a second color value, and a third color value according to the first color difference value, the second color difference value, and the third color difference value; a ratio calculation module, for calculating a pigment ratio according to the pigment database parameter, the first color value, the second color value and the third color value; The raw material calculation module is used to calculate the addition amount of each raw material in the color matching scheme according to the pigment ratio, the first color value, the second color value and the third color value.
7. An electronic device, characterized in that: The method comprises a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein the processor implements the plastic color matching method as claimed in any one of claims 1 to 5 when executing the computer program.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored computer program, wherein when the computer program is executed, the device where the computer-readable storage medium is located is controlled to execute the plastic color matching method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Computer coloring method for color printing ink
CN104309300A
Plastic sample plate verification method, terminal and computer readable storage medium
CN111626695A