Color evaluation method and device, electronic equipment and medium

By combining brightness and color dimensions in a three-dimensional color space for color evaluation, the problem of inaccurate evaluation in existing technologies is solved, achieving higher accuracy and reliability.

CN121746508APending Publication Date: 2026-03-27BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-27
Publication Date
2026-03-27

AI Technical Summary

Technical Problem

Existing technologies evaluate color based on only multiple color dimensions, resulting in inaccurate color evaluation and failing to take into account the impact of brightness on color difference.

Method used

In a three-dimensional color space, including brightness and color dimensions, the relationship between the color to be tested and the target color is determined. The color difference range is used to determine whether the color meets the requirements, and correction is performed when it does not.

Benefits of technology

It improves the accuracy of color evaluation, takes into account the impact of brightness on color difference, reduces the complexity of color evaluation, and improves reliability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121746508A_ABST
    Figure CN121746508A_ABST
Patent Text Reader

Abstract

The invention relates to a color evaluation method and device, electronic equipment and a medium. The color evaluation method comprises the steps of determining a target color corresponding to a to-be-detected color in a three-dimensional color space; under the condition that the to-be-detected color is located in the color difference range of the target color, determining that the to-be-detected color meets the color difference requirement; under the condition that the to-be-detected color is located outside the color difference range of the target color, determining that the to-be-detected color does not meet the color difference requirement; wherein the dimensions of the three-dimensional color space comprise the brightness dimension and the color dimension. By performing color evaluation on the to-be-detected color in the three-dimensional color space comprising the brightness dimension and the color dimension, the influence of the brightness on the color difference can be considered, so that the color evaluation accuracy is improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present disclosure relates to the technical field of color evaluation, and in particular, to a color evaluation method and device, an electronic device, and a medium. BACKGROUND

[0002] In order to avoid color deviation of the displayed color and affect the visual experience of the user, the displayed color needs to be evaluated as a to-be-measured color. However, in the process of color evaluation, only multiple color dimensions can be evaluated, which leads to inaccurate color evaluation. SUMMARY

[0003] To overcome the problems in the related art, the present disclosure provides a color evaluation method, device, electronic device, and medium.

[0004] According to a first aspect of some embodiments of the present disclosure, a color evaluation method is provided, which includes:

[0005] determining a target color corresponding to a to-be-measured color in a three-dimensional color space;

[0006] in a case where the to-be-measured color is within a color difference range of the target color, determining that the to-be-measured color meets a color difference requirement;

[0007] in a case where the to-be-measured color is outside the color difference range of the target color, determining that the to-be-measured color does not meet the color difference requirement;

[0008] wherein the dimensions of the three-dimensional color space include a luminance dimension and a color dimension.

[0009] In some embodiments of the present disclosure, the determination of the target color corresponding to the to-be-measured color includes:

[0010] determining a first color coordinate of the to-be-measured color in the three-dimensional color space;

[0011] determining a second color coordinate of each preset color in the three-dimensional color space;

[0012] determining the preset color corresponding to the second color coordinate closest to the first color coordinate as the target color; or

[0013] determining a first identifier of the to-be-measured color;

[0014] determining a second identifier of each preset color in the three-dimensional color space;

[0015] determining the preset color corresponding to the second identifier identical to the first identifier as the target color.

[0016] In some embodiments of this disclosure, the color to be measured is within the color difference range of the target color, including:

[0017] The first color coordinate of the color to be tested in the three-dimensional color space is the color coordinate within the color difference range of the target color;

[0018] The color to be tested is outside the color difference range of the target color, including:

[0019] The first color coordinate is a color coordinate outside the color difference range of the target color.

[0020] In some embodiments of this disclosure, in the three-dimensional color space, before determining the target color corresponding to the color to be measured, the color evaluation method further includes:

[0021] Determine the color difference range of at least one preset color;

[0022] Wherein, the at least one preset color includes the target color.

[0023] In some embodiments of this disclosure, determining the color difference range of at least one preset color includes:

[0024] Using the center color coordinates as the center of the two-dimensional graphic, the two-dimensional graphic is constructed according to a preset color difference threshold. The center color coordinates are the color coordinates of the preset color. The two-dimensional graphic contains multiple color coordinates in the plane.

[0025] Based on the two-dimensional graphic, a three-dimensional graphic is constructed, wherein the three-dimensional graphic contains multiple color coordinates in space;

[0026] The range of colors corresponding to the color coordinates contained in the three-dimensional graphic is taken as the color difference range of the preset color.

[0027] In some embodiments of this disclosure, the two-dimensional graphic is elliptical; the construction of the two-dimensional graphic based on a preset color difference threshold, using the center color coordinates as the center of the two-dimensional graphic, includes:

[0028] A first vector is formed by the central color coordinates and the origin color coordinates in the three-dimensional color space;

[0029] The major axis of the ellipse is determined based on the first vector and the preset color difference threshold.

[0030] The minor axis of the ellipse is determined based on the second vector perpendicular to the first vector and the preset color difference threshold.

[0031] The ellipse is constructed based on the central color coordinates, the major axis, and the minor axis of the ellipse.

[0032] In some embodiments of this disclosure, determining the major axis of the ellipse based on the first vector and the preset color difference threshold includes:

[0033] Starting from the central color coordinates, the color coordinates in the three-dimensional color space are traversed step by step along the first direction of the first vector until the first color difference between the traversed color coordinates and the central color coordinates is greater than the preset color difference threshold.

[0034] The third color coordinate is used as one endpoint of the major axis of the ellipse. The third color coordinate is the color coordinate corresponding to the first color difference that is greater than the preset color difference threshold among the traversed color coordinates.

[0035] The major axis of the ellipse is determined based on the central color coordinates and the third color coordinates.

[0036] In some embodiments of this disclosure, determining the minor axis of the ellipse based on a second vector perpendicular to the first vector and the preset color difference threshold includes:

[0037] Determine a second vector that passes through the central color coordinates and is perpendicular to both the first vector and the preset plane, wherein the preset plane is the plane containing the two coordinate axes in the three-dimensional color space;

[0038] Starting from the central color coordinates, the color coordinates in the three-dimensional color space are traversed step by step along the second direction of the second vector until the second color difference between the traversed color coordinates and the central color coordinates is greater than the preset color difference threshold.

[0039] The fourth color coordinate is used as one endpoint of the minor axis of the ellipse. The fourth color coordinate is the color coordinate corresponding to the second color difference that is greater than the preset color difference threshold among the traversed color coordinates.

[0040] The minor axis of the ellipse is determined based on the central color coordinates and the fourth color coordinates.

[0041] In some embodiments of this disclosure, the two-dimensional graphic is an ellipse, and the three-dimensional graphic is an ellipsoid; the step of constructing a three-dimensional graphic based on the two-dimensional graphic includes:

[0042] The ellipse is rotated about its major axis by a preset angle to obtain the ellipsoid.

[0043] In some embodiments of this disclosure, after determining that the color to be tested does not meet the color difference requirement, the color evaluation method further includes:

[0044] Based on the target color, the color to be tested is corrected so that the corrected color to be tested is within the color difference range of the target color.

[0045] In some embodiments of this disclosure, the three-dimensional color space is the Lab color space.

[0046] According to a second aspect of the present disclosure, a color evaluation device is provided, the color evaluation device comprising:

[0047] A first determining module is configured to determine a target color corresponding to the color to be tested in a three-dimensional color space.

[0048] The second determining module is configured to determine that the color to be tested meets the color difference requirement when the color to be tested is within the color difference range of the target color.

[0049] The third determining module is configured to determine that the color to be tested does not meet the color difference requirement when the color to be tested is outside the color difference range of the target color.

[0050] The dimensions of the three-dimensional color space include a brightness dimension and a color dimension.

[0051] According to a third aspect of the present disclosure, an electronic device is provided, the electronic device comprising:

[0052] processor;

[0053] Memory used to store the processor's executable instructions;

[0054] The processor is configured to execute the color evaluation method described above.

[0055] According to a fourth aspect of the present disclosure, a non-transitory computer-readable storage medium is provided, which, when instructions in the storage medium are executed by a processor of a terminal, enables the terminal to perform the color evaluation method as described above.

[0056] The technical solutions provided by the embodiments of this disclosure may include the following beneficial effects:

[0057] In a three-dimensional color space including both luminance and chromaticity dimensions, a target color is determined corresponding to the color being tested, serving as a reference color in color evaluation. When the color being tested falls within the color difference range of the target color, users have difficulty distinguishing between them, confirming that the tested color meets the color difference requirement. When the color being tested falls outside the color difference range of the target color, users can distinguish between them, confirming that the tested color does not meet the color difference requirement. By evaluating the color being tested within a three-dimensional color space including both luminance and chromaticity dimensions, the influence of luminance on color difference can be taken into account, thereby improving the accuracy of color evaluation.

[0058] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description

[0059] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure.

[0060] Figure 1 It is a schematic diagram of a color chart;

[0061] Figure 2 This is a schematic flowchart illustrating a color evaluation method according to an exemplary embodiment;

[0062] Figure 3 This is a flowchart illustrating a color evaluation method according to another exemplary embodiment;

[0063] Figure 4 This is a flowchart illustrating a color evaluation method according to another exemplary embodiment;

[0064] Figure 5 This is a flowchart illustrating a color evaluation method according to another exemplary embodiment;

[0065] Figure 6 This is a schematic diagram illustrating the construction of ellipses in a three-dimensional color space according to an exemplary embodiment;

[0066] Figure 7 This is a schematic diagram illustrating the construction of an ellipsoid in a three-dimensional color space according to an exemplary embodiment;

[0067] Figure 8 This is a schematic diagram illustrating the color difference range of a preset color in a three-dimensional color space according to an exemplary embodiment;

[0068] Figure 9 This is a flowchart illustrating a color evaluation method according to another exemplary embodiment;

[0069] Figure 10 This is a block diagram illustrating a color evaluation device according to an exemplary embodiment;

[0070] Figure 11 This is a block diagram of an electronic device according to an exemplary embodiment.

[0071] In the picture:

[0072] 100 - First determining module; 200 - Second determining module; 300 - Third determining module; 400 - Electronic device; 402 - Processing component; 404 - Memory; 406 - Power supply component; 408 - Multimedia component; 410 - Audio component; 412 - Input / output interface; 414 - Sensor component; 416 - Communication component; 420 - Processor. Detailed Implementation

[0073] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this disclosure as detailed in the appended claims. It should also be understood that the term “and / or” as used in this disclosure refers to and includes any or all possible combinations of one or more of the associated listed items.

[0074] In fields related to color display, it is necessary to evaluate the displayed colors to determine whether color cast has occurred and affected the user's visual experience. For example, in lighting, the colors displayed by lighting equipment need to be evaluated. In printing, the colors displayed by printed materials need to be evaluated. In electronic devices, the colors displayed on screens need to be evaluated. For colors that meet color difference requirements, users may not perceive the difference, confirming that the displayed color has not been cast. For colors that do not meet color difference requirements, users can perceive the difference, confirming that the displayed color has been cast. For colors that have been cast, color correction can be used to bring them up to meet the color difference requirements.

[0075] In related technologies, a color evaluation method is provided, such as Figure 1 As shown, in a two-dimensional color space containing two color dimensions, the method determines whether the color to be tested falls within the color difference range of the target color, thus determining whether the color to be tested meets the color difference requirements. Here, the horizontal axis x represents the red component, and the vertical axis y represents the green component. This method can determine whether the color to be tested meets the color difference requirements for color evaluation. However, since the brightness of the color to be tested has a certain influence on its display, this method cannot take into account the influence of brightness on color difference, leading to inaccurate color evaluation.

[0076] To address the aforementioned technical issues, this disclosure provides a color evaluation method that evaluates the color to be tested in a three-dimensional color space that includes both brightness and color dimensions. This avoids evaluating the color to be tested solely from the color dimension, which fails to account for the influence of brightness on color difference, thereby improving the accuracy of color evaluation.

[0077] This disclosure provides a color evaluation method, such as... Figure 2 As shown, the method includes:

[0078] S100. In the three-dimensional color space, determine the target color corresponding to the color to be tested.

[0079] S200. If the color to be tested is within the color difference range of the target color, determine that the color to be tested meets the color difference requirements.

[0080] S300. If the color to be tested is outside the color difference range of the target color, it is determined that the color to be tested does not meet the color difference requirements.

[0081] The dimensions of a three-dimensional color space include brightness and color.

[0082] In this embodiment, a target color corresponding to the color to be tested is determined in a three-dimensional color space including brightness and color dimensions, and is used as a reference color in color evaluation. When the color to be tested is within the color difference range of the target color, the user has difficulty distinguishing between the two, thus confirming that the color to be tested meets the color difference requirement. When the color to be tested is outside the color difference range of the target color, the user can distinguish between the two, thus confirming that the color to be tested does not meet the color difference requirement. By performing color evaluation on the color to be tested in a three-dimensional color space including brightness and color dimensions, the influence of brightness on color difference can be taken into account, thereby improving the accuracy of color evaluation.

[0083] For example, the color to be tested is the color that needs to be evaluated. The target color is the reference color used when evaluating the color to be tested. In a three-dimensional color space, there can be one brightness dimension and two color dimensions. Color coordinates in a three-dimensional color space are represented by one brightness coordinate and two color coordinates.

[0084] In one embodiment, such as Figure 3 As shown, the target color corresponding to the color to be tested in step S100 can be determined in the following way:

[0085] S110. Determine the first color coordinates of the color to be measured in the three-dimensional color space.

[0086] S120. Determine the second color coordinates of each preset color in the three-dimensional color space.

[0087] S130, Use the preset color corresponding to the second color coordinate that is closest to the first color coordinate as the target color.

[0088] In this embodiment, the first color coordinates of the color to be tested in the three-dimensional color space are determined to determine the position of the color in the three-dimensional color space. The second color coordinates of each preset color in the three-dimensional color space are determined to determine the position of each preset color in the three-dimensional color space. Since the color difference between the color to be tested and the target color among the preset colors is minimal, the preset color corresponding to the second color coordinate closest to the first color coordinate is taken as the target color. Determining the target color by its position requires less information about the color, thus reducing the complexity of color evaluation.

[0089] For example, each color has a unique color coordinate in the three-dimensional color space. Each color coordinate can be represented by two color coordinates and one brightness coordinate, such as [L0, a0, b0], where L0 represents the brightness coordinate, and a0 and b0 represent the color coordinates. The first color coordinate is the color coordinate of the color to be measured in the three-dimensional color space, and each second color coordinate is the color coordinate of a preset color in the three-dimensional color space.

[0090] For example, the preset color is a color with a range of color differences set in a three-dimensional color space. The preset color can be, for example, red, blue, green, yellow, etc.

[0091] In one embodiment, the determination of the target color corresponding to the color to be tested in step S100 can also be determined in the following way:

[0092] The first identifier is used to determine the color to be tested.

[0093] Determine the second identifier for each preset color in the three-dimensional color space.

[0094] Use the preset color corresponding to the second identifier, which is the same as the first identifier, as the target color.

[0095] In this embodiment, a first identifier for the color to be tested is determined, and the color pointed to by the first identifier is used as a reference color. Second identifiers for each preset color in the three-dimensional color space are determined, and different second identifiers point to their corresponding preset colors. Since the same identifier points to the same color, the preset color corresponding to the second identifier that is identical to the first identifier is taken as the target color. By determining the target color through its identifier, the target color is unique and necessarily the reference color, thereby improving the reliability of color evaluation.

[0096] For example, each color can be preset with a unique identifier, which can be represented in the form of numbers and / or strings, such as 1a, 1b, 2a, etc. The first identifier is the identifier of the color to be tested, and each second identifier is the identifier of a preset color.

[0097] In one embodiment, the color to be measured being within the color difference range of the target color is determined as follows:

[0098] The first chromatic coordinate of the color to be tested in the three-dimensional color space is the chromatic coordinate within the chromatic difference range of the target color.

[0099] The determination of a color outside the color difference range of the target color is made as follows:

[0100] The first color coordinate is the color coordinate outside the color difference range of the target color.

[0101] In this embodiment, since the three-dimensional color space contains multiple different color coordinates, some color coordinates are within the color difference range of the target color, while others are outside the range. Color coordinates within the color difference range correspond to colors with small color differences from the target color, while color coordinates outside the range correspond to colors with large color differences from the target color. When the first color coordinate is within the color difference range of the target color, the color difference between the tested color and the target color is small, and the tested color is within the target color difference range. When the first color coordinate is outside the color difference range of the target color, the color difference between the tested color and the target color is large, and the tested color is outside the target color difference range. By using the position of the color coordinates for color evaluation, the relationship between the color difference range of the tested color and the target color is determined simply, thus reducing the complexity of color evaluation.

[0102] For example, if the color coordinates of the color to be measured are located in a color space other than the three-dimensional color space that includes the brightness dimension and the color dimension, the color coordinates of the color to be measured need to be transformed to the first color coordinates in the three-dimensional color space.

[0103] In one embodiment, in a three-dimensional color space, before determining the target color corresponding to the color to be measured in step S200, the color evaluation method further includes:

[0104] Determine the color difference range of at least one preset color.

[0105] Among them, at least one preset color includes the target color.

[0106] In this embodiment, before determining the target color corresponding to the color to be tested, it is necessary to pre-determine the color difference range of at least one preset color that includes the target color, so that color evaluation can be performed using the color difference range of the target color. In the three-dimensional color space, at least one preset color difference range is determined, so that color evaluation can be performed using one or more preset color difference ranges. By pre-determining the color difference range of at least one preset color, the color to be tested can be evaluated during the color evaluation process, thereby improving the reliability of the color evaluation. Simultaneously, since multiple preset color difference ranges can be determined, additional determination is avoided each time a color evaluation is performed, thereby improving the efficiency of the color evaluation.

[0107] In one embodiment, such as Figure 4As shown, the determination of the color difference range of at least one preset color in the above steps is determined in the following way:

[0108] S400. Using the center color coordinates as the center of the two-dimensional graphic, construct the two-dimensional graphic according to the preset color difference threshold. The center color coordinates are the color coordinates of the preset color. The two-dimensional graphic contains multiple color coordinates in the plane.

[0109] S410. Based on the two-dimensional graphic, construct a three-dimensional graphic. The three-dimensional graphic contains multiple color coordinates in space.

[0110] S420. Use the range of colors corresponding to the color coordinates contained in the three-dimensional graphic as the color difference range of the preset color.

[0111] In this embodiment, since the color difference range in the three-dimensional color space corresponds to a three-dimensional graphic, a two-dimensional graphic needs to be constructed first, followed by a three-dimensional graphic. A preset color difference threshold determines the size of the color difference range, and the color coordinates of a preset color determine the center of the color difference range. Based on the center color coordinates and the preset color difference threshold, a two-dimensional graphic containing multiple color coordinates in a plane is constructed. Based on the two-dimensional graphic, a three-dimensional graphic containing multiple color coordinates in space is constructed, and the range formed by the colors corresponding to each color coordinate in the three-dimensional graphic is taken as the color difference range of the preset color. By gradually constructing the color difference range of the preset color using the center color coordinates and the preset color difference threshold, all colors within the preset color difference range can meet the color difference requirements for color evaluation, thereby improving the reliability of color evaluation.

[0112] For example, different three-dimensional color spaces result in different shapes of three-dimensional graphics. For instance, in the case of a Lab color space, the shape of a three-dimensional graphic can be an ellipsoid. It is understood that the shape of a three-dimensional graphic is not limited to an ellipsoid; it can also be a cuboid, an irregular solid shape, etc.

[0113] For example, the preset color difference threshold can be a positive number. The preset color difference threshold can be 1, 2, 7, etc. Depending on the preset color difference threshold, each preset color can correspond to one or more color difference ranges, allowing for color evaluation through different color difference ranges based on the preset color difference threshold.

[0114] In one embodiment, the two-dimensional graphic is an ellipse. For example... Figure 5 As shown, in step S400, the two-dimensional graphic is constructed using the center color coordinates as the center and based on a preset color difference threshold, determined as follows:

[0115] S401. The first vector is formed by the center color coordinates and the origin color coordinates in the three-dimensional color space.

[0116] S402. Determine the major axis of the ellipse based on the first vector and the preset color difference threshold.

[0117] S403. Determine the minor axis of the ellipse based on the second vector perpendicular to the first vector and the preset color difference threshold.

[0118] S404. Construct an ellipse based on the center color coordinates, the major axis, and the minor axis of the ellipse.

[0119] In this embodiment, since the colors corresponding to the color coordinates included in the plane of the ellipse are colors that the user cannot perceive as different from the preset colors, and the colors corresponding to the color coordinates not included in the plane of the ellipse are colors that the user can perceive as different from the preset colors, the ellipse is treated as a two-dimensional graphic. Since the center color coordinates are color coordinates without any color difference, and the origin color coordinates are color coordinates used as references in the three-dimensional color space, the center color coordinates and the origin color coordinates form a first vector. Since the magnitude of the preset color difference threshold affects the major axis of the ellipse, the major axis of the ellipse is determined based on the first vector and the preset color difference threshold. Since the magnitude of the preset color difference threshold affects the minor axis of the ellipse, the minor axis of the ellipse is determined based on a second vector perpendicular to the first vector and the preset color difference threshold. Based on the center color coordinates, the major axis, and the minor axis of the ellipse, the ellipse is constructed with the center color coordinates as its center. By determining the various parameters required to construct the ellipse based on the center color coordinates, the origin color coordinates, and the preset color difference threshold, the range of colors corresponding to the color coordinates included in the ellipse constitutes the color difference range of the preset colors in the plane, thereby improving the reliability of the color difference range formation.

[0120] For example, if the color coordinates of a preset color are located in a color space other than a three-dimensional color space that includes both luminance and chrominance dimensions, the color coordinates of the preset color need to be transformed to the center color coordinates in the three-dimensional color space. The center color coordinates can be represented as [L... target a target b target The origin color coordinates can be represented as [50, 0, 0], and the first vector can be represented as [L]. target -50, a target b target ].

[0121] It is understandable that two-dimensional graphics can be not only ellipses, but also rectangles, squares, triangles and other planar figures; no limitation is made here.

[0122] In one embodiment, the major axis of the ellipse in step S402, based on the first vector and a preset color difference threshold, is determined as follows:

[0123] Starting from the central color coordinates, the color coordinates in the three-dimensional color space are traversed step by step along the first direction of the first vector until the first color difference between the traversed color coordinates and the central color coordinates is greater than the preset color difference threshold.

[0124] The third color coordinate is used as one endpoint of the major axis of the ellipse. The third color coordinate is the color coordinate corresponding to the first color difference that is greater than the preset color difference threshold among the traversed color coordinates.

[0125] Determine the major axis of the ellipse based on the central color coordinates and the third color coordinates.

[0126] In this embodiment, since the endpoints of the major axis of the ellipse depend on a preset color difference threshold and the color coordinates corresponding to the endpoints of the major axis cannot be directly determined, they need to be determined through a step-by-step traversal. Starting from the center color coordinate, the color coordinates in the three-dimensional color space are traversed step-by-step along the first direction of the first vector until the first color difference is greater than the preset color difference threshold. For each color coordinate traversed, the first color difference between the traversed color coordinate and the center color coordinate is determined to determine the relationship between the color difference corresponding to that color coordinate and the preset color difference threshold. When the first color difference is greater than the preset color difference threshold, the third color coordinate corresponding to the first color difference exceeds the preset color difference range of the color in the plane for the first time, and is regarded as the boundary point of the color difference range as one endpoint of the major axis of the ellipse. Since the center of the ellipse and one endpoint of the major axis can form the major axis, the major axis of the ellipse is determined based on the center color coordinate and the third color coordinate. By determining the major axis of the ellipse through a step-by-step traversal, the ellipse is avoided from containing too many colors that cannot meet the color difference requirements, thereby improving the reliability of the color difference range formation.

[0127] For example, the first direction can be either the direction from the center color coordinates to the origin color coordinates, or the direction from the origin color coordinates to the center color coordinates. The stepwise traversal of color coordinates in the three-dimensional color space in the above steps can be performed with a preset step size. The smaller the preset step size, the higher the accuracy of the color difference range of the preset color in the plane. Conversely, the larger the preset step size, the lower the accuracy of the color difference range of the preset color in the plane. The preset step size vector can be represented as... α represents the step size coefficient, which is any value greater than 1. The value of α can be 100, 500, 1000, etc. In the process of iterating through the color coordinates in the three-dimensional color space in the above steps, the color coordinates in the traversed three-dimensional color space at the p-th step can be represented as... The first color difference between the color coordinates of the p-th traversal step and the center color coordinates can be expressed as: If the first color difference exceeds a preset color difference threshold, the number of traversal steps is denoted as P, and the third color coordinate can be represented as... With [L threshold-1 a threshold-1 b threshold-1The third color coordinates are simplified to the form [] to represent the semi-major axis of the ellipse. In the process of determining the major axis of the ellipse based on the central color coordinates and the third color coordinates in the above steps, the length of the semi-major axis of the ellipse can be expressed as...

[0128] For example, in the above steps, determining the major axis of the ellipse based on the central color coordinates and the third color coordinates can be either determining the semi-major axis or determining the full major axis of the ellipse. When determining the full major axis, after using the third color coordinates as one endpoint of the ellipse's major axis in the above steps, the other endpoint of the ellipse's major axis can be determined by using the central color coordinates as the center of symmetry.

[0129] In one embodiment, the minor axis of the ellipse in step S403 is determined based on a second vector perpendicular to the first vector and a preset color difference threshold as follows:

[0130] Determine a second vector that passes through the center color coordinates and is perpendicular to both the first vector and the preset plane. The preset plane is the plane containing the two coordinate axes in the three-dimensional color space.

[0131] Starting from the central color coordinates, the color coordinates in the three-dimensional color space are traversed step by step along the second direction of the second vector until the second color difference between the traversed color coordinates and the central color coordinates is greater than the preset color difference threshold.

[0132] The fourth color coordinate is used as one endpoint of the minor axis of the ellipse. The fourth color coordinate is the color coordinate corresponding to the second color difference that is greater than the preset color difference threshold among the traversed color coordinates.

[0133] Determine the minor axis of the ellipse based on the central color coordinates and the fourth color coordinates.

[0134] In this embodiment, since the endpoints of the minor axis of the ellipse depend on a preset color difference threshold and the color coordinates corresponding to the endpoints of the minor axis cannot be directly determined, they need to be determined through a step-by-step traversal. Because there are multiple vectors in the three-dimensional color space that are both perpendicular to the first vector and pass through the center color coordinate, the vector perpendicular to the preset plane is determined as the second vector, and the minor axis of the ellipse is determined by traversing through the second vector. Starting from the center color coordinate, the color coordinates in the three-dimensional color space are traversed step-by-step along the second direction of the second vector until the second color difference is greater than the preset color difference threshold. For each color coordinate traversed, the second color difference between the traversed color coordinate and the center color coordinate is determined to establish the relationship between the color difference corresponding to that color coordinate and the preset color difference threshold. When the second color difference is greater than the preset color difference threshold, the fourth color coordinate corresponding to the second color difference first exceeds the preset color difference range in the plane, and is considered the boundary point of the color difference range as one endpoint of the minor axis of the ellipse. Since the center of the ellipse and one endpoint of the minor axis can constitute the minor axis, the minor axis of the ellipse is determined based on the center color coordinate and the third color coordinate. By determining the minor axis of the ellipse through a stepwise traversal, the ellipse is prevented from containing too many colors that cannot meet the color difference requirements, thereby improving the reliability of the color difference range formation.

[0135] For example, the second direction can be any direction extending along the second vector. The stepwise traversal of color coordinates in the three-dimensional color space in the above steps can be performed stepwise with a preset step size. The method for determining the fourth color coordinate in the above steps can be similar to the method for determining the third color coordinate in the above steps, only requiring the first vector to be adjusted to the second vector and the first direction to be adjusted to the second direction; this will not be elaborated further here. When the second color difference first exceeds a preset color difference threshold, the fourth color coordinate can be represented as [L... threshold-2 a threshold-2 b threshold-2 In the above steps, during the process of determining the minor axis of the ellipse based on the central color coordinates and the fourth color coordinates, the length of the semi-minor axis of the ellipse can be expressed as:

[0136]

[0137] For example, the step of determining the minor axis of the ellipse based on the central color coordinates and the fourth color coordinates can be either determining the semi-minor axis or determining the full minor axis. In the case of determining the full minor axis, after using the fourth color coordinate as one endpoint of the minor axis in the above step, the central color coordinate can be used as the center of symmetry to determine the other endpoint of the minor axis, thus determining the full minor axis.

[0138] For example, taking the Lab color space as an example, the preset plane can be the plane containing the a-axis and b-axis, the plane containing the L-axis and a-axis, or the plane containing the L-axis and b-axis.

[0139] For example, taking the Lab color space as an example, in step S404, constructing the shape of the ellipse based on the central color coordinates, the major axis, and the minor axis of the ellipse can be as follows: Figure 6 As shown in the figure. The horizontal axis 'a' represents the component from green to red, the vertical axis 'b' represents the component from blue to yellow, and the vertical axis 'L' represents brightness.

[0140] In one embodiment, the two-dimensional graphic is an ellipse, and the three-dimensional graphic is an ellipsoid. The construction of the three-dimensional graphic based on the two-dimensional graphic in step S410 is determined as follows:

[0141] Rotate the ellipse around its major axis by a preset angle to obtain an ellipsoid.

[0142] In this embodiment, by rotating an ellipse around its major axis by a preset angle, an ellipsoid can be obtained to determine the color difference range of a preset color in a three-dimensional color space, thereby reducing the complexity of color evaluation.

[0143] For example, the step of rotating the ellipse around its major axis by a preset angle to obtain an ellipsoid can be achieved by rotating the ellipse around its major axis in a clockwise or counterclockwise direction by a preset angle. The preset angle can be, for example, 180°.

[0144] For example, taking the Lab color space as an example, the step of rotating the ellipse around its major axis by a preset angle to obtain the shape of an ellipsoid (i.e., a preset color difference range) can be as follows: Figure 7 As shown in the figure. The horizontal axis 'a' represents the component from green to red, the vertical axis 'b' represents the component from blue to yellow, and the vertical axis 'L' represents brightness.

[0145] For example, when the two-dimensional shape is a rectangle or square, the rectangle or square can be extended to both sides by the same distance along an axis perpendicular to its center to obtain a rectangular prism or cube as a three-dimensional shape. Alternatively, the rectangle or square can be rotated by a preset angle along its center line to obtain a cylinder as a three-dimensional shape. When the two-dimensional shape is a triangle, the triangle can be extended to both sides by the same distance along an axis perpendicular to its center to obtain a prism as a three-dimensional shape. Alternatively, the triangle can be rotated by a preset angle along its altitude to obtain a cone as a three-dimensional shape.

[0146] In one embodiment, the three-dimensional color space is the Lab color space.

[0147] In this embodiment, by using the Lab color space as a three-dimensional color space, a wider color gamut is achieved by including both luminance and color dimensions, thus improving the accuracy of color evaluation. Simultaneously, since the shape of three-dimensional graphics in the Lab color space is an ellipsoid for easier construction, the complexity of color evaluation is reduced.

[0148] For example, taking the Lab color space as the three-dimensional color space, the ellipsoid as the three-dimensional graphic, and a preset color difference threshold of 7 as an example, under certain test conditions, the color difference range of the 18 preset colors can be obtained as follows: Figure 8 As shown in the figure. The horizontal axis 'a' represents the component from green to red, the vertical axis 'b' represents the component from blue to yellow, and the vertical axis 'L' represents brightness.

[0149] In one embodiment, after determining in step S300 that the color to be tested does not meet the color difference requirement, the color evaluation method further includes:

[0150] Based on the target color, the color to be tested is corrected so that the corrected color to be tested falls within the color difference range of the target color.

[0151] In this embodiment, the color to be tested is corrected when the color difference requirement is not met, so that the color to be tested can be within the color difference range of the target color, thereby improving the color display effect.

[0152] For example, the step of correcting the color to be tested based on the target color in the above steps can be to correct the color component and luminance component of the color to be tested based on the target color, so that the corrected color to be tested is within the color difference range of the target color. The correction of the color to be tested can be performed based on the difference in each dimension of the first color coordinates of the color to be tested and the second color coordinates of the target color.

[0153] This disclosure provides a color evaluation method, such as... Figure 9 As shown, the method includes:

[0154] S500. In the Lab color space, the first vector is formed by the center color coordinates and the origin color coordinates of the preset color.

[0155] S510. Starting from the center color coordinates, traverse the color coordinates in the Lab color space step by step along the first direction of the first vector, and determine the first color difference between the traversed color coordinates and the center color coordinates.

[0156] S520, If the first color difference is greater than the preset color difference threshold for the first time, the third color coordinate is used as one endpoint of the major axis of the ellipse.

[0157] S530. Determine the major axis of the ellipse based on the central color coordinates and the third color coordinates.

[0158] S540. Determine a second vector that passes through the center color coordinates and is perpendicular to the first vector and the preset plane containing the a-axis and b-axis.

[0159] S550. Starting from the center color coordinates, traverse the color coordinates in the Lab color space step by step along the second direction of the second vector, and determine the second color difference between the traversed color coordinates and the center color coordinates.

[0160] S560, if the second color difference is greater than the preset color difference threshold for the first time, the fourth color coordinate is used as one endpoint of the minor axis of the ellipse.

[0161] S570. Determine the minor axis of the ellipse based on the central color coordinates and the fourth color coordinates.

[0162] S580. Construct an ellipse based on the center color coordinates, the major axis, and the minor axis of the ellipse.

[0163] S590. Rotate the ellipse around its major axis by a preset angle to obtain an ellipsoid.

[0164] S600, The range of colors corresponding to the color coordinates contained in the ellipsoid is used as the color difference range of the preset color.

[0165] S610. Determine the target color from the preset colors that corresponds to the color to be tested.

[0166] S620. If the color to be tested is within the color difference range of the target color, determine that the color to be tested meets the color difference requirements.

[0167] S630. If the color to be tested is outside the color difference range of the target color, determine that the color to be tested does not meet the color difference requirements.

[0168] In this embodiment, in the Lab color space, a first vector is constructed using the center color coordinates and the origin color coordinates of a preset color. This first vector is used to determine the major axis of an ellipse. Starting from the center color coordinates, the color coordinates in the Lab color space are traversed step by step along the first direction of the first vector. For each color coordinate traversed in the first direction, a first color difference between the traversed color coordinate and the center color coordinate is determined to determine if the first color difference exceeds a preset color difference threshold. If the first color difference exceeds the preset color difference threshold for the first time, the color corresponding to the traversed third color coordinate has a significant difference from the preset color; therefore, the third color coordinate is used as one endpoint of the major axis of the ellipse. Based on the center color coordinates and the third color coordinates, the major axis of the ellipse is determined to obtain a parameter of the ellipse. A second vector is determined that passes through the center color coordinates and is perpendicular to the first vector and the preset planes containing the a-axis and b-axis. This second vector is used to determine the minor axis of the ellipse. Starting from the center color coordinates, the color coordinates in the Lab color space are traversed step by step along the second direction of the second vector. In the second direction, for each traversal of a color coordinate, the second color difference between the traversed color coordinate and the central color coordinate is determined to determine whether the second color difference exceeds a preset color difference threshold. If the second color difference first exceeds the preset color difference threshold, the color corresponding to the traversed fourth color coordinate differs significantly from the preset color; therefore, the fourth color coordinate is used as one endpoint of the minor axis of an ellipse. Based on the central and fourth color coordinates, the minor axis of the ellipse is determined to obtain a parameter of the ellipse. Based on the central color coordinates, the major and minor axes of the ellipse, an ellipse is constructed to obtain the color difference range of the preset color in the plane. The ellipse is rotated around its major axis by a preset angle to obtain an ellipsoid, and the range of colors corresponding to each color coordinate contained within the ellipsoid is taken as the color difference range of the preset color. A target color corresponding to the color to be tested is determined from the preset colors to determine a reference color. If the color to be tested is within the color difference range of the target color, the user has difficulty distinguishing between the color to be tested and the target color, indicating that the color to be tested meets the color difference requirement. If the color to be tested is outside the color difference range of the target color, the user can distinguish between the color to be tested and the target color, indicating that the color to be tested does not meet the color difference requirement. By determining whether the color to be tested meets the color difference requirements in the Lab color space, which includes both brightness and color dimensions, the influence of brightness on color difference can be taken into account, thereby improving the accuracy of color evaluation.

[0169] In one exemplary embodiment, a color evaluation apparatus is provided for implementing the method described above. (Reference) Figure 10 As shown, the color evaluation device may include a first determining module 100, a second determining module 200, and a third determining module 300, wherein, during the implementation of the above method,

[0170] The first determining module 100 is configured to determine the target color corresponding to the color to be tested in a three-dimensional color space.

[0171] The second determining module 200 is configured to determine that the color to be tested meets the color difference requirement when the color to be tested is within the color difference range of the target color.

[0172] The third determining module 300 is configured to determine that the color to be tested does not meet the color difference requirement when the color to be tested is outside the color difference range of the target color.

[0173] The dimensions of a three-dimensional color space include brightness and color.

[0174] In one exemplary embodiment, a color evaluation apparatus is provided, wherein a first determining module 100 is configured to:

[0175] Determine the first color coordinates of the color to be measured in the three-dimensional color space.

[0176] Determine the second color coordinates of each preset color in the three-dimensional color space.

[0177] The preset color corresponding to the second color coordinate that is closest to the first color coordinate is used as the target color.

[0178] In one exemplary embodiment, a color evaluation apparatus is provided, wherein a first determining module 100 is configured to:

[0179] The first identifier is used to determine the color to be tested.

[0180] Determine the second identifier for each preset color in the three-dimensional color space.

[0181] Use the preset color corresponding to the second identifier, which is the same as the first identifier, as the target color.

[0182] In one exemplary embodiment, a color evaluation apparatus is provided, wherein a first determining module 100 is configured to:

[0183] In a three-dimensional color space, determine the color difference range of at least one preset color.

[0184] Among them, at least one preset color includes the target color.

[0185] In one exemplary embodiment, a color evaluation apparatus is provided, wherein a first determining module 100 is configured to:

[0186] Using the central color coordinates as the center of the two-dimensional graphic, a two-dimensional graphic is constructed based on a preset color difference threshold. The two-dimensional graphic contains multiple color coordinates in the plane.

[0187] Based on the two-dimensional graphic, a three-dimensional graphic is constructed, which contains multiple color coordinates in space.

[0188] The range of colors corresponding to the color coordinates contained in the 3D graphic is used as the color difference range of the preset color.

[0189] In one exemplary embodiment, a color evaluation apparatus is provided, wherein a first determining module 100 is configured to:

[0190] The first vector is formed by the center color coordinates and the origin color coordinates in the three-dimensional color space.

[0191] The major axis of the ellipse is determined based on the first vector and the preset color difference threshold.

[0192] The minor axis of the ellipse is determined based on the second vector perpendicular to the first vector and the preset color difference threshold.

[0193] Construct an ellipse based on the central color coordinates, the major axis, and the minor axis of the ellipse.

[0194] In one exemplary embodiment, a color evaluation apparatus is provided, wherein a first determining module 100 is configured to:

[0195] Starting from the central color coordinates, the color coordinates in the three-dimensional color space are traversed step by step along the first direction of the first vector until the first color difference between the traversed color coordinates and the central color coordinates is greater than the preset color difference threshold.

[0196] The third color coordinate is used as one endpoint of the major axis of the ellipse. The third color coordinate is the color coordinate corresponding to the first color difference that is greater than the preset color difference threshold among the traversed color coordinates.

[0197] Determine the major axis of the ellipse based on the central color coordinates and the third color coordinates.

[0198] In one exemplary embodiment, a color evaluation apparatus is provided, wherein a first determining module 100 is configured to:

[0199] Determine a second vector that passes through the center color coordinates and is perpendicular to both the first vector and the preset plane. The preset plane is the plane containing the two coordinate axes in the three-dimensional color space.

[0200] Starting from the central color coordinates, the color coordinates in the three-dimensional color space are traversed step by step along the second direction of the second vector until the second color difference between the traversed color coordinates and the central color coordinates is greater than the preset color difference threshold.

[0201] The fourth color coordinate is used as one endpoint of the minor axis of the ellipse. The fourth color coordinate is the color coordinate corresponding to the second color difference that is greater than the preset color difference threshold among the traversed color coordinates.

[0202] Determine the minor axis of the ellipse based on the central color coordinates and the fourth color coordinates.

[0203] In one exemplary embodiment, a color evaluation apparatus is provided, wherein a first determining module 100 is configured to:

[0204] Rotate the ellipse around its major axis by a preset angle to obtain an ellipsoid.

[0205] In one exemplary embodiment, a color evaluation device is provided, the device further comprising:

[0206] The calibration module is configured to correct the color to be tested based on the target color, so that the corrected color to be tested is within the color difference range of the target color.

[0207] In one exemplary embodiment, an electronic device is provided, such as a mobile phone, a laptop computer, a tablet computer, and a wearable device.

[0208] refer to Figure 11 As shown, the electronic device 400 may include one or more of the following components: processing component 402, memory 404, power supply component 406, multimedia component 408, audio component 410, input / output (I / O) interface 412, sensor component 414, and communication component 416.

[0209] Processing component 402 typically controls the overall operation of electronic device 400, such as operations associated with display, telephone calls, data communication, camera operation, and recording. Processing component 402 may include one or more processors 420 to execute instructions to perform all or part of the steps of the methods described above. Furthermore, processing component 402 may include one or more modules to facilitate interaction between processing component 402 and other components. For example, processing component 402 may include a multimedia module to facilitate interaction between multimedia component 408 and processing component 402.

[0210] Memory 404 is configured to store various types of data to support the operation of electronic device 400. Examples of this data include instructions for any application or method operating on electronic device 400, contact data, phonebook data, messages, pictures, videos, etc. Memory 404 can be implemented by any type of volatile or non-volatile storage terminal or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.

[0211] Power supply component 406 provides power to various components of electronic device 400. Power supply component 406 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to electronic device 400.

[0212] Multimedia component 408 includes a screen that provides an output interface between electronic device 400 and user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touchscreen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors may sense not only the boundaries of touch or swipe actions but also the duration and pressure associated with the touch or swipe operation. In some embodiments, multimedia component 408 includes a front-facing camera module and / or a rear-facing camera module. When electronic device 400 is in an operating mode, such as shooting mode or video mode, the front-facing camera module and / or rear-facing camera module may receive external multimedia data. Each front-facing camera module and rear-facing camera module may be a fixed optical lens system or have focal length and optical zoom capabilities.

[0213] Audio component 410 is configured to output and / or input audio signals. For example, audio component 410 includes a microphone (MIC) configured to receive external audio signals when electronic device 400 is in an operating mode, such as call mode, recording mode, and voice recognition mode. The received audio signals may be further stored in memory 404 or transmitted via communication component 416. In some embodiments, audio component 410 also includes a speaker for outputting audio signals.

[0214] I / O interface 412 provides an interface between processing component 402 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to, home buttons, volume buttons, power buttons, and lock buttons.

[0215] Sensor assembly 414 includes one or more sensors for providing state assessments of various aspects of electronic device 400. For example, sensor assembly 414 may detect the on / off state of electronic device 400, the relative positioning of components such as the display and keypad of electronic device 400, changes in position of electronic device 400 or a component of electronic device 400, the presence or absence of user contact with electronic device 400, orientation or acceleration / deceleration of electronic device 400, and temperature changes of electronic device 400. Sensor assembly 414 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 414 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, sensor assembly 414 may also include an accelerometer, gyroscope, magnetometer, pressure sensor, or temperature sensor.

[0216] Communication component 416 is configured to facilitate wired or wireless communication between electronic device 400 and other terminals. Electronic device 400 can access wireless networks based on communication standards, such as WiFi, 2G, 3G, 4G, 5G, or combinations thereof. In one exemplary embodiment, communication component 416 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 416 also includes a near-field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.

[0217] In an exemplary embodiment, the electronic device 400 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing terminals (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the methods shown in the above embodiments or combinations thereof.

[0218] In one exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 404 including instructions, which can be executed by a processor 420 of an electronic device 400 to perform the methods shown in the embodiments or combinations thereof. For example, the non-transitory computer-readable storage medium may be a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage terminal, etc. When the instructions in the storage medium are executed by the processor of the terminal, the terminal is able to perform the methods shown in the embodiments or combinations thereof.

[0219] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the claims.

[0220] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of this disclosure. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. Moreover, without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of different embodiments or examples.

[0221] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this disclosure, "a plurality of" means at least two, such as two, three, etc., unless otherwise explicitly specified.

[0222] It should be understood that the various forms of processes shown above can be used to rearrange, add, or delete steps. For example, the steps described in this disclosure can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution disclosed in this disclosure can be achieved, and this is not limited herein.

[0223] The specific embodiments described above do not constitute a limitation on the scope of protection of this disclosure. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this disclosure should be included within the scope of protection of this disclosure.

Claims

1. A color evaluation method, characterized in that, The color evaluation method includes: In a three-dimensional color space, determine the target color corresponding to the color to be measured; If the color to be tested is within the color difference range of the target color, then the color to be tested is determined to meet the color difference requirement. If the color to be tested is outside the color difference range of the target color, it is determined that the color to be tested does not meet the color difference requirement; The dimensions of the three-dimensional color space include a brightness dimension and a color dimension.

2. The color evaluation method according to claim 1, characterized in that, Determining the target color corresponding to the color to be tested includes: Determine the first chromaticity coordinates of the color to be measured in the three-dimensional color space; Determine the second color coordinates of each preset color in the three-dimensional color space; The preset color corresponding to the second color coordinate closest to the first color coordinate is taken as the target color; or... Determine the first identifier of the color to be tested; Determine the second identifier for each preset color in the three-dimensional color space; The preset color corresponding to the second identifier, which is the same as the first identifier, is used as the target color.

3. The color evaluation method according to claim 1, characterized in that, The color to be tested is within the color difference range of the target color, including: The first color coordinate of the color to be tested in the three-dimensional color space is the color coordinate within the color difference range of the target color; The color to be tested is outside the color difference range of the target color, including: The first color coordinate is a color coordinate outside the color difference range of the target color.

4. The color evaluation method according to claim 1, characterized in that, In the three-dimensional color space, before determining the target color corresponding to the color to be measured, the color evaluation method further includes: Determine the color difference range of at least one preset color; Wherein, the at least one preset color includes the target color.

5. The color evaluation method according to claim 4, characterized in that, Determining the color difference range of at least one preset color includes: Using the center color coordinates as the center of the two-dimensional graphic, the two-dimensional graphic is constructed according to a preset color difference threshold. The center color coordinates are the color coordinates of the preset color. The two-dimensional graphic contains multiple color coordinates in the plane. Based on the two-dimensional graphic, a three-dimensional graphic is constructed, wherein the three-dimensional graphic contains multiple color coordinates in space; The range of colors corresponding to the color coordinates contained in the three-dimensional graphic is taken as the color difference range of the preset color.

6. The color evaluation method according to claim 5, characterized in that, The two-dimensional graphic is elliptical; the construction of the two-dimensional graphic using the center color coordinates as the center and according to a preset color difference threshold includes: A first vector is formed by the central color coordinates and the origin color coordinates in the three-dimensional color space; The major axis of the ellipse is determined based on the first vector and the preset color difference threshold. The minor axis of the ellipse is determined based on the second vector perpendicular to the first vector and the preset color difference threshold. The ellipse is constructed based on the central color coordinates, the major axis, and the minor axis of the ellipse.

7. The color evaluation method according to claim 6, characterized in that, Determining the major axis of the ellipse based on the first vector and the preset color difference threshold includes: Starting from the central color coordinates, the color coordinates in the three-dimensional color space are traversed step by step along the first direction of the first vector until the first color difference between the traversed color coordinates and the central color coordinates is greater than the preset color difference threshold. The third color coordinate is used as one endpoint of the major axis of the ellipse. The third color coordinate is the color coordinate corresponding to the first color difference that is greater than the preset color difference threshold among the traversed color coordinates. The major axis of the ellipse is determined based on the central color coordinates and the third color coordinates.

8. The color evaluation method according to claim 6, characterized in that, Determining the minor axis of the ellipse based on a second vector perpendicular to the first vector and the preset color difference threshold includes: Determine a second vector that passes through the central color coordinates and is perpendicular to both the first vector and the preset plane, wherein the preset plane is the plane containing the two coordinate axes in the three-dimensional color space; Starting from the central color coordinates, the color coordinates in the three-dimensional color space are traversed step by step along the second direction of the second vector until the second color difference between the traversed color coordinates and the central color coordinates is greater than the preset color difference threshold. The fourth color coordinate is used as one endpoint of the minor axis of the ellipse. The fourth color coordinate is the color coordinate corresponding to the second color difference that is greater than the preset color difference threshold among the traversed color coordinates. The minor axis of the ellipse is determined based on the central color coordinates and the fourth color coordinates.

9. The color evaluation method according to claim 5, characterized in that, The two-dimensional graphic is an ellipse, and the three-dimensional graphic is an ellipsoid; the construction of the three-dimensional graphic based on the two-dimensional graphic includes: The ellipse is rotated about its major axis by a preset angle to obtain the ellipsoid.

10. The color evaluation method according to claim 1, characterized in that, After determining that the color to be tested does not meet the color difference requirement, the color evaluation method further includes: Based on the target color, the color to be tested is corrected so that the corrected color to be tested is within the color difference range of the target color.

11. The color evaluation method according to any one of claims 1 to 10, characterized in that, The three-dimensional color space is the Lab color space.

12. A color evaluation device, characterized in that, The color evaluation device includes: A first determining module is configured to determine a target color corresponding to the color to be tested in a three-dimensional color space. The second determining module is configured to determine that the color to be tested meets the color difference requirement when the color to be tested is within the color difference range of the target color. The third determining module is configured to determine that the color to be tested does not meet the color difference requirement when the color to be tested is outside the color difference range of the target color. The dimensions of the three-dimensional color space include a brightness dimension and a color dimension.

13. An electronic device, characterized in that, The electronic device includes: processor; Memory used to store the processor's executable instructions; The processor is configured to perform the color evaluation method as described in any one of claims 1 to 11.

14. A non-transitory computer-readable storage medium, characterized in that, When the instructions in the storage medium are executed by the processor of the terminal, the terminal is able to perform the color evaluation method as described in any one of claims 1 to 11.