Color evaluation method and apparatus, electronic device, and medium
By combining brightness and color dimensions to evaluate color in a three-dimensional color space, the problem of failing to take into account the influence of brightness in existing technologies is solved, and more accurate and reliable color evaluation is achieved.
Patent Information
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2025-09-15
- Publication Date
- 2026-04-02
AI Technical Summary
Existing technologies only evaluate color from multiple color dimensions, failing to take into account the impact of brightness on color difference, resulting in inaccurate color evaluation.
In a three-dimensional color space, including brightness and color dimensions, the range of color difference between the color to be tested and the target color is determined. Color coordinates and labels are used to evaluate whether the color meets the color difference requirements, and corrections are made when they do not.
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.
Smart Images

Figure CN2025121242_02042026_PF_FP_ABST
Abstract
Description
Color evaluation method and device, electronic device, and medium
[0001] Cross-reference to Related Applications
[0002] The present disclosure claims priority to Chinese Patent Application No. 202411365178.6, filed on September 27, 2024, the entire contents of which are incorporated herein by reference. TECHNICAL FIELD
[0003] The present disclosure relates to the technical field of color evaluation, and in particular, to a color evaluation method, device, electronic device, and medium. BACKGROUND
[0004] 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-tested color. However, in the process of color evaluation, only multiple color dimensions can be evaluated, resulting in inaccurate color evaluation. SUMMARY
[0005] To overcome the problems in the related art, the present disclosure provides a color evaluation method, device, electronic device, and medium.
[0006] According to a first aspect of an embodiment of the present disclosure, a color evaluation method is provided, and the color evaluation method includes:
[0007] determining a target color corresponding to a to-be-tested color in a three-dimensional color space;
[0008] in a case where the to-be-tested color is located within a color difference range of the target color, determining that the to-be-tested color meets a color difference requirement;
[0009] in a case where the to-be-tested color is located outside the color difference range of the target color, determining that the to-be-tested color does not meet the color difference requirement;
[0010] wherein dimensions of the three-dimensional color space include a luminance dimension and a color dimension.
[0011] In some embodiments of the present disclosure, the determining of the target color corresponding to the to-be-tested color includes:
[0012] determining a first color coordinate of the to-be-tested color in the three-dimensional color space;
[0013] determining a second color coordinate of each preset color in the three-dimensional color space;
[0014] taking the preset color corresponding to the second color coordinate closest to the first color coordinate as the target color; or
[0015] determining a first identifier of the to-be-tested color;
[0016] determining a second identifier of each preset color in the three-dimensional color space;
[0017] taking the preset color corresponding to the second identifier same as the first identifier as the target color.
[0018] In some embodiments of the present disclosure, the to-be-tested color is within a color difference range of the target color, including:
[0019] the first color coordinate of the to-be-tested color in the three-dimensional color space is a color coordinate within the color difference range of the target color;
[0020] the to-be-tested color is outside the color difference range of the target color, including:
[0021] the first color coordinate is a color coordinate outside the color difference range of the target color.
[0022] In some embodiments of the present disclosure, before determining the target color corresponding to the to-be-tested color in the three-dimensional color space, the color evaluation method further includes:
[0023] determining a color difference range of at least one preset color;
[0024] wherein the at least one preset color includes the target color.
[0025] In some embodiments of the present disclosure, the determining of the color difference range of the at least one preset color includes:
[0026] taking a center color coordinate as the center of a two-dimensional graph, and constructing the two-dimensional graph according to a preset color difference threshold, the center color coordinate being a color coordinate of the preset color, the two-dimensional graph containing a plurality of color coordinates in a plane;
[0027] constructing a three-dimensional graph according to the two-dimensional graph, the three-dimensional graph containing a plurality of color coordinates in a space;
[0028] taking a range of colors corresponding to each color coordinate contained in the three-dimensional graph as the color difference range of the preset color.
[0029] In some embodiments of the present disclosure, the two-dimensional graph is an ellipse; and the taking of the center color coordinate as the center of the two-dimensional graph and the construction of the two-dimensional graph according to the preset color difference threshold include:
[0030] taking the center color coordinate and an origin color coordinate in the three-dimensional color space to form a first vector;
[0031] determining a major axis of the ellipse according to the first vector and the preset color difference threshold.
[0032] determine a minor axis of the ellipse according to a second vector perpendicular to the first vector and the preset color difference threshold;
[0033] construct the ellipse according to the central color coordinate, the major axis and the minor axis of the ellipse.
[0034] In some embodiments of the present disclosure, the determining the major axis of the ellipse according to the first vector and the preset color difference threshold comprises:
[0035] traverse color coordinates in the three-dimensional color space step by step along a first direction of the first vector from the central color coordinate until a first color difference between the traversed color coordinate and the central color coordinate is greater than the preset color difference threshold;
[0036] take a third color coordinate as one end point of the major axis of the ellipse, the third color coordinate being a color coordinate corresponding to the first color difference greater than the preset color difference threshold among the traversed color coordinates;
[0037] determine the major axis of the ellipse according to the central color coordinate and the third color coordinate.
[0038] In some embodiments of the present disclosure, the determining the minor axis of the ellipse according to the second vector perpendicular to the first vector and the preset color difference threshold comprises:
[0039] determine a second vector passing through the central color coordinate and being perpendicular to the first vector and a preset plane, the preset plane being a plane in which two coordinate axes in the three-dimensional color space are located;
[0040] traverse color coordinates in the three-dimensional color space step by step along a second direction of the second vector from the central color coordinate until a second color difference between the traversed color coordinate and the central color coordinate is greater than the preset color difference threshold;
[0041] take a fourth color coordinate as one end point of the minor axis of the ellipse, the fourth color coordinate being a color coordinate corresponding to the second color difference greater than the preset color difference threshold among the traversed color coordinates;
[0042] determine the minor axis of the ellipse according to the central color coordinate and the fourth color coordinate.
[0043] In some embodiments of the present disclosure, the two-dimensional graph is an ellipse and the three-dimensional graph is an ellipsoid; and the constructing the three-dimensional graph according to the two-dimensional graph comprises:
[0044] rotate the ellipse around the major axis by a preset angle to obtain the ellipsoid.
[0045] In some embodiments of the present disclosure, after the determination that the to-be-tested color does not satisfy the color difference requirement, the color evaluation method further includes:
[0046] According to the target color, the to-be-tested color is corrected so that the corrected to-be-tested color is within the color difference range of the target color.
[0047] In some embodiments of the present disclosure, the three-dimensional color space is a Lab color space.
[0048] According to a second aspect of embodiments of the present disclosure, a color evaluation device is provided, and the color evaluation device includes:
[0049] A first determination module configured to determine, in a three-dimensional color space, a target color corresponding to a to-be-tested color;
[0050] A second determination module configured to determine, in a case where the to-be-tested color is within a color difference range of the target color, that the to-be-tested color satisfies a color difference requirement;
[0051] A third determination module configured to determine, in a case where the to-be-tested color is outside the color difference range of the target color, that the to-be-tested color does not satisfy the color difference requirement;
[0052] The dimensions of the three-dimensional color space include a luminance dimension and a color dimension.
[0053] According to a third aspect of embodiments of the present disclosure, an electronic device is provided, and the electronic device includes:
[0054] A processor;
[0055] A memory for storing processor-executable instructions;
[0056] The processor is configured to perform the color evaluation method as described above.
[0057] According to a fourth aspect of embodiments of the present disclosure, a non-transitory computer-readable storage medium is provided, and when instructions in the storage medium are executed by a processor of a terminal, the terminal is enabled to perform the color evaluation method as described above.
[0058] The technical solutions provided by the embodiments of the present disclosure can include the following beneficial effects:
[0059] In a three-dimensional color space including a luminance dimension and a color dimension, a target color corresponding to a to-be-tested color is determined, so that the target color is taken as a reference color in color evaluation. In a case where the to-be-tested color is located within a color difference range of the target color, the to-be-tested color is difficult to be distinguished from the target color by a user, and it is determined that the to-be-tested color meets a color difference requirement. In a case where the to-be-tested color is located outside the color difference range of the target color, the to-be-tested color can be distinguished from the target color by the user, and it is determined that the to-be-tested color does not meet the color difference requirement. By performing color evaluation on the to-be-tested color in the three-dimensional color space including the luminance dimension and the color dimension, the influence of the luminance on the color difference can be taken into account, thereby improving the accuracy of color evaluation.
[0060] It should be understood that the general description above and the following detailed description are only exemplary and explanatory, and cannot limit the present disclosure. BRIEF DESCRIPTION OF DRAWINGS
[0061] The accompanying drawings, which are incorporated into and form part of the specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0062] FIG. 1 is a schematic diagram of a color gamut;
[0063] FIG. 2 is a flowchart of a color evaluation method according to an exemplary embodiment;
[0064] FIG. 3 is a flowchart of a color evaluation method according to another exemplary embodiment;
[0065] FIG. 4 is a flowchart of a color evaluation method according to another exemplary embodiment;
[0066] FIG. 5 is a flowchart of a color evaluation method according to another exemplary embodiment;
[0067] FIG. 6 is a schematic diagram of an elliptical construction in a three-dimensional color space according to an exemplary embodiment;
[0068] FIG. 7 is a schematic diagram of an ellipsoidal construction in a three-dimensional color space according to an exemplary embodiment;
[0069] FIG. 8 is a schematic diagram of a color difference range of a preset color in a three-dimensional color space according to an exemplary embodiment;
[0070] FIG. 9 is a flowchart of a color evaluation method according to another exemplary embodiment;
[0071] FIG. 10 is a block diagram of a color evaluation apparatus according to an exemplary embodiment;
[0072] FIG. 11 is a block diagram of an electronic device according to an exemplary embodiment.
[0073] In the drawings: 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 DESCRIPTION
[0074] The exemplary embodiments will be described in detail herein with reference to the attached drawings. In the following description, unless otherwise indicated, like numbers refer to like elements throughout the several drawings. The following exemplary embodiments are not meant to represent all embodiments consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the appended claims. It should also be understood that the term "and / or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
[0075] In the field related to color display, it is necessary to evaluate the displayed color to determine whether the displayed color is deviated to affect the visual experience of the user. For example, in the field of lighting, it is necessary to evaluate the color displayed by the lighting device. In the field of printing, it is necessary to evaluate the color displayed by the printed product. In the field of electronic device, it is necessary to evaluate the color displayed by the screen. For the color meeting the color difference requirement, the user cannot perceive the difference in color, and it is determined that the displayed color is not deviated. For the color not meeting the color difference requirement, the user can perceive the difference in color, and it is determined that the displayed color is deviated. For the color deviated, it can be corrected by color to meet the color difference requirement.
[0076] In the related art, a color evaluation method is provided, as shown in FIG. 1, in a two-dimensional color space including two color dimensions, it is determined whether the to-be-tested color is located in the color difference range of the target color to determine whether the to-be-tested color meets the color difference requirement. Wherein, the horizontal axis x represents the red component, and the vertical axis y represents the green component. The method can determine whether the to-be-tested color meets the color difference requirement to perform color evaluation. However, since the brightness of the to-be-tested color has a certain influence on the display of the to-be-tested color, the method cannot take into account the influence of brightness on color difference, resulting in inaccurate color evaluation.
[0077] To solve the above technical problem, the present disclosure provides a color evaluation method, by evaluating the to-be-tested color in a three-dimensional color space including a brightness dimension and a color dimension, avoiding evaluating the to-be-tested color only from the color dimension and failing to take into account the influence of brightness on color difference, thereby improving the accuracy of color evaluation.
[0078] The embodiment of the present disclosure provides a color evaluation method, as shown in FIG. 2, the method comprises the following steps:
[0079] S100, determining a target color corresponding to the to-be-tested color in a three-dimensional color space.
[0080] S200, determining that the to-be-tested color meets the color difference requirement in a case that the to-be-tested color is located in a color difference range of the target color.
[0081] S300, determining that the to-be-tested color does not meet the color difference requirement in a case that the to-be-tested color is located out of the color difference range of the target color.
[0082] The dimension of the three-dimensional color space comprises a brightness dimension and a color dimension.
[0083] In the embodiment, the target color corresponding to the to-be-tested color is determined in the three-dimensional color space comprising the brightness dimension and the color dimension, so as to take the target color as a reference color in the color evaluation. In the case that the to-be-tested color is located in the color difference range of the target color, the user is difficult to distinguish the to-be-tested color and the target color, and it is determined that the to-be-tested color meets the color difference requirement. In the case that the to-be-tested color is located out of the color difference range of the target color, the user can distinguish the to-be-tested color and the target color, and it is determined that the to-be-tested color does not meet the color difference requirement. By performing the color evaluation on the to-be-tested 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 accuracy of the color evaluation is improved.
[0084] Exemplarily, the to-be-tested color is a color to be evaluated. The target color is a color taken as a reference in the evaluation of the to-be-tested color. In the three-dimensional color space, the number of the brightness dimensions can be one, and the number of the color dimensions can be two. The color coordinates in the three-dimensional color space are represented by one brightness coordinate and two color coordinates.
[0085] In an embodiment, as shown in FIG. 3, the determination of the target color corresponding to the to-be-tested color in the step S100 can be determined by the following manner:
[0086] S110, determining a first color coordinate of the to-be-tested color in the three-dimensional color space.
[0087] S120, determining a second color coordinate of each preset color in the three-dimensional color space.
[0088] S130, taking the preset color corresponding to the second color coordinate closest to the first color coordinate as the target color.
[0089] In the embodiment, the first color coordinate of the to-be-tested color in the three-dimensional color space is determined to determine the position of the to-be-tested color in the three-dimensional color space. The second color coordinates of the preset colors in the three-dimensional color space are determined to determine the positions of the preset colors in the three-dimensional color space. Since the color difference between the to-be-tested color and the target color among the preset colors is the smallest, the preset color corresponding to the second color coordinate closest to the first color coordinate is taken as the target color. The target color is determined by the position of the color, and the color needs to carry less information, thereby reducing the complexity of color evaluation.
[0090] Exemplarily, each color has a unique color coordinate in the three-dimensional color space, and each color coordinate can be expressed as two color coordinates and one luminance coordinate, such as [L0, a0, b0], where L0 represents the luminance coordinate, and a0 and b0 represent the color coordinates. The first color coordinate is the color coordinate of the to-be-tested color 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.
[0091] Exemplarily, the preset color is a color provided with a color difference range in the three-dimensional color space. The preset color can be red, blue, green, yellow, etc.
[0092] In an embodiment, the target color corresponding to the to-be-tested color in step S100 can also be determined in the following manner:
[0093] The first identifier of the to-be-tested color is determined.
[0094] The second identifiers of the preset colors in the three-dimensional color space are determined.
[0095] The preset color corresponding to the second identifier identical to the first identifier is taken as the target color.
[0096] In the embodiment, the first identifier of the to-be-tested color is determined to point to the reference color. The second identifiers of the preset colors in the three-dimensional color space are determined to point to the corresponding preset colors. Since the same identifier points to the same color, the preset color corresponding to the second identifier identical to the first identifier is taken as the target color. The target color is determined by the identifier of the color, the target color is unique and must be the reference color, thereby improving the reliability of color evaluation.
[0097] Exemplarily, each color can be provided with a unique identifier, which can be expressed in the form of a number and / or a string, such as 1a, 1b, 2a, etc. The first identifier is the identifier of the to-be-tested color, and each second identifier is the identifier of a preset color.
[0098] In an embodiment, the to-be-tested color is within the color difference range of the target color, which is determined in the following manner:
[0099] The first color coordinate of the to-be-tested color in the three-dimensional color space is a color coordinate within the color difference range of the target color.
[0100] The to-be-tested color is determined to be outside the color difference range of the target color by the following manner:
[0101] The first color coordinate is a color coordinate outside the color difference range of the target color.
[0102] In this embodiment, since the three-dimensional color space contains a plurality of different color coordinates, part of the color coordinates are within the color difference range of the target color, and part of the color coordinates are outside the color difference range. The color corresponding to the color coordinate within the color difference range has a small color difference with the target color, and the color corresponding to the color coordinate outside the color difference range has a large color difference with the target color. When the first color coordinate is a color coordinate within the color difference range of the target color, the to-be-tested color has a small color difference with the target color, and the to-be-tested color is within the color difference range of the target color. When the first color coordinate is a color coordinate outside the color difference range of the target color, the to-be-tested color has a large color difference with the target color, and the to-be-tested color is outside the color difference range of the target color. The color is evaluated by the position of the color coordinate, and the relationship between the color difference range of the to-be-tested color and the target color is determined in a simple manner, thereby reducing the complexity of color evaluation.
[0103] Exemplarily, in the case that the color coordinate of the to-be-tested color is in a color space other than the three-dimensional color space including the brightness dimension and the color dimension, it is necessary to convert the color coordinate of the to-be-tested color to the first color coordinate in the three-dimensional color space.
[0104] In an embodiment, before determining the target color corresponding to the to-be-tested color in step S200 in the three-dimensional color space, the color evaluation method further comprises:
[0105] Determining a color difference range of at least one preset color.
[0106] The at least one preset color includes the target color.
[0107] In this embodiment, before determining the target color corresponding to the to-be-tested color, it is necessary to determine the color difference range of at least one preset color containing the target color in advance, so as to evaluate the color by the color difference range of the target color. In the three-dimensional color space, the color difference range of at least one preset color is determined, so as to evaluate the color by the color difference range of one or more preset colors. By determining the color difference range of at least one preset color in advance, the to-be-tested color can be evaluated in the process of color evaluation, thereby improving the reliability of color evaluation. At the same time, since the color difference range of a plurality of preset colors can be determined, it is avoided to additionally determine each time when color evaluation is performed, thereby improving the efficiency of color evaluation.
[0108] In an embodiment, as shown in FIG. 4, the color difference range of the at least one preset color in the above step is determined by the following manner:
[0109] S400, taking the center color coordinate as the center of the two-dimensional graph, constructing a two-dimensional graph according to the preset color difference threshold, the center color coordinate being the color coordinate of the preset color, and the two-dimensional graph containing a plurality of color coordinates in the plane.
[0110] S410, constructing a three-dimensional graph according to the two-dimensional graph, the three-dimensional graph containing a plurality of color coordinates in the space.
[0111] S420, taking the range of colors corresponding to each color coordinate contained in the three-dimensional graph as the color difference range of the preset color.
[0112] In this embodiment, since the color difference range in the three-dimensional color space corresponds to a three-dimensional graph, the three-dimensional graph needs to be constructed after the two-dimensional graph is constructed. Since the preset color difference threshold determines the size of the color difference range and the color coordinate of the preset color determines the center of the color difference range, a two-dimensional graph containing a plurality of color coordinates in the plane is constructed according to the center color coordinate and the preset color difference threshold. According to the two-dimensional graph, a three-dimensional graph containing a plurality of color coordinates in the space is constructed, and the range of colors corresponding to each color coordinate contained in the three-dimensional graph is taken as the color difference range of the preset color. The color difference range of the preset color is gradually constructed through the center color coordinate and the preset color difference threshold, and the colors in the color difference range of the preset color can all meet the color difference requirement for color evaluation, thereby improving the reliability of color evaluation.
[0113] Exemplarily, the shapes of the three-dimensional graphs are different for different three-dimensional color spaces. For example, in the case of Lab color space as the three-dimensional color space, the shape of the three-dimensional graph can be an ellipsoid. It can be understood that the shape of the three-dimensional graph is not limited to an ellipsoid, but can also be a cuboid, an irregular solid graph, etc.
[0114] Exemplarily, the preset color difference threshold can be a positive number. The preset color difference threshold can be 1, 2, 7, etc. With different preset color difference thresholds, each preset color can correspond to one or more color difference ranges for color evaluation through color difference ranges with different preset color difference thresholds.
[0115] In an embodiment, the two-dimensional graph is an ellipse. As shown in FIG. 5, the two-dimensional graph in step S400 is constructed by the following manner:
[0116] S401, taking the center color coordinate and the origin color coordinate in the three-dimensional color space to form a first vector.
[0117] S402, determining the major axis of the ellipse according to the first vector and the preset color difference threshold.
[0118] S403, determining the minor axis of the ellipse according to a second vector perpendicular to the first vector and the preset color difference threshold.
[0119] S404, constructing the ellipse according to the central color coordinate, the major axis and the minor axis of the ellipse.
[0120] In the embodiment, since the colors corresponding to the color coordinates contained in the ellipse in the plane are colors that the user cannot perceive as having a difference from the preset color, and the colors corresponding to the color coordinates not contained in the ellipse in the plane are colors that the user can perceive as having a difference from the preset color, the ellipse is taken as a two-dimensional graph. Since the central color coordinate is a color coordinate without any color difference, and the origin color coordinate is a color coordinate taken as a reference in the three-dimensional color space, the first vector is composed of the central color coordinate and the origin color coordinate. Since the size of the preset color difference threshold affects the major axis of the ellipse, the major axis of the ellipse is determined according to the first vector and the preset color difference threshold. Since the size of the preset color difference threshold affects the minor axis of the ellipse, the minor axis of the ellipse is determined according to a second vector perpendicular to the first vector and the preset color difference threshold. The ellipse is constructed according to the central color coordinate, the major axis and the minor axis of the ellipse, with the central color coordinate as the center of the ellipse. By determining the various parameters required for constructing the ellipse according to the central color coordinate, the origin color coordinate and the preset color difference threshold, the range of colors corresponding to the various color coordinates contained in the ellipse constitutes the color difference range of the preset color in the plane, thereby improving the reliability of the color difference range.
[0121] Exemplarily, in the case where the color coordinate of the preset color is located in a color space other than the three-dimensional color space including the brightness dimension and the color dimension, it is necessary to convert the color coordinate of the preset color to the central color coordinate in the three-dimensional color space. The central color coordinate can be represented as [L target , a target , b target ], the origin color coordinate can be represented as [50, 0, 0], and the first vector can be represented as [L target -50, a target , b target ].
[0122] It can be understood that the two-dimensional graph can be a rectangle, a square, a triangle or other planar graph, which is not limited here.
[0123] In an embodiment, the determination of the major axis of the ellipse according to the first vector and the preset color difference threshold in step S402 is determined by the following manner:
[0124] Starting from the central color coordinate, the color coordinates in the three-dimensional color space are traversed along the first direction of the first vector step by step until the first color difference between the traversed color coordinate and the central color coordinate is greater than the preset color difference threshold.
[0125] The third color coordinate is taken as one end point of the major axis of the ellipse, and the third color coordinate is a color coordinate corresponding to a first color difference greater than a preset color difference threshold among the traversed color coordinates.
[0126] The major axis of the ellipse is determined according to the central color coordinate and the third color coordinate.
[0127] In the embodiment, since the end point of the major axis of the ellipse depends on the preset color difference threshold, and the color coordinate corresponding to the end point of the major axis cannot be directly determined, the color coordinate is determined by step-by-step traversal. Starting from the central color coordinate, the color coordinates in the three-dimensional color space are traversed along the first direction of the first vector until the first color difference is greater than the preset color difference threshold. Each time a color coordinate is traversed, the first color difference between the traversed color coordinate and the central color coordinate is determined to determine the relationship between the color difference corresponding to the color coordinate and the preset color difference threshold. In the case where the first color difference is greater than the preset color difference threshold, the third color coordinate corresponding to the first color difference first exceeds the color difference range of the preset color in the plane, and is regarded as a boundary point of the color difference range to serve as one end point of the major axis of the ellipse. Since the center of the ellipse and one end point of the major axis can constitute the major axis, the major axis of the ellipse is determined according to the central color coordinate and the third color coordinate. By determining the major axis of the ellipse in a step-by-step manner, the ellipse is avoided from containing too many colors that cannot meet the color difference requirement, thereby improving the reliability of the color difference range formation.
[0128] Exemplarily, the first direction can be a direction in which the central color coordinate is directed toward the origin color coordinate, or a direction in which the origin color coordinate is directed toward the central color coordinate. The step-by-step traversal of the color coordinates in the three-dimensional color space in the above step can be step-by-step traversal at a preset step length. The smaller the preset step length, the higher the accuracy of the color difference range of the preset color in the plane. Conversely, the accuracy of the color difference range of the preset color in the plane is lower. The preset step length vector can be represented as α represents a step length coefficient, which is any value greater than 1. The value of α can be 100, 500, 1000, etc. In the process of step-by-step traversal of the color coordinates in the three-dimensional color space in the above step, in the case of pth traversal, the traversed color coordinate in the three-dimensional color space can be represented as The first color difference between the pth traversed color coordinate and the central color coordinate can be represented as In the case where the first color difference is greater than the preset color difference threshold for the first time, the number of steps of traversal is recorded as P, and the third color coordinate can be represented as The third color coordinate is taken as one end point of the major axis of the ellipse, and the third color coordinate is a color coordinate corresponding to a first color difference greater than a preset color difference threshold among the traversed color coordinates. threshold-1, the third color coordinate is simplified in the form of [athreshold-1, bthreshold-1] to represent the semi-major axis of the ellipse. In the process of determining the major axis of the ellipse according to the center color coordinate and the third color coordinate in the above step, the length of the semi-major axis of the ellipse can be represented as:
[0129] Exemplarily, the process of determining the major axis of the ellipse according to the center color coordinate and the third color coordinate in the above step can be to determine the semi-major axis of the ellipse or to determine the full major axis of the ellipse. In the case of determining the full major axis of the ellipse, after the third color coordinate is taken as one end point of the major axis of the ellipse in the above step, a color coordinate symmetrical to the third color coordinate can be determined as the other end point of the major axis of the ellipse with the center color coordinate as the center of symmetry, so as to determine the full major axis of the ellipse.
[0130] In an embodiment, the short axis of the ellipse is determined according to the second vector perpendicular to the first vector and the preset color difference threshold in step S403 by the following way:
[0131] The second vector perpendicular to the first vector and passing through the center color coordinate is determined, and the preset plane is a plane in which two coordinate axes in the three-dimensional color space are located.
[0132] Starting from the center color coordinate, the color coordinates in the three-dimensional color space are traversed along the second direction of the second vector step by step until the second color difference between the traversed color coordinate and the center color coordinate is greater than the preset color difference threshold.
[0133] The fourth color coordinate is taken as one end point of the short axis of the ellipse, and the fourth color coordinate is the color coordinate corresponding to the second color difference greater than the preset color difference threshold among the traversed color coordinates.
[0134] The short axis of the ellipse is determined according to the center color coordinate and the fourth color coordinate.
[0135] In the embodiment, since the end point of the minor axis of the ellipse depends on the preset color difference threshold, and the color coordinate corresponding to the end point of the minor axis cannot be directly determined, the end point of the minor axis is determined by step-by-step traversal. Since there are multiple vectors in the three-dimensional color space which are perpendicular to the first vector and pass through the center color coordinate, the vector which is perpendicular to the preset plane is determined as the second vector, so as to determine the minor axis of the ellipse by traversal along the second vector. Starting from the center color coordinate, the color coordinates in the three-dimensional color space are traversed along the second direction of the second vector until the second color difference is greater than the preset color difference threshold. Each time a color coordinate is traversed, the second color difference between the traversed color coordinate and the center color coordinate is determined, so as to determine the relationship between the color difference corresponding to the color coordinate and the preset color difference threshold. In the case where 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 color difference range of the preset color in the plane, and is regarded as a boundary point of the color difference range and used as one end point of the minor axis of the ellipse. Since the center of the ellipse and one end point of the minor axis can constitute the minor axis, the minor axis of the ellipse is determined according to the center color coordinate and the third color coordinate. By determining the minor axis of the ellipse by step-by-step traversal, the ellipse is prevented from containing too many colors which cannot meet the color difference requirement, thereby improving the reliability of the color difference range formation.
[0136] Exemplarily, the second direction can be any direction extending along the second vector. The step-by-step traversal of the color coordinates in the three-dimensional color space in the above step can be step-by-step traversal at a preset step length. The manner of determining the fourth color coordinate in the above step can be similar to the manner of determining the third color coordinate in the above step, and only needs to adjust the first vector to the second vector and adjust the first direction to the second direction, which will not be described herein. In the case where the second color difference is greater than the preset color difference threshold for the first time, the fourth color coordinate can be represented as [L threshold-2 , athreshold-2, bthreshold-2]. In the process of determining the minor axis of the ellipse according to the center color coordinate and the fourth color coordinate in the above step, the length of the half minor axis of the ellipse can be represented as:
[0137] Exemplarily, the step of determining the minor axis of the ellipse according to the center color coordinate and the fourth color coordinate in the above step can be determining the half minor axis of the ellipse, or can be determining the full minor axis of the ellipse. In the case of determining the full minor axis of the ellipse, after the fourth color coordinate is taken as one end point of the minor axis of the ellipse in the above step, the color coordinate symmetrical to the fourth color coordinate can be determined as the other end point of the minor axis of the ellipse with the center color coordinate as the center of symmetry, so as to determine the full minor axis of the ellipse.
[0138] Exemplarily, taking the three-dimensional color space as the Lab color space for example, the preset plane can be the plane in which the a axis and the b axis are located, the plane in which the L axis and the a axis are located, or the plane in which the L axis and the b axis are located.
[0139] Exemplarily, taking the Lab color space as an example of the three-dimensional color space, the shape of the ellipse constructed according to the central color coordinate, the major axis and the minor axis of the ellipse in step S404 can be as shown in FIG. 6. Wherein, 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 the brightness.
[0140] In an embodiment, the two-dimensional graph is an ellipse, and the three-dimensional graph is an ellipsoid. The three-dimensional graph is constructed according to the two-dimensional graph in step S410 by the following way:
[0141] The ellipse is rotated around the major axis by a preset angle to obtain the ellipsoid.
[0142] In this embodiment, the ellipsoid can be obtained by rotating the ellipse around the major axis by a preset angle, so as to determine the color difference range of the preset color in the three-dimensional color space, thereby reducing the complexity of color evaluation.
[0143] Exemplarily, the ellipse is rotated around the major axis by a preset angle to obtain the ellipsoid in the above steps, which can be rotating the ellipse around the major axis by a preset angle in the clockwise direction or the counterclockwise direction. The preset angle can be 180°, for example.
[0144] Exemplarily, taking the Lab color space as an example of the three-dimensional color space, the shape of the ellipsoid obtained by rotating the ellipse around the major axis by a preset angle in the above steps (i.e. the color difference range of one preset color) can be as shown in FIG. 7. Wherein, 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 the brightness.
[0145] Exemplarily, in the case where the two-dimensional graph is a rectangle or a square, the rectangle or the square can be expanded by the same distance on both sides along the axis perpendicular to the center of the rectangle or the square to obtain a rectangular body or a cube as the three-dimensional graph, or the rectangle or the square can be rotated by a preset angle along the middle line of the rectangle or the square to obtain a cylindrical body as the three-dimensional graph. In the case where the two-dimensional graph is a triangle, the triangle can be expanded by the same distance on both sides along the axis perpendicular to the center of the triangle to obtain a prism as the three-dimensional graph, or the triangle can be rotated by a preset angle along the height of the triangle to obtain a circular cone as the three-dimensional graph.
[0146] In an embodiment, the three-dimensional color space is the Lab color space.
[0147] In this embodiment, by taking the Lab color space as the three-dimensional color space, the three-dimensional color space has a wide color gamut including the brightness dimension and the color dimension for color evaluation, thereby improving the accuracy of color evaluation. At the same time, in the Lab color space, the shape of the three-dimensional graph is an ellipsoid, so as to facilitate the construction, thereby reducing the complexity of color evaluation.
[0148] Exemplarily, taking the three-dimensional color space as the Lab color space, the three-dimensional figure as an ellipsoid, and the preset color difference threshold as 7 as examples, the color difference ranges of the 18 preset colors obtained under certain test conditions can be as shown in FIG. 8. Among them, 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 the brightness.
[0149] In an embodiment, after determining that the to-be-tested color does not meet the color difference requirement in step S300, the color evaluation method further includes:
[0150] According to the target color, the to-be-tested color is corrected so that the corrected to-be-tested color is located within the color difference range of the target color.
[0151] In this embodiment, by correcting the to-be-tested color when the to-be-tested color does not meet the color difference requirement, the to-be-tested color can be located within the color difference range of the target color, thereby improving the color display effect.
[0152] Exemplarily, the step of correcting the to-be-tested color according to the target color can be correcting the color component and the brightness component of the to-be-tested color according to the target color, so that the corrected to-be-tested color is located within the color difference range of the target color. The correction of the to-be-tested color can be performed according to the difference between each dimension coordinate of the first color coordinate of the to-be-tested color and the second color coordinate of the target color.
[0153] The embodiments of the present disclosure provide a color evaluation method, as shown in FIG. 9, which includes:
[0154] S500, in the Lab color space, a first vector is formed by a center color coordinate of a preset color and an origin color coordinate.
[0155] S510, starting from the center color coordinate, the color coordinates in the Lab color space are iterated along a first direction of the first vector, and a first color difference between the iterated color coordinates and the center color coordinate is determined.
[0156] S520, in the case where the first color difference is greater than a preset color difference threshold for the first time, a third color coordinate is taken as one end point of a major axis of the ellipse.
[0157] S530, according to the center color coordinate and the third color coordinate, the major axis of the ellipse is determined.
[0158] S540, a second vector passing through the center color coordinate and being perpendicular to the first vector and a preset plane in which the a-axis and the b-axis are located is determined.
[0159] S550, starting from the center color coordinate, the color coordinates in the Lab color space are iterated along a second direction of the second vector, and a second color difference between the iterated color coordinates and the center color coordinate is determined.
[0160] S560, in a case where the second color difference is greater than the preset color difference threshold for the first time, taking the fourth color coordinate as one end point of the short axis of the ellipse.
[0161] S570, determining the short axis of the ellipse according to the central color coordinate and the fourth color coordinate.
[0162] S580, constructing the ellipse according to the central color coordinate, the long axis and the short axis of the ellipse.
[0163] S590, rotating the ellipse around the long axis by a preset angle to obtain an ellipsoid.
[0164] S600, taking a range of colors formed by colors corresponding to each color coordinate included in the ellipsoid as the color difference range of the preset color.
[0165] S610, determining a target color corresponding to the to-be-tested color in the preset color.
[0166] S620, in a case where the to-be-tested color is located in the color difference range of the target color, determining that the to-be-tested color meets the color difference requirement.
[0167] S630, in a case where the to-be-tested color is located outside the color difference range of the target color, determining that the to-be-tested color does not meet the color difference requirement.
[0168] In this embodiment, in the Lab color space, a first vector is formed by a center color coordinate of the preset color and an origin color coordinate, and a long axis of the ellipse is determined by the first vector. Starting from the center color coordinate, color coordinates in the Lab color space are traversed along a first direction of the first vector. After each color coordinate is traversed in the first direction, a first color difference between the traversed color coordinate and the center color coordinate is determined, to determine whether the first color difference exceeds a preset color difference threshold. In a case where the first color difference exceeds the preset color difference threshold for the first time, a third color coordinate corresponding to the traversed color coordinate has a larger difference from the preset color, and the third color coordinate is taken as one end point of the long axis of the ellipse. According to the center color coordinate and the third color coordinate, the long axis of the ellipse is determined, to obtain a parameter of the ellipse. A second vector that passes through the center color coordinate and is perpendicular to the first vector and a preset plane in which the a axis and the b axis are located is determined, to determine a short axis of the ellipse by the second vector. Starting from the center color coordinate, color coordinates in the Lab color space are traversed along a second direction of the second vector. After each color coordinate is traversed in the second direction, a second color difference between the traversed color coordinate and the center color coordinate is determined, to determine whether the second color difference exceeds the preset color difference threshold. In a case where the second color difference exceeds the preset color difference threshold for the first time, a fourth color coordinate corresponding to the traversed color coordinate has a larger difference from the preset color, and the fourth color coordinate is taken as one end point of the short axis of the ellipse. According to the center color coordinate and the fourth color coordinate, the short axis of the ellipse is determined, to obtain a parameter of the ellipse. According to the center color coordinate, the long axis and the short axis of the ellipse, the ellipse is constructed, to obtain a color difference range of the preset color in the plane. The ellipse is rotated around the long axis by a preset angle to obtain an ellipsoid, and a range of colors corresponding to color coordinates included in the ellipsoid is taken as the color difference range of the preset color. A target color corresponding to the to-be-tested color in the preset color is determined, to determine a color for reference. In a case where the to-be-tested color is located in the color difference range of the target color, the user cannot distinguish the to-be-tested color from the target color, and it is determined that the to-be-tested color meets the color difference requirement. In a case where the to-be-tested color is located outside the color difference range of the target color, the user can distinguish the to-be-tested color from the target color, and it is determined that the to-be-tested color does not meet the color difference requirement. By determining whether the to-be-tested color meets the color difference requirement in the Lab color space including the brightness dimension and the color dimension, the influence of the brightness on the color difference can be taken into account, thereby improving the accuracy of color evaluation.
[0169] In one example embodiment, a color evaluation device is provided for implementing the above method. Referring to FIG. 10, the color evaluation device can include a first determination module 100, a second determination module 200, and a third determination module 300, wherein, in the process of implementing the above method,
[0170] The first determination module 100 is configured to determine a target color corresponding to a to-be-tested color in a three-dimensional color space.
[0171] The second determining module 200 is configured to determine that the to-be-tested color meets the color difference requirement when the to-be-tested color is within the color difference range of the target color.
[0172] The third determining module 300 is configured to determine that the to-be-tested color does not meet the color difference requirement when the to-be-tested color is outside the color difference range of the target color.
[0173] The dimensions of the three-dimensional color space include a luminance dimension and a color dimension.
[0174] In an example embodiment, a color evaluation device is provided, in which the first determining module 100 is configured to:
[0175] determine a first color coordinate of the to-be-tested color in the three-dimensional color space.
[0176] determine second color coordinates of the preset colors in the three-dimensional color space.
[0177] determine a preset color corresponding to the second color coordinate closest to the first color coordinate as the target color.
[0178] In an example embodiment, a color evaluation device is provided, in which the first determining module 100 is configured to:
[0179] determine a first identifier of the to-be-tested color.
[0180] determine second identifiers of the preset colors in the three-dimensional color space.
[0181] determine a preset color corresponding to the second identifier identical to the first identifier as the target color.
[0182] In an example embodiment, a color evaluation device is provided, in which the first determining module 100 is configured to:
[0183] determine a color difference range of at least one preset color in the three-dimensional color space.
[0184] The at least one preset color includes the target color.
[0185] In an example embodiment, a color evaluation device is provided, in which the first determining module 100 is configured to:
[0186] construct a two-dimensional graph according to a preset color difference threshold, with a central color coordinate as the center of the two-dimensional graph, the two-dimensional graph containing a plurality of color coordinates in a plane.
[0187] construct a three-dimensional graph according to the two-dimensional graph, the three-dimensional graph containing a plurality of color coordinates in a space.
[0188] A range of colors corresponding to color coordinates of the three-dimensional graph is taken as a color difference range of the preset color.
[0189] In one example embodiment, a color evaluation device is provided, in which a first determining module 100 is configured to:
[0190] A first vector is constructed with the center color coordinate and an origin color coordinate in the three-dimensional color space.
[0191] A major axis of the ellipse is determined according to the first vector and a preset color difference threshold.
[0192] A minor axis of the ellipse is determined according to a second vector perpendicular to the first vector and the preset color difference threshold.
[0193] The ellipse is constructed according to the center color coordinate, the major axis and the minor axis of the ellipse.
[0194] In one example embodiment, a color evaluation device is provided, in which a first determining module 100 is configured to:
[0195] The color coordinates in the three-dimensional color space are iterated step by step along a first direction of the first vector from the center color coordinate until a first color difference between the iterated color coordinate and the center color coordinate is greater than a preset color difference threshold.
[0196] A third color coordinate corresponding to the first color difference greater than the preset color difference threshold among the iterated color coordinates is taken as one end point of the major axis of the ellipse.
[0197] The major axis of the ellipse is determined according to the center color coordinate and the third color coordinate.
[0198] In one example embodiment, a color evaluation device is provided, in which a first determining module 100 is configured to:
[0199] A second vector passing through the center color coordinate and being perpendicular to the first vector and a preset plane is determined, the preset plane being a plane in which two coordinate axes in the three-dimensional color space are located.
[0200] The color coordinates in the three-dimensional color space are iterated step by step along a second direction of the second vector from the center color coordinate until a second color difference between the iterated color coordinate and the center color coordinate is greater than a preset color difference threshold.
[0201] A fourth color coordinate corresponding to the second color difference greater than the preset color difference threshold among the iterated color coordinates is taken as one end point of the minor axis of the ellipse.
[0202] The minor axis of the ellipse is determined according to the center color coordinate and the fourth color coordinate.
[0203] In one example embodiment, there is provided a color evaluation device, wherein the first determining module 100 is configured to:
[0204] The ellipse is rotated by a preset angle around the major axis to obtain an ellipsoid.
[0205] In one example embodiment, there is provided a color evaluation device, wherein the device further comprises:
[0206] The correction module is configured to correct the to-be-tested color according to the target color, so that the corrected to-be-tested color is within the color difference range of the target color.
[0207] In one example embodiment, there is provided an electronic device, such as a mobile phone, a notebook computer, a tablet computer, a wearable device, and the like.
[0208] Referring to FIG. 11, the electronic device 400 can include one or more of the following components: a processing component 402, a memory 404, a power supply component 406, a multimedia component 408, an audio component 410, an input / output (I / O) interface 412, a sensor component 414, and a communication component 416.
[0209] The processing component 402 usually controls overall operations of the electronic device 400, such as operations associated with displaying, making phone calls, data communications, camera operations, and recording operations. The processing component 402 can include one or more processors 420 to execute instructions to complete all or part of steps of the methods described above. In addition, the processing component 402 can include one or more modules to facilitate the interaction between the processing component 402 and other components. For example, the processing component 402 can include a multimedia module to facilitate the interaction between the multimedia component 408 and the processing component 402.
[0210] The memory 404 is configured to store various types of data to support operations of the electronic device 400. Examples of the data include instructions for any application or method operating on the electronic device 400, contact data, phonebook data, messages, pictures, videos, and the like. The 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] The power supply component 406 provides power to various components of the electronic device 400. The power supply component 406 can include a power supply management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 400.
[0212] The multimedia component 408 includes a screen providing an output interface between the electronic device 400 and a user. In some embodiments, the screen includes a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touch, slide and gesture on the touch panel. The touch sensor can not only sense a boundary of a touching or a sliding action, but also detect duration and pressure related to the touching or sliding action. In some embodiments, the multimedia component 408 includes a front camera module and / or a rear camera module. The front camera module and / or the rear camera module can receive external multimedia data when the electronic device 400 is in an operation mode, such as a photographing mode or a video mode. Each of the front camera module and the rear camera module can be a fixed optical lens system or have a focal length and optical zoom ability.
[0213] The audio component 410 is configured to output and / or input audio signals. For example, the audio component 410 includes a microphone (MIC) configured to receive external audio signals when the electronic device 400 is in an operation mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals can be further stored in the memory 404 or transmitted via the communication component 416. In some embodiments, the audio component 410 further includes a speaker for outputting audio signals.
[0214] The I / O interface 412 provides an interface between the processing component 402 and peripheral interface modules, which can be a keypad, a click wheel, buttons, and the like. The buttons can include, but are not limited to, a home button, a volume button, a start button, and a lock button.
[0215] The sensor component 414 includes one or more sensors to provide various state assessments for the electronic device 400. For example, the sensor component 414 can detect an open / closed state of the electronic device 400, relative positioning of components, such as a display and a keypad of the electronic device 400, a change in position of the electronic device 400 or a component of the electronic device 400, presence or absence of user contact with the electronic device 400, an orientation or acceleration / deceleration of the electronic device 400, and a temperature change of the electronic device 400. The sensor component 414 can include a proximity sensor configured to detect presence of a nearby object without any physical touch. The sensor component 414 can further include a light sensor such as a CMOS or CCD image sensor for use in an imaging application. In some embodiments, the sensor component 414 can further include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0216] The communication component 416 is configured to facilitate wired or wireless communication between the electronic device 400 and other terminals. The electronic device 400 can access a wireless network based on a communication standard, such as WiFi, 2G, 3G, 4G, 5G, or a combination thereof. In an exemplary embodiment, the communication component 416 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 416 further includes a Near Field Communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technology.
[0217] In an exemplary embodiment, the electronic device 400 can be implemented with 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 elements, for performing the methods illustrated in the above-described embodiments or combinations thereof.
[0218] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions, such as the memory 404 including instructions, is also provided, which can be executed by the processor 420 of the electronic device 400 to implement the methods illustrated in the above-described embodiments or combinations thereof. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disc, and an optical data storage terminal, etc. When the instructions in the storage medium are executed by the processor of the terminal, the terminal is enabled to perform the methods illustrated in the above-described embodiments or combinations thereof.
[0219] Other embodiments of the present disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the features disclosed herein. The present disclosure is intended to cover any variations, uses, or adaptations of the present disclosure following the general principles thereof and including such departures from the present disclosure that come within known use or custom in the art. The specification and examples are to be regarded as exemplary only, with the true scope and spirit of the present disclosure being indicated by the following claims.
[0220] In the description of the specification, the description of the terms "one embodiment", "some embodiments", "an example", "a specific example", or "some examples" and the like means that the specific features, structures, materials or characteristics described in connection with the embodiment or example are included in at least one embodiment or example of the present disclosure. In the specification, the illustrative description of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any appropriate manner in any one or more embodiments or examples. In addition, the person skilled in the art can combine and combine the different embodiments or examples described in the specification and the features of the different embodiments or examples, without contradiction.
[0221] In addition, the terms "first", "second" are only for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined with "first", "second" can explicitly or implicitly include at least one of the features. In the description of the present disclosure, the meaning of "a plurality of" is at least two, for example, two, three, etc., unless otherwise explicitly specified.
[0222] It should be understood that the various forms of flow shown above can be reordered, added or deleted steps. For example, the steps described in the present disclosure can be executed in parallel, sequentially or in different order, as long as the desired results of the technical solutions disclosed in the present disclosure can be achieved, which is not limited herein.
[0223] The above specific embodiments do not constitute a limitation on the protection scope of the present 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 replacements and improvements within the spirit and principles of the present disclosure should be included in the protection scope of the present disclosure. Industrial applicability
[0224] By color evaluation of the color to be measured in a three-dimensional color space including a luminance dimension and a color dimension, the influence of luminance on color difference can be taken into account, thereby improving the accuracy of color evaluation.
Claims
1. A color evaluation method wherein, The color evaluation method comprises: determining a target color corresponding to a to-be-tested color in a three-dimensional color space; in a case where the to-be-tested color is located within a color difference range of the target color, determining that the to-be-tested color meets a color difference requirement; in a case where the to-be-tested color is located outside the color difference range of the target color, determining that the to-be-tested color does not meet the color difference requirement; wherein dimensions of the three-dimensional color space comprise a luminance dimension and a color dimension.
2. The color evaluation method according to claim 1, wherein, The determination of the target color corresponding to the to-be-tested color comprises: determining a first color coordinate of the to-be-tested color in the three-dimensional color space; determining a second color coordinate of each preset color in the three-dimensional color space; determining the preset color corresponding to the second color coordinate closest to the first color coordinate as the target color; or determining a first identifier of the to-be-tested color; determining a second identifier of each preset color in the three-dimensional color space; determining the preset color corresponding to the second identifier identical to the first identifier as the target color.
3. The color evaluation method according to claim 1, wherein, The to-be-tested color is located within the color difference range of the target color, comprising: the first color coordinate of the to-be-tested color in the three-dimensional color space is a color coordinate within the color difference range of the target color; The to-be-tested color is located outside the color difference range of the target color, comprising: 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, wherein, In the three-dimensional color space, before the determination of the target color corresponding to the to-be-tested color, the color evaluation method further comprises: determining a color difference range of at least one preset color; wherein the at least one preset color comprises the target color.
5. The color evaluation method according to claim 4, wherein, The determination of the color difference range of the at least one preset color comprises: taking a central color coordinate as the center of a two-dimensional graph, constructing the two-dimensional graph according to a preset color difference threshold, the central color coordinate being a color coordinate of the preset color, the two-dimensional graph containing a plurality of color coordinates in a plane; constructing a three-dimensional graph according to the two-dimensional graph, the three-dimensional graph containing a plurality of color coordinates in space; taking a range of colors corresponding to each color coordinate contained in the three-dimensional graph as the color difference range of the preset color.
6. The color evaluation method according to claim 5, wherein, The two-dimensional graph is an ellipse; taking the central color coordinate as the center of the two-dimensional graph, constructing the two-dimensional graph according to the preset color difference threshold, comprising: taking the central color coordinate and an origin color coordinate in the three-dimensional color space to form a first vector; determining a major axis of the ellipse according to the first vector and the preset color difference threshold; determining a minor axis of the ellipse according to a second vector perpendicular to the first vector and the preset color difference threshold; constructing the ellipse according to the central color coordinate, the major axis and the minor axis of the ellipse.
7. The color evaluation method according to claim 6, wherein, The determination of the major axis of the ellipse according to the first vector and the preset color difference threshold comprises: taking the central color coordinate as a starting point, gradually traversing color coordinates in the three-dimensional color space along a first direction of the first vector until a first color difference between the traversed color coordinate and the central color coordinate is greater than the preset color difference threshold; a third color coordinate is taken as one end point of the long axis of the ellipse, the third color coordinate being a color coordinate corresponding to the first color difference greater than the preset color difference threshold among the traversed color coordinates; a long axis of the ellipse is determined according to the center color coordinate and the third color coordinate.
8. The color evaluation method according to claim 6, wherein, The determining the short axis of the ellipse according to the second vector perpendicular to the first vector and the preset color difference threshold comprises: a second vector passing through the center color coordinate and being perpendicular to the first vector and a preset plane is determined, the preset plane being a plane in which two coordinate axes in the three-dimensional color space are located; color coordinates in the three-dimensional color space are traversed step by step in a second direction of the second vector with the center color coordinate as a starting point until a second color difference between a traversed color coordinate and the center color coordinate is greater than the preset color difference threshold; a fourth color coordinate is taken as one end point of the short axis of the ellipse, the fourth color coordinate being a color coordinate corresponding to the second color difference greater than the preset color difference threshold among the traversed color coordinates; a short axis of the ellipse is determined according to the center color coordinate and the fourth color coordinate.
9. The color evaluation method according to claim 5, wherein, The two-dimensional graph is an ellipse and the three-dimensional graph is an ellipsoid; and the constructing a three-dimensional graph according to the two-dimensional graph comprises: the ellipse is rotated by a preset angle around the long axis to obtain the ellipsoid.
10. The color evaluation method according to claim 1, wherein, After the determining that the to-be-tested color does not satisfy the color difference requirement, the color evaluation method further comprises: the to-be-tested color is corrected according to the target color, so that the to-be-tested color after correction is located within the color difference range of the target color.
11. The color evaluation method according to any one of claims 1 to 10, wherein, The three-dimensional color space is a Lab color space.
12. A color evaluation apparatus, wherein, The color evaluation device comprises: a first determining module configured to determine a target color corresponding to a to-be-tested color in a three-dimensional color space; a second determining module configured to determine that the to-be-tested color satisfies a color difference requirement in a case where the to-be-tested color is located within a color difference range of the target color; a third determining module configured to determine that the to-be-tested color does not satisfy the color difference requirement in a case where the to-be-tested color is located 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, comprising: The electronic device comprises: a processor; a memory for storing instructions executable by the processor; The processor is configured to perform the color evaluation method according to any one of claims 1 to 11.
14. A non-transitory computer-readable storage medium, wherein, When the instructions in the storage medium are executed by the processor of the terminal, the terminal is enabled to perform the color evaluation method according to any one of claims 1 to 11.
Citation Information
Patent Citations
Color cast feature extraction and color cast detection method based on Lab chroma space
CN107180439A
Image data processing method and device and storage medium
CN110996173A
Color calibration method and device, computer equipment and computer readable storage medium
CN116524045A
Method for controlling a screen to display colour tolerance areas within a three-dimensional colour space
EP3001408A1
Control data array generation apparatus and method
US5105469A