Color temperature control method, display device and storage medium

By detecting the color temperature of ambient light and adjusting the color temperature transformation matrix, the problem of color temperature matching of display devices under different ambient light conditions is solved, achieving a better visual experience.

CN120340433APending Publication Date: 2025-07-18SHENZHEN CHINA STAR OPTOELECTRONICS SEMICON DISPLAY TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510657743.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-20
Publication Date
2025-07-18

AI Technical Summary

Technical Problem

It is difficult for existing display devices to accurately adjust the color temperature of the display screen under different ambient light conditions, resulting in poor user visual experience.

Method used

By detecting the color temperature of ambient light, determining the chromaticity coordinates, and adjusting the initial display data of the display screen using the color temperature transformation matrix and the original color conversion matrix to form the target display data so that the color temperature of the display screen matches the color temperature of the ambient light.

Benefits of technology

It achieves accurate matching of the color temperature of the display screen and ambient light, improving the comfort and effect of the visual experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120340433A_ABST
    Figure CN120340433A_ABST
Patent Text Reader

Abstract

The invention discloses a color temperature control method, a display device and a storage medium. The method comprises the following steps: firstly, detecting a first color temperature of ambient light, and determining a first chromaticity coordinate corresponding to the first color temperature; then, determining a color temperature transformation matrix according to the first chromaticity coordinate and a preset mapping relation; the preset mapping relation comprises a corresponding relation between a preset chromaticity coordinate and a preset tristimulus value. And finally, according to the color temperature transformation matrix and the original color transformation matrix, performing color adaptation transformation on initial display data of a display picture of the display panel under the ambient light to obtain target display data, so as to control the color temperature of the display picture. Thus, the initial display data of the display picture is adaptively adjusted to the target display data matched with the color temperature through the color temperature of the ambient light, the color temperature of the display picture can be dynamically matched with the color temperature of the ambient light, and better visual experience is provided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of display technologies, and particularly to a color temperature control method, a display device, and a storage medium. Background Art

[0002] In the display field, display media included in mobile phones, televisions, laptop computers, etc. have various picture quality settings. The so-called picture quality settings usually include a series of parameter adjustments for optimizing the display effect. For example, the display picture quality is adjusted by adjusting brightness, contrast, color temperature, etc.

[0003] The display picture quality is crucial for the user experience, and the color temperature of the picture is a key factor affecting the visual perception. Under different ambient light conditions, people's requirements for the color temperature of the display picture are different. For example, in a relatively dark indoor environment with a low color temperature, if the color temperature of the display picture is too high, it will give people a dazzling and uncomfortable feeling; while in a bright outdoor environment with a high color temperature, if the color temperature of the display picture is too low, it may cause the picture color to be dull and not clear and vivid enough.

[0004] Currently, when dealing with the problem of matching the color temperature of the display picture with the ambient light, display devices often adopt a fixed color temperature setting mode. For example, only the brightness of the display picture is adjusted according to the ambient light brightness, ignoring the influence of the ambient light color temperature on the display effect, unable to accurately perceive the change of the ambient light color temperature, and even less able to perform targeted color temperature adjustment on each pixel of the display picture according to different ambient light color temperatures, resulting in that when users view the display picture in different environments, it is difficult to obtain a precise and comfortable color rendering effect, and the visual experience is poor. Summary of the Invention

[0005] The color temperature control method, display device, and storage medium provided by the embodiments of the present invention can dynamically match the color temperature of the display picture with the color temperature of the ambient light, so that the display picture can better adapt to the change of the ambient light and provide a better visual experience.

[0006] The embodiments of the present invention provide a color temperature control method, including: detecting a first color temperature of ambient light; determining a first chromaticity coordinate corresponding to the first color temperature; determining a color temperature transformation matrix according to the first chromaticity coordinate and a preset mapping relationship; the preset mapping relationship includes a corresponding relationship between a preset chromaticity coordinate and a preset tristimulus value; performing color adaptation transformation on initial display data of a display picture of a display panel under the ambient light according to the color temperature transformation matrix and an original color conversion matrix to obtain target display data; the target display data is used to control the color temperature of the display picture.

[0007] An embodiment of the present invention further provides a display device, including: a photoelectric sensor configured to detect a first color temperature of ambient light and send the first color temperature to a driver; the driver configured to receive the first color temperature; and implement any one of the above color temperature control methods based on the first color temperature.

[0008] An embodiment of the present invention further provides a computer-readable storage medium storing computer-executable instructions, which when executed by a driver are configured to implement the color temperature control method as described in any one of the above.

[0009] In summary, the color temperature control method, display device, and storage medium provided by the present invention determine a color temperature transformation matrix for initial display data of each pixel in a display screen by detecting the color temperature of ambient light, and then use the color temperature transformation matrix and an original color conversion matrix to adjust the initial display data of the display screen to form target display data. In this way, the color temperature of the display screen can be dynamically matched with the color temperature of the ambient light, accurate color mapping can be achieved, the display screen can better adapt to changes in the ambient light, and a better visual experience can be provided. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] The present invention will be further described below with reference to the drawings. It should be noted that the drawings in the following description are only used to explain some embodiments of the present invention, and those skilled in the art can obtain other drawings without creative efforts based on these drawings.

[0011] Figure 1 It is a schematic structural diagram of a display device provided by an embodiment of the present invention.

[0012] Figure 2 It is a schematic flowchart of a color temperature control method provided by an embodiment of the present invention.

[0013] Figure 3 It is a schematic flowchart of a process for obtaining a first chromaticity coordinate provided by an embodiment of the present invention.

[0014] Figure 4 It is another schematic flowchart of a process for obtaining a first chromaticity coordinate provided by an embodiment of the present invention.

[0015] Figure 5 It is a schematic flowchart of a process for obtaining a color temperature transformation matrix provided by an embodiment of the present invention.

[0016] Figure 6 It is a schematic flowchart of a calculation method for obtaining the tristimulus values in the color temperature transformation matrix provided by an embodiment of the present invention.

[0017] Figure 7Schematic flowchart of obtaining target display data provided by an embodiment of the present invention.

[0018] Figure 8 Schematic structural diagram of another display device provided by an embodiment of the present invention. Detailed implementation manners

[0019] Next, the technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative efforts belong to the scope of protection of the present invention.

[0020] The terms "first", "second", etc. in the present invention are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or modules is not limited to the listed steps or modules, but optionally further includes steps or modules not listed, or optionally further includes other steps or modules inherent to these processes, methods, products, or devices.

[0021] Referring to "embodiment" herein means that a specific feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the present invention. The phrase appears in various places in the specification and does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment mutually exclusive with other embodiments. Those skilled in the art will explicitly and implicitly understand that the embodiments described herein can be combined with other embodiments.

[0022] The embodiment of the present invention provides a color temperature control method, and the color temperature control method includes but is not limited to the following embodiments and combinations between the following embodiments.

[0023] In some embodiments, the color temperature control method is applied to a display device, such as Figure 1As shown, the display device 100 may include a display panel 10 and components 20. Among them, the display panel 10 may be a liquid crystal display panel or a self-luminous display panel. Regardless of the type of the display panel 10, it may include a plurality of pixel units 101, and each pixel unit 101 may include a plurality of sub-pixels with different colors. For example, each pixel unit 101 may include a red (R) sub-pixel, a green (G) sub-pixel, and a blue (B) sub-pixel. The components 20 are at least located on the back of the display panel 10, and the orthographic projection of the components 20 on the display panel 10 overlaps with the display area A of the display panel 10. The components 20 may include a perimeter surrounding the front of the display panel 10 and a housing 201 on the back, as well as a driving chip 202 located between the back of the display panel 10 and the housing 201 and a circuit connecting the display panel 10 and the driving chip 202. Among them, the driving chip 202 is used to drive the display area A of the display panel 10 to display various pictures. As Figure 2 As shown, the color temperature control method may include but is not limited to the following steps and combinations between the following steps.

[0024] S1, detect the first color temperature of the ambient light.

[0025] It can be understood that the so-called color temperature, also known as the correlated color temperature (CCT), is a physical quantity that can describe the characteristics of a light source, and its core function can be used to quantify the visual hue warmth and coldness of the light source. In application scenarios of display devices such as mobile phones, televisions, and laptop computers, the color temperature of the ambient light will have a great impact on the display effect. For example, when the color temperature of the display panel does not match the color temperature of the light source, the picture will be color-biased. One example is that a photographic work is taken at a color temperature of 5500 Kelvin (K). If the display panel is set to a low color temperature (such as 4000K), the displayed picture will appear yellowish. Therefore, in the present invention, in order to adjust the color temperature of the display picture of the display device, detecting the first color temperature of the ambient light is the starting step of the entire color temperature control.

[0026] Here, the detection of the color temperature of the ambient light can be achieved by, but is not limited to, using a photoelectric sensor. The photoelectric sensor can sense parameters such as the color temperature and light intensity of the surrounding ambient light. In an exemplary detection method, the photoelectric sensor can detect the intensity ratio of light with different wavelengths through spectroscopy, and then complete the calculation in combination with the correspondence between the color temperature and the spectrum. The specific process of the photoelectric sensor detecting the ambient light may include: the photoelectric sensor receives the ambient light; the internal light of the photoelectric sensor is split by an RGB filter, and the current converted from the light in the R, G, and B channels is output through a photodiode. The current in each channel is converted into a corresponding digital signal through an ADC, the R / G and B / G ratios are calculated, and the color temperature value is queried by matching a preset database, and the color temperature value (such as 4500K ± 100K) or the grading result (such as warm light < 3500K, neutral light 3500 - 5000K, cold light > 5000K) is output.

[0027] S2, determine the first chromaticity coordinate corresponding to the first color temperature.

[0028] In this embodiment, the so-called chromaticity may refer to the hue or saturation of a color, which is one of the three color attributes (hue, saturation, lightness), and its core function is to measure the vividness of a color.

[0029] In some embodiments, the determining the first chromaticity coordinate corresponding to the first color temperature may include: determining the first chromaticity coordinate according to the first color temperature and the chromaticity lookup table; wherein, the chromaticity lookup table includes the mapping relationship between the color temperature range of the ambient light and the chromaticity coordinate, or the chromaticity lookup table includes the mapping relationship between the tied-point color temperature of the ambient light and the chromaticity coordinate.

[0030] In this embodiment, the so-called chromaticity lookup table may be preset, which can store the mapping relationship between the color temperature range of different ambient lights and the chromaticity coordinate, and it can also store the mapping relationship between the color temperature of different ambient lights and the chromaticity coordinate.

[0031] Based on this, in some embodiments, as Figure 3 shown, in the case where the chromaticity lookup table may include the mapping relationship between the color temperature range of the ambient light and the chromaticity coordinate, the determining the first chromaticity coordinate according to the first color temperature and the chromaticity lookup table may include:

[0032] S21, determine the color temperature range to which the first color temperature belongs; determine the chromaticity coordinate corresponding to the belonging color temperature range from the chromaticity lookup table.

[0033] S22, determine the chromaticity coordinate corresponding to the belonging color temperature range as the first chromaticity coordinate.

[0034] In actual operation, in order to accurately obtain the appropriate chromaticity coordinate from the chromaticity lookup table, it is necessary to first determine the position of the first color temperature in these preset color temperature ranges. For example, assume that 5 color temperature ranges are set in the chromaticity lookup table, as shown in Table 1.

[0035] Table 1 An exemplary chromaticity lookup table

[0036]

[0037] Wherein, x is the abscissa component of the chromaticity coordinate; y is the ordinate component of the chromaticity coordinate; a1, a2, a3, a4, a5 are the abscissa components of the chromaticity coordinates corresponding to different color temperature ranges; b1, b2, b3, b4, b5 are the ordinate components of the chromaticity coordinates corresponding to different color temperature ranges. Among them, a1, a2, a3, a4, a5 and b1, b2, b3, b4, b5 are all values greater than 0 and less than 1. It should be noted that the numerical values of the color temperature ranges in Table 1 are only exemplary and are not used to limit the present invention.

[0038] As an example, based on Table 1, when for S21, the first color temperature of the ambient light detected by the photoelectric sensor is 5500K, through comparison and judgment, it can be determined that this first color temperature of 5500K belongs to the color temperature range of 5000 - 6000. For S22, after determining the color temperature range to which the first color temperature belongs, the chromaticity coordinates corresponding to the first color temperature can be found according to the mapping relationship stored in the chromaticity look-up table shown in Table 1. For example, if the color temperature range to which the previously determined first chromaticity belongs is 5000 - 6000, then the chromaticity coordinates (a2, b2) corresponding to 5000 - 6000 in the chromaticity look-up table can be used as the first chromaticity coordinates corresponding to the first color temperature.

[0039] In some embodiments, as Figure 4 shown, in the case where the chromaticity look-up table includes the mapping relationship between the binding point color temperature of the ambient light and the chromaticity coordinates, the determining of the first chromaticity coordinates according to the first color temperature and the chromaticity look-up table includes:

[0040] S23, using the first color temperature as the search index, obtaining the chromaticity coordinates corresponding to the first binding point color temperature that is the same as the first color temperature from the chromaticity look-up table; determining the chromaticity coordinates corresponding to the first binding point color temperature as the first chromaticity coordinates; or;

[0041] S24, using the first color temperature as the search index, obtaining the second chromaticity coordinates corresponding to the adjacent second binding point color temperature and the third chromaticity coordinates corresponding to the third binding point color temperature from the chromaticity look-up table, and obtaining the first chromaticity coordinates according to the first color temperature, the second binding point color temperature, the third binding point color temperature, the second chromaticity coordinates and the third chromaticity coordinates; wherein, the first color temperature is greater than the second binding point color temperature and less than the third binding point color temperature.

[0042] In this embodiment, the chromaticity look-up table may include the mapping relationship between the binding point color temperature of the ambient light and the chromaticity coordinates. The binding point color temperature here is a series of pre-set color temperature values when constructing the look-up table, and each binding point color temperature corresponds to a set of chromaticity coordinates, as shown in Table 2.

[0043] Table 2 Another exemplary chromaticity look-up table

[0044]

[0045] Among them, x is the abscissa component of the chromaticity coordinate; y is the ordinate component of the chromaticity coordinate; c1, c2, c3, c4, c5 are the abscissa components of the chromaticity coordinates corresponding to different binding point color temperatures; d1, d2, d3, d4, d5 are the ordinate components of the chromaticity coordinates corresponding to different binding point color temperatures. Among them, both c1, c2, c3, c4, c5 and d1, d2, d3, d4, d5 are values greater than 0 and less than 1. It should be understood that Table 2 is also an exemplary representation and is not used to limit the present invention.

[0046] For S23, when the first color temperature of the ambient light detected by the photoelectric sensor is 5500K, search in the chromaticity look-up table shown in Table 2 using 5500K as the search index. If the binding point color temperature of 5500K exactly exists in the chromaticity look-up table, then the chromaticity coordinates corresponding to 5500K (assumed to be (c2, d2)) are determined as the first chromaticity coordinates. Among them, c2 is the abscissa component of the first chromaticity coordinate; d2 is the ordinate component of the first chromaticity coordinate. This method directly utilizes the correspondence between the binding point color temperature and the chromaticity coordinates in the look-up table. When there is a binding point color temperature in the chromaticity look-up table that is the same as the first color temperature, the first chromaticity coordinates can be quickly and accurately obtained. When the setting of the chromaticity look-up table is relatively fine, a suitable first chromaticity coordinate can be efficiently obtained, providing an accurate basis for the subsequent adjustment of the display screen, and helping to achieve the precise adaptation of the color temperature of the display screen to the color temperature of the ambient light.

[0047] For S24, when there is no tied-point color temperature equal to the first color temperature in the chromaticity lookup table, the first color temperature is used as the lookup index to obtain the second chromaticity coordinates corresponding to the adjacent second tied-point color temperature and the third chromaticity coordinates corresponding to the third tied-point color temperature from the chromaticity lookup table. The first chromaticity coordinates corresponding to the first color temperature are determined based on the first color temperature, the second tied-point color temperature, the third tied-point color temperature, the second chromaticity coordinates, and the third chromaticity coordinates. Here, it is required that the first color temperature is greater than the second tied-point color temperature and less than the third tied-point color temperature. It can be understood that in actual situations, the tied-point color temperatures in the chromaticity lookup table may not exactly cover all possible color temperature values of ambient light. For example, in a color temperature control system of a vehicle-mounted display, the tied-point color temperatures in the chromaticity lookup table may be set differently from those in Table 2. When the first color temperature obtained by the ambient light detection module is 5000K, there may be no tied-point color temperature of 5000K in the chromaticity lookup table, but there are two adjacent tied-point color temperatures of 4500K (i.e., the second tied-point color temperature) and 5500K (i.e., the third tied-point color temperature). Suppose the second chromaticity coordinates corresponding to 4500K are (c1, d1), and the third chromaticity coordinates corresponding to 5500K are (c2, d2). At this time, the first chromaticity coordinates corresponding to the first color temperature (5000K) can be calculated based on the first color temperature (5000K), the second tied-point color temperature (4500K), the third tied-point color temperature (5500K), the second chromaticity coordinates (c1, d1), and the third chromaticity coordinates (c2, d2).

[0048] In some embodiments, the chromaticity coordinates may include an abscissa component and an ordinate component; obtaining the first chromaticity coordinates based on the first color temperature, the second tied-point color temperature, the third tied-point color temperature, the second chromaticity coordinates, and the third chromaticity coordinates may include: performing linear interpolation on the first color temperature, the second tied-point color temperature, the third tied-point color temperature, the abscissa component of the second chromaticity coordinates, and the abscissa component of the third chromaticity coordinates to obtain the abscissa component of the first chromaticity coordinates; performing linear interpolation on the first color temperature, the second tied-point color temperature, the third tied-point color temperature, the ordinate component of the second chromaticity coordinates, and the ordinate component of the third chromaticity coordinates to obtain the ordinate component of the first chromaticity coordinates.

[0049] Taking the color temperature of the binding points in the aforementioned chromaticity lookup table that may be set as shown in Table 2, with the first color temperature (5000K), the second binding point color temperature (4500K), the third binding point color temperature (5500K), the second chromaticity coordinate being (c1, d1), and the third chromaticity coordinate being (c2, d2) as an example to calculate the first chromaticity coordinate. An optional calculation method is to use linear interpolation. The specific process may include: calculating the third difference between the first color temperature and the second binding point color temperature (5000 - 4500 = 500K), calculating the first difference between the third binding point color temperature and the second binding point color temperature (5500 - 4500 = 1000K), and calculating the second difference between the abscissa component of the third chromaticity coordinate and the abscissa component of the second chromaticity coordinate (c2 - c1); then, calculating the quotient between the second difference (c2 - c1) and the first difference (1000K) ((c2 - c1) ÷ 1000); after that, calculating the first product of the quotient ((c2 - c1) ÷ 1000) and the third difference (500 × ((c2 - c1) ÷ 1000))); after that, calculating the sum of the abscissa component of the second chromaticity coordinate (c2) and the first product (c2 + 500 × ((c2 - c1) ÷ 1000)), that is, the abscissa component of the first chromaticity coordinate = the abscissa component of the second chromaticity coordinate + (the first color temperature - the second binding point color temperature) × (the abscissa component of the third chromaticity coordinate - the abscissa component of the second chromaticity coordinate) ÷ (the third binding point color temperature - the second binding point color temperature) = c2 + 500 × ((c2 - c1) ÷ 1000)).

[0050] Similarly, the ordinate component of the first chromaticity coordinate can be obtained in the above - mentioned linear interpolation manner. Therefore, through this linear interpolation method, when there is no binding point color temperature in the chromaticity lookup table that is the same as the first color temperature, the appropriate first chromaticity coordinate can be calculated based on the adjacent binding point color temperatures and their corresponding chromaticity coordinates. This satisfies the requirement that even if the first color temperature of the detected ambient light cannot find the corresponding binding point color temperature in the lookup table, a relatively accurate first chromaticity coordinate can be obtained according to the actual color temperature of the ambient light, thereby ensuring that the color temperature of the display screen can be reasonably adjusted according to the ambient light situation and improving the adaptability of the display system under different ambient lights.

[0051] In some embodiments, before determining the first chromaticity coordinate according to the first color temperature and the chromaticity lookup table, the method further includes: determining the color temperature difference between the first color temperature of the current ambient light and the second color temperature measured last time; in the case where the color temperature difference is less than or equal to a preset threshold, determining the chromaticity coordinate corresponding to the stored second color temperature as the first chromaticity coordinate; in the case where the color temperature difference is greater than the preset threshold, obtaining the first chromaticity coordinate according to the first color temperature and the chromaticity lookup table.

[0052] In the actual application process, during the color temperature control of a display device, the color temperature of the ambient light may not change drastically instantaneously, but fluctuate within a certain range. For example, on a cloudy day, sunlight is evenly scattered by the clouds, and the color temperature is stable at about 5500K - 6500K (neutral white to cold white), without the drastic fluctuations from warm yellow (about 2000K) to cold white (about 6000K) caused by the change in the solar altitude angle on a sunny day (such as from sunrise to noon). Another example is that the LED constant lights or HMI lights (such as 5600K standard color temperature lights) used in film and television shooting can maintain a color temperature fluctuation within ±100K for a long time under stable power supply. The second color temperature measured previously represents the color temperature of the previous ambient light, while the first color temperature measured currently reflects the color temperature of the current ambient light. By calculating the color temperature difference value between these two color temperatures, the degree of change in the ambient light color temperature can be understood. Suppose the second color temperature measured previously is 5000K and the first color temperature measured currently is 5100K, then the color temperature difference value is 5100K - 5000K = 100K. The determination of this color temperature difference value helps to subsequently judge whether it is necessary to obtain the first chromaticity coordinate according to the lookup table based on its magnitude, thereby optimizing the calculation process to a certain extent, avoiding unnecessary lookup table operations, and improving the processing efficiency. That is, the embodiment of the present application provides a judgment basis for subsequent adopting different chromaticity coordinate determination methods according to the degree of change in the ambient light color temperature by calculating this color temperature difference value, which helps to improve the overall performance of the display color temperature control system. Specifically, when the color temperature difference value is less than or equal to a preset threshold, the chromaticity coordinate corresponding to the stored second color temperature is determined as the first chromaticity coordinate. In the display color temperature control system, the preset threshold is a preset value used to judge whether the change in the ambient light color temperature is small enough that there is no need to re-lookup the first chromaticity coordinate. For example, the preset threshold is set to 100K. If the color temperature difference value calculated in the previous step is less than or equal to this 100K, it indicates that the change in the ambient light color temperature is small. At this time, since the chromaticity coordinate corresponding to the second color temperature measured previously has been determined according to the previous ambient light situation and the current ambient light has not changed much, the chromaticity coordinate corresponding to the stored second color temperature can be directly determined as the first chromaticity coordinate. For example, when the second color temperature was 5000K before, the determined chromaticity coordinate was (a2, b2). When the color temperature difference value is less than or equal to 100K, this (a2, b2) can be directly used as the first chromaticity coordinate. This method can avoid the complex operation of re-lookup the first chromaticity coordinate when the ambient light changes slightly, reduce the calculation amount, and improve the response speed of the system. In this embodiment, when the ambient light color temperature changes slightly, by reusing the previous chromaticity coordinate, unnecessary calculations and lookup operations are reduced, the efficiency of the display color temperature control is improved, and at the same time, the relative stability of the display screen color temperature under small-range ambient light fluctuations can be ensured.In addition, in the embodiments of the present invention, by calculating this color temperature difference value to determine how to obtain the first chromaticity coordinate, it is possible to prevent the problem of color jitter of the display panel caused by the color temperature of the detected ambient light being at the boundary between the color temperatures of two adjacent binding points or between two adjacent color temperature intervals in the chromaticity lookup table.

[0053] In the actual application process, when the color temperature difference value is greater than the preset threshold, the first chromaticity coordinate is obtained according to the first color temperature and the chromaticity lookup table. When the color temperature difference value is greater than the preset threshold, it indicates that a large change has occurred in the ambient light color temperature, which means that the change in the ambient light color temperature exceeds the negligible range. At this time, the chromaticity coordinate corresponding to the previous second color temperature may no longer be applicable to the current ambient light situation. Therefore, it is necessary to re-obtain the first chromaticity coordinate according to the currently measured first color temperature and the chromaticity lookup table. The specific steps have been described in detail in the foregoing step S2 and can be understood by reference and will not be elaborated here.

[0054] S3. Determine a color temperature transformation matrix according to the first chromaticity coordinate and a preset mapping relationship; the preset mapping relationship includes the corresponding relationship between a preset chromaticity coordinate and a preset tristimulus value.

[0055] In this embodiment, the color temperature transformation matrix can be a 3×3 or 4×4 linear transformation matrix, which acts on the tristimulus values (such as XYZ or RGB) to adjust the translation of the original chromaticity coordinate (x, y) in the direction of the blackbody radiation locus or isotherm corresponding to the target color temperature, so as to ensure that the white point remains consistent under different illuminations. In other words, the color temperature transformation matrix is to adjust the display screen of the original color temperature to the display screen of the target color temperature, so that the color temperature of the display screen is consistent with the color temperature of the ambient light. In this embodiment, through the above S2, the chromaticity coordinate corresponding to the target color temperature (i.e., the first chromaticity coordinate) is obtained, and the said color temperature transformation matrix is obtained by using this first chromaticity coordinate and the preset mapping relationship, so that in the subsequent operations, the initial display data of the display screen is adjusted by using this color temperature transformation matrix to obtain the target display data of the display screen. The target display data makes the color temperature of the display screen consistent with the color temperature of the ambient light.

[0056] In some embodiments, as Figure 5 shown, the determining the color temperature transformation matrix according to the first chromaticity coordinate and the preset mapping relationship may include the following steps S31 - S33.

[0057] S31. Determine a rectangular grid containing the first chromaticity coordinate according to the preset mapping relationship; the rectangular grid includes four vertices; each vertex corresponds to a preset chromaticity coordinate and a preset tristimulus value.

[0058] S32. Perform two-dimensional linear interpolation on the preset chromaticity coordinates and preset tristimulus values corresponding to the four vertices to obtain the tristimulus values corresponding to the first chromaticity coordinate.

[0059] S33. Obtain the color temperature transformation matrix according to the tristimulus values corresponding to the first chromaticity coordinate.

[0060] In this embodiment, for S31 and S32, calculations can be made with reference to the attached drawings as Figure 6 shown. Among them, in Figure 6 , it is assumed that the preset chromaticity coordinates of the four vertices are known as (x1, y1), (x1, y2), (x2, y1), (x2, y2) respectively, and the X values in their corresponding tristimulus values are Q11, Q12, Q21, Q22, and the first chromaticity coordinate is (x0, y0), satisfying x1 < x < x2, y1 < y < y2. On this basis, the X value of the tristimulus value corresponding to the first chromaticity coordinate can be calculated according to the following formula:

[0061] QX = (1 - u)*(1 - v)*Q11 + u*(1 - v)*Q21 + (1 - u)*v*Q12 + u*v*Q22.

[0062] Where u = (x0 - x1) / (x2 - x1); v = (y0 - y1) / (y2 - y1), and u, v ∈ [0, 1].

[0063] The above calculation method as Figure 6 shown is the two-dimensional linear interpolation method. Similarly, the Y and Z of the tristimulus value corresponding to the first chromaticity coordinate can also be calculated to obtain QY and QZ according to the same two-dimensional linear interpolation method.

[0064] After obtaining the tristimulus values (QX, QY, QZ) corresponding to the first chromaticity coordinate, for S33, the selected color temperature transformation matrix can be a 3×3 linear transformation matrix, and the final obtained color temperature transformation matrix is the following matrix:

[0065]

[0066] S4. Perform color adaptation transformation on the initial display data of the display panel in the ambient light according to the color temperature transformation matrix and the original color conversion matrix to obtain target display data; the target display data is used to control the color temperature of the display screen.

[0067] It should be noted that the original color conversion matrix can be a linear transformation matrix required in gamut conversion. The gamut conversion can be a process of mapping colors from one color space (such as sRGB) to another color space (such as Adobe RGB, CIE XYZ). Gamut conversion needs to be combined with gamma correction and the original color conversion matrix for calculation to ensure the consistency of color expression. In this embodiment, color adaptation transformation is performed on the initial display data of the display panel under the current ambient light according to the previously obtained color temperature conversion matrix and the original color conversion matrix to obtain the target display data, so that the display screen has a color temperature matching the current ambient light.

[0068] In some embodiments, as Figure 7 shown, the original color conversion matrix includes a preset color adaptation transformation matrix; the performing color adaptation transformation on the initial display data of the display panel under the ambient light according to the color temperature conversion matrix and the original color conversion matrix to obtain the target display data may include the following steps.

[0069] S41, perform matrix fusion on the preset color adaptation transformation matrix and the color temperature conversion matrix to obtain a target color conversion matrix.

[0070] S42, perform color adaptation transformation on the initial display data according to the target color conversion matrix to obtain the target display data.

[0071] It should be noted that the preset color adaptation transformation matrix can be the linear transformation matrix of the gamut conversion described above. The preset color adaptation transformation matrix can be a 3×3 linear transformation matrix. For example, the preset color adaptation transformation matrix can be the following matrix:

[0072]

[0073] For S41, the matrix fusion can refer to multiplying the preset color adaptation transformation matrix by the color temperature conversion matrix. Specifically, the target color transformation matrix obtained after the fusion of the preset color adaptation transformation matrix and the color temperature conversion matrix can be the following matrix:

[0074]

[0075] In this embodiment, the initial display data may include the initial RGB values of each pixel in the display screen. After obtaining the target color transformation matrix described above, for S42, it may include: performing a gamma decoding (deGamma) process on the initial RGB values to obtain linear first intermediate RGB values; using the target color transformation matrix to perform color temperature and color gamut transformation on the first intermediate RGB values to obtain linear second intermediate RGB values; performing a gamma re-encoding (reGamma) process on the second intermediate RGB values to obtain non-linear target RGB values. The target display data includes the target RGB values. After obtaining the target display data, replace the initial display data of the display screen with the target display data so that the color temperature of the display screen is consistent with the color temperature of the current ambient light.

[0076] The color temperature control method, display device and storage medium provided by the present invention determine the color temperature transformation matrix of the initial display data of each pixel in the display screen by detecting the color temperature of the ambient light, and then use the color temperature transformation matrix and the original color conversion matrix to adjust the initial display data of the display screen. In this way, accurate color mapping and dynamic adaptation to the color temperature of the current ambient light can be achieved, the accuracy of the compensation for the display screen is improved, the display screen can better adapt to the change of the ambient light, and a better visual experience is provided.

[0077] Based on this, as Figure 8 shown, the display device 800 provided by the embodiment of the present invention may include: a photoelectric sensor 30 for detecting the first color temperature of the ambient light and sending the first color temperature to the driver 40;

[0078] The driver 40 is configured to receive the first color temperature; and implement any step of the color temperature control method as described in any of the above based on the first color temperature.

[0079] To implement the color temperature control method of any one of the above, as Figure 8As shown, the driver 40 may include a gamma decoding module 801, a determination module 802, an adjustment module 803, and a gamma re-encoding module 804. Here, the gamma decoding module 801, which may also be referred to as the DeGamma module, is used to perform gamma decoding processing on the initial display data (such as the aforementioned initial RGB values) so that the initial display data forms linearized data (such as the aforementioned first intermediate RGB values). The determination module 802 is used to implement steps S2 and S3 to obtain a color temperature transformation matrix, which can be understood with reference to the previous description and will not be elaborated here. The adjustment module 803 is used to implement step S4 to obtain linear target display data (such as the aforementioned second intermediate RGB values), which can be understood with reference to the previous description and will not be elaborated here. The gamma re-encoding module 804, which may also be referred to as the ReGamma module, is used to perform gamma re-encoding processing on the linear target display data to obtain non-linear target display data (such as the aforementioned target RGB values). That is, in the embodiment of the present invention, the color temperature of the environment where the display device is located is detected in real time by the photoelectric sensor, that is, the first color temperature is detected; then, in the driver 40, the first color temperature transmitted by the photoelectric sensor is received, the color temperature transformation matrix is calculated by the determination module 802, the target display data is obtained by the adjustment module 803, and the linear target display data is subjected to gamma re-encoding processing by the gamma re-encoding module 804 to obtain the non-linear target display data. Furthermore, the display screen of the display panel is controlled with the non-linear target display data to control the color temperature of the display screen to be consistent with the color temperature of the ambient light. The embodiment of the present invention proposes a hardware IP solution, which uses a photoelectric sensor and a driver (such as a processing chip), can accelerate the detection response time, and convert the initial display data into target display data that matches the color temperature of the current ambient light to improve the compensation accuracy.

[0080] It should be understood that the display device 800 provided in the embodiment of the present invention also includes the display panel 10 and the driving chip 202 as Figure 1 described. The description of the display panel 10 and the driving chip 202 can be understood with reference to the previous Figure 1 description and will not be elaborated here.

[0081] An embodiment of the present invention further provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a driver, they are used to implement any step of the color temperature control method described in any of the above items. Among them, the computer-readable storage medium may be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface memory, optical disc, or CD-ROM. It can be understood that the driver provided by the embodiment of the present invention may, but is not limited to, be an integrated circuit chip with signal processing capabilities, such as a general-purpose processor, a digital signal processor (DSP, Digital Signal Processor), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.

[0082] In addition, in each embodiment of the present invention, each functional unit may be entirely integrated in a processing unit, or each unit may be separately used as a single unit, or two or more units may be integrated in one unit; the above-mentioned integrated unit may be implemented in the form of hardware or in the form of a combination of hardware and software functional units.

[0083] Those of ordinary skill in the art can understand that all or part of the steps of implementing the above method embodiments can be completed by hardware related to program instructions. The foregoing program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps including the above method embodiments; and the foregoing storage medium includes: removable storage devices, read-only memories (ROM, Read-Only Memory), random access memories (RAM, Random Access Memory), magnetic disks, or optical discs and other various media that can store program codes.

[0084] Alternatively, if the above-mentioned integrated unit of the present invention is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the embodiment of the present invention essentially or the part that contributes to the prior art can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in various embodiments of the present invention. And the foregoing storage medium includes: removable storage devices, ROM, RAM, magnetic disks, or optical discs and other various media that can store program codes.

[0085] In the above embodiments, the descriptions of the respective embodiments have their own emphases. For parts not elaborated in a certain embodiment, reference may be made to the detailed descriptions of other embodiments above, which will not be repeated here.

[0086] The above has introduced in detail the color temperature control method, display device and storage medium provided by the embodiments of the present invention. Specific examples are used herein to elaborate on the principle and implementation manner of the present invention. The description of the above embodiments is only used to help understand the technical solution and its core idea of the present invention; those of ordinary skill in the art should understand that they can still modify the technical solutions recorded in the foregoing embodiments, or perform equivalent replacements on some of the technical features; and these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A color temperature control method, characterized in that, Including: Detecting a first color temperature of ambient light; Determining a first chromaticity coordinate corresponding to the first color temperature; Determining a color temperature transformation matrix according to the first chromaticity coordinate and a preset mapping relationship; the preset mapping relationship includes a corresponding relationship between a preset chromaticity coordinate and preset tristimulus values; Performing color adaptation transformation on initial display data of a display screen of a display panel under the ambient light according to the color temperature transformation matrix and an original color conversion matrix to obtain target display data; the target display data is used to control the color temperature of the display screen.

2. The color temperature control method according to claim 1, wherein The determining the first chromaticity coordinate corresponding to the first color temperature includes: Determining the first chromaticity coordinate according to the first color temperature and a chromaticity lookup table; Wherein, the chromaticity lookup table includes a mapping relationship between a color temperature range of ambient light and chromaticity coordinates, or the chromaticity lookup table includes a mapping relationship between a tied-point color temperature of ambient light and chromaticity coordinates.

3. The color temperature control method according to claim 2, wherein, When the chromaticity lookup table includes a mapping relationship between a color temperature range of ambient light and chromaticity coordinates, the determining the first chromaticity coordinate according to the first color temperature and the chromaticity lookup table includes: Determining the color temperature range to which the first color temperature belongs; determining the chromaticity coordinate corresponding to the belonging color temperature range from the chromaticity lookup table; Determining the chromaticity coordinate corresponding to the belonging color temperature range as the first chromaticity coordinate.

4. The color temperature control method according to claim 2, wherein When the chromaticity lookup table includes a mapping relationship between a tied-point color temperature of ambient light and chromaticity coordinates, the determining the first chromaticity coordinate according to the first color temperature and the chromaticity lookup table includes: Using the first color temperature as a lookup index to obtain a chromaticity coordinate corresponding to a first tied-point color temperature identical to the first color temperature from the chromaticity lookup table; determining the chromaticity coordinate corresponding to the first tied-point color temperature as the first chromaticity coordinate; or; Using the first color temperature as a lookup index to obtain a second chromaticity coordinate corresponding to an adjacent second tied-point color temperature and a third chromaticity coordinate corresponding to a third tied-point color temperature from the chromaticity lookup table, and obtaining the first chromaticity coordinate according to the first color temperature, the second tied-point color temperature, the third tied-point color temperature, the second chromaticity coordinate and the third chromaticity coordinate; wherein, the first color temperature is greater than the second tied-point color temperature and less than the third tied-point color temperature.

5. The color temperature control method according to claim 4, characterized in that, The chromaticity coordinate includes an abscissa component and an ordinate component; the obtaining the first chromaticity coordinate according to the first color temperature, the second tied-point color temperature, the third tied-point color temperature, the second chromaticity coordinate and the third chromaticity coordinate includes: Performing linear interpolation processing on the first color temperature, the second tied-point color temperature, the third tied-point color temperature, the abscissa component of the second chromaticity coordinate and the abscissa component of the third chromaticity coordinate to obtain the abscissa component of the first chromaticity coordinate; Performing linear interpolation processing on the first color temperature, the second tied-point color temperature, the third tied-point color temperature, the ordinate component of the second chromaticity coordinate and the ordinate component of the third chromaticity coordinate to obtain the ordinate component of the first chromaticity coordinate.

6. The color temperature control method according to claim 2, wherein Before determining the first chromaticity coordinate according to the first color temperature and the chromaticity lookup table, the method further includes: Determine the color temperature difference value between the first color temperature of the current ambient light and the second color temperature measured previously; When the color temperature difference value is less than or equal to a preset threshold, determine that the chromaticity coordinates corresponding to the second color temperature stored are the first chromaticity coordinates; When the color temperature difference value is greater than the preset threshold, obtain the first chromaticity coordinates according to the first color temperature and the chromaticity lookup table.

7. The color temperature control method according to claim 1, wherein The determining the color temperature transformation matrix according to the first chromaticity coordinates and a preset mapping relationship includes: Determine a rectangular grid including the first chromaticity coordinates according to the preset mapping relationship; the rectangular grid includes four vertices; each vertex corresponds to a preset chromaticity coordinate and a preset tristimulus value; Perform two-dimensional linear interpolation processing on the preset chromaticity coordinates and preset tristimulus values corresponding to the four vertices to obtain the tristimulus values corresponding to the first chromaticity coordinates; Obtain the color temperature transformation matrix according to the tristimulus values corresponding to the first chromaticity coordinates.

8. The color temperature control method according to claim 7, wherein The original color conversion matrix includes a preset color adaptation transformation matrix; the performing color adaptation transformation on the initial display data of the display panel under the ambient light according to the color temperature transformation matrix and the original color conversion matrix to obtain target display data includes: Fuse the preset color adaptation transformation matrix and the color temperature transformation matrix to obtain a target color conversion matrix; Perform color adaptation transformation on the initial display data according to the target color conversion matrix to obtain the target display data.

9. A display device, characterized in that, Including: A photoelectric sensor, configured to detect the first color temperature of the ambient light and send the first color temperature to the driver; The driver is configured to receive the first color temperature; And implement the color temperature control method according to any one of claims 1 to 8 based on the first color temperature.

10. A computer-readable storage medium, characterized in that, Computer-executable instructions are stored in the computer-readable storage medium, and when the computer-executable instructions are executed by the driver, they are used to implement the color temperature control method according to any one of claims 1 to 8.