Color adjustment method, device and equipment and readable storage medium

By using the target calibration conversion matrix and the reference color value of the reference white point in the display device, unified color calibration is achieved when different display devices switch color modes, simplifying the adjustment process and improving consistency.

CN120656391APending Publication Date: 2025-09-16BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410294767.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-03-14
Publication Date
2025-09-16

AI Technical Summary

Technical Problem

There are hardware differences between the display screens of different display devices, which means that when unifying the display effects of different display devices, it is necessary to separately adjust the color parameters for different color modes. The adjustment process is complicated and labor-intensive.

Method used

By obtaining the target calibration conversion matrix corresponding to the current display mode of the display device, color calibration is performed based on the matrix, and the reference color value of the reference white point is used to determine the color conversion parameters of the target color mode, so as to achieve the unification of the reference white point color value in each mode.

Benefits of technology

This simplifies color calibration in multiple color modes, improves the consistency and universality of calibration parameters, and reduces the need to determine color conversion parameters separately for each mode.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120656391A_ABST
    Figure CN120656391A_ABST
Patent Text Reader

Abstract

The invention relates to a color adjustment method and device, equipment and a readable storage medium, and the method comprises the steps: obtaining a target calibration conversion matrix corresponding to a current display mode of the display equipment in response to a color mode switching instruction for the display equipment; wherein the target calibration conversion matrix is used for indicating a mapping relation between a first color value, displayed in a current display mode, of a reference white point of the display equipment and a reference color value of the reference white point; based on the target calibration conversion matrix, performing color calibration processing on first image data input by the display device to obtain second image data; based on a color conversion parameter corresponding to a target color mode indicated by the color mode switching instruction, performing color conversion on the second image data obtained by color calibration processing to obtain third image data to be displayed; the color conversion parameter corresponding to the target color mode is determined based on the reference color value of the reference white point.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of display devices, and in particular to a color adjustment method, apparatus, device, and readable storage medium. Background Art

[0002] To meet users' needs for display devices such as mobile phones, tablets, and laptops, a variety of adjustment algorithms based on screen color and white point are applied to the display screens of display devices to enable the display screens to complete the adjustment of various color modes such as true color display and eye protection mode.

[0003] Due to hardware differences between display screens on various display devices, it's necessary to unify the display effects across them. However, different color modes have personalized white point settings, requiring individual color parameter adjustments for each mode to achieve unified display effects across these devices. This results in a complex and labor-intensive calibration process. Summary of the Invention

[0004] To overcome the problems existing in the related art, the present disclosure provides a color adjustment method, device, equipment and readable storage medium.

[0005] According to a first aspect of an embodiment of the present disclosure, a color adjustment method is provided, the method comprising:

[0006] In response to a color mode switching instruction for a display device, obtaining a target calibration conversion matrix corresponding to a current display mode of the display device; wherein the target calibration conversion matrix is ​​used to indicate a mapping relationship between a first color value displayed by a reference white point of the display device in the current display mode and a reference color value of the reference white point;

[0007] performing color calibration processing on first image data input by the display device based on the target calibration conversion matrix to obtain second image data;

[0008] Based on the color conversion parameters corresponding to the target color mode indicated by the color mode switching instruction, the second image data obtained by the color calibration processing is color converted to obtain third image data to be displayed; the color conversion parameters corresponding to the target color mode are determined based on the reference color value of the reference white point.

[0009] Optionally, the method further includes:

[0010] Determining a first-type conversion matrix corresponding to an original display mode of the display device, where the first-type conversion matrix is ​​used to indicate a mapping relationship between a second color value of a reference white point displayed by the display device in the original display mode and a reference color value of the reference white point;

[0011] Obtaining a third color value of a reference white point displayed in each color mode of the display device;

[0012] determining, based on the third color value of the reference white point and the second color value of the reference white point in each color mode, a second-type conversion matrix corresponding to each color mode; wherein the second-type conversion matrix is ​​used to indicate a mapping relationship between the third color value displayed by the reference white point in the color mode and the second color value of the reference white point;

[0013] A calibration conversion matrix corresponding to each color mode is determined according to the second conversion matrix corresponding to each color mode and the first conversion matrix corresponding to the original display mode of the display device.

[0014] Optionally, obtaining the third color value of the reference white point displayed in each color mode of the display device includes one of the following:

[0015] determining, based on a first color lookup table corresponding to each color mode, the third color value displayed by the reference white point in the color mode; wherein the first color lookup table is used to indicate a mapping relationship between output pixel values ​​and input pixel values ​​of the display device in the corresponding color mode;

[0016] Based on the color conversion parameters corresponding to each color mode, the second color value of the reference white point is color-converted to obtain the third color value displayed by the reference white point in the color mode.

[0017] Optionally, in response to a color mode switching instruction for a display device, obtaining a target calibration conversion matrix corresponding to a current display mode of the display device includes:

[0018] In response to a color mode switching instruction for the display device, determining whether a first color value of the reference white point in a current display mode of the display device is the same as a reference color value of the reference white point;

[0019] If the first color value of the reference white point is different from the reference color value of the reference white point, a target calibration conversion matrix corresponding to a current display mode of the display device is obtained.

[0020] Optionally, the method further includes:

[0021] If the first color value of the reference white point is the same as the reference color value of the reference white point, the first image data input by the display device is color converted based on the color conversion parameters corresponding to the target color mode indicated by the display mode switching instruction to obtain the fourth image data to be displayed.

[0022] Optionally, determining the first type of conversion matrix corresponding to the original display mode of the display device includes:

[0023] determining, based on a second color lookup table of the display device, a second color value of the reference white point in the original display mode of the display device; wherein the second color lookup table is used to indicate a mapping relationship between output pixel values ​​and input pixel values ​​of the display device in the original display mode;

[0024] A first-type conversion matrix corresponding to the original display mode is determined according to the second color value of the reference white point in the original display mode and the reference color value of the reference white point.

[0025] Optionally, the calibration conversion matrix corresponding to each color mode includes three sub-conversion parameters corresponding to three channels in the color space;

[0026] The method further comprises:

[0027] Based on the three sub-conversion parameters corresponding to each color mode, determining the maximum sub-conversion parameter corresponding to each color mode;

[0028] determining whether the maximum sub-conversion parameter of each of the color modes is greater than a preset parameter threshold, wherein the preset parameter threshold is determined by a display capability of the display device;

[0029] If the maximum sub-conversion parameter of the color mode is greater than a preset parameter threshold, three sub-conversion parameters corresponding to the color mode are re-determined based on the maximum sub-conversion parameter of the color mode.

[0030] According to a second aspect of an embodiment of the present disclosure, there is provided a color adjustment device, characterized by comprising:

[0031] a construction module, configured to, in response to a color mode switching instruction for a display device, obtain a target calibration conversion matrix corresponding to a current display mode of the display device; wherein the target calibration conversion matrix is ​​used to indicate a mapping relationship between a first color value displayed by a reference white point of the display device in the current display mode and a reference color value of the reference white point;

[0032] a calibration module, configured to perform color calibration processing on the first image data input by the display device based on the target calibration conversion matrix to obtain second image data;

[0033] a processing module for performing color conversion on the second image data obtained by color calibration processing based on color conversion parameters corresponding to the target color mode indicated by the color mode switching instruction, so as to obtain third image data to be displayed; the color conversion parameters corresponding to the target color mode are determined based on the reference color value of the reference white point.

[0034] Optionally, the building block is further configured to:

[0035] Determining a first-type conversion matrix corresponding to an original display mode of the display device, where the first-type conversion matrix is ​​used to indicate a mapping relationship between a second color value of a reference white point displayed by the display device in the original display mode and a reference color value of the reference white point;

[0036] Obtaining a third color value of a reference white point displayed in each color mode of the display device;

[0037] determining, based on the third color value of the reference white point and the second color value of the reference white point in each color mode, a second-type conversion matrix corresponding to each color mode; wherein the second-type conversion matrix is ​​used to indicate a mapping relationship between the third color value displayed by the reference white point in the color mode and the second color value of the reference white point;

[0038] A calibration conversion matrix corresponding to each color mode is determined according to the second conversion matrix corresponding to each color mode and the first conversion matrix corresponding to the original display mode of the display device.

[0039] Optionally, the building block is further used for one of the following:

[0040] determining, based on a first color lookup table corresponding to each color mode, the third color value displayed by the reference white point in the color mode; wherein the first color lookup table is used to indicate a mapping relationship between output pixel values ​​and input pixel values ​​of the display device in the corresponding color mode;

[0041] Based on the color conversion parameters corresponding to each color mode, the second color value of the reference white point is color-converted to obtain the third color value displayed by the reference white point in the color mode.

[0042] Optionally, the building block is further configured to:

[0043] In response to a color mode switching instruction for the display device, determining whether a first color value of the reference white point in a current display mode of the display device is the same as a reference color value of the reference white point;

[0044] If the first color value of the reference white point is different from the reference color value of the reference white point, a target calibration conversion matrix corresponding to a current display mode of the display device is obtained.

[0045] Optionally, the building block is further configured to:

[0046] If the first color value of the reference white point is the same as the reference color value of the reference white point, the first image data input by the display device is color converted based on the color conversion parameters corresponding to the target color mode indicated by the display mode switching instruction to obtain the fourth image data to be displayed.

[0047] Optionally, the building block is further configured to:

[0048] determining, based on a second color lookup table of the display device, a second color value of the reference white point in the original display mode of the display device; wherein the second color lookup table is used to indicate a mapping relationship between output pixel values ​​and input pixel values ​​of the display device in the original display mode;

[0049] A first-type conversion matrix corresponding to the original display mode is determined according to the second color value of the reference white point in the original display mode and the reference color value of the reference white point.

[0050] Optionally, the calibration conversion matrix corresponding to each color mode includes three sub-conversion parameters corresponding to three channels in the color space;

[0051] The building block is further used to:

[0052] Based on the three sub-conversion parameters corresponding to each color mode, determining the maximum sub-conversion parameter corresponding to each color mode;

[0053] determining whether the maximum sub-conversion parameter of each of the color modes is greater than a preset parameter threshold, wherein the preset parameter threshold is determined by a display capability of the display device;

[0054] If the maximum sub-conversion parameter of the color mode is greater than a preset parameter threshold, three sub-conversion parameters corresponding to the color mode are re-determined based on the maximum sub-conversion parameter of the color mode.

[0055] According to a third aspect of an embodiment of the present disclosure, there is provided an electronic device, including:

[0056] a memory for storing processor-executable instructions;

[0057] a processor connected to the memory;

[0058] The processor is configured to execute the color adjustment method as described in any one of the embodiments of the first aspect of the present disclosure.

[0059] According to a fourth aspect of an embodiment of the present disclosure, a non-temporary computer-readable storage medium is provided. When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to perform the color adjustment method as described in any embodiment of the first aspect of the present disclosure.

[0060] The technical solutions provided by the embodiments of the present disclosure may have the following beneficial effects:

[0061] In an embodiment of the present disclosure, the display device can obtain a target calibration conversion matrix corresponding to the current display mode by responding to the color mode switching instruction; the display device performs color calibration processing on the first image data input by the display device through the target calibration conversion matrix. Since the target calibration conversion matrix indicates the mapping relationship between the first color value displayed by the reference white point of the display device in the current display mode and the reference color value of the reference white point, when the calibrated second image data is displayed by the display device, the color value of the reference white point is the same as the reference color value of the reference white point. In this way, the display device can directly use the color conversion parameters of the target color mode determined based on the reference color value of the reference white point to perform color conversion on the second image data to obtain third image data adapted to the target color mode.

[0062] The disclosed embodiment utilizes a calibration conversion matrix before color conversion to unify the color values ​​of the reference white point in each mode of the display device, so that the color conversion parameters determined based on the reference color value of the reference white point can be directly used during color conversion. There is no need to determine the corresponding color conversion parameters for each mode of the display device based on the actual color value of the reference white point in each mode, thereby effectively simplifying the color adjustment work in multiple color modes.

[0063] 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

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

[0065] Figure 1 This is a flow diagram of a color adjustment method according to an exemplary embodiment of the present disclosure. Figure 1 .

[0066] Figure 2This is a flow diagram of a color adjustment method according to an exemplary embodiment of the present disclosure. Figure 2 .

[0067] Figure 3 This is a flow diagram of a color adjustment method according to an exemplary embodiment of the present disclosure. Figure 3 .

[0068] Figure 4 FIG. 1 is a structural diagram of a color adjustment device according to an exemplary embodiment of the present disclosure.

[0069] Figure 5 The figure is a structural block diagram of an electronic device according to an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION

[0070] Exemplary embodiments will be described in detail herein, examples of which are illustrated in the accompanying drawings. In the following description, when referring to the drawings, identical numerals in different figures represent identical or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments are not intended to represent all embodiments consistent with the present disclosure. Rather, they are merely examples of devices consistent with certain aspects of the present disclosure, as detailed in the appended claims.

[0071] In related technologies, display screens are tested and calibrated before leaving the factory, also known as piece-by-piece calibration. This piece-by-piece calibration allows for monitoring inter-piece differences between different display devices. By adjusting each display screen based on these inter-piece differences, the display effects of the display devices can be unified.

[0072] However, the white point of display devices in different color modes (or color styles) has personalized settings. Under this condition, if the corresponding color parameters are adjusted separately for each color mode, the adjustment workload may increase, and the consistency under multiple color modes cannot be well guaranteed.

[0073] Therefore, a solution is needed to complete white point unification before performing more complex color calibration, so as to simplify the complexity of calibration in multiple color modes and improve the consistency and universality of calibration parameters.

[0074] The present disclosure provides a color adjustment method. Figure 1 This is a flow diagram of a color adjustment method according to an exemplary embodiment of the present disclosure. Figure 1 ,like Figure 1 As shown, the method includes:

[0075] Step S101: In response to a color mode switching instruction for a display device, obtaining a target calibration conversion matrix corresponding to a current display mode of the display device; wherein the target calibration conversion matrix is ​​used to indicate a mapping relationship between a first color value displayed by a reference white point of the display device in the current display mode and a reference color value of the reference white point;

[0076] Step S102 , performing color calibration processing on the first image data input by the display device based on the target calibration conversion matrix to obtain second image data;

[0077] Step S103, based on the color conversion parameters corresponding to the target color mode indicated by the color mode switching instruction, the second image data obtained by the color calibration processing is color converted to obtain third image data to be displayed; the color conversion parameters corresponding to the target color mode are determined based on the reference color value of the reference white point.

[0078] In the embodiments of the present disclosure, the color adjustment method can be applied to a display device. The display device can be an electronic device with a display screen, such as a smart watch, a tablet computer, a motor, a smart speaker, or the like.

[0079] In step S101, the color mode may refer to a color mode supported by the display screen. Different types of display devices may support different color modes.

[0080] For example, the color mode may include an original display mode, which may also be understood as a standard display mode or initial display mode of the display device. The color mode may also include functional modes such as office mode, theater mode, eye protection mode, and blue light protection mode.

[0081] In response to the color mode switching instruction for the display device, the display device may first obtain the current color mode, and then obtain the target calibration conversion matrix corresponding to the current color mode.

[0082] The target calibration conversion matrix is ​​used to indicate a mapping relationship between a first color value displayed by a reference white point of the display device in a current display mode and a reference color value of the reference white point.

[0083] It can be understood that the reference white point can be understood as a reference color point in the color calibration process of the display device.

[0084] It is understood that the display color of the reference white point in the display device may be different in different color modes. For example, the reference white point may display a first color value in the current display mode. The first color value may be different from the reference color value.

[0085] It can be understood that the target calibration conversion matrix indicates the mapping relationship between the first color value and the reference color value. The display device can use the target calibration conversion matrix to complete the conversion of the first color value of the reference white point of the current display mode to the reference color value, thereby calibrating the color of the reference white point of the current display mode.

[0086] It should be noted that different color modes may have different parameters such as reference white point, color gamut, and color temperature, resulting in different calibration conversion matrices corresponding to different color modes. To achieve white point uniformity before performing more complex color calibration, the disclosed embodiment does not consider color gamut differences and processing methods for the time being. It only requires that the target calibration conversion matrix indicate the mapping relationship between the first color value and the reference color value.

[0087] In step S102 , the display device may perform color calibration processing on the first image data input by the display device based on the target calibration conversion matrix to obtain second image data.

[0088] The first image data may be any image data to be displayed by the display device; or may be preset image data, which is not specifically limited in the embodiment of the present disclosure.

[0089] It is understood that, through the target calibration conversion matrix, the display device can convert the first image data corresponding to the current display mode into the second image data. Because the target calibration conversion matrix can indicate the mapping relationship between the color values ​​displayed in the current display mode and the reference color values, the displayed color values ​​of the reference white point in the converted second image data are identical to the reference color values. In other words, regardless of the current mode of the display device, the displayed color values ​​of the reference white point of the display device can be uniformly calibrated to the reference color values ​​using the calibration conversion matrix corresponding to that mode.

[0090] During this process, the display device completes calibration of the first image data of the current display mode into the second image data, so that the display effect of the reference white point in the second image data is the same as the display effect of the reference white point in the reference mode.

[0091] In step S103, the display device can determine the target color mode indicated by the color switching instruction according to the color switching instruction, and obtain color conversion parameters corresponding to the target color mode based on the target color mode; based on the color conversion parameters corresponding to the target color mode, the second image data obtained after color calibration processing can be color converted to obtain third image data.

[0092] The target color mode is one of the color modes supported by the display device. The target color mode has corresponding color conversion parameters. The color conversion parameters are used to change the color characteristics of the image data so that the display effect of the image data matches the target color mode.

[0093] The color conversion parameters corresponding to the target color mode are determined based on a reference color value of the reference white point.

[0094] It is understood that because the display color value of the reference white point in the converted second image data is identical to the reference color value of the reference white point, color conversion can be performed directly based on the color conversion parameters corresponding to the target color mode determined by the reference color value of the reference white point to obtain third image data. The display device can display the third image data to obtain a display effect corresponding to the target color mode, thereby completing the switch from the current display mode to the target color mode.

[0095] It should be noted that due to the different hardware structures of different display devices, the display effects of the original display modes of different display devices are different, and the display color values ​​of the reference white point in different color modes of the same display device are also different; therefore, it is necessary to determine the corresponding color conversion parameters for each color mode of each display device.

[0096] The embodiment of the present disclosure uses a calibration conversion matrix to unify the display color values ​​of the reference white point in each color mode before color conversion, so that color conversion processing can be performed on multiple different color modes of the display device using color conversion parameters determined based on the reference color value of the reference white point.

[0097] In an embodiment of the present disclosure, the display device can obtain a target calibration conversion matrix corresponding to the current display mode in response to the color mode switching instruction; the display device performs color calibration processing on the first image data input by the display device using the target calibration conversion matrix; because the target calibration conversion matrix indicates the mapping relationship between the first color value displayed by the reference white point of the display device in the current display mode and the reference color value of the reference white point, when the calibrated second image data is displayed by the display device, the color value of the reference white point is the same as the reference color value of the reference white point. In this way, the display device can directly use the color conversion parameters of the target color mode determined based on the reference color value of the reference white point to perform color conversion on the second image data to obtain third image data adapted to the target color mode.

[0098] The disclosed embodiment utilizes a calibration conversion matrix before color conversion to unify the color values ​​of the reference white point in each mode of the display device, so that the color conversion parameters determined based on the reference color value of the reference white point can be directly used during color conversion. There is no need to determine the corresponding color conversion parameters for each mode of the display device based on the actual color value of the reference white point in each mode, thereby effectively simplifying the color adjustment work in multiple color modes.

[0099] Optional, Figure 2 This is a flow diagram of a color adjustment method according to an exemplary embodiment of the present disclosure. Figure 2 ,like Figure 2 As shown, the method further includes:

[0100] Step S201, determining a first-type conversion matrix corresponding to an original display mode of the display device, where the first-type conversion matrix is ​​used to indicate a mapping relationship between a second color value of a reference white point displayed by the display device in the original display mode and a reference color value of the reference white point;

[0101] Step S202, obtaining a third color value of a reference white point displayed in each color mode of the display device;

[0102] Step S203: determining a second-type conversion matrix corresponding to each color mode based on the third color value of the reference white point and the second color value of the reference white point in each color mode; the second-type conversion matrix is ​​used to indicate a mapping relationship between the third color value displayed by the reference white point in the color mode and the second color value of the reference white point;

[0103] Step S204 : determining a calibration conversion matrix corresponding to each color mode according to the second conversion matrix corresponding to each color mode and the first conversion matrix corresponding to the original display mode of the display device.

[0104] In the embodiment of the present disclosure, the calibration conversion matrix corresponding to each color mode can be determined through steps S201 to S204. Steps S201 to S204 can be performed before step S101 or simultaneously with step S101, which is not specifically limited in the embodiment of the present disclosure.

[0105] In step S201 , the display device may determine a first-type conversion matrix corresponding to the original display mode by acquiring a mapping relationship between a second color value of a reference white point displayed in the original display mode and a reference color value of the reference white point.

[0106] The mapping relationship between the second color value and the reference color value may be obtained in a variety of ways, which is not specifically limited in the embodiment of the present disclosure.

[0107] It is understood that by obtaining the mapping relationship between the second color value and the reference color value, the color difference between the second color value and the reference color value when the display device in the original display mode displays the reference white point can be obtained. Thus, based on the first type of conversion matrix, the display device in the original display mode can be color calibrated so that the color value of the reference white point displayed by the display device in the original display mode is consistent with the reference color value of the reference white point.

[0108] In step S202 , the display device may obtain a third color value of a display reference white point in each color mode.

[0109] It is understandable that the display colors of the reference white points corresponding to different color modes are different. Therefore, the display device can determine the third color value of the reference white point displayed in each color mode.

[0110] Among them, the third color value of the reference white point displayed in each color mode can be obtained by collecting it through a color analyzer, a spectrometer and other equipment; or, it can be obtained by obtaining a preset color conversion matrix and converting the third color value of the reference white point in any color mode by the preset color conversion matrix; or other possible methods; the embodiments of the present disclosure do not make specific limitations on this.

[0111] For example, taking the three RGB channels as an example, when the display device is in bright color mode, the third color value of the reference white point can be RGB (251, 255, 250); when the display device is in dim color mode, the third color value of the reference white point can be RGB (241, 250, 233).

[0112] In step S203 , the display device may determine a second-type conversion matrix corresponding to each of the color modes based on a mapping relationship between the third color value of the reference white point and the second color value of the reference white point in each of the color modes.

[0113] The mapping relationship between the third color value and the second color value may be obtained in a variety of ways, which is not specifically limited in the embodiment of the present disclosure.

[0114] It is understood that by obtaining the mapping relationship between the third color value and the second color value, the color difference between the third color value when the display device in each color mode displays the reference white point and the second color value when the display device in the original display mode displays the reference white point can be obtained. Thus, based on the second-type conversion matrix, color calibration can be performed on the display device in each color mode, so that the color value of the reference white point displayed by the display device in each color mode is consistent with the color value of the reference white point displayed in the original display mode.

[0115] It should be noted that steps S202 to S203 may be performed before step S201, after step S201, or simultaneously with step S201, and this embodiment of the present disclosure does not specifically limit this.

[0116] In step S204, the display device may determine a calibration conversion matrix corresponding to each color mode according to the second conversion matrix corresponding to each color mode and the first conversion matrix corresponding to the original display mode of the display device.

[0117] It can be understood that the second type of conversion matrix is ​​used to indicate the mapping relationship between the third color value displayed by the reference white point in the color mode and the second color value of the reference white point displayed in the original display mode, and the first type of conversion matrix is ​​used to indicate the mapping relationship between the second color value of the reference white point displayed by the display device in the original display mode and the reference color value of the reference white point, so that each color mode corresponding calibration conversion matrix can indicate the mapping relationship between the third color value displayed by the reference white point of the display device in any color mode and the reference color value of the reference white point, including the mapping relationship between the first color value displayed in the current display mode and the reference color value of the reference white point.

[0118] It is understood that, based on each of the second-type conversion matrices, color calibration can be completed for the display device in each color mode, so that the color value of the reference white point displayed by the display device in each color mode is consistent with the color value of the reference white point displayed in the original display mode; based on the first-type conversion matrix, color calibration can be completed for the display device in the original display mode, so that the color value of the reference white point displayed by the display device in the original display mode is consistent with the reference color value of the reference white point. Therefore, based on the calibration conversion matrix corresponding to each color mode, the color value of the reference white point displayed by the display device in each color mode can be consistent with the reference color value of the reference white point.

[0119] It should be noted that the color mode may include the original display mode, and when the color mode is the original display mode, the third color value is equal to the second color value. The calibration conversion matrix of the original display mode is the first type of conversion matrix.

[0120] In some embodiments, the display device may determine the calibration conversion matrix for each color mode based on a product of the first conversion matrix and the second conversion matrix corresponding to each color mode.

[0121] In the embodiment of the present disclosure, the display device can determine the calibration conversion matrix corresponding to each color mode by obtaining the first type of conversion matrix corresponding to the original display mode and the second type of conversion matrix corresponding to each color mode. Therefore, before the color mode of the display device is switched, the calibration conversion matrix can be used to achieve the unification of the color values ​​of the reference white points in each color mode of the display device, effectively simplifying the color adjustment work in multiple color modes.

[0122] Optionally, the step of obtaining the third color value of the reference white point displayed in each color mode of the display device in step S202 includes one of the following:

[0123] determining, based on a first color lookup table corresponding to each color mode, the third color value displayed by the reference white point in the color mode; wherein the first color lookup table is used to indicate a mapping relationship between output pixel values ​​and input pixel values ​​of the display device in the corresponding color mode;

[0124] Based on the color conversion parameters corresponding to each color mode, the second color value of the reference white point is color-converted to obtain the third color value displayed by the reference white point in the color mode.

[0125] In the embodiment of the present disclosure, the display device may obtain the third color value of the reference white point displayed in each color mode through one of the following: a first color lookup table corresponding to the color mode, or a color conversion parameter corresponding to the color mode.

[0126] The first color lookup table may be obtained by detecting a color analyzer, a spectrometer, or other detection equipment. The first color lookup table is used to indicate a mapping relationship between output pixel values ​​and input pixel values ​​of the display device under the corresponding color mode.

[0127] It can be understood that the first color lookup table may include a first input sub-table and a first output sub-table, and there is a mapping relationship between the RGB nodes included in the first input sub-table and the RGB nodes in the first output sub-table.

[0128] Based on the first output sub-table of the first color lookup table corresponding to each color mode, the display device can determine the pixel value of the reference white point actually displayed in the color mode, and then determine the third color value displayed by the reference white point in the color mode.

[0129] In some embodiments, the RGB nodes in the first input sub-table represent the second color values ​​of the reference white point displayed by the image data in the original display mode, and the RGB nodes in the first output sub-table represent the third color values ​​of the reference white point displayed by the image data in each color mode. In other words, the display device can detect the change in the color of the reference white point during the transition from the original display mode to each color mode, and thereby determine the third color value of the reference white point displayed in each color mode.

[0130] The color conversion parameters may be parameters used to switch the color of the reference white point in the original display mode to a corresponding color in each of the color modes.

[0131] The color conversion parameters may be parameters used in image processing processes such as color space model, image filtering, and gamma correction.

[0132] It can be understood that the display device can perform color conversion on the second color value of the reference white point in the original display mode based on the color conversion parameters corresponding to each color mode, thereby obtaining the third color value displayed by the reference white point in each color mode.

[0133] In some embodiments, the display device may obtain the color of the image displayed on the display screen in each color mode through a detection device, and record the color value corresponding to the reference white point based on the image color.

[0134] Here, the color value corresponding to the reference white point can be represented by grayscale values ​​of three RGB channels.

[0135] It should be noted that, when the third color value after conversion by the color conversion parameters is a color value in a nonlinear RGB space, it is necessary to perform gamma transformation on the obtained third color value to obtain a color value in a linear RGB space.

[0136] In an embodiment of the present disclosure, the display device can determine the third color value displayed by the reference white point in the color mode based on the first color lookup table or color conversion parameter corresponding to each color mode, thereby obtaining the display color of the display device in each color mode.

[0137] Optionally, in response to a color mode switching instruction for a display device, obtaining a target calibration conversion matrix corresponding to a current display mode of the display device in step S101 includes:

[0138] In response to a color mode switching instruction for the display device, determining whether a first color value of the reference white point in a current display mode of the display device is the same as a reference color value of the reference white point;

[0139] If the first color value of the reference white point is different from the reference color value of the reference white point, a target calibration conversion matrix corresponding to a current display mode of the display device is obtained.

[0140] In an embodiment of the present disclosure, the display device can obtain the first color value of the reference white point in the current display mode of the display device in response to the color mode switching instruction, and obtain the reference color value of the reference white point; and then determine whether the first color value is the same as the reference color.

[0141] If the first color value is different from the reference color value, it means that there is a difference between the color of the reference white point in the current display mode and the reference color value. It is necessary to obtain the target calibration conversion matrix corresponding to the current display mode of the display device to complete the color calibration of the display device in the current display mode.

[0142] It can be understood that the first color value is different from the reference color value, and the color conversion parameters determined based on the reference color value of the reference white point cannot be directly used for color conversion. Instead, a target calibration conversion matrix must be obtained to use the target calibration conversion matrix to achieve color unification of the reference white point, so that the display device can use the color conversion parameters determined based on the reference color value of the reference white point for color conversion, effectively improving the consistency of the calibration process of different color modes.

[0143] In an embodiment of the present disclosure, the display device can determine whether the first color value of the reference white point in the current display mode is the same as the reference color value, and when the first color value is different from the reference color value, obtain the target calibration conversion matrix so that color calibration of the display device in different color modes can be performed subsequently based on the target calibration conversion matrix.

[0144] Optionally, the method further includes:

[0145] If the first color value of the reference white point is the same as the reference color value of the reference white point, the first image data input by the display device is color converted based on the color conversion parameters corresponding to the target color mode indicated by the display mode switching instruction to obtain the fourth image data to be displayed.

[0146] In an embodiment of the present disclosure, when the display device determines that the first color value is the same as the reference color value, it determines that the color of the reference white point of the current display mode of the display device is consistent with the color of the reference color value. At this point, the display device may perform color conversion on the first image data input by the display device based on the color conversion parameters corresponding to the target color mode indicated by the display mode switching instruction to obtain fourth image data to be displayed.

[0147] It can be understood that if the first color value is the same as the reference color value, the color conversion parameters determined based on the reference color value of the reference white point can be directly used for color conversion, so that the display device can perform color conversion based on the first image data using the color conversion parameters determined based on the reference color value of the reference white point, without obtaining the target conversion matrix corresponding to the current color mode, effectively reducing the complexity of the adjustment process.

[0148] In an embodiment of the present disclosure, the display device can determine whether the first color value of the reference white point in the current display mode is the same as the reference color value, and when the first color value is the same as the reference color value, perform color conversion on the first image data corresponding to the current display mode to adjust the color of the display device to the color corresponding to the target color mode.

[0149] Optionally, the determining of the first type of conversion matrix corresponding to the original display mode of the display device in step S201 includes:

[0150] determining, based on a second color lookup table of the display device, a second color value of the reference white point in the original display mode of the display device; wherein the second color lookup table is used to indicate a mapping relationship between output pixel values ​​and input pixel values ​​of the display device in the original display mode;

[0151] A first-type conversion matrix corresponding to the original display mode is determined according to the second color value of the reference white point in the original display mode and the reference color value of the reference white point.

[0152] In an embodiment of the present disclosure, the display device can determine the second color value of the reference white point in the original display mode of the display device based on a second color lookup table, and then determine the first type of conversion matrix corresponding to the original display mode based on the second color value and the reference color value.

[0153] The second color lookup table is used to indicate a mapping relationship between output pixel values ​​and input pixel values ​​of the display device in the original display mode.

[0154] The second color lookup table includes a second input sub-table and a second output sub-table.

[0155] It is understood that the display device can determine the second color value of the reference white point in the original display mode of the display device using the second input sub-table and the second output sub-table of the second color lookup table, and determine the first-type conversion matrix corresponding to the original display mode based on the second color value and the reference color value.

[0156] It should be noted that the error between the input pixel value and the output pixel value is caused by reasons such as hardware differences of the display screen.

[0157] In some embodiments, the second color lookup table may be a color mapping table that is preset in the display device before the display device leaves the factory and is used to calibrate the color display of the display device.

[0158] The second color lookup table may be a 3D LUT (Look Up Table). A 3D LUT is a cubic space consisting of multiple RGB nodes and can be used for color conversion in an RGB color space. Each RGB node includes an R value, a G value, and a B value.

[0159] In an embodiment of the present disclosure, the display device can obtain the second color value of the reference white point in the original display mode of the display device through a second color lookup table, so as to quickly determine the first type of conversion matrix corresponding to the original display mode, thereby improving the efficiency of calibrating the reference white point.

[0160] Optionally, the calibration conversion matrix corresponding to each color mode includes three sub-conversion parameters corresponding to three channels in the color space;

[0161] The method further comprises:

[0162] Based on the three sub-conversion parameters corresponding to each color mode, determining the maximum sub-conversion parameter corresponding to each color mode;

[0163] determining whether the maximum sub-conversion parameter of each of the color modes is greater than a preset parameter threshold, wherein the preset parameter threshold is determined by a display capability of the display device;

[0164] If the maximum sub-conversion parameter of the color mode is greater than a preset parameter threshold, three sub-conversion parameters corresponding to the color mode are re-determined based on the maximum sub-conversion parameter of the color mode.

[0165] In an embodiment of the present disclosure, the calibration conversion matrix corresponding to each color mode may include three sub-conversion parameters corresponding to three channels in the color space.

[0166] The three sub-conversion parameters may be a red sub-conversion parameter (R value), a green sub-conversion parameter value (G value), and a blue sub-conversion parameter (B value).

[0167] The display device may determine a maximum sub-conversion parameter corresponding to each color mode based on three sub-conversion parameters in the calibration conversion matrix corresponding to each color mode.

[0168] Here, the maximum sub-conversion parameter corresponding to each color mode refers to the maximum value among the three sub-conversion parameters.

[0169] After obtaining the maximum sub-conversion parameter corresponding to each color mode, the display device may determine whether the maximum sub-conversion parameter is greater than a preset parameter threshold, wherein the preset parameter threshold is determined by the display capability of the display device.

[0170] It is understandable that when obtaining the maximum sub-conversion parameter, it is also necessary to determine whether the second image data obtained when the first image data is converted using the maximum sub-conversion parameter is image data within the display capability of the display device.

[0171] In some embodiments, the value of the preset parameter threshold may be 1.

[0172] If the maximum sub-conversion parameter of the color mode is greater than a preset parameter threshold, the display device may re-determine the three sub-conversion parameters corresponding to the color mode based on the maximum sub-conversion parameter of the color mode.

[0173] It will be appreciated that if the maximum sub-conversion parameter exceeds the preset parameter threshold, the converted image data exceeds the display capability of the display device, and the display device cannot effectively display the input image data. Therefore, the three sub-conversion parameters corresponding to the color mode can be re-determined based on the value of the maximum sub-conversion parameter.

[0174] In one embodiment, the three sub-conversion parameters may be divided by the maximum sub-conversion parameter to redetermine the three sub-conversion parameters.

[0175] In the embodiment of the present disclosure, by obtaining the three sub-conversion parameters of the calibration conversion matrix corresponding to each color mode, the maximum sub-conversion parameter among the three sub-conversion parameters can be determined; by determining whether the maximum sub-conversion parameter is greater than a preset parameter threshold, it can be determined whether the calibration conversion matrix corresponding to each color mode matches the display capability of the display device. Furthermore, when the calibration conversion matrix does not match the display capability of the display device, the three sub-conversion parameters corresponding to the color mode can be re-determined to achieve calibration of the three sub-conversion parameters of the calibration conversion matrix, so that the calibration conversion matrix is ​​adapted to the display device.

[0176] The color adjustment method in the embodiment of the present disclosure is described below with a specific example.

[0177] Figure 3 This is a flow diagram of a color adjustment method according to an exemplary embodiment of the present disclosure. Figure 3 ,like Figure 3 As shown, the color adjustment method includes:

[0178] Step S301 : determining a second color value and the reference color value of the reference white point in an original display mode of the display device based on a second color lookup table of the display device.

[0179] It is understandable that the display device can obtain a set of 3D LUT1 (i.e., the second color lookup table) by obtaining the color changes during the calibration process of the display device by the detection device. In other words, the second color value displayed by the reference white point in the original display mode can be mapped to the reference color value through LUT1. Then, the display device can obtain the input data (R0, G0, B0) of the last row of LUT1 as the reference color value; the display device can obtain the output data (R1, G1, B1) of the last row of LUT1 as the reference color value.

[0180] It should be noted that, in order to simplify the calculation, (R0, G0, B0) can be (1, 1, 1).

[0181] Step S302: Obtain a third color value of the reference white point displayed in the first color mode of the display device. It is understood that the display device can obtain a set of 3D LUT2 (i.e., a first color lookup table) by obtaining the color changes monitored by the detection device during the process of switching from the original display mode to the first color mode. The display device can obtain the output data (R2, G2, B2) of the last row of LUT2 as the third color value of the reference white point.

[0182] In one embodiment, if the values ​​of the three channels of the last row of output data in the color space are greater than 1, the last row of output data needs to be normalized.

[0183] In some embodiments, if the original display mode is switched to the first color mode by using a color matrix or gamma transformation, the display device can obtain the content displayed on the display screen, record the RGB grayscale value (r2, g2, b2) in the first color mode, and use the grayscale value as the third color value of the reference white point.

[0184] In one embodiment, the RGB grayscale values ​​in the first color mode are RGB values ​​in a nonlinear color space, and the display device further needs to perform gamma transformation on (r2, g2, b2) according to formula (1).

[0185] [R2, G2, B2]=[(r / 255) 2.2 ,(g / 255) 2.2 ,(b / 255) 2.2 ] (1)

[0186] Among them, R2, G2, and B2 respectively represent the grayscale values ​​of the red, green, and blue channels in the color space after gamma transformation; r, g, and b respectively represent the grayscale values ​​of the red, green, and blue channels in the color space before gamma transformation.

[0187] Step S303: Determine a second type of conversion matrix corresponding to the first color mode.

[0188] It can be understood that the second type of conversion matrix can be obtained by transforming the reference white point from the third color value displayed in the first color mode to the second color value displayed in the original display mode.

[0189] Exemplarily, formula (2) can obtain the second type of matrix.

[0190] pcc1= [1 / R2, 1 / G2, 1 / B2] (2)

[0191] Among them, pcc1 represents the second type of matrix.

[0192] Step S304: Determine a first type of conversion matrix corresponding to the original display mode of the display device.

[0193] It can be understood that the first type of conversion matrix can be obtained by transforming the reference white point from the second color value displayed in the original display mode to the reference color value.

[0194] Exemplarily, formula (3) can obtain the first type of matrix.

[0195] pcc2 = [R1,G1,B1] (3)

[0196] Among them, pcc2 represents the first type of matrix; R1, G1, and B1 represent the grayscale values ​​of the red, green, and blue channels in the color space, respectively.

[0197] Step S305 : Determine a calibration conversion matrix corresponding to the first color mode according to the second conversion matrix corresponding to the first color mode and the first conversion matrix corresponding to the original display mode of the display device.

[0198] It can be understood that by performing the operation of pcc1*pcc2 in the first color mode, a calibration conversion matrix can be obtained.

[0199] Exemplarily, formula (4) may represent a calibration transformation matrix.

[0200] pcc=[p1,p2,p3]=[R1 / R2,G1 / G2,B1 / B2] (4)

[0201] Among them, PCC represents the calibration conversion matrix; P1, P2, and P3 represent the three sub-conversion parameters corresponding to the red, green, and blue channels in the color space, respectively.

[0202] In one embodiment, the maximum sub-conversion parameter corresponding to the first color mode, i.e., max(p1, p2, p3), needs to be determined. If the maximum sub-conversion parameter is greater than 1, the calibration conversion matrix is ​​processed using formula (5) to re-determine the three sub-conversion parameters in the calibration conversion matrix corresponding to the first color mode.

[0203] pcc=[p1,p2,p3] / max(p1,p2,p3) (5)

[0204] Among them, max(p1,p2,p3) means taking the largest sub-conversion parameter among p1, p2 and p3.

[0205] Step S305 , in response to the color mode switching instruction for the current first color mode, obtaining a calibration conversion matrix for the first color mode; performing color calibration processing on the first image data input by the display device based on the calibration conversion matrix for the first color mode to obtain second image data.

[0206] It is understood that before the target color mode corresponding to the color mode switching instruction takes effect, the first image data can be processed using a calibration conversion matrix (PCC) to achieve uniformity in the color values ​​of the reference white point across all modes of the display device. Subsequent application of the color conversion parameters corresponding to the target color mode can both simplify color calibration in multiple color modes and improve the consistency of the display effects of the reference white point across all color modes.

[0207] It should be noted that the description of steps S301 to S305 can also refer to Figures 1 to 2 For the sake of brevity, the description of one or more corresponding embodiments will not be repeated here.

[0208] In the disclosed embodiments, the display device can obtain a calibration conversion matrix corresponding to the first color mode by acquiring the first-type conversion matrix corresponding to the original display mode and the second-type conversion matrix corresponding to the first color mode. The calibration conversion matrix can then be used to unify the color values ​​of the reference white point across all modes of the display device. In subsequent color conversions, color conversion parameters determined based on the reference color values ​​of the reference white point can be directly used, eliminating the need to determine corresponding color conversion parameters based on the actual color values ​​of the reference white point for each mode of the display device, effectively simplifying color calibration in multiple color modes.

[0209] The present disclosure provides a color adjustment device. Figure 4 FIG. 1 is a structural diagram of a color adjustment device according to an exemplary embodiment of the present disclosure. Figure 4 As shown, the color adjustment device 400 includes:

[0210] A construction module 401 is configured to, in response to a color mode switching instruction for a display device, obtain a target calibration conversion matrix corresponding to a current display mode of the display device; wherein the target calibration conversion matrix is ​​configured to indicate a mapping relationship between a first color value displayed by a reference white point of the display device in the current display mode and a reference color value of the reference white point;

[0211] A calibration module 402 is configured to perform color calibration processing on the first image data input by the display device based on the target calibration conversion matrix to obtain second image data;

[0212] The processing module 403 is used to perform color conversion on the second image data obtained by color calibration processing based on the color conversion parameters corresponding to the target color mode indicated by the color mode switching instruction, so as to obtain third image data to be displayed; the color conversion parameters corresponding to the target color mode are determined based on the reference color value of the reference white point.

[0213] Optionally, the construction module 401 is further configured to:

[0214] Determining a first-type conversion matrix corresponding to an original display mode of the display device, where the first-type conversion matrix is ​​used to indicate a mapping relationship between a second color value of a reference white point displayed by the display device in the original display mode and a reference color value of the reference white point;

[0215] Obtaining a third color value of a reference white point displayed in each color mode of the display device;

[0216] determining, based on the third color value of the reference white point and the second color value of the reference white point in each color mode, a second-type conversion matrix corresponding to each color mode; wherein the second-type conversion matrix is ​​used to indicate a mapping relationship between the third color value displayed by the reference white point in the color mode and the second color value of the reference white point;

[0217] A calibration conversion matrix corresponding to each color mode is determined according to the second conversion matrix corresponding to each color mode and the first conversion matrix corresponding to the original display mode of the display device.

[0218] Optionally, the construction module 401 is further used for one of the following:

[0219] determining, based on a first color lookup table corresponding to each color mode, the third color value displayed by the reference white point in the color mode; wherein the first color lookup table is used to indicate a mapping relationship between output pixel values ​​and input pixel values ​​of the display device in the corresponding color mode;

[0220] Based on the color conversion parameters corresponding to each color mode, the second color value of the reference white point is color-converted to obtain the third color value displayed by the reference white point in the color mode.

[0221] Optionally, the construction module 401 is further configured to:

[0222] In response to a color mode switching instruction for the display device, determining whether a first color value of the reference white point in a current display mode of the display device is the same as a reference color value of the reference white point;

[0223] If the first color value of the reference white point is different from the reference color value of the reference white point, a target calibration conversion matrix corresponding to a current display mode of the display device is obtained.

[0224] Optionally, the construction module 401 is further configured to:

[0225] If the first color value of the reference white point is the same as the reference color value of the reference white point, the first image data input by the display device is color converted based on the color conversion parameters corresponding to the target color mode indicated by the display mode switching instruction to obtain the fourth image data to be displayed.

[0226] Optionally, the construction module 401 is further configured to:

[0227] determining, based on a second color lookup table of the display device, a second color value of the reference white point in the original display mode of the display device; wherein the second color lookup table is used to indicate a mapping relationship between output pixel values ​​and input pixel values ​​of the display device in the original display mode;

[0228] A first-type conversion matrix corresponding to the original display mode is determined according to the second color value of the reference white point in the original display mode and the reference color value of the reference white point.

[0229] Optionally, the calibration conversion matrix corresponding to each color mode includes three sub-conversion parameters corresponding to three channels in the color space;

[0230] The building block 401 is further configured to:

[0231] Based on the three sub-conversion parameters corresponding to each color mode, determining the maximum sub-conversion parameter corresponding to each color mode;

[0232] determining whether the maximum sub-conversion parameter of each of the color modes is greater than a preset parameter threshold, wherein the preset parameter threshold is determined by a display capability of the display device;

[0233] If the maximum sub-conversion parameter of the color mode is greater than a preset parameter threshold, three sub-conversion parameters corresponding to the color mode are re-determined based on the maximum sub-conversion parameter of the color mode.

[0234] Regarding the apparatus in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0235] Figure 5 8 is a block diagram illustrating a structure of an electronic device according to an exemplary embodiment of the present disclosure. For example, the electronic device 800 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.

[0236] Reference Figure 5 , the electronic device 800 may include one or more of the following components: a processing component 802 , a memory 804 , a power component 806 , a multimedia component 808 , an audio component 810 , an input / output (I / O) interface 812 , a sensor component 814 , and a communication component 816 .

[0237] The processing component 802 generally controls the overall operation of the electronic device 800, such as operations associated with at least one of display, phone calls, data communications, camera operation, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to perform all or part of the steps of the above-described method. In addition, the processing component 802 may include one or more modules to facilitate interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.

[0238] The memory 804 is configured to store various types of data to support operations on the electronic device 800. Examples of such data include at least one of the following: instructions for any application or method operating on the electronic device 800, contact data, phone book data, messages, pictures, and videos. The memory 804 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.

[0239] The power supply component 806 provides power to various components of the electronic device 800. The power supply component 806 may include at least one of the following: a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 800.

[0240] The multimedia component 808 includes a screen that provides an output interface between the electronic device 800 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 a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front camera and / or a rear camera. When the electronic device 800 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.

[0241] The audio component 810 is configured to output and / or input audio signals. For example, the audio component 810 includes a microphone (MIC), which is configured to receive external audio signals when the electronic device 800 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 804 or transmitted via the communication component 816. In some embodiments, the audio component 810 also includes a speaker for outputting audio signals.

[0242] I / O interface 812 provides an interface between processing component 802 and peripheral interface modules, such as a keyboard, click wheel, and buttons. These buttons may include, but are not limited to, a home button, volume buttons, a start button, and a lock button.

[0243] The sensor assembly 814 includes one or more sensors for providing various aspects of the status assessment of the electronic device 800. For example, the sensor assembly 814 can detect the open / closed state of the electronic device 800, the relative positioning of components, such as the display and keypad of the electronic device 800. The sensor assembly 814 can also detect changes in the position of the electronic device 800 or a component of the electronic device 800, the presence or absence of user contact with the electronic device 800, the orientation or acceleration / deceleration of the electronic device 800, and changes in the temperature of the electronic device 800. The sensor assembly 814 can include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 814 can also include an optical sensor, such as a complementary metal oxide semiconductor (CMOS) or charge coupled device (CCD) image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 can also include, but is not limited to, at least one of the following: an accelerometer, a gyroscope, a magnetic sensor, a pressure sensor, and a temperature sensor.

[0244] The communication component 816 is configured to facilitate wired or wireless communication between the electronic device 800 and other devices. The electronic device 800 can access a wireless network based on a communication standard, such as Wi-Fi, 4G, 5G, or a combination thereof. In an exemplary embodiment, the communication component 816 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 816 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 wide band (UWB) technology, Bluetooth (BT) technology and other technologies.

[0245] In an exemplary embodiment, the electronic device 800 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.

[0246] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is further provided, such as a memory 804 including executable instructions or a computer program. The instructions or computer program can be executed by the processor 820 of the electronic device 800 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a compact disc read-only memory (CD-ROM), a magnetic tape, a floppy disk, an optical data storage device, etc.

[0247] Other embodiments of the present disclosure will readily occur to those skilled in the art after considering the specification and practicing the invention disclosed 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.

[0248] 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 adjustment method, characterized in that: include: In response to a color mode switching instruction for a display device, obtaining a target calibration conversion matrix corresponding to a current display mode of the display device; wherein the target calibration conversion matrix is ​​used to indicate a mapping relationship between a first color value displayed by a reference white point of the display device in the current display mode and a reference color value of the reference white point; performing color calibration processing on first image data input by the display device based on the target calibration conversion matrix to obtain second image data; Based on the color conversion parameters corresponding to the target color mode indicated by the color mode switching instruction, the second image data obtained by the color calibration processing is color converted to obtain third image data to be displayed; the color conversion parameters corresponding to the target color mode are determined based on the reference color value of the reference white point.

2. The method according to claim 1, characterized in that The method further comprises: Determining a first-type conversion matrix corresponding to an original display mode of the display device, where the first-type conversion matrix is ​​used to indicate a mapping relationship between a second color value of a reference white point displayed by the display device in the original display mode and a reference color value of the reference white point; Obtaining a third color value of a reference white point displayed in each color mode of the display device; determining, based on the third color value of the reference white point and the second color value of the reference white point in each color mode, a second-type conversion matrix corresponding to each color mode; wherein the second-type conversion matrix is ​​used to indicate a mapping relationship between the third color value displayed by the reference white point in the color mode and the second color value of the reference white point; A calibration conversion matrix corresponding to each color mode is determined according to the second conversion matrix corresponding to each color mode and the first conversion matrix corresponding to the original display mode of the display device.

3. The method according to claim 2, characterized in that The acquiring of the third color value of the reference white point displayed in each color mode of the display device includes one of the following: determining, based on a first color lookup table corresponding to each color mode, the third color value displayed by the reference white point in the color mode; wherein the first color lookup table is used to indicate a mapping relationship between output pixel values ​​and input pixel values ​​of the display device in the corresponding color mode; Based on the color conversion parameters corresponding to each color mode, the second color value of the reference white point is color-converted to obtain the third color value displayed by the reference white point in the color mode.

4. The method according to claim 2, characterized in that The step of obtaining a target calibration conversion matrix corresponding to a current display mode of the display device in response to a color mode switching instruction for the display device includes: In response to a color mode switching instruction for the display device, determining whether a first color value of the reference white point in a current display mode of the display device is the same as a reference color value of the reference white point; If the first color value of the reference white point is different from the reference color value of the reference white point, a target calibration conversion matrix corresponding to a current display mode of the display device is obtained.

5. The method according to claim 4, characterized in that The method further comprises: If the first color value of the reference white point is the same as the reference color value of the reference white point, the first image data input by the display device is color converted based on the color conversion parameters corresponding to the target color mode indicated by the display mode switching instruction to obtain the fourth image data to be displayed.

6. The method according to claim 2, characterized in that The determining of the first type of conversion matrix corresponding to the original display mode of the display device includes: determining, based on a second color lookup table of the display device, a second color value of the reference white point in the original display mode of the display device; wherein the second color lookup table is used to indicate a mapping relationship between output pixel values ​​and input pixel values ​​of the display device in the original display mode; A first-type conversion matrix corresponding to the original display mode is determined according to the second color value of the reference white point in the original display mode and the reference color value of the reference white point.

7. The method according to claim 2, characterized in that The calibration conversion matrix corresponding to each color mode includes three sub-conversion parameters corresponding to three channels in the color space; The method further comprises: Based on the three sub-conversion parameters corresponding to each color mode, determining the maximum sub-conversion parameter corresponding to each color mode; determining whether the maximum sub-conversion parameter of each of the color modes is greater than a preset parameter threshold, wherein the preset parameter threshold is determined by a display capability of the display device; If the maximum sub-conversion parameter of the color mode is greater than a preset parameter threshold, three sub-conversion parameters corresponding to the color mode are re-determined based on the maximum sub-conversion parameter of the color mode.

8. A color adjustment device, characterized in that: include: a construction module, configured to, in response to a color mode switching instruction for a display device, obtain a target calibration conversion matrix corresponding to a current display mode of the display device; wherein the target calibration conversion matrix is ​​used to indicate a mapping relationship between a first color value displayed by a reference white point of the display device in the current display mode and a reference color value of the reference white point; a calibration module, configured to perform color calibration processing on the first image data input by the display device based on the target calibration conversion matrix to obtain second image data; a processing module for performing color conversion on the second image data obtained by color calibration processing based on color conversion parameters corresponding to the target color mode indicated by the color mode switching instruction, so as to obtain third image data to be displayed; the color conversion parameters corresponding to the target color mode are determined based on the reference color value of the reference white point.

9. An electronic device, characterized in that: include: a memory for storing processor-executable instructions; a processor connected to the memory; The processor is configured to execute the color adjustment method according to any one of claims 1 to 7.

10. A non-transitory computer-readable storage medium, characterized in that When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the color adjustment method according to any one of claims 1 to 7.