Color calibration method and device, electronic equipment and storage medium
Through personalized color lookup tables and calibration modes, the problem of the existing technology being unable to meet user color preference calibration is solved, and personalized color calibration of display devices is achieved, which satisfies the color display of users' subjective feelings.
Patent Information
- Application Number
- CN202410346446.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-25
- Publication Date
- 2025-09-26
AI Technical Summary
Existing color calibration methods cannot meet users' subjective personalized needs for display effects and cannot perform personalized calibration based on users' color preferences.
By responding to user operations, determining the personalized color calibration mode, and calling the pre-set personalized color lookup table to calibrate the display device, generating a personalized memory color set and color lookup table, and adjusting the color strategy of the display device to meet user preferences.
Color calibration is achieved based on user preferences, so that the display effect conforms to the user's subjective feelings and meets the user's personalized needs for display effects.
Smart Images

Figure CN120708560A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of color calibration, and in particular to a color calibration method, device, electronic device, and storage medium. Background Art
[0002] With the rapid development of screen hardware technology and color management algorithms, terminal display devices have continued to evolve, demonstrating wide color gamuts, rich color depths, and highly precise technical characteristics. Related technologies also allow for color calibration and color management algorithms to adjust all screens to a unified target value, resulting in similar color display effects across all screens.
[0003] However, color calibration through color calibration and color management algorithms only ensures that the screen's color display is objectively accurate. However, each user has a unique view of the degree of color authenticity. Therefore, the current color calibration method does not meet the subjective and personalized needs of all users for display effects. Summary of the Invention
[0004] The present disclosure provides a color calibration method, device, electronic device, and storage medium to address deficiencies in related technologies.
[0005] According to an embodiment of the first aspect of the present disclosure, a color calibration method is provided, including:
[0006] In response to a user operation, determining a color calibration mode selected by the user;
[0007] When the color calibration mode is a personalized mode, a pre-set personalized color lookup table is called to perform color calibration on the display device to be calibrated; wherein, the personalized color lookup table is determined based on the personalized memory color set set by the user, and the color value of each memory color in the personalized memory color set is a personalized color value selected by the user.
[0008] Optionally, the personalized color lookup table is generated in the following manner:
[0009] For each memory color in the memory color set required for color calibration, a plurality of candidate color values are provided to the user, wherein the candidate color values are displayed by the display device to be calibrated using the current color strategy;
[0010] In response to a user's selection operation on the candidate color value, determining a personalized memory color set;
[0011] A personalized color lookup table is generated based on the personalized memory color set.
[0012] Optionally, the current color strategy is for the display device to be calibrated to directly display, and the color calibration of the display device to be calibrated according to the personalized color lookup table includes:
[0013] The current color strategy is adjusted to be displayed according to the personalized color lookup table.
[0014] Optionally, the current color strategy is that the display device to be calibrated displays based on a standard color lookup table, and the standard color lookup table is used to calibrate the display device to be calibrated to a standard color. The color calibration of the display device to be calibrated according to the personalized color lookup table includes:
[0015] Performing interpolation calculation on the standard color lookup table and the personalized color lookup table to obtain a three-dimensional color lookup table;
[0016] The current color strategy is adjusted to be displayed according to the three-dimensional color lookup table.
[0017] Optional,
[0018] For any memory color in the memory color set, multiple alternative color values are provided to the user, including:
[0019] Providing a picture corresponding to a target scene and at least two candidate color values corresponding to any one of the memory colors to the user, wherein the picture includes a target object in the target scene and an auxiliary object that matches the target object;
[0020] Also includes:
[0021] In response to a user's selection operation on the candidate color value, determining a target color value, and adjusting the color value of the target object to the target color value;
[0022] In the case of obtaining a color confirmation request from the user for the target color value, the target color value is determined as the personalized color value of any one of the memory colors.
[0023] Optionally, generating a personalized color lookup table based on the personalized memory color set includes:
[0024] Determining a memory color node corresponding to each color in the personalized color lookup table in a preset color space, wherein the preset color space further includes other preset nodes, and an initial value of each color node in the preset color space is a color value of the color displayed by the display device to be calibrated using a current color strategy;
[0025] Determine a color conversion relationship of the memory color node based on the initial value and the personalized value of the memory color node, wherein the personalized value of each memory color node is a corresponding personalized color value in the personalized color lookup table;
[0026] Determining the color conversion relationship of other preset nodes according to the color conversion relationship of the memory color node;
[0027] The personalized color lookup table is determined based on the color conversion relationship of the memory color node and the color conversion relationship of other preset nodes.
[0028] Optional,
[0029] Based on the initial value and personalized value of the memory color node, the color conversion relationship of the memory color node is determined, including:
[0030] Converting the current value and the personalized value of the memory color node into a representation method in the preset color space at the same time to obtain a conversion value pair of the memory color node;
[0031] Determining the color conversion relationship of other preset nodes based on the color conversion relationship of the memory color node includes:
[0032] Determining initial values of other preset nodes in the preset color space;
[0033] Determining normalized distances between initial values of other preset nodes and the initial value of the memory color node in the preset color space;
[0034] Determining personalized values of other preset nodes in the preset color space based on the conversion value pairs corresponding to each memory color node, the normalized distance, and the initial values of the other preset nodes;
[0035] Based on the initial values and personalized values of the other preset nodes, the color conversion relationships of the other preset nodes are determined.
[0036] Optionally, determining personalized values of other preset nodes in the preset color space based on the conversion value pairs corresponding to each memory color node, the normalized distance, and the initial values of the other preset nodes includes:
[0037] For each dimension in the preset color space:
[0038] Determine the difference between each memory color node in the corresponding dimension based on the conversion value pair corresponding to each memory color node;
[0039] Calculating the sum of the products of the normalized distance corresponding to each memory color node and the difference value to determine the memory color adjustment parameter of the corresponding dimension;
[0040] Determining personalized dimension values of other preset nodes in corresponding dimensions based on the initial values of the other preset nodes and the memory color adjustment parameters of the dimension;
[0041] Based on the personalized dimension values of multiple dimensions of other preset nodes in the preset color space, the personalized values of other preset nodes in the preset color space are determined.
[0042] According to an embodiment of the second aspect of the present disclosure, a color calibration device is provided, comprising:
[0043] a determining unit, configured to determine the color calibration mode selected by the user in response to a user operation;
[0044] A calibration unit is used to call a pre-set personalized color lookup table to perform color calibration on the display device to be calibrated when the color calibration mode is the personalized mode; wherein the personalized color lookup table is determined based on the personalized memory color set set by the user, and the color value of each memory color in the personalized memory color set is the personalized color value selected by the user.
[0045] According to an embodiment of the third aspect of the present disclosure, an electronic device is provided, including:
[0046] processor;
[0047] a memory for storing processor-executable instructions;
[0048] Wherein, the processor is configured to implement the color calibration method as described in the first aspect.
[0049] According to an embodiment of a fourth aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored. When the program is executed by a processor, the steps in the color calibration method as described in the first aspect are implemented.
[0050] The technical solutions provided by the embodiments of the present disclosure may have the following beneficial effects:
[0051] As can be seen from the above embodiments, the present disclosure can determine the color calibration mode selected by the user based on the user's operation, and when the user selects the personalized mode, call the pre-set personalized color lookup table to perform color calibration on the display device to be calibrated. Since the personalized color lookup table is determined based on the personalized memory color set set by the user, and the color value of each memory color in the personalized memory color set is the personalized color value selected by the user, the personalized mode is a calibration mode that meets the user's color preference. By applying the technical solution of the present disclosure, the display device can be color calibrated based on the personalized mode selected by the user, so that the color presented after calibration meets the user's color preference, realizes the true color in the user's subjective perception, and satisfies the user's subjective personalized needs for display effects.
[0052] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0054] Figure 1 is a flow chart showing a color calibration method according to an exemplary embodiment of the present disclosure;
[0055] Figure 2 is a flowchart of a method for generating a personalized color lookup table according to an exemplary embodiment of the present disclosure;
[0056] Figure 3 is a specific flow chart of a method for determining a color conversion relationship according to an exemplary embodiment of the present disclosure;
[0057] Figure 4 is a specific flow chart showing a method for calculating personalized dimension values according to an exemplary embodiment of the present disclosure;
[0058] Figure 5 is a schematic diagram showing a color calibration device according to an exemplary embodiment of the present disclosure;
[0059] Figure 6 The figure is a schematic structural diagram of an electronic device according to an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION
[0060] The following will be combined with the accompanying drawings in the embodiments of the present disclosure to clearly and completely describe the technical solutions in the embodiments of the present disclosure. Obviously, the embodiments described are only part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments of the present disclosure, all other embodiments obtained by ordinary technicians in this field without making any creative efforts are within the scope of protection of the present disclosure.
[0061] The terms used in the embodiments of the present disclosure are for the purpose of describing specific embodiments only and are not intended to limit the embodiments of the present disclosure. The singular forms "a," "an," and "the" used in the embodiments of the present disclosure and the appended claims are also intended to include plural forms unless the context clearly indicates otherwise. It should also be understood that the term "and / or" as used herein refers to and includes any or all possible combinations of one or more associated listed items.
[0062] It should be understood that although the terms first, second, third, etc. may be used to describe various information in the embodiments of the present disclosure, such information should not be limited to these terms. These terms are only used to distinguish information of the same type from each other. For example, without departing from the scope of the embodiments of the present disclosure, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".
[0063] For the purpose of brevity and ease of understanding, the terms "greater than," "less than," "higher than," and "lower than" are used herein to describe size relationships. However, those skilled in the art will understand that the term "greater than" also encompasses the meaning of "greater than or equal to," and "less than" also encompasses the meaning of "less than or equal to," and the term "higher than" also encompasses the meaning of "higher than or equal to," and "lower than" also encompasses the meaning of "lower than or equal to."
[0064] With the rapid development of screen hardware technology and color management algorithms, terminal display devices have continued to evolve, presenting wide color gamuts, rich color depths, and highly precise technical characteristics. At the same time, by introducing color management algorithms, different display devices can be color calibrated to achieve a relatively unified target value across all display devices, presenting a consistent color display effect.
[0065] For example, manufacturers typically preset some common color modes for display devices, such as True Color mode, Standard mode, Game mode, and Cinema mode. Users can select different modes to meet the color display requirements in different application scenarios. Alternatively, some manufacturers may create a color profile for each device at the factory. This profile contains a series of calibration parameters and color settings to ensure that colors can be displayed in a consistent manner on different devices or between different modes of the same device.
[0066] However, while these methods achieve objective color calibration, resulting in a more uniform display on screens, each user's subjective perception of color fidelity is highly individualized. For example, user A might perceive warmer skin tones as more realistic, while user B might perceive cooler skin tones as more realistic. Therefore, the conventional methods for uniform color calibration cannot meet the subjective and personalized display needs of all users.
[0067] In order to solve the above problems, the present disclosure proposes a color calibration method, device, electronic device and storage medium, which can determine the color calibration mode selected by the user according to the user's operation, and when the user selects the personalized mode, call the pre-set personalized color lookup table to perform color calibration on the display device to be calibrated. Since the personalized color lookup table is determined based on the personalized memory color set set by the user, and the color value of each memory color in the personalized memory color set is the personalized color value selected by the user, the personalized mode is a calibration mode that meets the user's color preference. Applying the technical solution of the present disclosure, the display device can be color calibrated based on the personalized mode selected by the user, so that the color presented after calibration meets the user's color preference, realizes the true color in the user's subjective perception, and meets the user's subjective personalized needs for display effects.
[0068] Figure 1 FIG. 1 is a flowchart of a color calibration method according to an exemplary embodiment of the present disclosure, including:
[0069] S101, in response to a user operation, determining a color calibration mode selected by the user;
[0070] S102, when the color calibration mode is the personalized mode, calling a pre-set personalized color lookup table to perform color calibration on the display device to be calibrated; wherein, the personalized color lookup table is determined based on the personalized memory color set set by the user, and the color value of each memory color in the personalized memory color set is a personalized color value selected by the user.
[0071] In an exemplary embodiment, the display device to be calibrated may be a hardware device capable of presenting images or information to a user in a visual form, and may specifically include a computer monitor, a professional graphic design display television, a mobile phone, a tablet computer, a wearable device, a projector, etc., and this disclosure is not limited thereto. The display device to be calibrated may provide a variety of color calibration modes for the user to choose from, such as a standard mode, a true color mode, an sRGB mode, and a personalized mode. The display device to be calibrated may determine the color calibration mode selected by the user based on the user's operation and calibrate its own color display based on the mode.
[0072] In an exemplary embodiment, the personalized mode is a calibration mode that can represent the user's color preference. When the user chooses to use the personalized mode for color calibration, a preset personalized color lookup table can be called to perform color calibration on the display device to be calibrated.
[0073] Specifically, the personalized color lookup table can be determined based on a personalized memory color set set by the user, and the color value of each memory color in the personalized memory color set is a personalized color value selected by the user. Among them, the color lookup table, also known as LUT, is a data structure or algorithm used to map input colors to output colors. It is commonly used in graphics processing, computer graphics, and image processing to achieve color conversion and adjustment. Memory colors generally reflect people's visual memory and recognition ability of colors or objects. For example, after an individual observes and memorizes a certain color over a period of time, they can accurately identify or recall the color at a later time. Therefore, the user's color preference can be determined based on the user's impression of these specific colors (such as sky blue, grass green, blood red, etc.). That is, the personalized color value selected by the user for each memory color is determined to form a personalized memory color set, and further generate a corresponding personalized color lookup table, so that the display device to be calibrated can perform color conversion and adjustment according to the personalized color lookup table.
[0074] It can be seen from the above embodiments that the present disclosure can perform color calibration on the display device based on the personalized mode selected by the user, so that the color presented after calibration conforms to the user's color preference, realizes the true color in the user's subjective perception, and meets the user's subjective personalized needs for display effects.
[0075] Figure 2 FIG. 1 is a flowchart of a color calibration method according to an exemplary embodiment of the present disclosure, including:
[0076] S201 : For each memory color in a memory color set required for color calibration, provide a user with a plurality of candidate color values, wherein the candidate color values are displayed by a display device to be calibrated using a current color strategy.
[0077] S202: In response to a user's selection operation on the candidate color value, determine a personalized memory color set.
[0078] S203: Generate a personalized color lookup table based on the personalized memory color set.
[0079] In one exemplary embodiment, the memory colors required for color calibration can be pre-determined and organized into a memory color set. For each memory color in the memory color set, multiple candidate color values are then provided to the user. The color values can be displayed in various forms, such as a color block corresponding to the color value or directly displaying the color value parameters. Here, the candidate color values are displayed by the display device being calibrated using the current color policy. The current color policy includes different color display methods, which will be explained in detail in subsequent embodiments.
[0080] In one exemplary embodiment, a user can select a color value that matches their impression from multiple provided alternative color values and use it as the personalized color value for the memory color. After the user selects the alternative color values corresponding to multiple memory colors in the memory color set, a personalized color value for each memory color is determined, forming a personalized memory color set. Because the color value of each memory color in the personalized memory color set is a personalized color value, the memory colors in the personalized memory color set can reflect the user's color preferences, thereby generating a personalized color lookup table that meets the user's personalized color display requirements. Color calibration can then be performed on the display device to be calibrated based on this personalized color lookup table.
[0081] It can be seen from the above embodiments that the present disclosure enables users to independently select memory colors that match their own color impressions, and generates a personalized color lookup table based on the user's selection, so that the display device to be calibrated can perform color calibration based on the personalized color lookup table, further making the colors presented after calibration match the user's color preferences, realizing the true colors in the user's subjective perception, and satisfying the user's subjective personalized needs for display effects.
[0082] In an exemplary embodiment, the current color policy can directly display the color of the display device to be calibrated, and color calibration is performed by adjusting the current color policy to display according to a personalized color lookup table. During the manufacturing of the display device to be calibrated, due to factors such as differences in production materials and environmental differences, even the same model of display device may not be able to guarantee uniform display colors. However, although the display colors are not unified between display devices, since the color display is directly based on the color of the display device after manufacturing when the alternative color value is displayed, if the alternative color value selected by the user at this time meets the user's expectations, then in the subsequent steps, the personalized color lookup table generated based on the personalized memory color set can also meet the user's color preferences, and can also meet the user's subjective personalized needs for display effects.
[0083] In another exemplary embodiment, the current color policy can be based on a standard color lookup table (LUT) for the display device to be calibrated. During color calibration of the display device to be calibrated, the standard LUT is interpolated with a personalized LUT to generate a three-dimensional LUT. The current color policy is then adjusted to display based on this three-dimensional LUT. As previously mentioned, due to various factors, even display devices of the same model cannot guarantee uniform display colors. Therefore, a unified color calibration can be performed on the display devices before they leave the factory. Specifically, a standard LUT can be generated based on a mapping between the post-manufactured colors of the display devices and the desired standard colors. This standard LUT is used to calibrate the display device to the standard colors. Since the display of alternative color values is based on the standard LUT, if the user's selected alternative color value meets their expectations, subsequent steps can combine this with the personalized LUT to meet the user's color preferences. Specifically, the standard LUT can be interpolated with the personalized LUT to generate a three-dimensional color lookup table, also known as a 3D LUT. Thereafter, the current color strategy is adjusted to be displayed according to the obtained three-dimensional color lookup table, thereby satisfying the user's subjective personalized demand for display effect.
[0084] As can be seen from the above embodiments, calibrating different display devices to standard colors can make each display device present an objective, standard, and uniform color. Since each display device has the same color display basis, combining a personalized color lookup table on this basis can enable different devices to adjust the color display effect to the effect that meets the user's preference based on the obtained three-dimensional lookup table. For example, a user has two devices P1 and P2 at the same time. When applying the above technical solution, that is, when these two devices are uniformly calibrated to standard colors, the user only needs to generate a personalized color lookup table on device P1. Then device P2 can also obtain the three-dimensional color lookup table by obtaining the personalized color lookup table and adjust it, so that the color display of device P2 meets the user's subjective personalized needs for the display effect. The user does not need to determine the personalized color lookup table again on device P2. The specific acquisition method is not specifically limited in this disclosure. By applying the technical solution of the present disclosure, not only the efficiency of personalized color calibration between different devices is improved, but also the user's operation is simplified and the user experience is improved.
[0085] In one exemplary embodiment, when providing a user with multiple alternative color values for any memory color in a memory color set, the user may be provided with an image of a target scene and at least two alternative color values corresponding to the memory color. The target scene includes a target object and an auxiliary object that complements the target object. The target object corresponds to the memory color, and the alternative color values should be similar to the color values of the memory color. For example, the target scene corresponding to the image may include objects such as the sky, trees, and grass. If the memory color in the memory color set is sky blue, the sky in the scene is the target object, and the trees and grass are auxiliary objects that complement the target object. The at least two alternative color values provided to the user are also color values corresponding to sky blue. Specifically, in selecting the alternative color values, the value of the memory color in a specific color model can be first determined. Then, based on this value, other values within a preset adjustment range can be selected as alternative color values. For example, the RGB values 10 units above and below the sky blue value can be selected as alternative color values, and the color blocks corresponding to these 10 alternative color values can be displayed.
[0086] In one exemplary embodiment, in response to a user selecting an alternative color value, a target color value can be determined, and the color value of the target object can be adjusted to the target color value. Regarding the specific method for adjusting the color value of the target object, deep learning technology can be used to train a model to learn the complex relationships involved in color extraction, conversion, or matching of the target object. After the user selects an alternative color value, the color of the target object can be automatically changed. For the target scene and target object in the previous example, if the user selects the second alternative color value from the 10 provided alternative color values, the second alternative color value becomes the target color value. The color of the sky in the scene will then be adjusted to the target color value, allowing the user to see the adjusted color of the target object and the overall color effect of the target scene combined with the colors of the auxiliary objects. If the user then determines that the current target color value meets their color preferences, they can request confirmation, such as by clicking a confirmation button, to confirm the target color value as the personalized color value of any of the memory colors. The above steps can be repeated, such as providing multiple pictures containing different target scenes and different target objects and corresponding multiple alternative color values for the user to choose, until all memory colors in the memory color set are traversed, so as to more accurately determine the user's color preference.
[0087] It can be seen from the above embodiments that compared to simply providing descriptions of text and numbers, the present disclosure provides an overall scene and adjusts the color of the target object in the scene accordingly according to the user's selection, which enables the user to more intuitively feel the effect of the color value they selected, and better judge whether it conforms to the color in their impression, so that the selected color value can better reflect the user's subjective color preference.
[0088] In an exemplary embodiment, the memory color node corresponding to each color in the personalized color lookup table in the preset color space can be determined, wherein the initial value of each memory color node is the color value of the color displayed by the display device to be calibrated using the current color strategy, and the personalized value of each memory color node is the corresponding personalized color value in the personalized color lookup table. For example, the preset color space can be the LUV color space. If the memory color is sky blue, then the initial value of sky blue can be the color value provided to the user by the display device on the same day (such as the color value directly displayed after the display device is manufactured or the color value displayed by the display device based on a standard color lookup table). The personalized value is the personalized color value selected by the user and added to the personalized memory color set, that is, the corresponding personalized color value in the personalized color lookup table.
[0089] At the same time, the preset color space also includes other preset nodes, and the initial values of other preset nodes are also the color values of the color displayed by the display device to be calibrated with the current color strategy (such as the color value directly displayed after the display device is manufactured or the color value displayed by the display device based on the standard color lookup table). Since the user only selects personalized color values that meet their color preferences for the memory colors in the memory color set, the personalized values of other preset nodes need to be determined based on the information of the memory color nodes, specifically based on the color conversion relationship between the initial value of the memory color node and the personalized value, and then the color conversion relationship between the initial value of the other preset nodes and the personalized value is obtained. Thereafter, when the color conversion relationship of the memory color node and the color conversion relationship of the other preset nodes are obtained, the color conversion relationship of all the nodes required in the preset color space is obtained, and the personalized color lookup table can be determined accordingly.
[0090] It should be noted that the initial and personalized values of the memory color nodes in the preset color space, as well as the initial values of other preset nodes, can be converted from representations in other color models. For example, if known color values are all represented by the RGB color model, they can be converted to the LUV color space using a matrix formula to obtain the LUV color space representation.
[0091] It should also be noted that the number of other preset nodes can be set according to actual conditions. For example, if the value of each color channel in the RGB color model is 0 to 255, then there are 256×256×256 nodes in the LUV color space when the RGB color model is converted. However, considering the computing power problem, the number of other preset nodes can be set to 17×17×17, and the conversion relationship of the calculated 17×17×17 nodes can be used to further infer the conversion relationship of 256×256×256 full nodes using relevant technologies. Of course, if the computing power can support it, the conversion relationship of 256×256×256 full nodes can also be directly calculated from the conversion relationship of the memory color nodes, and this disclosure does not limit this.
[0092] In an exemplary embodiment, the Figure 3 The method shown here determines the color conversion relationship of the color node, including:
[0093] S301, convert the current value and personalized value of the memory color node into the representation method in the preset color space at the same time, and obtain the conversion value pair of the memory color node. Here, the conversion value pair of the memory color is used to characterize the color conversion relationship of the memory color node. For example, if the preset color space is the LUV color space, where L, U, and V represent the three coordinates of the LUV space, namely brightness, chroma U, and chroma V, respectively, the color value of a certain color can be characterized by the U value and the V value. Therefore, the initial value of the memory color node can be represented as the u value and the v value, and the personalized value of the memory color node can be represented as the u' value and the v' value, then the conversion value pair of the memory color node can be expressed as (uv, u'v'). In the case of multiple memory color nodes, they can be represented in the calculation formula as (u1v1, u1'v1'), (u2v2, u2'v2'), (u3v3, u3'v3'), etc.
[0094] S302: Determine the initial values of other preset nodes in the preset color space. The calculation of the personalized value of each other preset node is related to multiple memory color nodes. Therefore, when calculating the color conversion relationship of each other preset node one by one, its initial value can be expressed as (u0, v0) in the calculation formula.
[0095] S303: Determine the normalized distance between the initial values of the other preset nodes and the initial value of the memory color node in the preset color space. It is understood that the initial values of different nodes should have different positional representations in the preset color space. Therefore, the distance between the initial values of the other preset nodes and the initial value of the memory color node can be calculated. Furthermore, normalizing the distances maps the distance values to a standard scale, which helps improve the accuracy of subsequent calculations.
[0096] Specifically, the normalized distance between the initial value of a certain other preset node and the initial value of each memory color node can be obtained by the following two formulas:
[0097] a+b+c+…=1
[0098]
[0099] Here, a, b, and c represent the normalized distances between the initial values of different memory color nodes and the initial values of the other preset nodes. If there are five memory color nodes, then a, b, c, d, and e represent them, and so on. u1 and v1, u2 and v2, and u3 and v3 represent the initial values of different memory color nodes, and u0 and v0 represent the initial values of the other preset nodes.
[0100] S304 : Determine personalized values of other preset nodes in a preset color space based on the conversion value pairs corresponding to the respective memory color nodes, the normalized distances, and the initial values of the other preset nodes.
[0101] Specifically, since a specific color value can be represented by U value and V value in LUV color space, that is, there are two different dimensions of chromaticity U and chromaticity V. When calculating the personalized value of other preset nodes, the personalized dimension values of these two dimensions should also be calculated, and then the personalized value of other preset nodes in the preset color space should be determined based on the personalized dimension values of multiple dimensions. Among them, the calculation method of the personalized dimension value in each dimension is the same. Taking the calculation of the personalized dimension value of a certain other preset node in the chromaticity U dimension as an example, the following will be combined with Figure 4 The flowchart shown explains the calculation method in detail. The specific calculation steps include:
[0102] S401: Determine the difference in the corresponding dimension for each memory color node based on the conversion value pair corresponding to each memory color node. For example, if the conversion value pair for a memory color node X is represented as (u1v1, u1'v1'), then its difference in the chromaticity U dimension is (u1'-u1). Similarly, the difference in the chromaticity U dimension for other memory color nodes can be represented as (u2'-u2), (u3'-u3), and so on.
[0103] S402, calculate the sum of the products of the normalized distance corresponding to each memory color node and the difference, and determine the memory color adjustment parameter of the corresponding dimension. Since the normalized distance between the initial value of the memory color node X and the initial value of the other preset node has been obtained in the above steps, if it is a, then the product of the normalized distance corresponding to the memory color node A and the difference is a(u1'-u1). Similarly, the products of other memory color nodes can be expressed as b(u2'-u2), c(u3'-u3), etc. By adding up the above products, the sum of the products of the normalized distance corresponding to each memory color node and the difference can be obtained, which is a(u1'-u1)+b(u2'-u2)+c(u3'-u3)+……, as the memory color adjustment parameter of the chromaticity U dimension.
[0104] S403, based on the initial value of the other preset node and the memory color adjustment parameter of the dimension, determine the personalized dimension value of the other preset node in the corresponding dimension. Specifically, the personalized dimension value of a certain dimension can be obtained by adding the initial value of the other preset node in the dimension and the memory color adjustment parameter of the dimension obtained above. For example, if the initial value of the other preset node in the chromaticity U dimension is u0, then its personalized dimension value in the chromaticity U dimension is u0', u0'=u0+[a(u1'-u1)+b(u2'-u2)+c(u3'-u3)+……]. Similar to the above calculation process, the personalized dimension value of the other preset node in the chromaticity V dimension can be obtained as v0', v0'=v0+[a(v1'-v1)+b(v2'-v2)+c(v3'-v3)+……].
[0105] Since a specific color value can be represented by U value and V value in the LUV color space, the personalized dimensional values of other preset nodes in multiple dimensions in the preset color space, that is, u0' and v0' calculated in the above steps, can be determined.
[0106] S305, based on the initial values and personalized values of the other preset nodes, determine the color conversion relationship of the other preset nodes. In an exemplary embodiment, if the representation method of the memory color node in the LUV color space is obtained by converting the RGB color model, then after obtaining the personalized values of the other preset nodes, they can be converted to the representation method of the RGB color model through a matrix formula. At this time, the initial value and personalized value of the memory color node have the representation method of the RGB color model, and the initial value and personalized value of the other preset nodes also have the representation method of the RGB color model, so the color conversion relationship of the entire node can be obtained, and the personalized color lookup table of the entire node can be obtained.
[0107] As can be seen from the above embodiments, the present disclosure can obtain personalized values for multiple other nodes, or even all nodes, in a color space based on the information about the change from the initial value to the personalized value of a small number of nodes in the color space. Furthermore, the method provided by the present disclosure is applicable to calculations in the uniformity space LUV color space, making the calculated personalized values of each node more accurate.
[0108] Based on the above color calibration method, the present disclosure also provides a color calibration device, see Figure 5 ,include:
[0109] A providing unit 51 is configured to provide a user with a plurality of candidate color values for each memory color in a memory color set required for color calibration, wherein the candidate color values are displayed by the display device to be calibrated using a current color strategy;
[0110] a determining unit 52 for determining a personalized memory color set in response to a user's selection operation on the candidate color value, wherein the color value of each memory color in the personalized memory color set is the personalized color value selected by the user;
[0111] The calibration unit 53 is configured to generate a personalized color lookup table based on the personalized memory color set, and perform color calibration on the display device to be calibrated according to the personalized color lookup table.
[0112] Optionally, the current color strategy is that the display device to be calibrated directly displays the color, and the calibration unit 53 is specifically configured to:
[0113] The current color strategy is adjusted to be displayed according to the personalized color lookup table.
[0114] Optionally, the current color strategy is that the display device to be calibrated performs display based on a standard color lookup table, and the standard color lookup table is used to calibrate the display device to be calibrated to a standard color. The calibration unit 53 is specifically configured to include:
[0115] Performing interpolation calculation on the standard color lookup table and the personalized color lookup table to obtain a three-dimensional color lookup table;
[0116] The current color strategy is adjusted to be displayed according to the three-dimensional color lookup table.
[0117] Optionally, the providing unit 51 is specifically configured to:
[0118] Providing a picture corresponding to a target scene and at least two candidate color values corresponding to any one of the memory colors to the user, wherein the picture includes a target object in the target scene and an auxiliary object that matches the target object;
[0119] The apparatus further includes a first determining unit 521, configured to:
[0120] In response to a user's selection operation on the candidate color value, determining a target color value, and adjusting the color value of the target object to the target color value;
[0121] In the case of obtaining a color confirmation request from the user for the target color value, the target color value is determined as the personalized color value of any one of the memory colors.
[0122] Optionally, the calibration unit 53 is specifically configured to:
[0123] Determining a memory color node corresponding to each color in the personalized color lookup table in a preset color space, wherein the preset color space further includes other preset nodes, and an initial value of each color node in the preset color space is a color value of the color displayed by the display device to be calibrated using a current color strategy;
[0124] Determine a color conversion relationship of the memory color node based on the initial value and the personalized value of the memory color node, wherein the personalized value of each memory color node is a corresponding personalized color value in the personalized color lookup table;
[0125] Determining the color conversion relationship of other preset nodes according to the color conversion relationship of the memory color node;
[0126] The personalized color lookup table is determined based on the color conversion relationship of the memory color node and the color conversion relationship of other preset nodes.
[0127] Optional,
[0128] Based on the initial value and personalized value of the memory color node, the color conversion relationship of the memory color node is determined, including:
[0129] Converting the current value and the personalized value of the memory color node into a representation method in the preset color space at the same time to obtain a conversion value pair of the memory color node;
[0130] Determining the color conversion relationship of other preset nodes based on the color conversion relationship of the memory color node includes:
[0131] Determining initial values of other preset nodes in the preset color space;
[0132] Determining normalized distances between initial values of other preset nodes and the initial value of the memory color node in the preset color space;
[0133] Determining personalized values of other preset nodes in the preset color space based on the conversion value pairs corresponding to each memory color node, the normalized distance, and the initial values of the other preset nodes;
[0134] Based on the initial values and personalized values of the other preset nodes, the color conversion relationships of the other preset nodes are determined.
[0135] Optionally, determining personalized values of other preset nodes in the preset color space based on the conversion value pairs corresponding to each memory color node, the normalized distance, and the initial values of the other preset nodes includes:
[0136] For each dimension in the preset color space:
[0137] Determine the difference between each memory color node in the corresponding dimension based on the conversion value pair corresponding to each memory color node;
[0138] Calculating the sum of the products of the normalized distance corresponding to each memory color node and the difference value to determine the memory color adjustment parameter of the corresponding dimension;
[0139] Determining personalized dimension values of other preset nodes in corresponding dimensions based on the initial values of the other preset nodes and the memory color adjustment parameters of the dimension;
[0140] Based on the personalized dimension values of multiple dimensions of other preset nodes in the preset color space, the personalized values of other preset nodes in the preset color space are determined.
[0141] The implementation process of the functions and effects of each unit in the above-mentioned device is specifically described in the implementation process of the corresponding steps in the above-mentioned method, and will not be repeated here.
[0142] For the device embodiments, since they basically correspond to the method embodiments, the relevant parts can be referred to the partial description of the method embodiments. The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the disclosed solution. A person of ordinary skill in the art can understand and implement it without paying any creative work.
[0143] An embodiment of the present disclosure further provides an electronic device, comprising: a processor; and a memory for storing processor-executable instructions; wherein the processor is configured to implement the method described in any one of the above embodiments.
[0144] Figure 6 6 is a block diagram of an electronic device according to an exemplary embodiment. For example, the electronic device 600 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0145] Reference Figure 6 , the electronic device 600 may include one or more of the following components: a processing component 602 , a memory 604 , a power component 606 , a multimedia component 608 , an audio component 610 , an input / output (I / O) interface 612 , a sensor component 614 , and a communication component 616 .
[0146] The processing component 602 generally controls the overall operation of the electronic device 600, such as operations associated with display, phone calls, data communications, camera operation, and recording operations. The processing component 602 may include one or more processors 620 to execute instructions to perform all or part of the steps of the above-described method. In addition, the processing component 602 may include one or more modules to facilitate interaction between the processing component 602 and other components. For example, the processing component 602 may include a multimedia module to facilitate interaction between the multimedia component 608 and the processing component 602.
[0147] The memory 604 is configured to store various types of data to support operations on the electronic device 600. Examples of such data include instructions for any application or method operating on the electronic device 600, contact data, phone book data, messages, pictures, videos, etc. The memory 604 can be implemented by any type of volatile or non-volatile storage device 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 memory, flash memory, magnetic disk, or optical disk.
[0148] The power supply assembly 606 provides power to the various components of the electronic device 600. The power supply assembly 606 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 600.
[0149] The multimedia component 608 includes a screen that provides an output interface between the electronic device 600 and the 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 touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, slides, and gestures on the touch panel. The touch sensor can not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 608 includes a front camera and / or a rear camera. When the electronic device 600 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have a focal length and optical zoom capability.
[0150] The audio component 610 is configured to output and / or input audio signals. For example, the audio component 610 includes a microphone (MIC), which is configured to receive external audio signals when the electronic device 600 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal can be further stored in the memory 604 or transmitted via the communication component 616. In some embodiments, the audio component 610 also includes a speaker for outputting audio signals.
[0151] I / O interface 612 provides an interface between processing component 602 and peripheral interface modules, such as a keyboard, click wheel, buttons, etc. These buttons may include but are not limited to: a home button, volume buttons, a start button, and a lock button.
[0152] The sensor assembly 614 includes one or more sensors for providing various aspects of status assessment for the electronic device 600. For example, the sensor assembly 614 can detect the open / closed state of the electronic device 600, the relative positioning of components, such as the display and keypad of the electronic device 600. The sensor assembly 614 can also detect changes in the position of the electronic device 600 or a component of the electronic device 600, the presence or absence of user contact with the electronic device 600, the orientation or acceleration / deceleration of the electronic device 600, and temperature changes of the electronic device 600. The sensor assembly 614 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 614 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 614 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0153] The communication component 616 is configured to facilitate wired or wireless communication between the electronic device 600 and other devices. The electronic device 600 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, 4G LTE, 5G NR, or a combination thereof. In an exemplary embodiment, the communication component 616 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 616 also 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 technologies.
[0154] In an exemplary embodiment, the electronic device 600 can be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the method described in any of the above embodiments.
[0155] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 604 including instructions, and the instructions can be executed by the processor 620 of the electronic device 600 to perform the above method. 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 disk, an optical data storage device, etc.
[0156] Other embodiments of the present disclosure will readily occur to those skilled in the art after considering the specification and practicing the disclosure herein. This disclosure is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art not disclosed herein. The description and examples are to be considered as exemplary only, with the true scope and spirit of the present disclosure being indicated by the following claims.
[0157] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes can be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A color calibration method, characterized in that: include: In response to a user operation, determining a color calibration mode selected by the user; When the color calibration mode is a personalized mode, a pre-set personalized color lookup table is called to perform color calibration on the display device to be calibrated; wherein, the personalized color lookup table is determined based on the personalized memory color set set by the user, and the color value of each memory color in the personalized memory color set is a personalized color value selected by the user.
2. The method according to claim 1, characterized in that The personalized color lookup table is generated in the following manner: For each memory color in the memory color set required for color calibration, a plurality of candidate color values are provided to the user, wherein the candidate color values are displayed by the display device to be calibrated using the current color strategy; In response to a user's selection operation on the candidate color value, determining a personalized memory color set; A personalized color lookup table is generated based on the personalized memory color set.
3. The method according to claim 2, characterized in that The current color strategy is that the display device to be calibrated directly displays, and the color calibration of the display device to be calibrated according to the personalized color lookup table includes: The current color strategy is adjusted to be displayed according to the personalized color lookup table.
4. The method according to claim 2, characterized in that The current color strategy is that the display device to be calibrated displays based on a standard color lookup table, and the standard color lookup table is used to calibrate the display device to be calibrated to a standard color. The color calibration of the display device to be calibrated according to the personalized color lookup table includes: Performing interpolation calculation on the standard color lookup table and the personalized color lookup table to obtain a three-dimensional color lookup table; The current color strategy is adjusted to be displayed according to the three-dimensional color lookup table.
5. The method according to claim 2, characterized in that For any memory color in the memory color set, multiple alternative color values are provided to the user, including: Providing a picture corresponding to a target scene and at least two candidate color values corresponding to any one of the memory colors to the user, wherein the picture includes a target object in the target scene and an auxiliary object that matches the target object; Also includes: In response to a user's selection operation on the candidate color value, determining a target color value, and adjusting the color value of the target object to the target color value; In the case of obtaining a color confirmation request from the user for the target color value, the target color value is determined as the personalized color value of any one of the memory colors.
6. The method according to claim 2, characterized in that Generating a personalized color lookup table based on the personalized memory color set includes: Determining a memory color node corresponding to each color in the personalized color lookup table in a preset color space, wherein the preset color space further includes other preset nodes, and an initial value of each color node in the preset color space is a color value of the color displayed by the display device to be calibrated using a current color strategy; Determine a color conversion relationship of the memory color node based on the initial value and the personalized value of the memory color node, wherein the personalized value of each memory color node is a corresponding personalized color value in the personalized color lookup table; Determining the color conversion relationship of other preset nodes according to the color conversion relationship of the memory color node; The personalized color lookup table is determined based on the color conversion relationship of the memory color node and the color conversion relationship of other preset nodes.
7. The method according to claim 6, characterized in that Based on the initial value and personalized value of the memory color node, the color conversion relationship of the memory color node is determined, including: Converting the current value and the personalized value of the memory color node into a representation method in the preset color space at the same time to obtain a conversion value pair of the memory color node; Determining the color conversion relationship of other preset nodes based on the color conversion relationship of the memory color node includes: Determining initial values of other preset nodes in the preset color space; Determining normalized distances between initial values of other preset nodes and the initial value of the memory color node in the preset color space; Determining personalized values of other preset nodes in the preset color space based on the conversion value pairs corresponding to each memory color node, the normalized distance, and the initial values of the other preset nodes; Based on the initial values and personalized values of the other preset nodes, the color conversion relationships of the other preset nodes are determined.
8. The method according to claim 7, characterized in that The determining, based on the conversion value pairs corresponding to the respective memory color nodes, the normalized distances, and the initial values of the other preset nodes, the personalized values of the other preset nodes in the preset color space includes: For each dimension in the preset color space: Determine the difference between each memory color node in the corresponding dimension based on the conversion value pair corresponding to each memory color node; Calculating the sum of the products of the normalized distance corresponding to each memory color node and the difference value to determine the memory color adjustment parameter of the corresponding dimension; Determining personalized dimension values of other preset nodes in corresponding dimensions based on the initial values of the other preset nodes and the memory color adjustment parameters of the dimension; Based on the personalized dimension values of multiple dimensions of other preset nodes in the preset color space, the personalized values of other preset nodes in the preset color space are determined.
9. A color calibration device, characterized in that: include: a determining unit, configured to determine the color calibration mode selected by the user in response to a user operation; A calibration unit is used to call a pre-set personalized color lookup table to perform color calibration on the display device to be calibrated when the color calibration mode is the personalized mode; wherein the personalized color lookup table is determined based on the personalized memory color set set by the user, and the color value of each memory color in the personalized memory color set is the personalized color value selected by the user.
10. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to implement the method according to any one of claims 1 to 8.
11. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.