Screen color adjusting method and device, and electronic device

CN119091777BActive Publication Date: 2026-09-22VIVO MOBILE COMM CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202410563587.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-08
Publication Date
2026-09-22
Estimated Expiration
2044-05-08

AI Technical Summary

Technical Problem

但近些年的研究表明,在低色温环境下人眼的色适应无法完全消除环境光的影响

Benefits of technology

[0011]在本申请实施例中,确定与电子设备当前的环境光参数相匹配的目标屏幕色温值,环境光参数包括环境光照度值和环境光色温值;基于目标屏幕色温值对应的第一色坐标和电子设备的屏幕的原始色坐标,调整屏幕中每个像素点的RGB值。本方案中,由于在电子设备处于不同环境时,电子设备可以获取到不同环境下,与当前的环境光参数相匹配的目标屏幕色温值,并基于该目标屏幕色温值调整电子设备屏幕中每个像素点的RGB值,从而使得不同环境下人眼感知到的电子设备的屏幕颜色保持一致。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119091777B_ABST
    Figure CN119091777B_ABST
Patent Text Reader

Abstract

The application discloses a screen color adjusting method and device and electronic equipment, and belongs to the technical field of communication. The method comprises the following steps: determining a target screen color temperature value matched with a current ambient light parameter of the electronic equipment, wherein the ambient light parameter comprises an ambient light illumination value and an ambient light color temperature value; and adjusting the RGB value of each pixel point in the screen based on a first color coordinate corresponding to the target screen color temperature value and an original color coordinate of the screen of the electronic equipment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of communication technology, and specifically relates to a screen color adjustment method, apparatus and electronic device. Background Technology

[0002] Currently, users can use electronic devices to browse web pages, view information, and use various applications. As users become more and more dependent on electronic devices, they may use them in different environments.

[0003] However, due to the influence of ambient light, the screen color perceived by the human eye may be inconsistent in different environments. For example, outdoors, the screen color may appear more yellowish. Although the human eye has a color adaptation mechanism to mitigate the influence of ambient light on the color of reflective objects and maintain relative consistency in color across different environments, recent studies have shown that in low color temperature environments, the human eye's color adaptation cannot completely eliminate the influence of ambient light. This results in inconsistent screen colors perceived by the human eye in different environments. Summary of the Invention

[0004] The purpose of this application is to provide a screen color adjustment method, apparatus, and electronic device that can ensure that the screen color perceived by the human eye remains consistent under different environments.

[0005] In a first aspect, embodiments of this application provide a screen color adjustment method, the method comprising: determining a target screen color temperature value that matches the current ambient light parameters of the electronic device, the ambient light parameters including ambient light illuminance value and ambient light color temperature value; and adjusting the RGB value of each pixel in the screen based on the first color coordinates corresponding to the target screen color temperature value and the original color coordinates of the screen of the electronic device.

[0006] Secondly, embodiments of this application provide a screen color adjustment device, which includes a determining module and an adjusting module. The determining module is used to determine a target screen color temperature value that matches the current ambient light parameters of the electronic device, the ambient light parameters including ambient light illuminance and ambient light color temperature. The adjusting module is used to adjust the RGB value of each pixel in the screen based on the first color coordinates corresponding to the target screen color temperature value determined by the determining module and the original color coordinates of the screen of the electronic device.

[0007] Thirdly, embodiments of this application provide an electronic device including a processor and a memory, wherein the memory stores programs or instructions executable on the processor, and the programs or instructions, when executed by the processor, implement the steps of the method described in the first aspect.

[0008] Fourthly, embodiments of this application provide a readable storage medium on which a program or instructions are stored, which, when executed by a processor, implement the steps of the method described in the first aspect.

[0009] Fifthly, embodiments of this application provide a chip, the chip including a processor and a communication interface, the communication interface being coupled to the processor, the processor being used to run programs or instructions to implement the method as described in the first aspect.

[0010] In a sixth aspect, embodiments of this application provide a computer program / program product stored in a storage medium, which is executed by at least one processor to implement the method as described in the first aspect.

[0011] In this embodiment, a target screen color temperature value matching the current ambient light parameters of the electronic device is determined. These ambient light parameters include ambient light illuminance and ambient light color temperature. Based on the first color coordinates corresponding to the target screen color temperature value and the original color coordinates of the electronic device's screen, the RGB values ​​of each pixel on the screen are adjusted. In this solution, because the electronic device can obtain the target screen color temperature value matching the current ambient light parameters under different environments, and adjust the RGB values ​​of each pixel on the screen based on this target screen color temperature value, the perceived screen color of the electronic device remains consistent across different environments. Attached Figure Description

[0012] Figure 1 This is one of the flowcharts illustrating a screen color adjustment method provided in this application embodiment;

[0013] Figure 2 This is a second schematic flowchart of a screen color adjustment method provided in an embodiment of this application;

[0014] Figure 3 This is the third flowchart illustrating a screen color adjustment method provided in this application embodiment;

[0015] Figure 4 This is the fourth flowchart illustrating a screen color adjustment method provided in this application embodiment;

[0016] Figure 5 This is the fifth flowchart illustrating a screen color adjustment method provided in this application embodiment;

[0017] Figure 6 This is a schematic diagram of the structure of a screen color adjustment device provided in an embodiment of this application;

[0018] Figure 7This is one of the hardware structure diagrams of an electronic device provided in the embodiments of this application;

[0019] Figure 8 This is a second schematic diagram of the hardware structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0020] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.

[0021] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such terms can be used interchangeably where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.

[0022] The terms "at least one," "at least one of," etc., used in the specification and claims of this application refer to any one, any two, or a combination of two or more of the included items. For example, at least one of a, b, and c can mean: "a," "b," "c," "a and b," "a and c," "b and c," and "a, b, and c," where a, b, and c can be single or multiple. Similarly, "at least two" refers to two or more items, and its meaning is similar to that of "at least one."

[0023] The screen color adjustment method provided in this application will be described in detail below with reference to the accompanying drawings, through specific embodiments and application scenarios.

[0024] The screen color adjustment method in this application embodiment can be applied to scenarios where screen color needs to be adjusted.

[0025] Currently, users can use electronic devices to browse web pages, view information, and use various applications. As users become increasingly reliant on electronic devices, they may use them in different environments. However, due to the influence of ambient light, the screen color perceived by the human eye may be inconsistent in different environments. For example, outdoors, the screen color may appear yellowish. Although the human eye has a color adaptation mechanism to mitigate the influence of ambient light on the color of reflective objects and maintain relative consistency in color across different environments, recent research indicates that in low color temperature environments, the human eye's color adaptation cannot completely eliminate the influence of ambient light. This results in inconsistent screen colors perceived by the human eye in different environments.

[0026] In the screen color adjustment method, apparatus and electronic device provided in the embodiments of this application, since the electronic device can obtain the target screen color temperature value that matches the current ambient light parameters in different environments, and adjust the RGB value of each pixel in the screen of the electronic device based on the target screen color temperature value, so that the screen color of the electronic device perceived by the human eye remains consistent in different environments.

[0027] The screen color adjustment method provided in this application can be implemented by a screen color adjustment device, which can be an electronic device, or a functional module or entity within an electronic device. The following description uses an electronic device as an example to illustrate the technical solution provided in this application.

[0028] This application provides a screen color adjustment method. Figure 1 A flowchart illustrating a screen color adjustment method provided in an embodiment of this application is shown. This method can be applied to electronic devices. Figure 1 As shown, the screen color adjustment method provided in this application embodiment may include the following steps 201 and 202.

[0029] Step 201: The electronic device determines the target screen color temperature value that matches the current ambient light parameters of the electronic device.

[0030] In the embodiments of this application, the above-mentioned ambient light parameters include ambient light illuminance value and ambient light color temperature value.

[0031] In some embodiments of this application, the above-mentioned ambient light illuminance value is a physical quantity used to reflect the brightness of the environment in which the electronic device is located.

[0032] In some embodiments of this application, the ambient light color temperature value is a physical quantity used to define the color of the light source.

[0033] In some embodiments of this application, the electronic device can obtain the ambient light intensity value of the environment in which the electronic device is currently located through an ambient light sensor.

[0034] In some embodiments of this application, the electronic device can obtain the ambient light color temperature value of the environment in which the electronic device is currently located through an ambient color temperature sensor.

[0035] It is understandable that the higher the screen color temperature value, the more blue the screen color, that is, the cooler the screen color, while the lower the screen color temperature value, the more red the screen color, that is, the warmer the screen color.

[0036] In some embodiments of this application, the target screen color temperature value is: the color temperature value of the screen of the electronic device that meets the color adaptation requirements of the human eye under the current ambient light.

[0037] In some embodiments of this application, the screen color temperature value that meets the color adaptation requirements of the human eye can be understood as: the most suitable color temperature value for the human eye that is neither too cool nor too warm.

[0038] In some embodiments of this application, the target screen color temperature value may also be referred to as the color temperature value of the screen white point.

[0039] In some embodiments of this application, combined with Figure 1 ,like Figure 2 As shown, step 201 above can be specifically implemented through step 201a below.

[0040] Step 201a: The electronic device determines a target screen color temperature value that matches the ambient light parameter from the correspondence between at least one ambient light parameter and the screen color temperature value.

[0041] In some embodiments of this application, the correspondence between the above-mentioned at least one ambient light parameter and the screen color temperature value includes different color temperature values ​​of the screen that meet the color adaptation requirements of the human eye under different ambient light conditions.

[0042] In some embodiments of this application, the correspondence between at least one ambient light parameter and the screen color temperature value is obtained through human factors experiments.

[0043] For example, as shown in Table 1, these are the screen color temperature values ​​corresponding to different ambient light illuminance values ​​and different ambient light color temperature values ​​provided in the embodiments of this application.

[0044] Table 1

[0045]

[0046] For example, when the ambient light illuminance of the current environment of the electronic device is 330 lx and the ambient light color temperature is 3500 k, the electronic device can use Table 1 to find and determine that the target screen color temperature is 6405.

[0047] In some embodiments of this application, as shown in Table 1, the ambient light illuminance value is 30lx-15000lx and the ambient light color temperature value is 2500K-10000K. When the ambient light illuminance value of the current environment of the electronic device exceeds the range of 30lx-15000lx and the ambient light color temperature value exceeds the range of 2500K-10000K, the electronic device can use the preset screen color temperature value as the above-mentioned target screen color temperature value.

[0048] For example, in a dark environment, when the ambient light illuminance is less than 5 lx, electronic devices can use a preset screen color temperature of 6000K as the target screen color temperature.

[0049] In some embodiments of this application, the electronic device may first determine whether the screen is in self-emissive mode or reflective light mode, and then select the optimal screen color temperature for the corresponding mode.

[0050] In some embodiments of this application, the electronic device can obtain the screen brightness value and the ambient illuminance value of the current environment in which the electronic device is located, and then determine whether the screen of the electronic device is in self-illuminating mode or reflected light mode based on the screen brightness value and the ambient illuminance value.

[0051] In some embodiments of this application, when the ambient illuminance value is greater than or equal to the screen brightness value, the screen of the electronic device is in a reflected light mode, and the target screen color temperature value is determined based on the ambient light color temperature value.

[0052] In some embodiments of this application, when the ambient illuminance is less than the screen brightness, the screen of the electronic device is in self-illuminating mode, and the target screen color temperature is the color temperature of the white point on the screen.

[0053] It is understandable that when the screen is in reflective light mode, the screen color temperature is mainly affected by the ambient color temperature, while when the screen is in self-emissive mode, the screen color temperature depends on the screen's white point.

[0054] For example, when the ambient light illuminance of the current environment of the electronic device is 30 lx, the ambient light color temperature is 2500 k, and the ambient light illuminance of the current environment of the electronic device is less than the screen brightness, it can be determined that the screen of the electronic device is in self-illuminating mode. According to Table 1 above, the target screen color temperature value of 6608, which matches the ambient light illuminance value of 30 lx and the ambient light color temperature value of 2500 k, is the optimal screen color temperature when the screen is in self-illuminating mode.

[0055] Step 202: The electronic device adjusts the RGB value of each pixel on the screen based on the first color coordinates corresponding to the target screen color temperature value and the original color coordinates of the electronic device's screen.

[0056] In some embodiments of this application, the electronic device can adjust the RGB value of each pixel in the screen based on the initial RGB value of the pixel, the first color coordinate corresponding to the target screen color temperature value, the original color coordinate of the screen, the color adaptation transformation matrix, the color adaptation inverse transformation matrix, the first preset matrix, and the second preset matrix.

[0057] In some embodiments of this application, the above-mentioned original color coordinates can be understood as the original color coordinates of the white point on the screen.

[0058] As you can understand it, color coordinates are the coordinates of a color. The commonly used color coordinate system uses the x-axis (x-axis) and y-axis (y-axis). With color coordinates, you can determine a point on a chromaticity diagram that precisely represents the color of the emitted light. In other words, color coordinates precisely represent color.

[0059] For example, the transformation matrix for color adaptation described above can be M. CAT16 .

[0060]

[0061] For example, the inverse transformation matrix of the above color adaptation can be

[0062]

[0063] For example, the first preset matrix mentioned above can be M RGBtoXYZ The first preset matrix is ​​used for the transformation between the nonlinear domain and the linear domain.

[0064]

[0065] For example, the aforementioned second preset matrix can be The second preset matrix is ​​used for the transformation between the linear domain and the nonlinear domain.

[0066]

[0067] In some embodiments of this application, the electronic device may apply the color adaptation transformation model CAT02 or CAT16 to adjust the RGB values ​​of pixels on the screen of the electronic device in the linear domain through the optical transformation matrix CCORR.

[0068] For example, the optical transformation matrix CCORR includes at least the above-mentioned: color-adaptive transformation matrix, color-adaptive inverse transformation matrix, first preset matrix, and second preset matrix, as shown below:

[0069]

[0070] Among them, (L) WP M WP SWP (0.9755, 1.0165, 1.085) are the first color coordinates, (0.9755, 1.0165, 1.085) are the original color coordinates, Lc is the luminance compensation coefficient, and M... CAT16 The transformation matrix for color adaptation. M is the inverse transformation matrix for color adaptation. RGBtoXYZ For the first preset matrix, This is the second preset matrix.

[0071] In some embodiments of this application, after the electronic device obtains the target screen color temperature value, it can determine the first color coordinate corresponding to the target screen color temperature value based on the relationship between color temperature and color coordinates.

[0072] For example, an electronic device can determine the first color coordinate corresponding to the color temperature value of the target screen based on the relationship between color temperature and color coordinate in the sunlight trail.

[0073] For example, an electronic device can determine the first color coordinate corresponding to the color temperature value of the target screen based on the relationship between color temperature and color coordinate in the blackbody radiation trajectory.

[0074] In some embodiments of this application, the electronic device can obtain the first color coordinates based on the color adaptation transformation matrix and the target screen color temperature value described above, as shown in Formula 1:

[0075]

[0076] Among them, (L) WP M WP S WP Let (x, y, z) be the coordinates of the first color. WP The target screen color temperature value.

[0077] In some embodiments of this application, combined with Figure 1 ,like Figure 3 As shown, step 202 above can be specifically implemented through steps 202a to 202d below.

[0078] Step 202a: The electronic device acquires the initial RGB value of the first pixel on the screen.

[0079] As we can understand, RGB is composed of the three primary colors: red, green, and blue. Therefore, a combination of these three colors can be used to represent a specific color, where each value of R, G, and B is between 0 and 255. When representing the color of a pixel, these three numbers can be used.

[0080] Step 202b: The electronic device performs a color adaptation transformation on the initial RGB values ​​based on the first color coordinates and the original color coordinates to obtain the first RGB values.

[0081] In some embodiments of this application, step 202b can be specifically implemented by steps 202b1 to 202b3 as described below.

[0082] Step 202b1: The electronic device converts the initial RGB values ​​into XYZ tristimulus values.

[0083] It should be noted that XYZ tristimulus values ​​represent the true color of an object, while RGB values ​​describe a planar pure color representation of the average color of the object displayed on the screen. RGB is used to provide color directionality, while XYZ tristimulus values ​​are used to accurately quantify color. Negative values ​​can occur when calculating the three primary colors of RGB. Therefore, electronic devices can first convert the initial RGB values ​​into XYZ tristimulus values ​​before performing calculations.

[0084] In some embodiments of this application, the electronic device can be based on the first preset matrix M described above. RGBtoXYZ The initial RGB value of the first pixel is converted to obtain the converted XYZ tristimulus values, as shown in Formula 2:

[0085]

[0086] Where (R, G, B) input The initial RGB values ​​are (X, Y, Z). input These are the XYZ tristimulus values.

[0087] Step 202b2: The electronic device performs color adaptation transformation on the XYZ tristimulus values ​​based on the first chromatic coordinates and the original chromatic coordinates, and obtains the transformed XYZ tristimulus values.

[0088] In some embodiments of this application, the electronic device can perform color adaptation transformation on the XYZ tristimulus values ​​using a color adaptation transformation algorithm to obtain the transformed XYZ tristimulus values.

[0089] In some embodiments of this application, the electronic device can be based on the aforementioned color-adaptive inverse transformation matrix. The original color coordinates of the screen and the XYZ tristimulus values ​​are used to perform a color adaptation transformation on the XYZ tristimulus values, resulting in the transformed XYZ tristimulus values, as shown in Formula 3:

[0090]

[0091] Among them, (L) WP M WP S WP (x, y, z) represents the first color coordinates, (0.9755, 1.0165, 1.085) represents the original color coordinates, and (X, Y, Z) represents the first color coordinates. input Let X, Y, and Z be the tristimulus values, and (X, Y, Z) be the values ​​of the tristimulus. outputThese are the transformed XYZ tristimulus values.

[0092] Step 202b3: The electronic device converts the transformed XYZ tristimulus values ​​into the first RGB values.

[0093] In some embodiments of this application, the electronic device may be based on the aforementioned second preset matrix. The transformed XYZ tristimulus values ​​are then converted to obtain the first RGB value, as shown in Formula 4:

[0094]

[0095] Where (R, G, B) output The first RGB value is (X, Y, Z). output These are the transformed XYZ tristimulus values.

[0096] Step 202c: The electronic device obtains the second RGB value based on the first RGB value and the brightness compensation coefficient of the screen.

[0097] In some embodiments of this application, the electronic device can obtain a second RGB value based on the first RGB value and the screen's brightness compensation coefficient, as shown in Formula 5:

[0098]

[0099] Where (R, G, B) output1 This is the second RGB value, (R, G, B). output is the first RGB value, and Lc is the brightness compensation coefficient.

[0100] In some embodiments of this application, before step 202c above, the screen color adjustment method provided in this application further includes steps 301 and 302 as described below.

[0101] Step 301: The electronic device obtains the first RGB value corresponding to the second pixel on the screen.

[0102] In the embodiments of this application, the second pixel is a white dot on the screen.

[0103] In some embodiments of this application, the white dots mentioned above can be understood as pixels with RGB values ​​of (255, 255, 255).

[0104] Step 302: The electronic device uses the largest color value among the first RGB values ​​corresponding to the second pixel as the brightness compensation coefficient.

[0105] In some embodiments of this application, the electronic device may first calculate the first RGB value of the white point, then compare the R, G and B values ​​in the first RGB value, and use the largest value among the R, G and B values ​​as the brightness compensation coefficient of the screen of the electronic device.

[0106] In some embodiments of this application, the electronic device can use the largest color value among the first RGB values ​​corresponding to the second pixel as the brightness compensation coefficient, as shown in Formula 6:

[0107]

[0108] Where (R, G, B) output2 This is the first RGB value corresponding to the second pixel.

[0109] Thus, since the largest color value in the first RGB value of the white point can be used as the brightness compensation coefficient of the electronic device screen, the screen brightness of the electronic device can be compensated to the greatest extent.

[0110] Step 202d: The electronic device adjusts the RGB value of the first pixel to the second RGB value.

[0111] In some embodiments of this application, the electronic device can calculate the second RGB value of each pixel on the screen, and then adjust the RGB value of each pixel to the corresponding second RGB value.

[0112] In some embodiments of this application, combined with Figure 1 ,like Figure 4 As shown, after step 202 above, the screen color adjustment method provided in this application embodiment further includes steps 401 to 403 as described below.

[0113] Step 401: The electronic device multiplies the screen brightness compensation coefficient by the screen brightness value to obtain the target brightness value.

[0114] In some embodiments of this application, when the screen brightness is in automatic brightness mode, the electronic device can obtain the screen brightness corresponding to the ambient illuminance in the current environment.

[0115] In some embodiments of this application, when the screen brightness is in manual brightness mode, the electronic device can directly obtain the current screen brightness.

[0116] Step 402: The electronic device acquires the first DBV value corresponding to the target brightness value.

[0117] In some embodiments of this application, the electronic device can obtain the first DBV value corresponding to the target brightness value by looking up a DBV table.

[0118] Step 403: The electronic device performs brightness compensation on the screen based on the first DBV value.

[0119] It is understandable that each DBV value corresponds to a set of Gamma bands, and each set of Gamma bands corresponds to vdata values ​​of the full grayscale from 0 to 255. Different vdata values ​​correspond to different brightness, that is, the grayscale from 0 to 255 corresponds to a set of brightness data, and the brightness data of the same grayscale is different for different DBV values.

[0120] It's understandable that grayscale corresponds to brightness, and brightness is represented by grayscale, but the two are not equivalent. Grayscale represents a gradual change from dark to light. The brightness of different locations in a frame of an image is generally different because the grayscale may differ at different locations, but the DBV value of each frame remains unchanged.

[0121] In some embodiments of this application, the electronic device can acquire the vdata value of the full grayscale of 0-255 corresponding to the first DBV value, and then convert the vdata value into a brightness value and display it on the screen to perform brightness compensation for the entire screen.

[0122] Thus, since the electronic device can adjust the RGB value of each pixel on the screen, it can also perform brightness compensation on the screen, thereby improving the naturalness and contrast of the screen display.

[0123] In some embodiments of this application, such as Figure 5 As shown, after the electronic device obtains the ambient light illuminance and ambient light color temperature values ​​of the current environment, it can obtain the target screen color temperature value (X, Y, Z) by looking up Table 1. WP Then, using Formula 1 above, calculate the target screen color temperature value (X, Y, Z). WP Convert to first color coordinates (L) WP M WP S WP Then, the initial RGB values ​​(R, G, B) of the first pixel are obtained using Formula 2 above. input This is converted into XYZ tristimulus values ​​(X, Y, Z). input Then, using Formula 3 above, the XYZ tristimulus values ​​(X, Y, Z) are calculated. input Perform color adaptation transformation to obtain the transformed XYZ tristimulus values ​​(X, Y, Z). output Then, the electronic device uses Formula 4 above to transform the XYZ tristimulus values ​​(X, Y, Z). output Convert to the first RGB value (R, G, B). output Then, the second RGB value (R, G, B) is calculated using the screen's brightness compensation coefficient Lc, the first RGB value, and Formula 5. output1Then, the electronic device can multiply the screen's brightness compensation coefficient Lc by the screen's brightness value L0 to obtain the target brightness value L. target Then, the target brightness value L is obtained by looking up the table using DBV. target The corresponding first DBV value; finally, the electronic device can perform brightness compensation on the screen based on the first DBV value.

[0124] In the screen color adjustment method provided in this application embodiment, since the electronic device can obtain the target screen color temperature value that matches the current ambient light parameters under different environments, and adjust the RGB value of each pixel in the screen of the electronic device based on the target screen color temperature value, so that the screen color of the electronic device perceived by the human eye remains consistent under different environments.

[0125] It should be noted that the screen color adjustment method provided in this application embodiment can be executed by a screen color adjustment device. This application embodiment uses a screen color adjustment device executing the screen color adjustment method as an example to illustrate the screen color adjustment device provided in this application embodiment.

[0126] Figure 6 A schematic diagram of a possible structure of the screen color adjustment device 70 involved in an embodiment of this application is shown. Figure 6 As shown, the screen color adjustment device 70 may include a determining module 71 and an adjusting module 72.

[0127] The determining module 71 is used to determine the target screen color temperature value that matches the current ambient light parameters of the electronic device. The ambient light parameters include the ambient light illuminance value and the ambient light color temperature value.

[0128] The adjustment module 72 is used to adjust the RGB value of each pixel in the screen based on the first color coordinates corresponding to the target screen color temperature value determined by the determination module 71 and the original color coordinates of the screen of the electronic device.

[0129] This application provides a screen color adjustment device. When the screen color adjustment device is in different environments, it can obtain the target screen color temperature value that matches the current ambient light parameters under different environments, and adjust the RGB value of each pixel in the screen of the electronic device based on the target screen color temperature value, so that the screen color of the screen color adjustment device perceived by the human eye remains consistent under different environments.

[0130] In one possible implementation, the determining module 71 is specifically used to determine a target screen color temperature value that matches the ambient light parameter from the correspondence between at least one ambient light parameter and the screen color temperature value.

[0131] In one possible implementation, when the ambient illuminance is greater than or equal to the screen brightness, the screen is in a reflected light mode, and the target screen color temperature is determined based on the ambient light color temperature; or, when the ambient illuminance is less than the screen brightness, the screen is in a self-emissive mode, and the target screen color temperature is the color temperature of the white point on the screen.

[0132] In one possible implementation, the screen color adjustment device 70 provided in this application embodiment further includes: an acquisition module and a processing module. The acquisition module is used to acquire the initial RGB value of a first pixel on the screen. The processing module is used to perform a color adaptation transformation on the initial RGB value based on the first color coordinates and the original color coordinates to obtain a first RGB value; and to obtain a second RGB value based on the first RGB value and the screen's brightness compensation coefficient. The adjustment module 72 is specifically used to adjust the RGB value of the first pixel to the second RGB value obtained by the processing module.

[0133] In one possible implementation, the processing module is specifically used to convert the initial RGB values ​​into XYZ tristimulus values; and based on the first color coordinates and the original color coordinates, to perform a color adaptation transformation on the XYZ tristimulus values ​​using a color adaptation transformation algorithm to obtain the transformed XYZ tristimulus values; and to convert the transformed XYZ tristimulus values ​​into the first RGB values.

[0134] In one possible implementation, the acquisition module is further configured to acquire the first RGB value corresponding to a second pixel on the screen, where the second pixel is a white point on the screen, before the processing module obtains the second RGB value based on the first RGB value and the screen's brightness compensation coefficient. The processing module is further configured to use the largest color value among the first RGB values ​​corresponding to the second pixel acquired by the acquisition module as the brightness compensation coefficient.

[0135] In one possible implementation, the screen color adjustment device 70 provided in this application embodiment further includes a processing module and an acquisition module. The processing module is used to multiply the screen brightness compensation coefficient by the screen brightness value after the adjustment module 72 adjusts the RGB values ​​of each pixel on the screen based on the first color coordinates corresponding to the target screen color temperature value and the original color coordinates of the electronic device's screen, to obtain the target brightness value. The acquisition module is used to acquire the first DBV value corresponding to the target brightness value obtained by the processing module. The processing module is also used to perform brightness compensation on the screen based on the first DBV value acquired by the acquisition module.

[0136] The screen color adjustment device in this application embodiment can be an electronic device or a component within an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other devices besides a terminal. For example, the electronic device can be a mobile phone, tablet computer, laptop computer, PDA, in-vehicle electronic device, mobile internet device (MID), augmented reality (AR) / virtual reality (VR) device, robot, wearable device, ultra-mobile personal computer (UMPC), netbook, or personal digital assistant (PDA), etc. It can also be a server, network attached storage (NAS), personal computer (PC), television (TV), ATM, or self-service machine, etc. This application embodiment does not specifically limit the device.

[0137] The screen color adjustment device in this application embodiment can be a device with an operating system. This operating system can be Android, iOS, or other possible operating systems; this application embodiment does not specifically limit it.

[0138] The screen color adjustment device provided in this application embodiment can realize the various processes implemented in the above method embodiments, and will not be described again here to avoid repetition.

[0139] Optionally, such as Figure 7 As shown, this application embodiment also provides an electronic device 900, including a processor 901 and a memory 902. The memory 902 stores a program or instructions that can run on the processor 901. When the program or instructions are executed by the processor 901, they implement the various steps of the above method embodiments and can achieve the same technical effect. To avoid repetition, they will not be described again here.

[0140] It should be noted that the electronic devices in the embodiments of this application include the mobile electronic devices and non-mobile electronic devices described above.

[0141] Figure 8 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of this application.

[0142] The electronic device 100 includes, but is not limited to, components such as: radio frequency unit 101, network module 102, audio output unit 103, input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, and processor 110.

[0143] Those skilled in the art will understand that the electronic device 100 may also include a power supply (such as a battery) for supplying power to various components. The power supply may be logically connected to the processor 110 through a power management system, thereby enabling functions such as managing charging, discharging, and power consumption through the power management system. Figure 8 The electronic device structure shown does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown, or combine certain components, or have different component arrangements, which will not be elaborated here.

[0144] The processor 110 is used to determine a target screen color temperature value that matches the current ambient light parameters of the electronic device, including ambient light illuminance and ambient light color temperature; and to adjust the RGB value of each pixel in the screen based on the first color coordinates corresponding to the target screen color temperature value and the original color coordinates of the screen of the electronic device.

[0145] This application provides an electronic device that, when the electronic device is in different environments, can obtain the target screen color temperature value that matches the current ambient light parameters under different environments, and adjust the RGB value of each pixel in the screen of the electronic device based on the target screen color temperature value, so that the screen color of the electronic device perceived by the human eye remains consistent under different environments.

[0146] In some embodiments of this application, the processor 110 is specifically configured to determine a target screen color temperature value that matches the ambient light parameter from a correspondence between at least one ambient light parameter and a screen color temperature value.

[0147] In some embodiments of this application, when the ambient illuminance value is greater than or equal to the screen brightness value, the screen is in reflected light mode, and the target screen color temperature value is determined based on the ambient light color temperature value; or,

[0148] When the ambient illuminance is less than the screen brightness, the screen is in self-illuminating mode, and the target screen color temperature is the color temperature of the white point on the screen.

[0149] In some embodiments of this application, the processor 110 is further configured to obtain the initial RGB value of the first pixel in the screen; and perform a color adaptation transformation on the initial RGB value based on the first color coordinates and the original color coordinates to obtain the first RGB value; and obtain the second RGB value based on the first RGB value and the brightness compensation coefficient of the screen.

[0150] The processor 110 is specifically used to adjust the RGB value of the first pixel to the second RGB value obtained by the processing module.

[0151] In some embodiments of this application, the processor 110 is specifically configured to convert the initial RGB values ​​into XYZ tristimulus values; and based on the first color coordinates and the original color coordinates, perform a color adaptation transformation on the XYZ tristimulus values ​​using a color adaptation transformation algorithm to obtain the transformed XYZ tristimulus values; and convert the transformed XYZ tristimulus values ​​into the first RGB values.

[0152] In some embodiments of this application, the processor 110 is further configured to obtain the first RGB value corresponding to the second pixel point on the screen before obtaining the second RGB value based on the first RGB value and the screen's brightness compensation coefficient, wherein the second pixel point is a white point on the screen; and to use the largest color value among the first RGB values ​​corresponding to the second pixel point as the brightness compensation coefficient.

[0153] In some embodiments of this application, the processor 110 is further configured to, after adjusting the RGB values ​​of each pixel in the screen based on the first color coordinates corresponding to the target screen color temperature value and the original color coordinates of the screen of the electronic device, multiply the screen brightness compensation coefficient by the screen brightness value to obtain the target brightness value; obtain the first DBV value corresponding to the target brightness value; and perform brightness compensation on the screen based on the first DBV value.

[0154] The electronic device provided in this application embodiment can implement the various processes implemented in the above method embodiments and achieve the same technical effect. To avoid repetition, it will not be described again here.

[0155] For details on the beneficial effects of the various implementation methods in this embodiment, please refer to the beneficial effects of the corresponding implementation methods in the above method embodiments. To avoid repetition, these will not be repeated here.

[0156] It should be understood that, in this embodiment, the input unit 104 may include a graphics processing unit (GPU) 1041 and a microphone 1042. The GPU 1041 processes image data of still images or videos obtained by an image capture device (such as a camera) in video capture mode or image capture mode. The display unit 106 may include a display panel 1061, which may be configured in the form of a liquid crystal display, an organic light-emitting diode, or the like. The user input unit 107 includes at least one of a touch panel 1071 and other input devices 1072. The touch panel 1071 is also called a touch screen. The touch panel 1071 may include a touch detection device and a touch controller. Other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, power buttons, etc.), a trackball, a mouse, and a joystick, which will not be described in detail here.

[0157] The memory 109 can be used to store software programs and various data. The memory 109 may primarily include a first storage area for storing programs or instructions and a second storage area for storing data. The first storage area may store the operating system, application programs or instructions required for at least one function (such as sound playback, image playback, etc.). Furthermore, the memory 109 may include volatile memory or non-volatile memory, or both. The non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory can be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus RAM (DRRAM). The memory 109 in the embodiments of this application includes, but is not limited to, these and any other suitable types of memory.

[0158] Processor 110 may include one or more processing units; optionally, processor 110 integrates an application processor and a modem processor, wherein the application processor mainly handles operations involving the operating system, user interface, and applications, and the modem processor mainly handles wireless communication signals, such as a baseband processor. It is understood that the aforementioned modem processor may also not be integrated into processor 110.

[0159] This application also provides a readable storage medium storing a program or instructions. When the program or instructions are executed by a processor, they implement the various processes of the above method embodiments and achieve the same technical effect. To avoid repetition, they will not be described again here.

[0160] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.

[0161] This application embodiment also provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the various processes of the above method embodiments and achieve the same technical effect. To avoid repetition, it will not be described again here.

[0162] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.

[0163] This application provides a computer program / program product, which is stored in a storage medium and executed by at least one processor to implement the various processes of the above method embodiments and achieve the same technical effects. To avoid repetition, it will not be described again here.

[0164] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.

[0165] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.

[0166] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.

Claims

1. A method for adjusting screen color, characterized in that, The method includes: Determine the target screen color temperature value that matches the current ambient light parameters of the electronic device. The ambient light parameters include ambient illuminance and ambient light color temperature. The target screen color temperature value is the color temperature value that meets the color adaptation requirements of the human eye under the current ambient light parameters. Based on the first color coordinates corresponding to the target screen color temperature value and the original color coordinates of the screen of the electronic device, adjust the RGB value of each pixel in the screen; Specifically, when the ambient illuminance value is greater than or equal to the screen brightness value, the screen is in reflected light mode, and the target screen color temperature value is determined based on the ambient light color temperature value; when the ambient illuminance value is less than the screen brightness value, the screen is in self-illuminating mode, and the target screen color temperature value is the color temperature value of the white point on the screen.

2. The method according to claim 1, characterized in that, Determine the target screen color temperature value that matches the ambient light parameters of the current environment in which the electronic device is located, including: From the correspondence between at least one ambient light parameter and the screen color temperature value, determine the target screen color temperature value that matches the ambient light parameter.

3. The method according to claim 1, characterized in that, The step of adjusting the RGB value of each pixel in the screen based on the first color coordinates corresponding to the target screen color temperature value and the original color coordinates of the screen of the electronic device includes: Obtain the initial RGB value of the first pixel in the screen; Based on the first color coordinates and the original color coordinates, the initial RGB value is subjected to color adaptation transformation to obtain the first RGB value; Based on the first RGB value and the brightness compensation coefficient of the screen, the second RGB value is obtained; Adjust the RGB value of the first pixel to the second RGB value.

4. The method according to claim 3, characterized in that, The step of performing a color adaptation transformation on the initial RGB values ​​based on the first color coordinates and the original color coordinates to obtain the first RGB values ​​includes: The initial RGB values ​​are converted into XYZ tristimulus values; Based on the first chromatic coordinates and the original chromatic coordinates, the XYZ tristimulus values ​​are subjected to chromatic adaptation transformation using a chromatic adaptation transformation algorithm to obtain the transformed XYZ tristimulus values. The transformed XYZ tristimulus values ​​are converted into the first RGB values.

5. The method according to claim 3, characterized in that, Before obtaining the second RGB value based on the first RGB value and the screen's brightness compensation coefficient, the method further includes: Obtain the first RGB value corresponding to the second pixel point in the screen, where the second pixel point is the white point in the screen; The largest color value among the first RGB values ​​corresponding to the second pixel is used as the brightness compensation coefficient.

6. The method according to claim 1, characterized in that, After adjusting the RGB values ​​of each pixel in the screen based on the first color coordinates corresponding to the target screen color temperature value and the original color coordinates of the electronic device's screen, the method further includes: The target brightness value is obtained by multiplying the brightness compensation coefficient of the screen by the screen brightness value. Obtain the first DBV value corresponding to the target brightness value; Brightness compensation is performed on the screen based on the first DBV value.

7. A screen color adjustment device, characterized in that, The device includes: a determining module and an adjusting module; The determining module is used to determine a target screen color temperature value that matches the current ambient light parameters of the electronic device. The ambient light parameters include ambient illuminance and ambient light color temperature. The target screen color temperature value is the color temperature value that meets the color adaptation requirements of the human eye under the current ambient light parameters. The adjustment module is used to adjust the RGB value of each pixel in the screen based on the first color coordinates corresponding to the target screen color temperature value determined by the determining module and the original color coordinates of the screen of the electronic device. Specifically, when the ambient illuminance value is greater than or equal to the screen brightness value, the screen is in reflected light mode, and the target screen color temperature value is determined based on the ambient light color temperature value; when the ambient illuminance value is less than the screen brightness value, the screen is in self-illuminating mode, and the target screen color temperature value is the color temperature value of the white point on the screen.

8. The apparatus according to claim 7, characterized in that, The device further includes: an acquisition module and a processing module; The acquisition module is used to acquire the initial RGB value of the first pixel in the screen; The processing module is configured to perform a color adaptation transformation on the initial RGB value based on the first color coordinates and the original color coordinates to obtain a first RGB value; and to obtain a second RGB value based on the first RGB value and the brightness compensation coefficient of the screen. The adjustment module is specifically used to adjust the RGB value of the first pixel to the second RGB value obtained by the processing module.

9. An electronic device, characterized in that, It includes a processor and a memory, the memory storing a program or instructions that can run on the processor, the program or instructions being executed by the processor to implement the steps of the screen color adjustment method as described in any one of claims 1-6.

Citation Information

Patent Citations

  • Electronic equipment and display screen adjusting method thereof

    CN112087611A

  • Environment color temperature self-adaptive adjusting method and system for medical display

    CN114430480A

  • Display effect control method and device of display screen, terminal equipment and medium

    CN115731836A

  • Image processing method and electronic equipment

    CN116489377A

  • Display screen correction method and device, computer equipment and storage medium

    CN117975876A