CN109817152B - Screen brightness adjusting method and related product - Google Patents

Screen brightness adjusting method and related product Download PDF

Info

Publication number
CN109817152B
CN109817152B CN201910282312.9A CN201910282312A CN109817152B CN 109817152 B CN109817152 B CN 109817152B CN 201910282312 A CN201910282312 A CN 201910282312A CN 109817152 B CN109817152 B CN 109817152B
Authority
CN
China
Prior art keywords
value
light sensation
color depth
light
determining
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910282312.9A
Other languages
Chinese (zh)
Other versions
CN109817152A (en
Inventor
贾玉虎
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201910282312.9A priority Critical patent/CN109817152B/en
Publication of CN109817152A publication Critical patent/CN109817152A/en
Application granted granted Critical
Publication of CN109817152B publication Critical patent/CN109817152B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Controls And Circuits For Display Device (AREA)
  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)

Abstract

The embodiment of the application discloses a screen brightness adjusting method and a related product, which are applied to electronic equipment, wherein the electronic equipment comprises a display screen and a light sensor arranged in a preset area relative to the display screen, and the method further comprises the following steps: acquiring the RGB color depth value of each pixel point in the preset area, the first screen brightness level of the display screen and the first light sensation value detected by the light sensor; determining a reference light sensation value according to the RGB color depth value of each pixel point and a preset light sensation calculation strategy, and determining a target light sensation value according to the reference light sensation value and the first screen brightness level; determining a current ambient light sensation value according to the first light sensation value and the target light sensation value; and adjusting the screen brightness level of the display screen according to the ambient light sensation value. The embodiment of the application is favorable for improving the accuracy of the electronic equipment for detecting the ambient light, and further adjusting the brightness of the display screen with the adaptation according to the ambient light, so that the user experience is improved.

Description

Screen brightness adjusting method and related product
Technical Field
The application relates to the technical field of screen display, in particular to a display screen brightness adjusting method and a related product.
Background
With the progress of science and technology, more and more electronic devices are provided with display screens; usually, a light sensor is disposed near the display screen to detect the brightness of the ambient light, so as to intelligently adjust the screen brightness of the display screen. However, with the technical progress of display construction and the pursuit of users for large screens, more and more full-screen electronic devices, such as full-screen notebook computers, full-screen mobile phones, full-screen tablet computers and the like, appear. The front of the electronic device does not have more space to place the sensors, but only under the display screen. When the light sensor detects the brightness of the ambient light, part of the display screen can enter the light sensor by self-luminescence, which affects the accuracy of the light sensor for detecting the ambient light.
Disclosure of Invention
The embodiment of the application provides a screen brightness adjusting method and a related product, so as to improve the accuracy of electronic equipment for detecting ambient light.
In a first aspect, an embodiment of the present application provides a screen brightness adjusting method, which is applied to an electronic device, where the electronic device includes a display screen and a light sensor arranged in a preset area of the display screen, and the method includes:
acquiring the RGB color depth value of each pixel point in the preset area, the first screen brightness level of the display screen and the first light sensation value detected by the light sensor;
determining a reference light sensation value according to the RGB color depth value of each pixel point and a preset light sensation calculation strategy, wherein the reference light sensation value is a screen light sensation value after error compensation, the error is a first difference value between an actual screen light sensation value and an original screen light sensation value caused by the light emitting characteristics of the pixel points in a preset area of the display screen, and the original screen light sensation value is obtained by adding and summing an R light sensation value, a G light sensation value and a B light sensation value corresponding to the preset area;
determining a target light sensation value according to the reference light sensation value and the first screen brightness level;
determining a current ambient light sensation value according to the first light sensation value and the target light sensation value;
and adjusting the screen brightness level of the display screen according to the ambient light sensation value.
In a second aspect, an embodiment of the present application provides a screen brightness adjusting apparatus applied to an electronic device, where the electronic device includes a display screen and a light sensor disposed opposite to a preset region of the display screen, the screen brightness adjusting apparatus includes a processing unit,
the processing unit is used for acquiring the RGB color depth value of each pixel point in the current preset area, the first screen brightness level of the display screen and the first light sensation value detected by the light sensor; the reference light sensation value is a screen light sensation value after error compensation, the error is a first difference value between an actual screen light sensation value and an original screen light sensation value caused by the light emitting characteristics of the pixels in the preset area of the display screen, and the original screen light sensation value is obtained by adding and summing an R light sensation value, a G light sensation value and a B light sensation value corresponding to the preset area; and for determining a target light sensation value based on the reference light sensation value and the first screen brightness level; the system is used for determining a current ambient light sensation value according to the first light sensation value and the target light sensation value; and the display screen is used for adjusting the screen brightness level of the display screen according to the ambient light sensation value.
In a third aspect, an embodiment of the present application provides an electronic device, including a processor, a memory, a communication interface, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the processor, and the program includes instructions for executing steps in any method of the first aspect of the embodiment of the present application.
In a fourth aspect, the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program for electronic data exchange, where the computer program makes a computer perform part or all of the steps described in any one of the methods in the second aspect of the present application.
In a fifth aspect, the present application provides a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to perform some or all of the steps described in any one of the methods of the second aspect of the present application. The computer program product may be a software installation package.
It can be seen that, in the embodiment of the present application, the electronic device obtains an RGB color depth value of each pixel point in the current preset area, a first screen brightness level of the display screen, and a first light sensation value detected by the light sensor; determining a reference light sensation value according to the RGB color depth value of each pixel point and a preset light sensation calculation strategy; determining a target light sensation value according to the reference light sensation value and the first screen brightness level; determining a current ambient light sensation value according to the first light sensation value and the target light sensation value; and adjusting the screen brightness level of the display screen according to the ambient light sensation value. The reference light sensation value is a screen light sensation value after error compensation, the error is a first difference value between an actual screen light sensation value and an original screen light sensation value caused by light emitting characteristics of pixels in the preset area of the display screen, and the original screen light sensation value is obtained by adding and summing an R light sensation value, a G light sensation value and a B light sensation value corresponding to the preset area. Therefore, the electronic equipment can calculate the target light sensing value caused by light emission of the display screen in the light sensing value detected by the light sensor according to the display condition of the preset area of the display screen and the light emitting characteristic of the current screen material, so that the current environment light sensing value is determined, the problem that the light sensor is influenced by light emission of the display screen when the light sensor is placed under the display screen to detect the environment light is solved, and the accuracy of environment light detection is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic diagram of a display module and a position of a light sensor of an electronic device according to an embodiment of the present disclosure;
fig. 2A is a schematic flowchart of a method for adjusting screen brightness according to an embodiment of the present disclosure;
FIG. 2B is a diagram of measured data from the light sensor at different RGB color depth values for the reference device;
FIG. 3 is a schematic flowchart of another screen brightness adjustment method provided in the embodiments of the present application;
FIG. 4 is a schematic flowchart of another screen brightness adjustment method provided in the embodiments of the present application;
fig. 5 is a schematic structural diagram of an electronic device provided in an embodiment of the present application;
fig. 6 is a block diagram illustrating functional units of a screen brightness adjusting apparatus according to an embodiment of the present disclosure.
Detailed Description
The following describes embodiments of the present application in detail.
Referring to fig. 1, fig. 1 is a schematic diagram of a display module and a position of an optical sensor of an electronic device according to an embodiment of the present disclosure, where the electronic device 100 includes a display screen 101 and an optical sensor 102; the display screen 101 is provided with a preset area 103. When the electronic device 100 performs screen brightness adjustment, the electronic device 100 first obtains a total light sensation value currently detected by the light sensor 102; meanwhile, acquiring a current first screen brightness level of the display screen 101 and RGB color depth values of a first number of pixel points included in a preset area; the electronic equipment 100 calculates color depth average values respectively associated with R, G and B according to RGB color depth values of the first number of pixels, and obtains light sensation values respectively associated with R, G and B according to color depth average values respectively associated with R, G and B and light sensation value calculation formulas respectively associated with R, G and B; adding R, G and B respectively associated light sensation values to obtain an original screen light sensation value; calculating R, G gray values of the synthesized colors B according to the average values of the color depths respectively associated with R, G and B, and calculating light sensation error values according to the gray values of the synthesized colors; subtracting the light sensation error value from the original screen light sensation value to obtain a reference light sensation value; a target light sensation value is determined based on the reference light sensation value and the first screen brightness level. And subtracting the target light sensation value from the total light sensation value to obtain the current ambient light sensation value. And adjusting the brightness of the display screen according to the current ambient light sensation value. The electronic device 100 may include various handheld devices, vehicle-mounted devices, wearable devices, computing devices or other processing devices connected to a wireless modem with wireless communication functions, as well as various forms of User Equipment (UE), Mobile Stations (MS), terminal Equipment (terminal device), and so on.
Referring to fig. 2A, fig. 2A is a schematic flowchart of a method for adjusting screen brightness according to an embodiment of the present application, and the method is applied to an electronic device, where the electronic device includes a display screen and a light sensor arranged in a preset area corresponding to the display screen; as shown in the figure, the screen brightness adjusting method includes:
step 201, the electronic device obtains an RGB color depth value of each pixel point in the preset area, a first screen brightness level of the display screen, and a first light sensation value detected by the light sensor;
RGB represents an RGB color scheme, which is a color standard in the industry and obtains various colors by changing three color channels of red (R), green (G), and blue (B) and superimposing the three color channels on each other, where RGB represents three channels of red, green, and blue. Each pixel consists of a red R, green G and blue B chip. Where R, G and B each have 256 levels of color depth values, numerically represented as from 0, 1, 2.
The screen brightness level is preset according to the display brightness of the display screen of the electronic equipment. For example, if the screen brightness level of the electronic device is 1023, the screen brightness level corresponding to 1023 is the maximum display brightness, and the screen brightness level corresponding to 0, 1-1022 is uniformly set according to the display brightness.
The first light sensation value is a light sensation value detected by the sensor, and the reasons for generating the light sensation value can be divided into ambient light and local display screen luminescence.
Step 202, the electronic equipment determines a reference light sensation value according to the RGB color depth value of each pixel point and a preset light sensation calculation strategy;
step 203, the electronic device determines a target light sensation value according to the reference light sensation value and the first screen brightness level;
step 204, the electronic device determines a current ambient light sensation value according to the first light sensation value and the target light sensation value;
wherein, the ambient light sensitivity value is the first light sensitivity value-the target light sensitivity value.
Step 205, the electronic device adjusts the screen brightness level of the display screen according to the ambient light sensation value.
It can be seen that, in the embodiment of the present application, the electronic device obtains an RGB color depth value of each pixel point in the current preset area, a first screen brightness level of the display screen, and a first light sensation value detected by the light sensor; determining a reference light sensation value according to the RGB color depth value of each pixel point and a preset light sensation calculation strategy; determining a target light sensation value according to the reference light sensation value and the first screen brightness level; determining a current ambient light sensation value according to the first light sensation value and the target light sensation value; and adjusting the screen brightness level of the display screen according to the ambient light sensation value. The reference light sensation value is a screen light sensation value after error compensation, the error is a first difference value between an actual screen light sensation value and an original screen light sensation value caused by light emitting characteristics of pixels in the preset area of the display screen, and the original screen light sensation value is obtained by adding and summing an R light sensation value, a G light sensation value and a B light sensation value corresponding to the preset area. Therefore, the electronic equipment can calculate the target light sensing value caused by light emission of the display screen in the light sensing value detected by the light sensor according to the display condition of the preset area of the display screen and the light emitting characteristic of the current screen material, so that the current environment light sensing value is determined, the problem that the light sensor is influenced by light emission of the display screen when the light sensor is placed under the display screen to detect the environment light is solved, and the accuracy of environment light detection is improved.
In one possible example, the electronic device determines a reference light sensation value according to the RGB color depth value of each pixel point and a preset light sensation calculation policy, and the method includes: the electronic equipment determines an R color depth average value, a G color depth average value and a B color depth average value according to the RGB color depth value of each pixel point; determining the R-perception value from the R-color depth average; determining the G light sensation value according to the G color depth average value; determining the B-ray sensitivity value according to the B-color depth average value; determining R, G a grayscale value of a color synthesized by B from the R color depth average, the G color depth average, and the B color depth average; determining the first difference value according to the gray scale value; and determining the reference light sensitivity value according to the R light sensitivity value, the G light sensitivity value, the B light sensitivity value and the first difference value.
The Gray scale value is a Gray scale value of the RGB composite color, and may be calculated according to a preset Gray scale value formula, for example, the standard formula is Gray-scale formula of R0.299 + G0.587 + B0.114; the Gray value calculation formula of the reference device provided by the embodiment of the application is Gray 0.42R + 0.38G + 0.2B; the gray value calculation formula can be set to different gray value calculation formulas according to specific electronic equipment, and is not limited uniquely here. The reference equipment is an electronic equipment product of the same type and the same model as those provided by the embodiment of the application. The data of the reference equipment is known, and the electronic equipment in the embodiment of the application can obtain the data required by the local terminal by combining the local terminal test data and the data of the reference equipment.
Wherein the reference photosensitivity value is the R photosensitivity value + the G photosensitivity value + the B photosensitivity value-the first difference.
Therefore, in this example, the electronic device can determine the reference light sensitivity value through the local RGB color depth value, so as to determine the target light sensitivity value detected by the light sensor due to the light emission of the display screen subsequently by combining with the brightness level of the display screen, and then obtain the accurate ambient light sensitivity value by combining with the light sensitivity value detected by the light sensor, thereby improving the calculation accuracy of the ambient light sensitivity value.
In one possible example, the electronic device determines the R-illuminant value from the R-color depth average; determining the G light sensation value according to the G color depth average value; determining the B-illuminant value from the B-color depth average, comprising: the electronic equipment acquires R, G and B light sensation value calculation formulas respectively associated with the B light sensation value calculation formulas; determining calibration coefficients corresponding to the local terminals R, G and B respectively; determining the R light sensation value according to the R color depth average value, the R-related light sensation value calculation formula and a calibration coefficient corresponding to R; determining the G light sensation value according to the G color depth average value, the G-related light sensation value calculation formula and a calibration coefficient corresponding to G; and determining the B light sensation value according to the B color depth average value, the B related light sensation value calculation formula and a calibration coefficient corresponding to B.
The light sensation value calculation formula is calculated according to actual measurement data of the reference equipment. The light sensation value calculation formula comprises an R light sensation value calculation formula, a G light sensation value calculation formula and a B light sensation value calculation formula.
Wherein, the light sensation value detected by the light sensor of the electronic device under the condition that at least two monochromatic lights of R, G and B emit light is not necessarily equal to the sum of the R light sensation value, the G light sensation value and the B light sensation value corresponding to the monochromatic lights; is determined according to the light-emitting characteristics of the display screen. For example, if the display screen is made of OLED material, the light sensor detects the corresponding monochromatic light sensitivity values when the red R, green G and blue B emit monochromatic light, and when at least two of the red R, green G and blue B emit light, the mixed light needs to add the monochromatic light sensitivity values and compensate for errors to obtain the light sensitivity value actually detected by the light sensor.
For example, as shown in FIG. 2B, FIG. 2B is a plot of measured data for a light sensor at different RGB color depth values for a reference device. R corresponds to the R color depth average value; g corresponds to the average G color depth; b corresponds to the average value of the depth of the B color; where red, green, blue and white represent the light sensitivity values that the reference device can detect at the preset brightness level corresponding to the front R, G and the B value. Fig. 2B lists the light-sensing values that can be detected by the light sensors when the display screen displays white light W when the display screen displays three monochromatic lights of red R, green G and blue B and R, G and B are equal. In this example, the display screen of the reference device is made of OLED material, and due to the light emitting characteristics of the OLED material, the light sensor detects the white light W with a light sensation value not equal to the simple addition of three monochromatic lights detected by the light sensor, but R + G + B > W, as shown in fig. 2B, when monochromatic red R corresponds to 255, the light sensor detects 468 as the light sensation value, when monochromatic red G corresponds to 255, the light sensor detects 472 as the light sensation value, when monochromatic red B corresponds to 255, the light sensor detects 243 as the light sensation value, and when R, G and B of the white light correspond to 255 respectively, the light sensor detects 930 as the light sensation value, i.e., 468+472+243 > 930. Since monochromatic red light R corresponds to different light sensation values when the monochromatic red light R is different in color depth value, an equation of N times is required to be set for calculation and fitting to obtain a light sensation value calculation formula so as to express a functional relation between the color depth value and the light sensation value, wherein N is more than or equal to 2, the higher the number of times of N is, the higher the obtained fitting degree is, and the more complicated the calculation is; taking N ═ 3 in this example, we obtained the R photopic value ═ R calibration factor [0.00002 ^ R ^3+0.001 ^ R ^2+0.4942 ^ R ]; the same principle can be obtained, G light sensation value is G calibration coefficient [ 0.00002G ^3+ 0.0009G ^2+ 0.3465G ]; b light sensitivity value is B calibration coefficient [ 0.000008B ^3+ 0.001B ^2+ 0.1564B ].
The calibration coefficient is obtained by comparing light sensation values detected by the light sensor according to the home equipment and the reference equipment under a first condition, wherein the first condition refers to the condition that the RGB color depth values are equal and the color is the same. For example, when the home device displays monochromatic red R and has a color depth of 255, the light sensitivity value is 430; referring to FIG. 2B, the reference device has a light sensitivity value of 468 when displaying monochromatic light, red R, and a color depth of 255; the R calibration factor is 430/468.
As can be seen, in this example, the electronic device can calculate the R, G, and B light sensitivity values.
In one possible example, the electronic device determines the first difference value according to the grayscale value, including: the electronic equipment acquires reference data and actual test data of local equipment, and determines a difference value calibration coefficient according to the reference data and the actual test data; and acquiring a preset difference value calculation formula, and determining the first difference value according to the gray scale value, the difference value calibration coefficient and the difference value calculation formula.
The calculation principle of the difference calibration coefficient is the same as that of the R calibration coefficient, the G calibration coefficient and the B calibration coefficient. For example, when the local device is at R255, G255, and B255, the actual test data R + G + B-W is 240; referring to fig. 2B, when the reference device is at R255, G255, and B255, the reference data R + G + B-W is at 253, and the difference calibration coefficient is at 240/253.
The preset difference value calculation formula is obtained by calculating a gray value according to actually measured data, and according to the gray value and a difference value R + G + B-W obtained through actual measurement, an equation of N times is set to calculate, wherein N is larger than or equal to 2, and the higher the number of times of N is, the higher the obtained fitting degree is. For example, take N as 3, and set the first difference as a (gray level value) ^3+ B (gray level value) ^2+ C (gray level value); firstly, calculating M groups of gray-scale values corresponding to M groups of RGB values of white W in FIG. 2B, substituting the M groups of gray-scale values into the gray-scale values in the formula, substituting R + G + B-W corresponding to the M groups of RGB values into a first difference value in the formula, solving to obtain A, B and C values, and further determining a difference value calculation formula. Referring to fig. 2B, in the present example, the first difference is 0.00003 ^3+0.0043 ^2+0.3718 (gray scale values).
In this example, the electronic device can calculate the first difference value so as to calculate the reference photosensitivity value by combining the R photosensitivity value, the G photosensitivity value and the B photosensitivity value.
In one possible example, the electronic device determining the reference light sensitivity value according to the R light sensitivity value, the G light sensitivity value, the B light sensitivity value, and the first difference value includes: the electronic equipment substitutes the R light sensitivity value, the G light sensitivity value, the B light sensitivity value and the first difference value into a first preset formula to obtain the reference light sensitivity value, wherein the first preset formula comprises the following steps: the reference photosensitivity value is R photosensitivity value + G photosensitivity value + B photosensitivity value-first difference.
As can be seen, in this example, the electronic device can determine the reference photosensitivity value according to the R photosensitivity value, the G photosensitivity value, the B photosensitivity value, and the first difference value. So as to obtain a target light sensation value caused by the light emission of the display screen through the subsequent calculation of the reference light sensation value, and further accurately determine the ambient light sensation value.
In one possible example, the electronic device determines the R color depth average, the G color depth average, and the B color depth average according to the RGB color depth values of each pixel point, including: the electronic equipment acquires a preset gamma curve; determining the brightness values corresponding to R, G and B in each pixel point according to the gamma curve; determining R, G brightness average values respectively corresponding to B according to the brightness values respectively corresponding to R, G and B in each pixel point; determining the R color depth mean, the G color depth mean, and the B color depth mean according to the brightness mean and the gamma curve corresponding to R, G and B, respectively.
Determining R, G brightness average values respectively corresponding to B according to the brightness values respectively corresponding to R, G and B in each pixel point; if the number of the pixel points corresponding to each pixel point is a first number, a first number of R brightness values, a first number of G brightness values and a first number of B brightness values can be obtained; calculating the average value of the first number of R brightness values to obtain an R brightness average value, calculating the average value of the first number of G brightness values to obtain a G brightness average value, and calculating the average value of the first number of B brightness values to obtain a B brightness average value; and determining an R color depth average value corresponding to the R brightness average value, a G color depth average value corresponding to the G brightness average value and a B color depth average value corresponding to the B brightness average value according to the gamma curve.
As can be seen, in this example, the electronic device may determine the color average values respectively corresponding to the preset regions R, G and B by combining the gamma curve, rather than directly taking the average value of the color depth values of each pixel point in the preset region to obtain the color depth average value, so that the obtained color average value better conforms to the actual situation, and the target light sensation value obtained by subsequent calculation according to the color depth average value is more accurate.
In one possible example, the electronic device determines the R color depth average, the G color depth average, and the B color depth average according to the RGB color depth values of each pixel point, including: the electronic equipment acquires a preset gamma curve, and divides the gamma curve into N intervals, wherein N is more than or equal to 2; determining a weight value calculation formula corresponding to each interval in the N intervals, wherein the weight value calculation formula represents a functional relation between the weight value and the color depth; substituting the RGB color depth value of each pixel point into the weight value calculation formula to calculate weight values corresponding to R, G and B in each pixel point respectively; calculating to obtain weight average values respectively associated with R, G and B according to the weight values respectively corresponding to R, G and B in each pixel point; and calculating to obtain the R color depth average value, the G color depth average value and the B color depth average value according to the weight average values respectively associated with the R, G and the B and a weight value calculation formula corresponding to each interval.
For example, the preset gamma curve is set to be a gamma curve with a gamma value of 2.2, the abscissa x is the RGB color depth value, y is the weight, the RGB color depth value 255 corresponds to a weight of 100, and 0 corresponds to a weight of 0; then, x may be divided into 5 sections according to the curve, and a weight value calculation formula corresponding to each section is determined according to the curve of each section, as shown below:
Figure BDA0002022073250000091
therefore, the weight value can be calculated if the color depth value is known, and the color depth value can be calculated if the weight value is known.
Therefore, in this example, the electronic device determines, according to the gamma curve, a weighted value calculation formula corresponding to the different color depth value intervals, and then obtains a color average value of the pixels in the preset area according to the weighted value calculation formula and the RGB color depth value of each pixel, instead of directly obtaining the average value of the color depth values of each pixel in the preset area to obtain the color depth average value, so that the target light sensation value obtained by subsequent calculation according to the color depth average value is more accurate.
In one possible example, the electronic device adjusts a screen brightness level of the display screen according to the ambient light sensation value, including: the electronic equipment acquires a first brightness interval corresponding to the first screen brightness level; judging whether the ambient light sensitivity value is in the first brightness interval or not; if so, not executing screen brightness adjustment operation aiming at the display screen; if not, the ambient light sensation value is used as a query identifier, a preset matching relationship is queried, a second screen brightness level corresponding to the query identifier is obtained, the screen brightness of the display screen is adjusted to be the second screen brightness level, and the preset matching relationship comprises the corresponding relationship between the light sensation value and the screen brightness level.
Therefore, in this example, the electronic device does not directly adjust the brightness of the display screen according to the ambient light sensor after determining the ambient light, but first determines whether the ambient light is in a first brightness interval corresponding to the first screen brightness level, and only when the ambient light is not in the first brightness interval, the brightness of the display screen is adjusted according to the ambient light, so that the frequent adjustment of the brightness of the display screen under the condition that the ambient light changes weakly is avoided, and the user experience is improved.
In one possible example, the electronic device determines a target light sensation value according to the reference light sensation value and the first screen brightness level, including: the electronic equipment is used for: and substituting the target light sensation value into the first screen brightness level to calculate to obtain the target light sensation value.
The screen brightness level of the display screen is in a direct proportion relation with the light sensation value. For example, current electronic devices have 1024 levels of screen brightness, with numbers denoted 0, 1, 2 … … 1023; the test data for the reference device, e.g., the reference light sensitivity value, is calculated at a maximum screen brightness level of 1023. And the screen brightness level of the current electronic device is 800, the target light sensitivity value is 800/1023.
Therefore, in this example, after the electronic device determines the reference light sensitivity value according to the RGB color depth value, the target light sensitivity value is accurately calculated by combining the screen brightness, so that the detection accuracy of the electronic device on the ambient light sensitivity value is improved.
Referring to fig. 3, fig. 3 is a schematic flow chart of a screen brightness adjusting method provided in an embodiment of the present application, and the method is applied to an electronic device, where the electronic device includes a display screen and a light sensor arranged in a preset area of the display screen; as shown in the figure, the screen brightness adjusting method includes:
301, acquiring, by the electronic device, an RGB color depth value of each pixel point in the preset area, a first screen brightness level of the display screen, and a first light sensation value detected by the light sensor;
step 302, the electronic device determines an average value of R color depth, an average value of G color depth, and an average value of B color depth according to the RGB color depth value of each pixel point;
step 303, the electronic device determines the R-ray sensitivity value according to the R-color depth average value; determining the G light sensation value according to the G color depth average value; determining the B-ray sensitivity value according to the B-color depth average value;
step 304, the electronic device determines R, G a gray level value of a color synthesized by B according to the R color depth average value, the G color depth average value and the B color depth average value; determining the first difference value according to the gray scale value;
step 305, the electronic device determines the reference light sensitivity value according to the R light sensitivity value, the G light sensitivity value, the B light sensitivity value and the first difference value;
step 306, the electronic equipment determines a target light sensation value according to the reference light sensation value and the first screen brightness level;
step 307, the electronic device determines a current ambient light sensation value according to the first light sensation value and the target light sensation value;
step 308, the electronic device obtains a first brightness interval corresponding to the first screen brightness level;
step 309, the electronic device determines whether the ambient light sensation value is within the first brightness interval;
and 310, if not, the electronic equipment queries a preset matching relationship by using the ambient light sensitivity value as a query identifier, acquires a second screen brightness level corresponding to the query identifier, and adjusts the screen brightness of the display screen to be the second screen brightness level, wherein the preset matching relationship comprises a corresponding relationship between the light sensitivity value and the screen brightness level.
It can be seen that, in the embodiment of the present application, the electronic device obtains an RGB color depth value of each pixel point in the current preset area, a first screen brightness level of the display screen, and a first light sensation value detected by the light sensor; determining a reference light sensation value according to the RGB color depth value of each pixel point and a preset light sensation calculation strategy; determining a target light sensation value according to the reference light sensation value and the first screen brightness level; determining a current ambient light sensation value according to the first light sensation value and the target light sensation value; and adjusting the screen brightness level of the display screen according to the ambient light sensation value. Therefore, the electronic equipment can calculate the target light sensing value caused by light emission of the display screen in the light sensing value detected by the light sensor according to the display condition of the preset area of the display screen and the light emitting characteristic of the current screen material, so that the current environment light sensing value is determined, the problem that the light sensor is influenced by light emission of the display screen when the light sensor is placed under the display screen to detect the environment light is solved, and the accuracy of environment light detection is improved.
In addition, the electronic equipment can determine the reference light sensitivity value through the local RGB color depth value, so that the target light sensitivity value detected by the light sensor due to the fact that the display screen emits light can be determined by combining the brightness level of the display screen subsequently, an accurate environment light sensitivity value can be obtained by combining the light sensor, and the calculation accuracy of the environment light sensitivity value is improved.
In addition, electronic equipment can not directly adjust display screen luminance according to ambient light sensor after determining ambient light, but at first judges whether ambient light is in the first luminance interval that first screen brightness level corresponds, just can adjust the luminance of display screen according to ambient light under the condition that ambient light is not in first luminance interval, has avoided the luminance of frequent adjustment display screen under the condition that ambient light changes weakly, has promoted user experience.
Referring to fig. 4, fig. 4 is a schematic flowchart of a screen brightness adjusting method according to an embodiment of the present application, where the screen brightness adjusting method is applied to an electronic device, where the electronic device includes a display screen and a light sensor arranged in a preset area corresponding to the display screen; as shown in the figure, the screen brightness adjusting method includes:
step 401, the electronic device obtains an RGB color depth value of each pixel point in the preset area, a first screen brightness level of the display screen, and a first light sensation value detected by the light sensor;
step 402, the electronic equipment determines an average value of R color depth, an average value of G color depth and an average value of B color depth according to the RGB color depth value of each pixel point;
in step 403, the electronic device obtains R, G and B light sensation value calculation formulas respectively associated with the two components.
Step 404, the electronic device determines calibration coefficients corresponding to the home terminal R, G and the home terminal B, respectively;
step 405, the electronic device determines the R light sensation value according to the R color depth average value, the light sensation value calculation formula associated with R, and a calibration coefficient corresponding to R; determining the G light sensation value according to the G color depth average value, the G-related light sensation value calculation formula and a calibration coefficient corresponding to G; determining the B light sensation value according to the B color depth average value, the B related light sensation value calculation formula and a calibration coefficient corresponding to B;
step 406, the electronic device determines R, G a gray level value of a color synthesized by B according to the R color depth average value, the G color depth average value and the B color depth average value;
step 407, the electronic device obtains reference data and actual test data of the local device, and determines a difference calibration coefficient according to the reference data and the actual test data;
step 408, the electronic device obtains a preset difference calculation formula, and determines the first difference according to the gray scale value, the difference calibration coefficient and the difference calculation formula;
step 409, the electronic equipment determines the reference light sensitivity value according to the R light sensitivity value, the G light sensitivity value, the B light sensitivity value and the first difference value;
step 410, the electronic device determines a target light sensation value according to the reference light sensation value and the first screen brightness level;
step 411, the electronic device determines a current ambient light sensation value according to the first light sensation value and the target light sensation value;
in step 412, the electronic device adjusts the screen brightness level of the display screen according to the ambient light sensation value.
It can be seen that, in the embodiment of the present application, the electronic device obtains an RGB color depth value of each pixel point in the current preset area, a first screen brightness level of the display screen, and a first light sensation value detected by the light sensor; determining a reference light sensation value according to the RGB color depth value of each pixel point and a preset light sensation calculation strategy; determining a target light sensation value according to the reference light sensation value and the first screen brightness level; determining a current ambient light sensation value according to the first light sensation value and the target light sensation value; and adjusting the screen brightness level of the display screen according to the ambient light sensation value. Therefore, the electronic equipment can calculate the target light sensing value caused by light emission of the display screen in the light sensing value detected by the light sensor according to the display condition of the preset area of the display screen and the light emitting characteristic of the current screen material, so that the current environment light sensing value is determined, the problem that the light sensor is influenced by light emission of the display screen when the light sensor is placed under the display screen to detect the environment light is solved, and the accuracy of environment light detection is improved.
Consistent with the embodiments shown in fig. 2A, fig. 3, and fig. 4, please refer to fig. 5, and fig. 5 is a schematic structural diagram of an electronic device 500 according to an embodiment of the present application, as shown in the figure, the electronic device 500 includes an application processor 510, a memory 520, a communication interface 530, and one or more programs 521, where the one or more programs 521 are stored in the memory 520 and configured to be executed by the application processor 510, and the one or more programs 521 include instructions for performing the following steps;
acquiring the RGB color depth value of each pixel point in the preset area, the first screen brightness level of the display screen and the first light sensation value detected by the light sensor;
determining a reference light sensation value according to the RGB color depth value of each pixel point and a preset light sensation calculation strategy, wherein the reference light sensation value is a screen light sensation value after error compensation, the error is a first difference value between an actual screen light sensation value and an original screen light sensation value caused by the light emitting characteristics of the pixel points in a preset area of the display screen, and the original screen light sensation value is obtained by adding and summing an R light sensation value, a G light sensation value and a B light sensation value corresponding to the preset area;
determining a target light sensation value according to the reference light sensation value and the first screen brightness level;
determining a current ambient light sensation value according to the first light sensation value and the target light sensation value;
and adjusting the screen brightness level of the display screen according to the ambient light sensation value.
It can be seen that, in the embodiment of the present application, the electronic device obtains an RGB color depth value of each pixel point in the current preset area, a first screen brightness level of the display screen, and a first light sensation value detected by the light sensor; determining a reference light sensation value according to the RGB color depth value of each pixel point and a preset light sensation calculation strategy; determining a target light sensation value according to the reference light sensation value and the first screen brightness level; determining a current ambient light sensation value according to the first light sensation value and the target light sensation value; and adjusting the screen brightness level of the display screen according to the ambient light sensation value. Therefore, the electronic equipment can calculate the target light sensing value caused by light emission of the display screen in the light sensing value detected by the light sensor according to the display condition of the preset area of the display screen and the light emitting characteristic of the current screen material, so that the current environment light sensing value is determined, the problem that the light sensor is influenced by light emission of the display screen when the light sensor is placed under the display screen to detect the environment light is solved, and the accuracy of environment light detection is improved.
In one possible example, in the aspect of determining the reference light sensation value according to the RGB color depth value of each pixel point and the preset light sensation calculation policy, the instructions in the program are specifically configured to perform the following operations: determining an average value of R color depth, an average value of G color depth and an average value of B color depth according to the RGB color depth value of each pixel point; determining the R-perception value from the R-color depth average; determining the G light sensation value according to the G color depth average value; determining the B-ray sensitivity value according to the B-color depth average value; determining R, G a grayscale value of a color synthesized by B from the R color depth average, the G color depth average, and the B color depth average; determining the first difference value according to the gray scale value; and determining the reference light sensitivity value according to the R light sensitivity value, the G light sensitivity value, the B light sensitivity value and the first difference value.
In one possible example, the R-perception value is determined at the said from the R-color depth average; determining the G light sensation value according to the G color depth average value; in determining the B light perception value according to the B color depth average value, the instructions in the program are specifically configured to: r, G obtaining light sensation value calculation formulas respectively related to B; determining calibration coefficients corresponding to the local terminals R, G and B respectively; determining the R light sensation value according to the R color depth average value, the R-related light sensation value calculation formula and a calibration coefficient corresponding to R; determining the G light sensation value according to the G color depth average value, the G-related light sensation value calculation formula and a calibration coefficient corresponding to G; and determining the B light sensation value according to the B color depth average value, the B related light sensation value calculation formula and a calibration coefficient corresponding to B.
In one possible example, in said determining said first difference value from said gray-scale value, the instructions in said program are specifically configured to perform the following operations: acquiring reference data and actual test data of local equipment, and determining a difference value calibration coefficient according to the reference data and the actual test data; and acquiring a preset difference value calculation formula, and determining the first difference value according to the gray scale value, the difference value calibration coefficient and the difference value calculation formula.
In one possible example, in the determining the reference photosensitivity value according to the R photosensitivity value, the G photosensitivity value, the B photosensitivity value and the first difference value, the instructions in the program are specifically configured to perform the following operations: substituting the R light sensitivity value, the G light sensitivity value, the B light sensitivity value and the first difference value into a first preset formula to obtain the reference light sensitivity value, wherein the first preset formula comprises the following steps: the reference photosensitivity value is R photosensitivity value + G photosensitivity value + B photosensitivity value-difference.
In one possible example, in the aspect of determining the R color depth average value, the G color depth average value, and the B color depth average value according to the RGB color depth value of each pixel point, the instructions in the program are specifically configured to perform the following operations: acquiring a preset gamma curve; determining the brightness values corresponding to R, G and B in each pixel point according to the gamma curve; determining R, G brightness average values respectively corresponding to B according to the brightness values respectively corresponding to R, G and B in each pixel point; determining the R color depth mean, the G color depth mean, and the B color depth mean according to the brightness mean and the gamma curve corresponding to R, G and B, respectively.
In one possible example, in the aspect of determining the R color depth average value, the G color depth average value, and the B color depth average value according to the RGB color depth value of each pixel point, the instructions in the program are specifically configured to perform the following operations: acquiring a preset gamma curve, and dividing the gamma curve into N intervals, wherein N is more than or equal to 2; determining a weight value calculation formula corresponding to each interval in the N intervals, wherein the weight value calculation formula represents a functional relation between the weight value and the color depth; substituting the RGB color depth value of each pixel point into the weight value calculation formula to calculate weight values corresponding to R, G and B in each pixel point respectively; calculating to obtain weight average values respectively associated with R, G and B according to the weight values respectively corresponding to R, G and B in each pixel point; and calculating to obtain the R color depth average value, the G color depth average value and the B color depth average value according to the weight average values respectively associated with the R, G and the B and a weight value calculation formula corresponding to each interval.
In one possible example, in the adjusting the screen brightness level of the display screen according to the ambient light sensation value, the instructions in the program are specifically configured to: acquiring a first brightness interval corresponding to the first screen brightness level; judging whether the ambient light sensitivity value is in the first brightness interval or not; if so, not executing screen brightness adjustment operation aiming at the display screen; if not, the ambient light sensation value is used as a query identifier, a preset matching relationship is queried, a second screen brightness level corresponding to the query identifier is obtained, the screen brightness of the display screen is adjusted to be the second screen brightness level, and the preset matching relationship comprises the corresponding relationship between the light sensation value and the screen brightness level.
In one possible example, in said determining a target light sensation value based on said reference light sensation value and said first screen brightness level, the instructions in said program are specifically configured to perform the following operations: according to a second preset formula: and substituting the target light sensation value into the first screen brightness level to calculate to obtain the target light sensation value.
The above description has introduced the solution of the embodiment of the present application mainly from the perspective of the method-side implementation process. It is understood that the electronic device comprises corresponding hardware structures and/or software modules for performing the respective functions in order to realize the above-mentioned functions. Those of skill in the art will readily appreciate that the present application is capable of hardware or a combination of hardware and computer software implementing the various illustrative elements and algorithm steps described in connection with the embodiments provided herein. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiment of the present application, the electronic device may be divided into the functional units according to the method example, for example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit. It should be noted that the division of the unit in the embodiment of the present application is schematic, and is only a logic function division, and there may be another division manner in actual implementation.
Fig. 6 is a block diagram of functional units of a screen brightness adjustment device 600 according to an embodiment of the present application. The screen brightness adjusting apparatus 600 is applied to an electronic device including a display screen and a light sensor disposed opposite to a preset region of the display screen, the screen brightness adjusting apparatus 600 includes a processing unit 601, wherein,
the processing unit 601 is configured to obtain an RGB color depth value of each pixel point in the preset region, a first screen brightness level of the display screen, and a first light sensation value detected by the light sensor; the reference light sensation value is a screen light sensation value after error compensation, the error is a first difference value between an actual screen light sensation value and an original screen light sensation value caused by the light emitting characteristics of the pixels in the preset area of the display screen, and the original screen light sensation value is obtained by adding and summing an R light sensation value, a G light sensation value and a B light sensation value corresponding to the preset area; and for determining a target light sensation value based on the reference light sensation value and the first screen brightness level; the system is used for determining a current ambient light sensation value according to the first light sensation value and the target light sensation value; and the display screen is used for adjusting the screen brightness level of the display screen according to the ambient light sensation value.
The screen brightness adjusting apparatus 600 may further include a communication unit 602 and a storage unit 603, where the storage unit 603 is used for storing program codes and data of the electronic device. The processing unit 601 may be a processor, the communication unit 602 may be a touch display screen or a transceiver, and the storage unit 603 may be a memory.
It can be seen that, in the embodiment of the present application, the electronic device obtains an RGB color depth value of each pixel point in the current preset area, a first screen brightness level of the display screen, and a first light sensation value detected by the light sensor; determining a reference light sensation value according to the RGB color depth value of each pixel point and a preset light sensation calculation strategy; determining a target light sensation value according to the reference light sensation value and the first screen brightness level; determining a current ambient light sensation value according to the first light sensation value and the target light sensation value; and adjusting the screen brightness level of the display screen according to the ambient light sensation value. The electronic equipment can calculate a target light sensation value caused by the display screen luminescence in the light sensation value detected by the light sensor according to the display condition of the preset area of the display screen and the luminescence characteristic of the current screen material, so as to determine the current environment light sensation value, solve the problem that the light sensor is influenced by the display screen luminescence when placed under the display screen to detect the environment light, and improve the accuracy of the environment light detection.
In one possible example, in the aspect of determining the reference light sensation value according to the RGB color depth value of each pixel point and the preset light sensation calculation policy, the processing unit 601 is specifically configured to: determining an average value of R color depth, an average value of G color depth and an average value of B color depth according to the RGB color depth value of each pixel point; determining the R-perception value from the R-color depth average; determining the G light sensation value according to the G color depth average value; determining the B-ray sensitivity value according to the B-color depth average value; determining R, G a grayscale value of a color synthesized by B from the R color depth average, the G color depth average, and the B color depth average; determining the first difference value according to the gray scale value; and determining the reference light sensitivity value according to the R light sensitivity value, the G light sensitivity value, the B light sensitivity value and the first difference value.
In one possible example, the R-perception value is determined at the said from the R-color depth average; determining the G light sensation value according to the G color depth average value; in determining the B light sensation value according to the B color depth average value, the processing unit 601 is specifically configured to: r, G obtaining light sensation value calculation formulas respectively related to B; determining calibration coefficients corresponding to the local terminals R, G and B respectively; determining the R light sensation value according to the R color depth average value, the R-related light sensation value calculation formula and a calibration coefficient corresponding to R; determining the G light sensation value according to the G color depth average value, the G-related light sensation value calculation formula and a calibration coefficient corresponding to G; and determining the B light sensation value according to the B color depth average value, the B related light sensation value calculation formula and a calibration coefficient corresponding to B.
In one possible example, in the aspect of determining the first difference value according to the gray-scale value, the processing unit 601 is specifically configured to: acquiring reference data and actual test data of local equipment, and determining a difference value calibration coefficient according to the reference data and the actual test data; and acquiring a preset difference value calculation formula, and determining the first difference value according to the gray scale value, the difference value calibration coefficient and the difference value calculation formula.
In one possible example, in the aspect of determining the reference photosensitivity value according to the R photosensitivity value, the G photosensitivity value, the B photosensitivity value and the first difference value, the processing unit 601 is specifically configured to: substituting the R light sensitivity value, the G light sensitivity value, the B light sensitivity value and the first difference value into a first preset formula to obtain the reference light sensitivity value, wherein the first preset formula comprises the following steps: the reference photosensitivity value is R photosensitivity value + G photosensitivity value + B photosensitivity value-difference.
In a possible example, in the aspect of determining the R color depth average value, the G color depth average value, and the B color depth average value according to the RGB color depth value of each pixel point, the processing unit 601 is specifically configured to: acquiring a preset gamma curve; determining the brightness values corresponding to R, G and B in each pixel point according to the gamma curve; determining R, G brightness average values respectively corresponding to B according to the brightness values respectively corresponding to R, G and B in each pixel point; determining the R color depth mean, the G color depth mean, and the B color depth mean according to the brightness mean and the gamma curve corresponding to R, G and B, respectively.
In a possible example, in the aspect of determining the R color depth average value, the G color depth average value, and the B color depth average value according to the RGB color depth value of each pixel point, the processing unit 601 is specifically configured to: acquiring a preset gamma curve, and dividing the gamma curve into N intervals, wherein N is more than or equal to 2; determining a weight value calculation formula corresponding to each interval in the N intervals, wherein the weight value calculation formula represents a functional relation between the weight value and the color depth; substituting the RGB color depth value of each pixel point into the weight value calculation formula to calculate weight values corresponding to R, G and B in each pixel point respectively; calculating to obtain weight average values respectively associated with R, G and B according to the weight values respectively corresponding to R, G and B in each pixel point; and calculating to obtain the R color depth average value, the G color depth average value and the B color depth average value according to the weight average values respectively associated with the R, G and the B and a weight value calculation formula corresponding to each interval.
In one possible example, in terms of the adjusting the screen brightness level of the display screen according to the ambient light sensation value, the processing unit 601 is specifically configured to: acquiring a first brightness interval corresponding to the first screen brightness level; judging whether the ambient light sensitivity value is in the first brightness interval or not; if so, not executing screen brightness adjustment operation aiming at the display screen; if not, the ambient light sensation value is used as a query identifier, a preset matching relationship is queried, a second screen brightness level corresponding to the query identifier is obtained, the screen brightness of the display screen is adjusted to be the second screen brightness level, and the preset matching relationship comprises the corresponding relationship between the light sensation value and the screen brightness level.
In one possible example, in the aspect of determining the target light sensation value according to the reference light sensation value and the first screen brightness level, the processing unit 601 is specifically configured to: according to a second preset formula: and substituting the target light sensation value into the first screen brightness level to calculate to obtain the target light sensation value.
Embodiments of the present application also provide a computer storage medium, where the computer storage medium stores a computer program for electronic data exchange, the computer program enabling a computer to execute part or all of the steps of any one of the methods described in the above method embodiments, and the computer includes an electronic device.
Embodiments of the present application also provide a computer program product comprising a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any of the methods as described in the above method embodiments. The computer program product may be a software installation package, the computer comprising an electronic device.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the above-described division of the units is only one type of division of logical functions, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be an electric or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit may be stored in a computer readable memory if it is implemented in the form of a software functional unit and sold or used as a stand-alone product. Based on such understanding, the technical solution of the present application may be substantially implemented or a part of or all or part of the technical solution contributing to the prior art may be embodied in the form of a software product stored in a memory, and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the above-mentioned method of the embodiments of the present application. And the aforementioned memory comprises: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable memory, which may include: flash Memory disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The foregoing detailed description of the embodiments of the present application has been presented to illustrate the principles and implementations of the present application, and the above description of the embodiments is only provided to help understand the method and the core concept of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (11)

1. A screen brightness adjusting method is applied to an electronic device, wherein the electronic device comprises a display screen and a light sensor arranged in a preset area relative to the display screen, and the method comprises the following steps:
acquiring the RGB color depth value of each pixel point in the preset area, the first screen brightness level of the display screen and the first light sensation value detected by the light sensor;
determining a reference light sensation value according to the RGB color depth value of each pixel point and a preset light sensation calculation strategy, wherein the reference light sensation value is a screen light sensation value after error compensation, the error is a first difference value between an actual screen light sensation value and an original screen light sensation value caused by the light emitting characteristics of the pixel points in a preset area of the display screen, and the original screen light sensation value is obtained by adding and summing an R light sensation value, a G light sensation value and a B light sensation value corresponding to the preset area;
determining a target light sensation value according to the reference light sensation value and the first screen brightness level, comprising: according to a second preset formula: calculating a target light sensation value = a reference light sensation value, a screen brightness level/a preset reference level and the first screen brightness level to obtain the target light sensation value;
determining a current ambient light sensation value according to the first light sensation value and the target light sensation value, including: according to the formula: the ambient light sensitivity value = a first light sensitivity value-a target light sensitivity value, and the ambient light sensitivity value is obtained;
and adjusting the screen brightness level of the display screen according to the ambient light sensation value.
2. The method as claimed in claim 1, wherein the determining the reference light sensation value according to the RGB color depth value of each pixel point and a preset light sensation calculation strategy comprises:
determining an average value of R color depth, an average value of G color depth and an average value of B color depth according to the RGB color depth value of each pixel point;
determining the R-perception value from the R-color depth average; determining the G light sensation value according to the G color depth average value; determining the B-ray sensitivity value according to the B-color depth average value;
determining R, G a grayscale value of a color synthesized by B from the R color depth average, the G color depth average, and the B color depth average; determining the first difference value according to the gray scale value;
and determining the reference light sensitivity value according to the R light sensitivity value, the G light sensitivity value, the B light sensitivity value and the first difference value.
3. The method of claim 2, wherein said determining said R-light perception value from said R-color depth average value; determining the G light sensation value according to the G color depth average value; determining the B-illuminant value from the B-color depth average, comprising:
r, G obtaining light sensation value calculation formulas respectively related to B;
determining calibration coefficients corresponding to the local terminals R, G and B respectively;
determining the R light sensation value according to the R color depth average value, the R-related light sensation value calculation formula and a calibration coefficient corresponding to R; determining the G light sensation value according to the G color depth average value, the G-related light sensation value calculation formula and a calibration coefficient corresponding to G; and determining the B light sensation value according to the B color depth average value, the B related light sensation value calculation formula and a calibration coefficient corresponding to B.
4. The method of claim 2 or 3, wherein said determining the first difference value from the gray scale value comprises:
acquiring reference data and actual test data of local equipment, and determining a difference value calibration coefficient according to the reference data and the actual test data;
and acquiring a preset difference value calculation formula, and determining the first difference value according to the gray scale value, the difference value calibration coefficient and the difference value calculation formula.
5. The method of claim 2 or 3, wherein determining the reference light sensitivity value according to the R light sensitivity value, the G light sensitivity value, the B light sensitivity value and the first difference value comprises:
substituting the R light sensitivity value, the G light sensitivity value, the B light sensitivity value and the first difference value into a first preset formula to obtain the reference light sensitivity value, wherein the first preset formula comprises the following steps: reference photosensitivity = R photosensitivity + G photosensitivity + B photosensitivity-first difference.
6. The method as claimed in claim 2 or 3, wherein said determining R color depth average, G color depth average and B color depth average according to RGB color depth value of each pixel point comprises:
acquiring a preset gamma curve, and determining the brightness values corresponding to R, G and B in each pixel point according to the gamma curve;
determining R, G brightness average values respectively corresponding to B according to the brightness values respectively corresponding to R, G and B in each pixel point;
determining the R color depth mean, the G color depth mean, and the B color depth mean according to the brightness mean and the gamma curve corresponding to R, G and B, respectively.
7. The method as claimed in claim 2 or 3, wherein said determining R color depth average, G color depth average and B color depth average according to RGB color depth value of each pixel point comprises:
acquiring a preset gamma curve, and dividing the gamma curve into N intervals, wherein N is more than or equal to 2; determining a weight value calculation formula corresponding to each interval in the N intervals, wherein the weight value calculation formula represents a functional relation between the weight value and the color depth;
substituting the RGB color depth value of each pixel point into the weight value calculation formula to calculate weight values corresponding to R, G and B in each pixel point respectively; calculating to obtain weight average values respectively associated with R, G and B according to the weight values respectively corresponding to R, G and B in each pixel point;
and calculating to obtain the R color depth average value, the G color depth average value and the B color depth average value according to the weight average values respectively associated with the R, G and the B and a weight value calculation formula corresponding to each interval.
8. The method of any of claims 1-3, wherein said adjusting a screen brightness level of said display screen based on said ambient light sensation value comprises:
acquiring a first brightness interval corresponding to the first screen brightness level;
judging whether the ambient light sensitivity value is in the first brightness interval or not;
if so, not executing screen brightness adjustment operation aiming at the display screen;
if not, the ambient light sensation value is used as a query identifier, a preset matching relationship is queried, a second screen brightness level corresponding to the query identifier is obtained, the screen brightness of the display screen is adjusted to be the second screen brightness level, and the preset matching relationship comprises the corresponding relationship between the light sensation value and the screen brightness level.
9. A screen brightness adjusting device is applied to electronic equipment, the electronic equipment comprises a display screen and a light sensor arranged opposite to a preset area of the display screen, the screen brightness adjusting device comprises a processing unit, wherein,
the processing unit is used for acquiring the RGB color depth value of each pixel point in the current preset area, the first screen brightness level of the display screen and the first light sensation value detected by the light sensor; the reference light sensation value is a screen light sensation value after error compensation, the error is a first difference value between an actual screen light sensation value and an original screen light sensation value caused by the light emitting characteristics of the pixels in the preset area of the display screen, and the original screen light sensation value is obtained by adding and summing an R light sensation value, a G light sensation value and a B light sensation value corresponding to the preset area; and means for determining a target light sensation value based on the reference light sensation value and the first screen brightness level, comprising: according to a second preset formula: calculating a target light sensation value = a reference light sensation value, a screen brightness level/a preset reference level and the first screen brightness level to obtain the target light sensation value; and determining a current ambient light sensation value according to the first light sensation value and the target light sensation value, comprising: according to the formula: the ambient light sensitivity value = a first light sensitivity value-a target light sensitivity value, and the ambient light sensitivity value is obtained; and the display screen is used for adjusting the screen brightness level of the display screen according to the ambient light sensation value.
10. An electronic device comprising a processor, a memory, a communication interface, and one or more programs stored in the memory and configured to be executed by the processor, the programs comprising instructions for performing the steps in the method of any of claims 1-8.
11. A computer-readable storage medium, characterized in that a computer program for electronic data exchange is stored, wherein the computer program causes a computer to perform the method according to any one of claims 1-8.
CN201910282312.9A 2019-04-09 2019-04-09 Screen brightness adjusting method and related product Active CN109817152B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910282312.9A CN109817152B (en) 2019-04-09 2019-04-09 Screen brightness adjusting method and related product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910282312.9A CN109817152B (en) 2019-04-09 2019-04-09 Screen brightness adjusting method and related product

Publications (2)

Publication Number Publication Date
CN109817152A CN109817152A (en) 2019-05-28
CN109817152B true CN109817152B (en) 2022-03-11

Family

ID=66611608

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910282312.9A Active CN109817152B (en) 2019-04-09 2019-04-09 Screen brightness adjusting method and related product

Country Status (1)

Country Link
CN (1) CN109817152B (en)

Families Citing this family (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110475017A (en) * 2019-07-18 2019-11-19 深圳传音控股股份有限公司 Smart machine and its display lightness regulating method
CN110730262A (en) * 2019-10-30 2020-01-24 北京字节跳动网络技术有限公司 Environment brightness value detection method and device and electronic equipment
CN111179882B (en) * 2020-03-04 2021-07-16 Oppo(重庆)智能科技有限公司 Display screen brightness adjusting method and device, electronic equipment and storage medium
CN111276087B (en) * 2020-03-24 2021-09-14 联想(北京)有限公司 Screen brightness adjusting method and device and electronic equipment
CN113539192B (en) 2020-04-21 2023-10-20 北京小米移动软件有限公司 Ambient light detection method and device, electronic equipment and storage medium
CN113709275A (en) * 2020-05-21 2021-11-26 北京小米移动软件有限公司 Ambient light determination method and device, terminal equipment and storage medium
CN112017577B (en) * 2020-08-31 2023-10-24 维沃移动通信有限公司 Screen display calibration method and device
CN114187860B (en) * 2020-09-15 2024-03-12 北京小米移动软件有限公司 Spectrum information determining method and device, electronic equipment and medium
CN112599089A (en) * 2020-12-09 2021-04-02 深圳市汇顶科技股份有限公司 Display screen light leakage value acquisition method, electronic device and storage medium
CN112365833B (en) * 2021-01-15 2021-04-30 深圳阜时科技有限公司 Method for detecting and correcting brightness adjustment value of light sensation under screen
CN114023276B (en) * 2021-10-12 2022-09-27 苏州蓝博控制技术有限公司 Adaptive soft display control method, control system, control device and computer readable storage medium for liquid crystal display device
CN114117324B (en) * 2021-11-16 2024-08-23 京东方科技集团股份有限公司 Correction method for sensing parameters of light sensor, electronic equipment and storage medium
CN114038443B (en) * 2021-11-23 2023-02-14 杭州逗酷软件科技有限公司 Brightness adjusting method and related device
CN114281629B (en) * 2021-12-27 2023-10-20 深圳市汇顶科技股份有限公司 Method and device for estimating screen light leakage amount and electronic equipment
CN114441033A (en) * 2022-01-25 2022-05-06 Tcl通讯科技(成都)有限公司 Ambient light intensity calibration method and device, electronic equipment and storage medium
CN114495863B (en) * 2022-03-07 2023-04-28 Oppo广东移动通信有限公司 Screen brightness control method, device, equipment, storage medium and program product
CN115083331A (en) * 2022-06-30 2022-09-20 青岛海信移动通信技术股份有限公司 Method, device, equipment and medium for determining light sensation influence value and ambient light brightness
CN115979419B (en) * 2022-12-21 2024-01-05 武汉市聚芯微电子有限责任公司 Ambient light detection method, device, equipment and storage medium
CN118130056B (en) * 2024-03-12 2024-09-24 北京美屏科技有限公司 LCD display system performance test method, device, equipment and storage medium

Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101145332A (en) * 2006-09-14 2008-03-19 英华达(上海)科技有限公司 Screen brightness regulating device and method for regulating electronic device screen brightness
CN101789230A (en) * 2009-01-24 2010-07-28 联想(北京)有限公司 Electronic equipment and display device screen brightness adjusting method thereof
US8508556B2 (en) * 2009-04-20 2013-08-13 Wintek Corporation Image display method
CN103401970A (en) * 2013-07-23 2013-11-20 广东欧珀移动通信有限公司 Method and system for adjusting display screen backlight and mobile terminal
CN104778939A (en) * 2015-04-29 2015-07-15 京东方科技集团股份有限公司 Display brightness adjustment method and device of display device and display device
CN105118436A (en) * 2015-09-16 2015-12-02 中国科学院上海高等研究院 AMOLED display driving circuit and brightness adjustment method
CN106251827A (en) * 2016-07-26 2016-12-21 广东欧珀移动通信有限公司 Control method and control device
WO2017131410A1 (en) * 2016-01-29 2017-08-03 Samsung Electronics Co., Ltd. Electronic device and method for controlling the same
CN107077830A (en) * 2016-10-25 2017-08-18 深圳市大疆创新科技有限公司 Screen brightness regulation method and unmanned aerial vehicle (UAV) control end suitable for unmanned aerial vehicle (UAV) control end
CN107945769A (en) * 2017-11-22 2018-04-20 广东欧珀移动通信有限公司 Ambient light intensity detection method, device, storage medium and electronic equipment
CN107957294A (en) * 2017-11-22 2018-04-24 广东欧珀移动通信有限公司 Ambient light intensity detection method, device, storage medium and electronic equipment
CN108257581A (en) * 2017-12-22 2018-07-06 维沃移动通信有限公司 A kind of method of adjustment of light intensity sensing device, mobile terminal and brightness of display screen
CN108494974A (en) * 2018-05-10 2018-09-04 Oppo广东移动通信有限公司 Adjusting method, mobile terminal and the storage medium of display brightness
CN108847199A (en) * 2018-06-22 2018-11-20 北京小米移动软件有限公司 Brightness determines method and device
CN109119044A (en) * 2018-10-16 2019-01-01 Oppo(重庆)智能科技有限公司 Electronic equipment
CN109147679A (en) * 2018-09-28 2019-01-04 Oppo广东移动通信有限公司 Backlight adjusting method, device, electronic equipment and the storage medium of electronic equipment

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102402942B (en) * 2011-11-02 2014-05-28 深圳创维-Rgb电子有限公司 Method for improving energy efficiency index of LED (light-emitting diode) display screen and LED display screen
KR102588126B1 (en) * 2016-11-01 2023-10-13 삼성전자주식회사 Display driver integrated circuit and display driving system including the same
KR20180058363A (en) * 2016-11-24 2018-06-01 삼성전자주식회사 Display apparatus and control method thereof
CN109409320B (en) * 2018-11-08 2022-03-29 Oppo广东移动通信有限公司 Fingerprint acquisition method and related equipment

Patent Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101145332A (en) * 2006-09-14 2008-03-19 英华达(上海)科技有限公司 Screen brightness regulating device and method for regulating electronic device screen brightness
CN101789230A (en) * 2009-01-24 2010-07-28 联想(北京)有限公司 Electronic equipment and display device screen brightness adjusting method thereof
US8508556B2 (en) * 2009-04-20 2013-08-13 Wintek Corporation Image display method
CN103401970A (en) * 2013-07-23 2013-11-20 广东欧珀移动通信有限公司 Method and system for adjusting display screen backlight and mobile terminal
CN104778939A (en) * 2015-04-29 2015-07-15 京东方科技集团股份有限公司 Display brightness adjustment method and device of display device and display device
CN105118436A (en) * 2015-09-16 2015-12-02 中国科学院上海高等研究院 AMOLED display driving circuit and brightness adjustment method
WO2017131410A1 (en) * 2016-01-29 2017-08-03 Samsung Electronics Co., Ltd. Electronic device and method for controlling the same
CN106251827A (en) * 2016-07-26 2016-12-21 广东欧珀移动通信有限公司 Control method and control device
CN107077830A (en) * 2016-10-25 2017-08-18 深圳市大疆创新科技有限公司 Screen brightness regulation method and unmanned aerial vehicle (UAV) control end suitable for unmanned aerial vehicle (UAV) control end
CN107945769A (en) * 2017-11-22 2018-04-20 广东欧珀移动通信有限公司 Ambient light intensity detection method, device, storage medium and electronic equipment
CN107957294A (en) * 2017-11-22 2018-04-24 广东欧珀移动通信有限公司 Ambient light intensity detection method, device, storage medium and electronic equipment
CN108257581A (en) * 2017-12-22 2018-07-06 维沃移动通信有限公司 A kind of method of adjustment of light intensity sensing device, mobile terminal and brightness of display screen
CN108494974A (en) * 2018-05-10 2018-09-04 Oppo广东移动通信有限公司 Adjusting method, mobile terminal and the storage medium of display brightness
CN108847199A (en) * 2018-06-22 2018-11-20 北京小米移动软件有限公司 Brightness determines method and device
CN109147679A (en) * 2018-09-28 2019-01-04 Oppo广东移动通信有限公司 Backlight adjusting method, device, electronic equipment and the storage medium of electronic equipment
CN109119044A (en) * 2018-10-16 2019-01-01 Oppo(重庆)智能科技有限公司 Electronic equipment

Also Published As

Publication number Publication date
CN109817152A (en) 2019-05-28

Similar Documents

Publication Publication Date Title
CN109817152B (en) Screen brightness adjusting method and related product
CN109859689B (en) Screen brightness adjusting method and related product
CN107068037B (en) Gray scale correction method and gray scale correction device of display panel
CN111161691B (en) Compensation method and compensation device for display screen and display device
CN107682682B (en) Method for automatically correcting color coordinate and brightness of display screen and related equipment
CN113284456B (en) Method and device for determining correction coefficient of display screen lamp point and computer equipment
CN106782303A (en) A kind of display bearing calibration of display panel, apparatus and system
CN111243550B (en) Adjusting device, adjusting method and medium for gamma voltage and white balance of display screen
KR101986797B1 (en) Image processing apparatus and method
KR101428366B1 (en) Method and apparatus for adaptive display calibration
CN105741771A (en) Light emitting element brightness determining method, brightness determining device and mobile terminal
CN107346653B (en) GAMMA curve adjusting method and device based on deep learning
CN109949744B (en) Gamma voltage correction method and device
CN110223650B (en) White balance parameter generation method for four-color pixel and display device
CN109584792B (en) Method for quickly adjusting gray scale gamma of O L ED screen
US20130342557A1 (en) Color Correction of Images
CN112700746B (en) Brightness adjusting method of display device, terminal device and storage medium
CN112599088B (en) Screen light leakage and ambient light detection method, chip, terminal and storage medium
CN116860143A (en) Image display processing method and device
CN114093292A (en) Brightness parameter correction method, device and equipment and brightness compensation system
JP2015158626A (en) Calibration device, calibration method and program
CN110896466B (en) White balance adjustment method and system of display device
CN115979419B (en) Ambient light detection method, device, equipment and storage medium
US20150294643A1 (en) Correcting method, correcting apparatus and method for establishing color performance database for display apparatus
CN110599981B (en) Screen brightness compensation system and method and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant