Visual color difference data level-to-level management method and device, equipment and medium
Through the chromatic aberration management method based on CI ELAB color measurement data, combined with the chromatic aberration reference value system classification table and target reference color screening, the grading management of chromatic aberration dataization and visualization is realized, and the high cost and accurate color difference evaluation in the existing technology is solved. The problem of low performance achieves efficient and accurate color difference management.
Patent Information
- Application Number
- CN202411500418.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-25
- Publication Date
- 2025-02-11
AI Technical Summary
The existing color difference management technology has the problems of high evaluation costs and low accuracy, especially in the fields of textiles, industrial products, printed products and automobiles, and it is difficult to achieve high efficiency and high reliability.
RGB value and color difference are determined by CI ELAB color measurement data based on standard colors and batch colors, peripheral adjacent colors are determined based on RGB values, and color difference is classified according to the preset color difference reference value system classification table, and the target color difference level and The target reference color is finally achieved through the output display processing to realize user visual evaluation.
A hierarchical management method combining color difference dataization and visualization is realized, and the visualization effect of different color difference levels of standard colors is quickly understood, and the color difference level is accurately managed, and the standard color, batch color and target color difference reference color are converted into visual data, which solves the problem of In the prior art, there is a problem that high efficiency and high reliability cannot be obtained by chromatic difference evaluation.
Smart Images

Figure CN119415722A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a method, device, equipment and medium for hierarchical management of visualized color difference data. Background Art
[0002] In the application fields of textiles, industrial products, printed products, automobiles, etc., color difference management is an important part of production management. At present, there are two relatively mature color difference grading management methods: one is the data grading management system, in which the instrument measures and calculates the color difference value, and compares it with the set maximum allowable color difference value to determine whether the product is qualified. This method is highly dependent on the accuracy of the measurement instrument. Some samples will have a large difference between the measured data and the visual inspection due to unreasonable measurement methods or physical structures that are not suitable for measurement, which seriously affects the reliability of the data, and professionals are required to set the maximum allowable color difference value; the other is to evaluate the color difference by visual inspection. On the one hand, this method requires visual inspectors to face the samples directly. Under the current situation of international division of labor in the industrial chain, the time and cost of sending samples are high. On the other hand, color difference grading is difficult to standardize. The number of physical color difference grading reference standard samples of various colors is too large and the cost is too high to develop. Therefore, there are no color difference grading reference standard samples of similar colors. The color difference ratings of different personnel, especially those at different times and places, fluctuate greatly. Summary of the invention
[0003] In view of this, one of the technical problems solved by the embodiments of the present application is to provide a method, device, equipment and medium for visual color difference data hierarchical management, which is used to solve the problems of high color difference evaluation cost and low accuracy in color difference management.
[0004] In a first aspect of an embodiment of the present application, a method for hierarchical management of visualized color difference data is disclosed, the method comprising:
[0005] Determine, based on the CI ELAB colorimetric data of the standard color and the CI ELAB colorimetric data of the batch color, the RGB value of the standard color and the RGB value of the batch color, and a first color difference between the RGB value of the standard color and the RGB value of the batch color;
[0006] Based on the RGB value of the standard color, determine the RGB values of each of a plurality of adjacent colors of the standard color;
[0007] Determine the second color difference between the plurality of adjacent colors and the standard color according to the RGB value of the standard color and the RGB values of the plurality of adjacent colors;
[0008] According to a preset color difference reference value system classification table, second color differences between a plurality of peripheral adjacent colors and a standard color are classified to obtain reference color sets corresponding to different color difference levels, wherein the color difference reference value system classification table includes different color difference levels and their corresponding color difference ranges;
[0009] The first color difference is screened in the color difference reference value system classification table to obtain a target color difference level corresponding to the first color difference, and the third color differences between the plurality of reference colors and the batch color are determined according to the RGB value of the batch color and the RGB value in the reference color set corresponding to the target color difference level, and the color with the smallest difference is screened as the target reference color;
[0010] The target reference color, standard color and batch color are controlled for output display processing so that the user can make a visual evaluation based on the output display results.
[0011] In a second aspect of the embodiment of the present application, a visual color difference data hierarchical management device is disclosed, the device comprising:
[0012] A color data determination module, for determining an RGB value of the standard color and an RGB value of the batch color, and a first color difference between the RGB value of the standard color and the RGB value of the batch color based on the CI ELAB colorimetric data of the standard color and the CI ELAB colorimetric data of the batch color;
[0013] An adjacent color data determination module, used to determine the RGB values of each of a plurality of adjacent colors surrounding the standard color based on the RGB value of the standard color;
[0014] An adjacent color difference value determination module, used for determining a second color difference between a plurality of adjacent colors and the standard color according to the RGB value of the standard color and the RGB values of each of the plurality of adjacent colors;
[0015] A reference color set determination module is used to classify the second color differences between a plurality of peripheral adjacent colors and a standard color according to a preset color difference reference value system classification table, to obtain reference color sets corresponding to different color difference levels, wherein the color difference reference value system classification table may include different color difference levels and their corresponding color difference ranges;
[0016] a target reference color determination module, for screening the first color difference in the color difference reference value system classification table to obtain a target color difference level corresponding to the first color difference, and determining the third color differences between the plurality of reference colors and the batch color according to the RGB value of the batch color and the RGB value of each reference color in the reference color set corresponding to the target color difference level, and screening the reference color with the smallest difference as the target reference color;
[0017] The color sample display output module is used to control the target reference color, standard color and batch color for output display processing, so that the user can perform visual evaluation based on the output display results.
[0018] In a third aspect of an embodiment of the present application, an electronic device is disclosed. The electronic device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps of the above method are implemented.
[0019] In a fourth aspect of the embodiments of the present application, a computer-readable storage medium is disclosed, which stores a computer program. When the computer program is executed by a processor, the steps of the above method are implemented.
[0020] The present application has the following advantages: determining the RGB value of the standard color and the RGB value of the batch color, as well as the first color difference between the RGB value of the standard color and the RGB value of the batch color through the color measurement data of the standard color and the color measurement data of the batch color; determining the RGB value of each of a plurality of peripheral adjacent colors based on the RGB value of the standard color, determining the second color difference of each of the plurality of peripheral adjacent colors with the standard color based on the RGB value of the standard color and the plurality of peripheral adjacent colors, and classifying them into different color difference levels according to classification requirements; screening the target color difference level corresponding to the batch color according to the first color difference, selecting the reference color with the smallest color difference with the batch color according to the third color difference between the batch sample and the reference color sample set in the color difference level as the target reference color, controlling the target reference color, the standard color and the batch color to be output and displayed, so that the user can perform visual evaluation according to the output display result. This method of classifying all the surrounding adjacent colors of the standard color through a preset color difference reference value system classification table realizes a hierarchical management method that combines color difference data with visualization, and achieves the purpose of making any color have its own adjustable visual color difference grade reference system, so that the visualization effects of different color difference grades of the standard color can be quickly understood, and accurate management of color difference grade requirements can be achieved. The standard color, batch color and the most suitable target color difference reference color can be converted into visual data more accurately for users to conduct remote and rapid management, solving the problem that the existing color difference evaluation technology cannot achieve both high efficiency and high reliability. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 A schematic diagram of a process flow of a method for hierarchical management of visual color difference data provided by an embodiment of the present application;
[0022] Figure 2 A schematic diagram of the structure of a visual color difference data hierarchical management device provided by an embodiment of the present application. DETAILED DESCRIPTION
[0023] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0024] It should be noted that although the functional modules are divided in the device schematic and the logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than the module division in the device or the order in the flowchart.
[0025] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0026] According to an embodiment of the present application, a method for hierarchical management of visual color difference data is provided, such as Figure 1 As shown, the method includes steps S101 to S106.
[0027] Step S101: Determine the RGB value of the standard color and the RGB value of the batch color, and the first color difference between the RGB value of the standard color and the RGB value of the batch color based on the CI ELAB colorimetric data of the standard color and the CI ELAB colorimetric data of the batch color.
[0028] Specifically, when visually evaluating that the screen display effects of the standard sample and the batch sample are consistent, the RGB value of the standard color can be determined according to the color parameters of the standard color displayed on the screen; the RGB value of the batch color can be determined based on the same method.
[0029] Specifically, the first color difference between the standard color and the batch color can be calculated by a preset data conversion algorithm between RGB and CI ELAB. Specifically, the evaluation of color difference usually uses the ΔE parameter in the CI ELAB color space.
[0030] Step S102: Based on the RGB value of the standard color, determine the RGB value of each of a plurality of adjacent colors of the standard color.
[0031] In the embodiment of the present application, the surrounding adjacent colors are used to characterize colors that have a certain continuity with the standard color in both color space and vision and have a small color difference. Specifically, the adjacent colors can be obtained by selecting all adjacent RGB values of the standard color in the RGB color space. Since RGB is not a uniform color space, the scales and quantities allowed for selection in different directions of the RGB color space are different. For example, when only one or two of the three RGB values change, the color changes greatly, the scale of change should be smaller (such as ±10), and the number of selections should be smaller. When the three RGB values change in the same direction (such as all increase), the color change is actually not large, so it is necessary to select a larger change value (such as ±15) in this direction and select a larger number of adjacent colors, thereby determining the RGB values of all adjacent colors.
[0032] Step S103: determining the second color differences between the plurality of adjacent colors and the standard color according to the RGB value of the standard color and the RGB values of the plurality of adjacent colors.
[0033] Specifically, a preconfigured conversion algorithm between RGB and CI ELAB may be used to calculate CI ELAB color values of the standard color and a plurality of adjacent colors, and then the CI ELAB color difference ΔE between the two may be calculated according to the CI ELAB color values.
[0034] Step S104: Classify the second color differences of multiple adjacent colors and the standard color respectively according to a preset color difference reference value system classification table to obtain reference color sets corresponding to different color difference levels. The color difference reference value system classification table includes different color difference levels and their corresponding color difference ranges.
[0035] Specifically, the color difference levels included in the color difference reference value system classification table can be set according to the preset level step. For example, starting from a color difference of 0.8, the color difference can be divided into 1.0 level, 1.2 level, 1.4 level, 1.6 level, 1.8 level and 2.0 level at every 0.2 level. It can also be divided into 1.5 level, 2.0 level, 2.5 level, etc. starting from a color difference of 1.0, and the color difference levels can be divided into 1.5 level, 2.0 level, 2.5 level, etc. The color difference level can also be identified by a level mark, for example, 1.0 level is Class A, and 1.4 level is Class E. More specifically, each level corresponds to a different color difference value range. For example, assuming that the color difference levels include 0.8 level, 1.2 level and 1.6 level, the color difference value corresponding to level 0.8 is 0.8±0.1, that is, the color difference of level 0.8 is in the range of 0.7 to 0.9; the color difference value corresponding to level 1.2 is 1.2±0.1, that is, the color difference of level 1.2 is in the range of 1.1 to 1.3, and the color difference value corresponding to level 1.6 is 1.6±0.1, that is, the color difference of level 1.6 is in the range of 1.5 to 1.7.
[0036] Step S105: Filter the first color difference in the color difference reference value system classification table to obtain the target color difference level corresponding to the first color difference, and determine the third color differences between multiple reference colors and the batch color according to the RGB value of the batch color and the RGB value in the reference color set corresponding to the target color difference level, and filter the color with the smallest difference as the target reference color.
[0037] Specifically, the first color difference is compared with the color difference range of each color difference level in the color difference reference value system classification table one by one to determine the color difference level it corresponds to. For example, assuming that the first color difference between the standard color and the batch color is 1.05, and the color difference levels in the color difference reference value system classification table include 1.0 level, 1.2 level, and 1.4 level, then the corresponding color difference level is 1.0 level. At this time, the reference color set corresponding to level 1.0 is screened to obtain the target reference color that is closest to the batch color.
[0038] Step S106: Control the target reference color, standard color and batch color to be output and displayed, so that the user can perform visual evaluation according to the output display results.
[0039] The embodiment of the present application determines the RGB value of the standard color and the RGB value of the batch color, as well as the first color difference between the standard color and the batch color, through the color measurement data of the standard color and the color measurement data of the batch color, determines the RGB value of each of the multiple peripheral adjacent colors based on the RGB value of the standard color, determines the second color difference of each of the multiple peripheral adjacent colors with the standard color based on the RGB value of the standard color and the multiple peripheral adjacent colors, and classifies them into different color difference levels according to the classification requirements; selects the target color difference level corresponding to the batch color according to the first color difference, selects the reference color with the smallest difference with the batch color according to the third color difference between the batch sample and the reference color sample set in the color difference level as the target reference color, controls the target reference color, the standard color and the batch color, and the second color difference of the multiple peripheral adjacent colors with the standard color. The secondary color is output and displayed so that the user can make a visual evaluation based on the output display result. This method of classifying all the surrounding adjacent colors of the standard color through a preset color difference reference value system classification table realizes a hierarchical management method that combines color difference data with visualization, and achieves the purpose of any color having an adjustable visual color difference grade reference system, so that the different color difference grade visualization effects of the standard color can be quickly understood, and the color difference grade requirements can be accurately managed. The standard color, batch color and the most suitable target color difference reference color can be more accurately converted into visual data for users to conduct remote and rapid management, solving the problem that the existing color difference evaluation cannot achieve both high efficiency and high reliability.
[0040] In some embodiments, step S101 further includes:
[0041] Step S1011 (not shown in the figure): obtaining CI ELAB colorimetric data of the standard color and CI ELAB colorimetric data of the batch color;
[0042] Step S1012 (not shown): according to a preset conversion algorithm between CI ELAB colorimetric data and RGB value, the CI ELAB colorimetric data of the standard color and the CI ELAB colorimetric data of the batch color are converted into formats to obtain the screen display RGB standard color and the screen display RGB batch color;
[0043] Step S1013 (not shown): If the standard color is visually consistent with the screen display RGB standard color and the batch color is visually consistent with the screen display RGB batch color, the RGB value of the standard color and the RGB value of the batch color are determined based on the screen display RGB standard color and the screen display RGB batch color.
[0044] In an embodiment of the present application, CI ELAB colorimetric data is used to characterize the color value obtained by measuring the color space of the colorimetric device. Specifically, the colorimetric device is connected to the terminal so that the terminal obtains the colorimetric data collected by the colorimetric device. Specifically, the CI ELAB colorimetric data of the standard color and the CI ELAB colorimetric data of the batch color collected by the colorimetric device can be obtained by a colorimeter (i.e., a colorimetric device, the color space adopted is generally CIELAB) connected to the terminal device. When applied, a preset sampling frequency can be set to obtain the CI ELAB colorimetric data of the standard color and the CI ELAB colorimetric data of the batch color, or the CI ELAB colorimetric data of the standard color and the CI ELAB colorimetric data of the batch color can be obtained after sending a data acquisition instruction to the colorimetric device.
[0045] Since the colorimeter uses the CI ELAB color space, the color values of L, a, b, etc. of CI ELAB in step S101 are processed by the pre-configured color space conversion algorithm between CI ELAB and RGB, and the RGB values for the standard color and the RGB values for the batch color are obtained and then output for display, so that the user can evaluate the display effect on the screen and the actual standard color and batch color to determine whether they are consistent. When applied, the color space conversion algorithm provided by a third party can also be called using the preset interface to complete the conversion.
[0046] When applied, the color measurement data CI ELAB is not directly used to calculate the first color difference between the standard color and the batch color. Because the data must be consistent with the visualization effect, the RGB value is used as the standard. It is necessary to convert back to CI ELAB based on the RGB value and then calculate the first color difference CI EΔE between the standard color and the batch color. This will bring a small error to the data, but it can also avoid the large error caused by the color measurement data CI ELAB itself in the following s1014, s1015, S1016 and other situations. Therefore, the following s1014, s1015, S1016 and other visualization processes are used to improve the consistency of the data with visual inspection and improve the reliability of digitization.
[0047] The embodiment of the present application displays the standard color and batch color on the screen through the conversion of RGB values, so that the user can judge whether the screen display effect is consistent with the actual object through visual evaluation, thereby avoiding the inconsistency between the displayed color and the sample affecting the subsequent visual color difference data grading management.
[0048] In some embodiments, step S101 further includes:
[0049] Step S1014 (not shown in the figure): If the standard color is visually inconsistent with the RGB standard color displayed on the screen, or the batch color is inconsistent with the RGB batch color displayed on the screen, the measurement conditions or conversion algorithm are adjusted, and the CIELAB colorimetric data of the standard color and the CI ELAB colorimetric data of the batch color are obtained again, and the CI ELAB colorimetric data of the standard color and the CI ELAB colorimetric data of the batch color are format-converted according to the preset conversion algorithm between CI ELAB colorimetric data and RGB values to obtain the RGB standard color displayed on the screen and the RGB batch color displayed on the screen, until the standard color is consistent with the RGB standard color displayed on the screen and the batch color is consistent with the RGB batch color displayed on the screen.
[0050] Specifically, the measurement conditions include the measurement aperture, measurement direction, physical states such as light transmittance of the object being measured, etc. After adjusting the measurement conditions, the reacquired data is converted into RGB values for display again until the visual screen display effect is consistent with the actual sample.
[0051] Specifically, a plurality of conversion algorithms between CI ELAB color measurement data and RGB values can be provided in advance, and one of them can be used as a default algorithm. When the standard color is inconsistent with the RGB standard color displayed on the screen, or the batch color is inconsistent with the RGB batch color displayed on the screen, other conversion algorithms can be set as the default algorithm to re-execute steps S1011 and S1012 to obtain the RGB value of the standard color and the RGB value of the batch color that meet the conditions of step S1013.
[0052] In some embodiments, step S101 further includes:
[0053] Step S1015 (not shown): if the standard color is visually inconsistent with the RGB standard color displayed on the screen, the RGB of the reference color closest to the standard color is visually selected from all surrounding RGB reference colors as the RGB value of the standard color;
[0054] Step S1016 (not shown): if the batch color is inconsistent with the RGB batch color displayed on the screen, the RGB of the reference color closest to the batch color is visually selected from all surrounding RGB reference colors as the RGB value of the batch color.
[0055] Specifically, if the standard color is inconsistent with the screen display RGB standard color or if the batch color is inconsistent with the screen display RGB batch color, the surrounding RGB reference color can be obtained by adjusting the RGB parameters of the screen display color and displaying it, so that the user can select the closest color by visual inspection, and use the RGB value of the closest color as the RGB value of the standard color or the RGB value of the batch color.
[0056] In some embodiments, step S102 further includes:
[0057] Based on the preset range of variation values of the three components R, G, and B, the combinations of the R, G, and B components are arranged, and the RGB value of the standard color is adjusted according to the combination of the R, G, and B components to obtain the respective RGB values of multiple peripheral adjacent colors of the standard color.
[0058] Specifically, the combination of R, G, and B components can be arranged according to the range of variation of the three components. More specifically, the range of variation of the three components R, G, and B can be the same or different. For example, all combinations of R, G, and B within ±a. When applied, at least one of the three components R, G, and B can be adjusted and combined. For example, one of the three parameters R, G, and B of the standard color is adjusted to (a+1)~(a+b) or -(a+1)~-(a+b), and the other two values are only taken within a small range of ±c based on the adjustment value. When applied, the values of a, b, and c can be determined according to the color difference range. For example, assuming that the color difference range CI EΔE is less than 3, the value of a can refer to 10, the value of B can refer to 5, and the value of C can refer to 5, which will not be listed here one by one.
[0059] In some embodiments, step S104 further includes:
[0060] The standard color and the reference color sets corresponding to different color difference levels are displayed as images, so that users can understand the visualization effects of different digital color difference levels through visual evaluation of the reference color sets corresponding to different color difference levels of the displayed output, and analyze or adjust the rationality of the setting of the color difference reference value system classification table.
[0061] Specifically, an interactive interface may be provided to obtain the user's visual evaluation results of the reference color sets corresponding to different color difference levels of the display output. When applied, the interactive interface may provide a selection control for confirming that adjustment is required and a selection control for adjustment to be selected by the user.
[0062] In some embodiments, after step S104, the method further includes:
[0063] If an adjustment instruction for the color difference reference value system classification table is detected, the color difference reference value system classification table is updated according to the adjustment instruction, and then the steps of classifying the second color differences of multiple peripheral adjacent colors and the standard color according to the preset color difference reference value system classification table are executed to obtain reference color sets corresponding to different color difference levels.
[0064] Specifically, if the result of the user's visual assessment of the reference color sets corresponding to the different color difference levels of the display output is reasonable, there is no need to adjust the color difference reference value system classification table, otherwise it can be determined whether to adjust according to the adjustment scheme selected by the user. For example, if the visual assessment result is an update instruction for the color difference level, then the color difference level and its corresponding color difference range are updated according to the adjustment instruction. Alternatively, the execution can be completed in step S106, and corresponding processing can be performed after receiving the visual assessment result from the user, for example, if the visual assessment result is an update instruction for the color difference level, then the color difference level and its corresponding color difference range are updated according to the adjustment instruction.
[0065] For example, it is assumed that the preset color difference levels and their corresponding color difference ranges are shown in Table 1. After the multiple reference color samples corresponding to different color difference levels are displayed and output, if the user's visual evaluation result shows that the color difference level needs to be adjusted, an update instruction is generated after receiving the adjustment information input by the user, and after adjustment according to the update instruction, the color difference level shown in Table 2 is obtained. Table 2 adds color difference levels 4+ and 4- on the basis of Table 1.
[0066] Table 1
[0067] level Color difference reference value Remark 4~5 0.8~1.0 The color difference value corresponding to the 4-5 level of ISO gray card is about 0.8 4 1.6~1.8 Corresponding to ISO gray card level 4, the color difference value is about 1.7 3~4 2.4~2.6 Corresponding to ISO gray card level 3 to 4, the color difference value is about 2.5
[0068] Table 2
[0069] level Color difference reference value Remark 4~5 0.8~1.0 The color difference value corresponding to the 4-5 level of ISO gray card is about 0.8 4+ 1.2~1.4 New Levels 4 1.6~1.8 Corresponding to ISO gray card level 4, the color difference value is about 1.7 4- 2.0~2.2 New Levels 3~4 2.4~2.6 Corresponding to ISO gray card level 3 to 4, the color difference value is about 2.5
[0070] The embodiment of the present application achieves the purpose of enriching the color difference levels and the number of reference color samples and the color gamut thereof by customizing the update instructions to expand the color difference levels and increase the number of reference color samples for each color difference level, solves the problem in the related art that the physical color difference levels are few and cannot be adjusted, and provides a data basis for improving the accuracy of color difference evaluation.
[0071] In some embodiments, the step of screening the first color difference in the color difference reference value system classification table in step S105 to obtain the target color difference level corresponding to the first color difference further includes:
[0072] The difference between the first color difference and the upper and lower limits of the color difference range of different color difference levels is calculated, and the first predetermined number of color difference levels with the smallest difference are determined as the target color difference levels.
[0073] Specifically, the calculated multiple difference values can be sorted in ascending order, and a predetermined number of color difference levels ranked first can be used as the target color difference level. When applied, the number of target color difference levels is generally set to 1-2, and the optimal number is 1, that is, the color difference level with the smallest color difference is selected as the target color difference level.
[0074] Specifically, in step S105, according to the RGB value of the batch color and the RGB value of each reference color in the reference color set corresponding to the target color difference level, the step of determining the third color difference between the plurality of reference colors and the batch color, and selecting the reference color with the smallest difference as the target reference color further includes:
[0075] Determine the batch color CI ELAB value converted from the RGB value of the batch color and the reference color CI ELAB value converted from the RGB value of each reference color in the reference color set corresponding to the target color difference level;
[0076] Calculate the difference between the CI ELAB value of the batch color and the CI ELAB value of each reference color in the reference color set corresponding to the target color difference level, and obtain the third color difference between the plurality of reference colors and the batch color;
[0077] A target reference color is obtained by screening multiple reference colors according to the third color differences between the multiple reference colors and the batch colors.
[0078] Specifically, the third color differences between multiple reference colors and batch colors can be sorted in ascending order, and a predetermined number of reference colors ranked first are used as target reference colors. When applied, one or more colors with the smallest color difference are generally selected as target reference colors.
[0079] CI ELAB data is a color value based on the CI ELAB color space, including lightness L and two chromaticity indicators a and b. The color difference ΔE is a comprehensive value that depends on the coordinate values of the L, a, and b differences between the two colors. The difference ΔE between the chromaticity coordinate values of two colors in the CI ELAB color space (L* sample, a* sample, b* sample) and (L* standard, a* standard, b* standard) is calculated by the following formula: ΔE = [(ΔL*)2 + (Δa*)2 + (Δb*)2]1 / 2. Among them: ΔL* = L* sample - L* standard, which is the lightness difference; ΔL* is a positive value, the sample color is lighter; Δa* is a negative value, the sample color is darker. Δa* = a* sample - a* standard, which is the red / green difference; Δa* is a positive value, the sample color is redder; Δa* is a negative value, the sample is greener. △b*=b*sample-b*standard, which is the yellow / blue difference; △b* is a positive value, the sample color is yellowish; △b* is a negative value, the sample is bluish. When △E is used to evaluate color difference, the smaller the △E, the closer the sample is to the standard color, and vice versa, the farther the two colors are apart. Therefore, the chromaticity bias can be determined based on △L*, △a*, and △b*. Therefore, the target reference color with the smallest color difference from the batch color will be visually very close to the batch color, and the visual color difference rating system composed of it and the standard color will help to accurately locate the color difference level of the batch color.
[0080] An embodiment of the present application provides a visual color difference data hierarchical management device, such as Figure 2As shown, the device 20 includes: a color data determination module 201, an adjacent color data determination module 202, an adjacent color difference value determination module 203, a reference color set determination module 204, a target reference color determination module 205 and a color sample display output module 206.
[0081] A color data determination module 201 is used to determine the RGB value of the standard color and the RGB value of the batch color, and a first color difference between the RGB value of the standard color and the RGB value of the batch color based on the CI ELAB colorimetric data of the standard color and the CI ELAB colorimetric data of the batch color;
[0082] The adjacent color data determination module 202 is used to determine the RGB values of the plurality of adjacent colors surrounding the standard color based on the RGB value of the standard color;
[0083] The adjacent color difference value determination module 203 is used to determine the second color difference between the plurality of adjacent colors and the standard color according to the RGB value of the standard color and the RGB values of the plurality of adjacent colors;
[0084] The reference color set determination module 204 is used to classify the second color differences between the plurality of adjacent colors and the standard color according to a preset color difference reference value system classification table to obtain reference color sets corresponding to different color difference levels, wherein the color difference reference value system classification table includes different color difference levels and their corresponding color difference ranges;
[0085] The target reference color determination module 205 is used to screen the first color difference in the color difference reference value system classification table to obtain the target color difference level corresponding to the first color difference, and determine the third color difference between the batch color and the reference colors according to the RGB value of the batch color and the RGB value of each reference color in the reference color set corresponding to the target color difference level, and screen the reference color with the smallest difference as the target reference color;
[0086] The color sample display output module 206 is used to control the target reference color, standard color and batch color to be output and displayed, so that the user can perform visual evaluation according to the output display results.
[0087] The embodiment of the present application determines the RGB value of the standard color and the RGB value of the batch color, as well as the first color difference between the RGB value of the standard color and the RGB value of the batch color through the color measurement data of the standard color and the color measurement data of the batch color, determines the RGB value of each of the multiple peripheral adjacent colors based on the RGB value of the standard color, determines the second color difference of each of the multiple peripheral adjacent colors with the standard color based on the RGB value of the standard color and the multiple peripheral adjacent colors, and classifies them into different color difference levels according to the classification requirements; selects the target color difference level corresponding to the batch color according to the first color difference, selects the reference color with the smallest difference with the batch color according to the third color difference between the batch sample and the reference color sample set in the color difference level as the target reference color, controls the target reference color, the standard color, and the reference color sample set. The standard color and batch color are output and displayed so that the user can make a visual evaluation based on the output display results. This method of classifying all the surrounding adjacent colors of the standard color through a preset color difference reference value system classification table realizes a hierarchical management method that combines color difference data with visualization, so as to achieve the purpose of making any color have an adjustable visual color difference grade reference system, so as to quickly understand the visualization effects of different color difference grades of the standard color, realize accurate management of color difference grade requirements, and more accurately convert the standard color, batch color and the most suitable target color difference reference color into visual data for users to conduct remote and rapid management, thereby solving the problem that the existing color difference evaluation technology cannot achieve both high efficiency and high reliability.
[0088] Furthermore, the color data determination module includes:
[0089] A colorimetric data acquisition submodule is used to acquire CI ELAB colorimetric data of standard colors and CI ELAB colorimetric data of batch colors;
[0090] The RGB value conversion and display submodule is used to convert the CI ELAB color measurement data of the standard color and the CI ELAB color measurement data of the batch color according to the preset conversion algorithm between the CI ELAB color measurement data and the RGB value, so as to obtain the screen display RGB standard color and the screen display RGB batch color;
[0091] The first data determination submodule is used to determine the RGB value of the standard color and the RGB value of the batch color according to the screen display RGB standard color and the screen display RGB batch color if the standard color is visually consistent with the screen display RGB standard color and the batch color is visually consistent with the screen display RGB batch color.
[0092] Furthermore, the color data determination module also includes:
[0093] The second data determination submodule is used to adjust the measurement conditions or conversion algorithm if the standard color is visually inconsistent with the RGB standard color displayed on the screen, or the batch color is inconsistent with the RGB batch color displayed on the screen, and re-execute the steps of obtaining the CIELAB colorimetric data of the standard color and the CI ELAB colorimetric data of the batch color, and convert the formats of the CI ELAB colorimetric data of the standard color and the CI ELAB colorimetric data of the batch color according to the preset conversion algorithm of the CI ELAB colorimetric data and the RGB value, to obtain the RGB standard color displayed on the screen and the RGB batch color displayed on the screen, until the standard color is consistent with the RGB standard color displayed on the screen and the batch color is consistent with the RGB batch color displayed on the screen.
[0094] Furthermore, the color data determination module also includes:
[0095] A first adjustment processing unit is used for visually selecting the RGB of a reference color closest to the standard color from all surrounding RGB reference colors as the RGB value of the standard color if the standard color is visually inconsistent with the RGB standard color displayed on the screen;
[0096] The second adjustment processing unit is used for visually selecting the RGB of a reference color closest to the batch color from all surrounding RGB reference colors as the RGB value of the batch color if the batch color is visually inconsistent with the RGB batch color displayed on the screen.
[0097] Furthermore, the adjacent color data determination module includes:
[0098] The adjustment strategy determination and processing module is used to arrange the combination of R, G, and B components based on the preset range of change values of the three components R, G, and B, and adjust the RGB value of the standard color according to the combination of R, G, and B components to obtain the respective RGB values of multiple peripheral adjacent colors of the standard color.
[0099] Furthermore, the reference color set determination module further includes:
[0100] The reference color evaluation submodule is used to display and output the standard color and the reference color sets corresponding to different color difference levels in an image, so that the user can analyze the rationality of the setting of the color difference reference value system classification table through visual evaluation of the reference color sets corresponding to different color difference levels output by the display.
[0101] Furthermore, the reference color set determination module further includes:
[0102] The classification system adjustment submodule is used for, if an adjustment instruction for the color difference reference value system classification table is detected, updating the color difference reference value system classification table according to the adjustment instruction, and then executing the steps of classifying the second color difference between multiple peripheral adjacent colors and the standard color according to the preset color difference reference value system classification table to obtain reference color sets corresponding to different color difference levels.
[0103] Furthermore, the target reference color determination module includes:
[0104] The difference calculation submodule is used to calculate the difference between the first color difference and the upper and lower limits of the color difference range of different color difference levels, and determine the target color difference level.
[0105] The above-mentioned device of this embodiment can execute the method shown in the embodiment of this application, and its implementation principle is similar, which will not be repeated here.
[0106] Another embodiment of the present application provides a terminal, including: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above method when executing the computer program.
[0107] Specifically, the processor may be a CPU, a general-purpose processor, a DSP, an ASIC, an FPGA or other programmable logic device, a transistor logic device, a hardware component or any combination thereof. It may implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of this application. The processor may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.
[0108] Specifically, the processor is connected to the memory via a bus, and the bus may include a path for transmitting information. The bus may be a PCI bus or an EISA bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc.
[0109] The memory can be a ROM or other type of static storage device that can store static information and instructions, a RAM or other type of dynamic storage device that can store information and instructions, or an EEPROM, CD-ROM or other optical disk storage, optical disk storage (including compressed optical disk, laser disk, optical disk, digital versatile disk, Blu-ray disk, etc.), magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited to this.
[0110] Optionally, the memory is used to store the code of the computer program for executing the solution of the present application, and the execution is controlled by the processor. The processor is used to execute the application program code stored in the memory to implement Figure 2 The illustrated embodiments provide for the operation of the apparatus.
[0111] Another embodiment of the present application provides a computer-readable storage medium storing computer-executable instructions for executing the above-mentioned Figure 1 The method shown.
[0112] The device embodiments described above are only illustrative, and the units described as separate components may or may not be physically separated, 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 solution of this embodiment.
[0113] It will be appreciated by those skilled in the art that all or some of the steps and systems in the disclosed method above may be implemented as software, firmware, hardware and appropriate combinations thereof. Some physical components or all physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor or a microprocessor, or may be implemented as hardware, or may be implemented as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or a non-transitory medium) and a communication medium (or a temporary medium). As known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, disk storage or other magnetic storage devices, or any other medium that may be used to store desired information and may be accessed by a computer. Furthermore, it is well known to those skilled in the art that communication media typically embodies computer readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.
[0114] The above is a specific description of the preferred implementation of the present application, but the present application is not limited to the above-mentioned implementation mode. Technical personnel familiar with the field can also make various equivalent deformations or substitutions without violating the spirit of the present application. These equivalent deformations or substitutions are all included in the scope defined by the claims of the present application.
Claims
1. A method for hierarchical management of visual color difference data, characterized in that: The method comprises: Determine, based on CIELAB colorimetric data of the standard color and CIELAB colorimetric data of the batch color, an RGB value of the standard color and an RGB value of the batch color, and a first color difference between the RGB value of the standard color and the RGB value of the batch color; Based on the RGB value of the standard color, determine the RGB value of each of a plurality of peripheral adjacent colors of the standard color; Determine the second color difference between the plurality of adjacent colors and the standard color according to the RGB value of the standard color and the RGB values of the plurality of adjacent colors; According to a preset color difference reference value system classification table, a plurality of peripheral adjacent colors are respectively classified with respect to the second color difference of the standard color to obtain reference color sets corresponding to different color difference levels, wherein the color difference reference value system classification table may include different color difference levels and their corresponding color difference ranges; Screening the first color difference in the color difference reference value system classification table to obtain a target color difference level corresponding to the first color difference, and determining the third color differences between the plurality of reference colors and the batch color according to the RGB value of the batch color and the RGB value of each reference color in the reference color set corresponding to the target color difference level, and screening the reference color with the smallest difference as the target reference color; The target reference color, the standard color and the batch color are controlled to be output and displayed, so that a user can make a visual evaluation based on the output display results.
2. The method according to claim 1, characterized in that Determining the RGB value of the standard color and the RGB value of the batch color based on the CIELAB colorimetric data of the standard color and the CIELAB colorimetric data of the batch color comprises: Obtain CIELAB colorimetric data of standard colors and CIELAB colorimetric data of batch colors; According to a preset conversion algorithm between CIELAB colorimetric data and RGB values, the CIELAB colorimetric data of the standard color and the CIELAB colorimetric data of the batch color are respectively converted into formats to obtain a screen display RGB standard color and a screen display RGB batch color; If the standard color is visually consistent with the screen display RGB standard color and the batch color is visually consistent with the screen display RGB batch color, the RGB value of the standard color and the RGB value of the batch color are determined based on the screen display RGB standard color and the screen display RGB batch color.
3. The method according to claim 2, characterized in that The step of determining the RGB value of the standard color and the RGB value of the batch color based on the CIELAB colorimetric data of the standard color and the CIELAB colorimetric data of the batch color further includes: If the standard color is visually inconsistent with the RGB standard color displayed on the screen, or the batch color is visually inconsistent with the RGB batch color displayed on the screen, the measurement conditions or the conversion algorithm are adjusted, and the steps of obtaining the CIELAB colorimetric data of the standard color and the CIELAB colorimetric data of the batch color are re-executed, and the CIELAB colorimetric data of the standard color and the CIELAB colorimetric data of the batch color are format-converted according to the preset conversion algorithm of CIELAB colorimetric data and RGB values to obtain the RGB standard color displayed on the screen and the RGB batch color displayed on the screen, until the standard color is consistent with the RGB standard color displayed on the screen and the batch color is consistent with the RGB batch color displayed on the screen.
4. The method according to claim 2, characterized in that Determining the RGB value of the standard color and the RGB value of the batch color based on the CIELAB colorimetric data of the standard color and the CIELAB colorimetric data of the batch color comprises: If the standard color is visually inconsistent with the RGB standard color displayed on the screen, visually select the RGB of the reference color closest to the standard color from all surrounding RGB reference colors as the RGB value of the standard color; If the batch color is visually inconsistent with the screen display RGB batch color, the RGB of a reference color closest to the batch color is visually selected from all surrounding RGB reference colors as the RGB value of the batch color.
5. The method according to claim 1, characterized in that: The step of determining the RGB values of the plurality of adjacent colors of the standard color based on the RGB value of the standard color comprises: Based on the preset range of variation values of the three components R, G, and B, the combinations of the R, G, and B components are arranged, and the RGB value of the standard color is adjusted according to the combinations of the R, G, and B components to obtain the respective RGB values of multiple peripheral adjacent colors of the standard color.
6. The method according to claim 1, characterized in that Before the step of classifying the second color differences of a plurality of adjacent colors and the standard color respectively according to the preset color difference reference value system classification table to obtain reference color sets corresponding to different color difference levels, the method further includes: Outputting the standard color and the reference color sets corresponding to the different color difference levels as images, so that the user can analyze or adjust the rationality of the setting of the color difference reference value system classification table by visually evaluating the reference color sets corresponding to the different color difference levels output; If an adjustment instruction for the color difference reference value system classification table is detected, the color difference reference value system classification table is updated according to the adjustment instruction, and then the step of classifying the second color difference of multiple peripheral adjacent colors and the standard color according to the preset color difference reference value system classification table is executed to obtain a reference color set corresponding to each of the different color difference levels.
7. The method according to claim 1, characterized in that The step of screening the first color difference in the color difference reference value system classification table to obtain a target color difference level corresponding to the first color difference includes: The difference between the first color difference and the upper and lower limits of the color difference range of different color difference levels is calculated, and the first predetermined number of color difference levels with the smallest difference are determined as the target color difference levels.
8. A visual color difference data hierarchical management device, characterized in that: include: A color data determination module, configured to determine the RGB value of the standard color and the RGB value of the batch color, and a first color difference between the RGB value of the standard color and the RGB value of the batch color based on the CIELAB colorimetric data of the standard color and the CIELAB colorimetric data of the batch color; An adjacent color data determination module, used for determining the RGB value of each of a plurality of adjacent colors surrounding the standard color based on the RGB value of the standard color; an adjacent color difference value determination module, configured to determine second color differences between a plurality of adjacent colors and the standard color according to the RGB value of the standard color and the RGB values of each of a plurality of adjacent colors; a reference color set determination module, configured to classify the second color differences between a plurality of peripheral adjacent colors and the standard color respectively according to a preset color difference reference value system classification table, to obtain reference color sets corresponding to different color difference levels, wherein the color difference reference value system classification table may include different color difference levels and their corresponding color difference ranges; a target reference color determination module, configured to screen the first color difference in the color difference reference value system classification table to obtain a target color difference level corresponding to the first color difference, and determine the third color differences between the plurality of reference colors and the batch color according to the RGB value of the batch color and the RGB value of each reference color in the reference color set corresponding to the target color difference level, and screen the reference color with the smallest difference as the target reference color; The color sample display output module is used to control the target reference color, the standard color and the batch color to perform output display processing, so that the user can perform visual evaluation according to the output display results.
9. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores computer-readable instructions, and the processor is used to execute the computer-readable instructions, wherein the computer-readable instructions execute the method according to any one of claims 1 to 7 when executed.
10. A computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are used to execute the method according to any one of claims 1 to 7.
Citation Information
Cited By
Visualized color difference data grading management method and apparatus, device, and medium
WO2026086916A1