Screen color adjusting method and device and electronic equipment

By determining the target screen color temperature value matching the ambient light parameters in the electronic device and adjusting the RGB value, the problem of inconsistent screen colors in different environments is solved, ensuring the consistency of screen colors and display effect.

CN119091777AActive Publication Date: 2024-12-06VIVO MOBILE COMM CO LTD

Patent Information

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

AI Technical Summary

Technical Problem

In different environments, due to the influence of ambient light, the screen colors perceived by the human eye are inconsistent, especially in low color temperature environments, the color adaptation mechanism of the human eye cannot completely eliminate the impact of ambient light, resulting in inconsistent screen colors in different environments.

Method used

By determining the target screen color temperature value that matches the current ambient light parameter and adjusting the RGB value of each pixel point of the screen based on the color temperature value, ensuring that the screen color remains consistent in different environments.

Benefits of technology

The screen color perceived by the human eye in different environments is achieved, which improves the naturalness and contrast of the screen display effect.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119091777A_ABST
    Figure CN119091777A_ABST
Patent Text Reader

Abstract

The invention 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 current ambient light parameters of the electronic equipment, wherein the ambient light parameters comprise an ambient light illuminance value and an ambient light color temperature value; and adjusting the RGB value of each pixel point in the screen based on the first color coordinate corresponding to the target screen color temperature value and the 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] The present application belongs to the field of communication technology, and specifically relates to a screen color adjustment method, device and electronic device. Background Art

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

[0003] However, in different environments, due to the influence of ambient light, the screen color perceived by the human eye may be inconsistent. For example, when outdoors, the screen color perceived by the human eye is yellowish. Although the human eye has a color adaptation mechanism to eliminate the influence of ambient light on the color of reflective objects to a certain extent to maintain the color of objects relatively consistent in different environments. However, research in recent years has shown that the color adaptation of the human eye cannot completely eliminate the influence of ambient light in low color temperature environments. As a result, the screen color perceived by the human eye is inconsistent in different environments. Summary of the invention

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

[0005] In a first aspect, an embodiment of the present application provides 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 comprising an ambient light illuminance value and an ambient light color temperature value; 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] In a second aspect, an embodiment of the present application provides a screen color adjustment device, which includes: a determination module and an adjustment module. The determination module is used to determine a target screen color temperature value that matches the current ambient light parameters of the electronic device, and the ambient light parameters include an ambient light illuminance value and an ambient light color temperature value. 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 determination module and the original color coordinates of the screen of the electronic device.

[0007] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the program or instructions are executed by the processor, the steps of the method described in the first aspect are implemented.

[0008] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.

[0009] In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the first aspect.

[0010] In a sixth aspect, an embodiment of the present application provides a computer program / program product, wherein the computer program / program product is stored in a storage medium, and the program / program product is executed by at least one processor to implement the method described in the first aspect.

[0011] In an embodiment of the present application, a target screen color temperature value that matches the current ambient light parameters of the electronic device is determined, and the ambient light parameters include an ambient light illuminance value and an ambient light color temperature value; 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, the RGB value of each pixel in the screen is adjusted. In this solution, since the electronic device can obtain the target screen color temperature value that matches the current ambient light parameters in different environments when the electronic device is 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 in different environments remains consistent. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] Figure 1 This is one of the flow charts of a screen color adjustment method provided in an embodiment of the present application;

[0013] Figure 2 This is a second flow chart of a screen color adjustment method provided in an embodiment of the present application;

[0014] Figure 3 This is a third flow chart of a screen color adjustment method provided in an embodiment of the present application;

[0015] Figure 4 This is a fourth flow chart of a screen color adjustment method provided in an embodiment of the present application;

[0016] Figure 5 This is a fifth flow chart of a screen color adjustment method provided in an embodiment of the present application;

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

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

[0019] Figure 8 This is the second schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0020] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.

[0021] The terms "first", "second", etc. in the specification and claims of this application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the terms used in this way are interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0022] The terms "at least one (item)", "at least one of" and the like in the specification and claims of the present application refer to any one, any two or a combination of more than two of the objects included therein. For example, at least one (item) of a, b, and c can be represented by: "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 (items)" refers to two or more, and its meaning is similar to that of "at least one (item)".

[0023] The screen color adjustment method provided in the embodiment of the present application is described in detail below through specific embodiments and their application scenarios in conjunction with the accompanying drawings.

[0024] The screen color adjustment method in the embodiment of the present application can be applied to the scenario of adjusting the screen color.

[0025] At present, users can use electronic devices to browse the web, view information, use various application software, and other functions. As users become more and more dependent on electronic devices, they may use electronic devices in different environments. However, in different environments, due to the influence of ambient light, the screen color perceived by the human eye may be inconsistent. For example, when outdoors, the screen color perceived by the human eye is yellowish. Although the human eye has a color adaptation mechanism to eliminate the influence of ambient light on the color of reflective objects to a certain extent to maintain the color of objects relatively consistent in different environments. However, studies in recent years have shown that the color adaptation of the human eye cannot completely eliminate the influence of ambient light in low color temperature environments. As a result, the screen color perceived by the human eye is inconsistent in different environments.

[0026] In the screen color adjustment method, device and electronic device provided in the embodiments of the present application, when the electronic device is in different environments, 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 in different environments remains consistent.

[0027] The screen color adjustment method provided in the embodiment of the present application may be executed by a screen color adjustment device, which may be an electronic device, or a functional module or entity in an electronic device. The technical solution provided in the embodiment of the present application is described below using an electronic device as an example.

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

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

[0030] In an embodiment of the present application, the above-mentioned ambient light parameters include an ambient light illumination value and an ambient light color temperature value.

[0031] In some embodiments of the present application, the above-mentioned ambient light illumination 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 the present application, the above-mentioned ambient light color temperature value is a physical quantity used to define the color of the light source.

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

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

[0035] It can be understood that the higher the screen color temperature value, the bluer the screen color is, that is, the screen is cooler, and the lower the screen color temperature value, the redder the screen color is, that is, the screen is warmer.

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

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

[0038] In some embodiments of the present application, the above-mentioned 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 the present application, Figure 1 ,like Figure 2 As shown, the above step 201 can be specifically implemented through the following step 201a.

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

[0041] In some embodiments of the present 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 lights.

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

[0043] Exemplarily, as shown in Table 1, different ambient light illumination values ​​and different ambient light color temperature values ​​corresponding to the screen color temperature values ​​provided in the embodiment of the present application are shown.

[0044] Table 1

[0045]

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

[0047] In some embodiments of the present application, as shown in Table 1, the ambient light illumination value is 30lx-15000lx, and the ambient light color temperature value is 2500K-10000K. When the ambient light illumination 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 illumination value is less than 5lx, the electronic device can use the preset screen color temperature value of 6000K as the above target screen color temperature value.

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

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

[0051] In some embodiments of the present application, when the ambient illumination value is greater than or equal to the screen brightness value of the screen, 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 the present application, when the ambient illumination value is less than the screen brightness value of the screen, the screen of the electronic device is in a self-luminous mode, and the target screen color temperature value is the color temperature value of the white point in the screen.

[0053] It can be understood that when the screen is in reflected light mode, the screen color temperature value is mainly affected by the ambient color temperature, while when the screen is in self-luminous mode, the screen color temperature value depends on the white point of the screen.

[0054] For example: when the ambient light illuminance value of the electronic device's current environment is 30lx, the ambient light color temperature value is 2500k, and the ambient light illuminance value of the electronic device's current environment is less than the screen brightness value, it can be determined that the screen of the electronic device is in self-luminous mode. Combined with the above Table 1, it can be seen that the target screen color temperature value 6608 that matches the ambient light illuminance value of 30lx and the ambient light color temperature value of 2500k is the optimal screen color temperature when the screen is in self-luminous 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 screen of the electronic device.

[0056] In some embodiments of the present 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 coordinates of the screen, the color adaptation transformation matrix, the inverse transformation matrix of the color adaptation, the first preset matrix, and the second preset matrix.

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

[0058] It can be understood that color coordinates are the coordinates of color. The commonly used color coordinates at present have the horizontal axis as x and the vertical axis as y. With the color coordinates, a point can be determined on the chromaticity diagram, and this point accurately represents the luminous color. That is, the color coordinates accurately represent the color.

[0059] Exemplarily, the transformation matrix of the above chromatic adaptation can be M CAT16 .

[0060]

[0061] Exemplarily, the inverse transformation matrix of the above chromatic adaptation can be

[0062]

[0063] Exemplarily, the first preset matrix may be M RGBtoXYZ The first preset matrix is ​​used for conversion from nonlinear domain to linear domain.

[0064]

[0065] Exemplarily, the second preset matrix can be The second preset matrix is ​​used for conversion from the linear domain to the nonlinear domain.

[0066]

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

[0068] Exemplarily, the optical conversion matrix CCORR includes at least the above-mentioned: a transformation matrix of chromatic adaptation, an inverse transformation matrix of chromatic adaptation, a first preset matrix, and a second preset matrix, as shown below:

[0069]

[0070] Among them, (L WP , M WP , SWP ) is the first color coordinate, (0.9755, 1.0165, 1.085) is the original color coordinate, Lc is the brightness compensation coefficient, M CAT16 is the transformation matrix for chromatic adaptation, is the inverse transformation matrix of color adaptation, M RGBtoXYZ is the first preset matrix, is the second preset matrix.

[0071] In some embodiments of the present 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 according to the relationship between the color temperature and the color coordinate.

[0072] Exemplarily, the electronic device may determine a first color coordinate corresponding to a target screen color temperature value based on a relationship between color temperature and color coordinates in a daylight trajectory.

[0073] Exemplarily, the electronic device may determine a first color coordinate corresponding to a target screen color temperature value based on a relationship between color temperature and color coordinates in a blackbody radiation locus.

[0074] In some embodiments of the present application, the electronic device may obtain the first color coordinate based on the above-mentioned color adaptation transformation matrix and the target screen color temperature value, as shown in Formula 1:

[0075]

[0076] Among them, (L WP , M WP , S WP ) is the first color coordinate, (X, Y, Z) WP is the target screen color temperature value.

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

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

[0079] It can be understood that RGB is composed of three primary colors: red, green, and blue, so 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 expressing the color of a pixel, three numbers can be used to express it.

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

[0081] In some embodiments of the present application, the above step 202b can be specifically implemented through the following steps 202b1 to 202b3.

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

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

[0084] In some embodiments of the present application, the electronic device may be based on the first preset matrix M RGBtoXYZ and the initial RGB value of the first pixel, the initial RGB value is converted to obtain the converted XYZ tristimulus value, as shown in Formula 2:

[0085]

[0086] Among them, (R, G, B) input is the initial RGB value, (X, Y, Z) input is the XYZ tristimulus value.

[0087] Step 202b2: The electronic device performs chromatic adaptation transformation on the XYZ tristimulus values ​​by using a chromatic adaptation transformation algorithm based on the first color coordinates and the original color coordinates to obtain transformed XYZ tristimulus values.

[0088] In some embodiments of the present application, the electronic device may perform chromatic adaptation transformation on the XYZ tristimulus values ​​by using a chromatic adaptation transformation algorithm to obtain transformed XYZ tristimulus values.

[0089] In some embodiments of the present application, the electronic device may be based on the inverse transformation matrix of the above-mentioned chromatic adaptation. The first color coordinates, the original color coordinates of the screen and the XYZ tristimulus values ​​are used to perform color adaptation transformation on the XYZ tristimulus values ​​to obtain the transformed XYZ tristimulus values, as shown in Formula 3:

[0090]

[0091] Among them, (L WP , M WP , S WP ) is the first color coordinate, (0.9755, 1.0165, 1.085) is the original color coordinate, (X, Y, Z) input is the XYZ tristimulus value, (X, Y, Z) outputis the transformed XYZ tristimulus value.

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

[0093] In some embodiments of the present application, the electronic device may be based on the second preset matrix and the transformed XYZ tristimulus values, converting the transformed XYZ tristimulus values ​​to obtain the converted first RGB values, as shown in Formula 4:

[0094]

[0095] Among them, (R, G, B) output is the first RGB value, (X, Y, Z) output is the transformed XYZ tristimulus value.

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

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

[0098]

[0099] Among them, (R, G, B) output1 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 the present application, before the above step 202c, the screen color adjustment method provided by the embodiment of the present application further includes the following steps 301 and 302.

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

[0102] In an embodiment of the present application, the second pixel point is a white point on the screen.

[0103] In some embodiments of the present application, the white point may be understood as a pixel point with an RGB value of (255, 255, 255).

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

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

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

[0107]

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

[0109] In this way, since the maximum color value in the first RGB value of the white point can be used as the brightness compensation coefficient of the screen of the electronic device, 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 a second RGB value.

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

[0112] In some embodiments of the present application, Figure 1 ,like Figure 4 As shown, after the above step 202, the screen color adjustment method provided in the embodiment of the present application also includes the following steps 401 to 403.

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

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

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

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

[0117] In some embodiments of the present application, the electronic device may obtain a 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 can be understood that each DBV value corresponds to a set of Gamma bands, each set of Gamma bands corresponds to a vdata value of 0-255 full grayscale, and different vdata values ​​correspond to different brightness, that is, 0-255 grayscale corresponds to a set of brightness data, and the brightness data of the same grayscale with different DBV values ​​is different.

[0120] It can be understood that grayscale corresponds to brightness and brightness is represented by grayscale, but the two are not equivalent. Grayscale represents the gradual change from dark to bright. The brightness of different positions in a frame of image is generally different, because the grayscale of different positions may be different, but the DBV value of each frame of image remains unchanged.

[0121] In some embodiments of the present application, the electronic device can obtain a vdata value of 0-255 full grayscale 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 on the entire screen.

[0122] In this way, after the electronic device adjusts the RGB value of each pixel on the screen, the electronic device can also perform brightness compensation on the screen, thereby improving the naturalness and contrast of the display effect of the screen.

[0123] In some embodiments of the present application, Figure 5 As shown, after the electronic device obtains the ambient light illumination value and the ambient light color temperature value of the current environment, it can obtain the target screen color temperature value (X, Y, Z) by looking up Table 1. WP ; Then, the target screen color temperature value (X, Y, Z) is calculated by the above formula 1. WP Convert to the first color coordinate (L WP , M WP , S WP ); then use the above formula 2 to convert the initial RGB value (R, G, B) of the first pixel point input , converted to XYZ tristimulus values ​​(X, Y, Z) input ; Then, through the above formula 3, the XYZ three stimulus values ​​(X, Y, Z) input Perform chromatic adaptation transformation to obtain the transformed XYZ tristimulus values ​​(X, Y, Z) output ; Then the electronic device converts the transformed XYZ tristimulus values ​​(X, Y, Z) through the above formula 4 output , converted to the first RGB value (R, G, B) output ; Then the second RGB value (R, G, B) is calculated by the screen brightness compensation coefficient Lc, the first RGB value and formula 5 output1; Then the electronic device can multiply the screen brightness compensation coefficient Lc by the screen brightness value L0 of the screen to obtain the target brightness value L target ; Then use DBV to look up the table to get the target brightness value L target The corresponding first DBV value; finally, the electronic device can compensate the brightness of the screen based on the first DBV value.

[0124] In the screen color adjustment method provided in the embodiment of the present application, when the electronic device is in different environments, 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 in different environments remains consistent.

[0125] It should be noted that the screen color adjustment method provided in the embodiment of the present application can be executed by a screen color adjustment device. In the embodiment of the present application, the screen color adjustment device executing the screen color adjustment method is taken as an example to illustrate the screen color adjustment device provided in the embodiment of the present application.

[0126] Figure 6 FIG. 1 shows a possible structural diagram of a screen color adjustment device 70 involved in an embodiment of the present application. Figure 6 As shown, the screen color adjustment device 70 may include: a determination module 71 and an adjustment module 72 .

[0127] The determination module 71 is used to determine a target screen color temperature value that matches the current ambient light parameters of the electronic device, where the ambient light parameters include an ambient light illumination value and an 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] An embodiment of the present application provides a screen color adjustment device. When the screen color adjustment device is in different environments, the screen color adjustment device can obtain target screen color temperature values ​​that match 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 screen color adjustment device perceived by the human eye in different environments remains consistent.

[0130] In a possible implementation, the determination module 71 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 the screen color temperature value.

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

[0132] In a possible implementation, the screen color adjustment device 70 provided in the embodiment of the present application 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 used to perform a color adaptation transformation on the initial RGB value based on the first color coordinate and the original color coordinate 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. 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 a possible implementation, the processing module is specifically configured to convert the initial RGB value into an XYZ tristimulus value; perform a chromatic adaptation transformation on the XYZ tristimulus value based on the first color coordinate and the original color coordinate by a chromatic adaptation transformation algorithm to obtain a transformed XYZ tristimulus value; and convert the transformed XYZ tristimulus value into a first RGB value.

[0134] In a possible implementation, the acquisition module is further used to acquire the first RGB value corresponding to the second pixel point in the screen before the processing module obtains the second RGB value based on the first RGB value and the brightness compensation coefficient of the screen, where the second pixel point is a white point in the screen. The processing module is further used to use the maximum color value of the first RGB value corresponding to the second pixel point acquired by the acquisition module as the brightness compensation coefficient.

[0135] In a possible implementation, the screen color adjustment device 70 provided in the embodiment of the present application also includes: a processing module and an acquisition module. The processing module is used to multiply the brightness compensation coefficient of the screen by the screen brightness value of the screen to obtain the target brightness value after the adjustment module 72 adjusts 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. The acquisition module is used to obtain the first DBV value corresponding to the target brightness value processed by the processing module. The processing module is also used to perform brightness compensation on the screen based on the first DBV value obtained by the acquisition module.

[0136] The screen color adjustment device in the embodiment of the present application can be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or it can be other devices other than the terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (Augmented Reality, AR) / virtual reality (Virtual Reality, VR) device, a robot, a wearable device, a super mobile personal computer (Ultra-Mobile Personal Computer, UMPC), a netbook or a personal digital assistant (Personal Digital Assistant, PDA), etc., and can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (Personal Computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.

[0137] The screen color adjustment device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.

[0138] The screen color adjustment device provided in the embodiment of the present application can implement each process implemented in the above method embodiment. To avoid repetition, it will not be described here.

[0139] Alternatively, if Figure 7 As shown, an embodiment of the present application also provides an electronic device 900, including a processor 901 and a memory 902, wherein the memory 902 stores programs or instructions that can be executed on the processor 901, and when the program or instructions are executed by the processor 901, the various steps of the above-mentioned method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, they are not described here.

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

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

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

[0143] Those skilled in the art will appreciate that the electronic device 100 may also include a power source (such as a battery) for supplying power to various components, and the power source may be logically connected to the processor 110 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Figure 8 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.

[0144] Among them, the processor 110 is used to determine a target screen color temperature value that matches the current ambient light parameters of the electronic device, where the ambient light parameters include an ambient light illuminance value and an ambient light color temperature value; and 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] An embodiment of the present application provides an electronic device. When the electronic device is in different environments, the electronic device can obtain target screen color temperature values ​​that match 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 in different environments remains consistent.

[0146] In some embodiments of the present 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 the screen color temperature value.

[0147] In some embodiments of the present application, when the ambient illumination value is greater than or equal to the screen brightness value of the screen, the screen is in a 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 illumination value is less than the screen brightness value of the screen, the screen is in self-luminous mode, and the target screen color temperature value is the color temperature value of the white point in the screen.

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

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

[0151] In some embodiments of the present application, the processor 110 is specifically configured to convert the initial RGB value into an XYZ tristimulus value; perform a chromatic adaptation transformation on the XYZ tristimulus value based on the first color coordinate and the original color coordinate by a chromatic adaptation transformation algorithm to obtain a transformed XYZ tristimulus value; and convert the transformed XYZ tristimulus value into a first RGB value.

[0152] In some embodiments of the present application, the processor 110 is also used to obtain the first RGB value corresponding to the second pixel point in the screen before obtaining the second RGB value based on the first RGB value and the brightness compensation coefficient of the screen, where the second pixel point is a white point in the screen; and use the maximum color value in the first RGB value corresponding to the second pixel point as the brightness compensation coefficient.

[0153] In some embodiments of the present application, the processor 110 is also 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 and the original color coordinates of the screen of the electronic device, and then multiply the brightness compensation coefficient of the screen by the screen brightness value of the screen to obtain the target brightness value; and obtain the first DBV value corresponding to the target brightness value; and based on the first DBV value, perform brightness compensation on the screen.

[0154] The electronic device provided in the embodiment of the present application can implement each process implemented in the above method embodiment and can achieve the same technical effect. To avoid repetition, it will not be described here.

[0155] The beneficial effects of various implementations in this embodiment can be specifically referred to the beneficial effects of the corresponding implementations in the above method embodiment. To avoid repetition, they will not be described again here.

[0156] It should be understood that in the embodiment of the present application, the input unit 104 may include a graphics processor (Graphics Processing Unit, GPU) 1041 and a microphone 1042, and the graphics processor 1041 processes the image data of a static picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 107 includes a touch panel 1071 and at least one of other input devices 1072. The touch panel 1071 is also called a touch screen. The touch panel 1071 may include two parts: 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 keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.

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

[0158] The processor 110 may include one or more processing units; optionally, the processor 110 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 110.

[0159] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

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

[0161] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0162] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0163] An embodiment of the present application provides a computer program / program product, which is stored in a storage medium. The program / program product is executed by at least one processor to implement the various processes of the above-mentioned method embodiment and can achieve the same technical effect. To avoid repetition, it will not be described here.

[0164] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0165] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0166] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. A screen color adjustment method, characterized in that: The method comprises: Determine a target screen color temperature value that matches current ambient light parameters of the electronic device, wherein the ambient light parameters include an ambient illumination value and an ambient light color temperature value; 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, the RGB value of each pixel in the screen is adjusted.

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

3. The method according to claim 1 or 2, characterized in that: In the case where the ambient illumination value is greater than or equal to the screen brightness value of the screen, the screen is in a reflected light mode, and the target screen color temperature value is determined based on the ambient light color temperature value; or, In a case where the ambient illumination value is less than the screen brightness value of the screen, the screen is in a self-luminous mode, and the target screen color temperature value is the color temperature value of the white point in the screen.

4. The method according to claim 1, characterized in that The adjusting the RGB value of each pixel in the screen based on the first color coordinate corresponding to the target screen color temperature value and the original color coordinate of the screen of the electronic device includes: Obtaining an initial RGB value of a first pixel in the screen; Based on the first color coordinates and the original color coordinates, performing a color adaptation transformation on the initial RGB value to obtain a first RGB value; Obtaining a second RGB value based on the first RGB value and a brightness compensation coefficient of the screen; The RGB value of the first pixel is adjusted to the second RGB value.

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

6. The method according to claim 4, characterized in that Before obtaining the second RGB value based on the first RGB value and the brightness compensation coefficient of the screen, the method further includes: Obtaining a first RGB value corresponding to a second pixel point in the screen, where the second pixel point is a white point in the screen; The maximum color value among the first RGB values ​​corresponding to the second pixel point is used as the brightness compensation coefficient.

7. The method according to claim 1, characterized in that After 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, the method further includes: Multiplying the brightness compensation coefficient of the screen by the screen brightness value of the screen to obtain a target brightness value; Acquire a first DBV value corresponding to the target brightness value; Based on the first DBV value, brightness compensation is performed on the screen.

8. A screen color adjustment device, characterized in that: The device comprises: a determination module and an adjustment module; The determination module is used to determine a target screen color temperature value that matches the current ambient light parameters of the electronic device, wherein the ambient light parameters include an ambient light illumination value and an ambient light color temperature value; 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 determination module and the original color coordinates of the screen of the electronic device.

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

10. An electronic device, characterized in that: It comprises a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the screen color adjustment method according to any one of claims 1 to 7 are implemented.

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

Cited By

  • Display method and device, computer readable storage medium and program product

    CN121034203A

  • Adjusting method and device of display equipment and display equipment

    CN121438754A