CN111179861B - Brightness calibration method and device, storage medium and terminal - Google Patents
Brightness calibration method and device, storage medium and terminal Download PDFInfo
- Publication number
- CN111179861B CN111179861B CN201911265210.2A CN201911265210A CN111179861B CN 111179861 B CN111179861 B CN 111179861B CN 201911265210 A CN201911265210 A CN 201911265210A CN 111179861 B CN111179861 B CN 111179861B
- Authority
- CN
- China
- Prior art keywords
- brightness
- value
- current
- brightness value
- backlight
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G3/00—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
- G09G3/20—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters
- G09G3/34—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters by control of light from an independent source
- G09G3/3406—Control of illumination source
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G2320/00—Control of display operating conditions
- G09G2320/06—Adjustment of display parameters
- G09G2320/0626—Adjustment of display parameters for control of overall brightness
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Liquid Crystal Display Device Control (AREA)
Abstract
The embodiment of the application discloses a brightness calibration method, a brightness calibration device, a storage medium and a terminal. The method comprises the following steps: acquiring a current brightness value detected by a current light sensor; determining a backlight level corresponding to the current brightness value from a brightness storage set based on the current brightness value, wherein the brightness storage set comprises the brightness value detected by the brightness sensor and the backlight level corresponding to the brightness value; determining the light leakage brightness value of the backlight source according to the backlight grade and the maximum light leakage value of the light sensor; an actual luminance value of the current ambient light is determined based on the current luminance value and the light leakage luminance value. According to the embodiment, through algorithm compensation, the influence of light leakage of the backlight source of the display screen on the reading of the light sensor is corrected, the actual brightness value of current environment light can be detected, the terminal is enabled to conduct brightness adjustment according to the actual brightness value, and the backlight adjustment accuracy of the terminal can be effectively improved.
Description
Technical Field
The application relates to the field of mobile terminal application, in particular to a brightness calibration method, a brightness calibration device, a storage medium and a terminal.
Background
Currently, a mobile terminal can implement an automatic brightness calibration function, which needs to work in conjunction with a Light Sensor.
In the related art, a full-screen mobile terminal is a mainstream product, and when the full-screen mobile terminal is matched with an LCD (Liquid Crystal Display), most of the full-screen mobile terminals are matched with a narrow-slit Light Sensor Light-transmitting scheme due to limited top space. However, this solution is susceptible to LCD backlight Light leakage, resulting in a large difference between the Light Sensor reading and the actual ambient Light, and a difference in the degree of Light leakage between individuals, which affects the Light Sensor reading.
Disclosure of Invention
The embodiment of the application provides a brightness calibration method, a brightness calibration device, a storage medium and a terminal, which can effectively improve the backlight adjustment accuracy of the terminal.
The embodiment of the application provides a brightness calibration method, which comprises the following steps:
acquiring a current brightness value detected by a current light sensor;
determining a backlight level corresponding to the current brightness value from a brightness storage set based on the current brightness value, wherein the brightness storage set comprises the brightness value detected by the brightness sensor and the backlight level corresponding to the brightness value;
determining the light leakage brightness value of the backlight source according to the backlight grade and the maximum light leakage value of the light sensor;
an actual luminance value of the current ambient light is determined based on the current luminance value and the light leakage luminance value.
Correspondingly, the embodiment of the present application further provides a luminance calibration apparatus, including:
the acquisition unit is used for acquiring a current brightness value detected by the current light sensor;
a determining unit, configured to determine, based on the current brightness value, a backlight level corresponding to the current brightness value from a brightness storage set, where the brightness storage set includes the brightness value detected by the brightness sensor and the backlight level corresponding to the brightness value;
the first processing unit is used for determining the light leakage brightness value of the backlight source according to the backlight grade and the maximum light leakage value of the light sensor;
the second processing unit determines an actual luminance value of the current ambient light based on the current luminance value and the leak luminance value.
Accordingly, the present embodiment also provides a storage medium, where the storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to perform the steps in the brightness calibration method as described above.
Correspondingly, the embodiment of the present application further provides a terminal, which includes a processor and a memory, where the memory stores a plurality of instructions, and the processor loads the instructions to execute the steps in the brightness calibration method described above.
The embodiment of the application discloses a brightness calibration method, a device, a storage medium and a terminal, which are used for calibrating the brightness by acquiring the current brightness value detected by a current light sensor; determining a backlight level corresponding to the current brightness value from a brightness storage set based on the current brightness value, wherein the brightness storage set comprises the brightness value detected by the brightness sensor and the backlight level corresponding to the brightness value; determining the light leakage brightness value of the backlight source according to the backlight grade and the maximum light leakage value of the light sensor; and determining the actual brightness value of the current environment light based on the current brightness value and the light leakage brightness value, so that the backlight adjustment accuracy of the terminal can be effectively improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart illustrating a first brightness calibration method according to an embodiment of the present disclosure.
Fig. 2 is a flowchart illustrating a second brightness calibration method according to an embodiment of the present disclosure.
Fig. 3 is a block diagram of a first luminance calibration apparatus according to an embodiment of the present disclosure.
Fig. 4 is a block diagram of a second luminance calibration apparatus according to an embodiment of the present disclosure.
Fig. 5 is a schematic structural diagram of a terminal according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly and completely with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Based on the foregoing problems, embodiments of the present application provide a first brightness calibration method, apparatus, storage medium, and terminal, which can improve the efficiency of brightness calibration of the terminal. The following are detailed below. It should be noted that the following description of the embodiments is not intended to limit the preferred order of the embodiments.
Referring to fig. 1, fig. 1 is a schematic flowchart illustrating a luminance calibration method according to an embodiment of the present disclosure. The luminance calibration method may be applied to mobile terminals such as mobile phones, tablet computers, notebook computers, palm top computers, Portable Media Players (PMPs), and fixed terminals such as desktop computers. The specific flow of the brightness calibration method can be as follows:
101. and acquiring a current brightness value detected by the current light sensor.
Specifically, the current brightness value can be acquired through the light sensor inside the terminal, and the light sensor can be arranged above the terminal screen, so that the brightness value of the environment where the current terminal is located can be detected conveniently.
The light sensor may detect a brightness value of the surrounding environment in real time when the user is using the terminal, for example, the brightness value may be 10, 20, 30, 40Lux (brightness unit: Lux), or the like. The light sensor can automatically adjust the screen brightness of the terminal according to the current light brightness of the terminal, and an optimal visual effect is brought to a user. For example, in dark environments, the backlight of the screen of the handheld device may automatically dim or otherwise be dazzling.
Since the terminal is in the on state, the light sensor is always in the working state, but in a high-brightness environment or a general brightness environment, such as an outdoor environment in the daytime, an indoor lighting environment, and the like. Under the similar high-brightness environment or the general brightness environment, when the user uses the terminal, the brightness of the terminal is increased, and the dazzling light cannot be generated to influence the visual field of the user. At this time, the terminal does not need to acquire the brightness value of the actual environment, and relevant execution steps are omitted, so that the power consumption of the terminal is saved.
For example, in some embodiments, after the step "acquiring the current brightness value detected by the current light sensor", the following steps may be further included:
comparing the current brightness value with a preset threshold value;
and if the current brightness value is smaller than a preset threshold value, executing a step of determining a backlight grade corresponding to the current brightness value from a brightness storage set based on the current brightness value.
Specifically, the current brightness value is compared with a preset threshold value, the preset threshold value can be a minimum brightness value acceptable to human eyes, and even in the environment of the preset threshold value, too high brightness of a display screen of the terminal cannot cause light discomfort of a user.
The preset threshold may be set in a terminal memory when the terminal leaves a factory, or may be set by a user through customization. The preset threshold may be a fixed value or may be a plurality of values, for example, the preset threshold may be a fixed value, and the preset threshold may be obtained according to an experimental result before the terminal leaves a factory.
For example, the current brightness value of the current environment detected by the brightness sensor may be 50Lux, the preset threshold may be 100Lux, and comparing the current brightness value with the preset threshold may determine that the current brightness value is less than the preset threshold.
When the current brightness value is smaller than the preset threshold value, it can be determined that under the current environment, too large brightness adjustment of the terminal display screen causes discomfort of light in the field of vision of a user, which affects user experience, and at this time, the influence of light leakage of a backlight source of the terminal display screen needs to be eliminated, so that the brightness value of the current environment is obtained.
102. And determining the backlight level corresponding to the current brightness value from a brightness storage set based on the current brightness value, wherein the brightness storage set comprises the brightness value detected by the brightness sensor and the backlight level corresponding to the brightness value.
Specifically, the backlight level of the current brightness is obtained from the brightness storage set. The brightness storage set may be stored in the terminal memory and may be stored in various forms, for example, the brightness storage set may be stored in the terminal memory in the form of a file. The brightness storage set may include brightness values detected by the brightness sensor and backlight levels of the display screen backlight sources corresponding to the brightness values. The terminal display screen may set different brightness levels, and different values may be set for the backlight requirements of the display screen in response, where the values may be the backlight levels, for example, the brightness levels may be determined according to brightness values, the backlight levels may be determined based on the brightness levels, the brightness levels may be 0 to 100, the backlight levels may be 0 to 1000, and the like, and may be set according to actual situations.
For example, the current brightness value of the current environment detected by the terminal may be 50Lux, the brightness level corresponding to the current brightness value may be determined to be 1 according to the brightness storage set, the backlight level may be determined to be 100 according to the brightness level being 1, and so on.
103. And determining the light leakage brightness value of the backlight source according to the backlight grade and the maximum light leakage value of the light sensor.
Specifically, the light leakage brightness value of the backlight source is determined, and can be obtained according to the backlight level and the maximum light leakage value of the light sensor. The maximum light leakage value of the light sensor is the light leakage value of the terminal display screen when the brightness reaches the maximum value, and the maximum light leakage value can be determined through testing before the terminal leaves a factory. For example, the terminal may be placed in a completely dark environment, that is, without the influence of ambient light, and then the brightness of the display screen of the terminal is adjusted to the maximum brightness value, and the value of the brightness sensor is read, which may be the maximum light leakage value of the display screen of the terminal. The maximum light leakage value may be stored in a luminance storage set.
After the backlight grade corresponding to the current brightness value detected by the light sensor and the maximum light leakage value of the light sensor are obtained, the backlight grade and the maximum light leakage value are processed through a calculation formula according to a preset algorithm, for example, the preset algorithm may be a calculation formula, so that the light leakage brightness value of the display screen backlight source can be obtained.
In some embodiments, the step of "determining a light leakage brightness value of the backlight source according to the backlight level and the maximum light leakage value of the light sensor" may include the following steps:
acquiring the maximum light leakage value and the maximum backlight grade corresponding to the maximum light leakage value from a brightness storage set;
determining a ratio of the backlight level to the maximum backlight level;
and determining the light leakage brightness value according to the ratio and the maximum light leakage value.
Specifically, the maximum light leakage value is obtained from the brightness storage set, and since the maximum light leakage value can be preset in the terminal program, the terminal can directly read the maximum light leakage value through the brightness storage set, for example, the maximum light leakage value may be 100 Lux.
The backlight level and the maximum light leakage value are processed according to a preset algorithm, wherein the preset algorithm may be a calculation formula, and the calculation formula may be L2 ═ BSP/BSPmax × Lmax, wherein L2 may be a light leakage brightness value, BSP may be a backlight level, BSPmax may be a maximum backlight level, and Lmax may be a maximum light leakage value. For example, BSP can be 100, BSPmax can be 1000, Lmax can be 100Lux, and L2, i.e., the light leakage brightness value is 10Lux, can be obtained according to the algorithm processing. The influence of the light leakage value of the current terminal screen on the brightness of the current actual environment detected by the brightness sensor can be obtained through algorithm processing,
104. an actual luminance value of the current ambient light is determined based on the current luminance value and the leak luminance value.
Specifically, after the current brightness value detected by the brightness sensor and the light leakage brightness value of the terminal display screen are obtained, the actual brightness value of the current environment can be determined according to the current brightness value and the light leakage brightness value.
In some implementations, the step of "determining an actual luminance value of the current ambient light based on the current luminance value and the leak luminance value" may include the following process:
and acquiring a difference value between the current brightness value and the light leakage brightness value, wherein the difference value is the actual brightness value.
Specifically, the difference between the current luminance value and the light leakage luminance value is obtained, and the light leakage luminance value may be subtracted from the current luminance value, so that the actual luminance value may be obtained. For example, if the current luminance value may be 50Lux and the leak luminance value may be 10Lux, the actual luminance value may be 40 Lux.
After determining the actual brightness value of the current environment, relevant operations such as brightness adjustment and the like can be performed according to the actual brightness value. For example, in some embodiments, after the step of "determining the actual brightness value of the current ambient light based on the current brightness value and the leak brightness value", the following process may be included:
switching the current brightness value detected by the light sensor to the actual brightness value;
and adjusting the backlight brightness based on the actual brightness value.
Specifically, the current brightness value detected by the light sensor is switched to the actual brightness value, the display value of the current light sensor can be changed, and the display value can be a brightness reading value of the brightness sensor. For example, the current brightness value read by the light sensor may be 50Lux, and after determining the actual brightness value of 40Lux, the display value may be changed from 50 to 40.
After the actual brightness value is determined, the brightness sensor can perform backlight adjustment on the display screen of the terminal, and adjust the brightness of the current display screen to the brightness corresponding to the actual brightness value according to the adjustment corresponding parameters preset by the terminal, so that a comfortable brightness environment can be provided for a user.
In some embodiments, before the step of "performing backlight brightness adjustment based on the actual brightness value", the following steps may be further included:
judging whether the actual brightness value is smaller than a preset minimum brightness value or not;
and if so, adjusting the backlight brightness according to the preset minimum brightness value.
Specifically, whether the actual brightness value is smaller than a preset minimum brightness value or not is judged, the preset minimum brightness value can be 0 and the like, if the actual brightness value obtained according to the algorithm in the steps is smaller than 0, brightness adjustment may not be performed, therefore, when the actual brightness value is smaller than 0, the current actual brightness value can be determined to be 0, and then backlight brightness adjustment can be performed according to the actual brightness value, so that the brightness of the display screen is within an adjustable range, and convenience is brought to a user.
The method comprises the steps of acquiring a current brightness value detected by a current light sensor; determining a backlight level corresponding to the current brightness value from a brightness storage set based on the current brightness value, wherein the brightness storage set comprises the brightness value detected by the brightness sensor and the backlight level corresponding to the brightness value; determining the light leakage brightness value of the backlight source according to the backlight grade and the maximum light leakage value of the light sensor; an actual luminance value of the current ambient light is determined based on the current luminance value and the light leakage luminance value. According to the embodiment, through algorithm compensation, the influence of light leakage of the backlight source on the reading of the light sensor is corrected, the actual brightness value of current environment light can be detected, the terminal is enabled to conduct brightness adjustment according to the actual brightness value, and the backlight adjustment accuracy of the terminal can be effectively improved.
Referring to fig. 2, fig. 2 is a flowchart of a second brightness calibration method according to an embodiment of the present disclosure. In this embodiment, a terminal may be used for example description, and a specific application scenario of the brightness calibration method may be as follows:
201. and the terminal acquires the current brightness value read by the brightness sensor.
Specifically, when the user uses the terminal, the display screen of the terminal may perform backlight brightness adjustment, and a scene in which the terminal performs backlight brightness adjustment may include multiple scenes. For example, when the terminal is moved from a high-luminance environment to a low-luminance environment, or from a low-luminance environment to a high-luminance environment, or the like.
When the terminal detects that the ambient brightness changes, the brightness value of the current environment can be obtained through the brightness sensor, namely the current brightness value can be obtained. The brightness sensor is arranged inside the terminal and can be located in any area inside the terminal, for example, the brightness sensor can be arranged on a display screen of the terminal, and the brightness value of the current environment is conveniently detected.
For example, when the user is using the terminal, after shifting from a high-luminance environment to a low-luminance environment, the luminance sensor may detect the luminance value of the current low-luminance environment, which may be 50 Lux.
202. And the terminal judges whether the current brightness value is smaller than a preset brightness value.
After the terminal acquires the current brightness value of the current environment, the current brightness value may be compared with a preset brightness value. The preset brightness value may be a brightness boundary that affects the user to use the terminal, that is, brightness with an environment brightness value smaller than the brightness value affects the user to use the terminal, and when the environment brightness value is greater than or equal to the brightness value, the user does not affect the user to use the terminal.
For example, the preset brightness value may be 100Lux, which may be obtained by testing data a plurality of times and then storing the preset brightness value in the terminal memory. If the current brightness value is 50Lux and it can be determined that the current brightness value is smaller than the preset brightness value, go to step 203; in some embodiments, if the current brightness value detected by the brightness sensor is greater than or equal to the preset brightness value, step 204 may be executed.
203. And the terminal acquires the maximum light leakage value of the brightness sensor from the brightness storage file.
Specifically, the terminal obtains the maximum light leakage value of the luminance sensor, and can obtain the maximum light leakage value from the luminance storage file. The maximum light leakage value can represent the light leakage brightness value of the backlight source of the display screen when the terminal display screen is set to the maximum brightness under the condition of not being influenced by external environment light. The maximum light leakage value may be set according to experimental data before the terminal leaves a factory, and the maximum light leakage value may be stored in the terminal.
The brightness storage file may be stored in a terminal brightness register, and the brightness storage file may be used to store brightness information, for example, the brightness information may be a brightness sensor reading value, a brightness level, and other relevant brightness parameters.
For example, the maximum light leakage value read by the terminal from the luminance storage file may be 100 Lux.
204. And finishing the operation.
When the current brightness value detected by the brightness sensor is greater than or equal to the preset brightness value and the brightness sensor performs backlight brightness adjustment according to the brightness value of the current environment, the brightness value of the current environment does not have a great influence on the brightness adjustment, that is, the use of the terminal by a user is not affected, so that the following operations do not need to be executed, and only brightness adjustment can be directly performed on the backlight of the display screen.
205. And the terminal acquires the backlight grade corresponding to the current brightness value from the brightness storage file.
Specifically, the brightness storage file may further include a brightness value, a brightness level corresponding to the brightness value, and a backlight level corresponding to the brightness level. For example, the relationship between the brightness value and the corresponding level of brightness may be: when the brightness value is 1-10 Lux, the corresponding brightness level can be 1, when the brightness value is 11-20 Lux, the corresponding brightness level can be 2, and the other brightness values and the corresponding relationship thereof can be analogized to the same.
There may be various corresponding relationships between the brightness level and the backlight level, for example, the brightness level is 1, the backlight level may be 10, the brightness level is 2, the backlight level may be 20, and so on. The brightness value included in the brightness storage file, the brightness level corresponding to the brightness value, and the corresponding relationship between the backlight levels corresponding to the brightness levels can be obtained according to experiments and can be preset in the brightness storage file.
For example, the current luminance value is 50Lux, and according to the correspondence between the luminance value and the luminance level in the luminance file storage file and the backlight level, the luminance level may be 4, and the backlight level may be 40.
206. And the terminal processes the backlight grade and the maximum light leakage value according to a preset algorithm to obtain the light leakage brightness value of the backlight source.
Specifically, the terminal may process the maximum light leakage value of the backlight level by using a preset algorithm to obtain a processing result, and the processing result may be determined as the light leakage brightness value of the backlight source. The preset algorithm may be a calculation formula, and the like, and reference may be specifically made to the above embodiment, and the calculation formula is not described herein for more details.
For example, the backlight level may be 40, and the maximum light leakage value may be 100Lux, and then the backlight level and the maximum light leakage value are processed according to a preset algorithm, so that a light leakage brightness value of 4Lux can be obtained.
207. And the terminal determines the actual brightness value of the current environment according to the current brightness value and the light leakage brightness value.
After the current luminance value and the light leakage luminance value are obtained, the current luminance value and the light leakage luminance value may be processed to obtain an actual luminance value of the current environment. The processing method may be a difference processing between the current luminance value and the leak luminance value.
For example, when the current luminance value is 50Lux and the leak luminance value is 4Lux, an actual luminance value of 46Lux can be obtained. The light leakage brightness value can be calculated according to a preset algorithm, the time brightness value of the current environment is further determined, and the accuracy of brightness adjustment can be improved.
208. And the terminal changes the read value of the brightness sensor into an actual brightness value and adjusts the brightness according to the actual brightness value.
Specifically, after the terminal acquires the actual brightness value of the current environment, the brightness sensor can change the current brightness value into the actual brightness value, further, the brightness sensor adjusts the brightness of the backlight source of the display screen based on the actual brightness value, and the brightness value of the display screen of the current terminal can be adjusted to the proper brightness matched with the current environment, so that the user can use the terminal in the current environment without influencing the visual field due to the light brightness difference.
The method comprises the steps of acquiring a current brightness value detected by a current light sensor; determining a backlight level corresponding to the current brightness value from a brightness storage set based on the current brightness value, wherein the brightness storage set comprises the brightness value detected by the brightness sensor and the backlight level corresponding to the brightness value; determining the light leakage brightness value of the backlight source according to the backlight grade and the maximum light leakage value of the light sensor; an actual luminance value of the current ambient light is determined based on the current luminance value and the light leakage luminance value. In the embodiment, through algorithm compensation, the influence of light leakage of the backlight source on the reading of the light sensor is corrected, the actual brightness value of the current environment light can be detected, the brightness of the terminal is adjusted according to the actual brightness value, and the accuracy of backlight adjustment of the terminal can be effectively improved
In order to better implement the brightness calibration method provided by the embodiments of the present application, the embodiments of the present application further provide an apparatus based on the brightness calibration method. The terms are the same as those in the brightness calibration method, and details of implementation can be referred to the description in the method embodiment.
Referring to fig. 3, fig. 3 is a block diagram of a first luminance calibration apparatus according to an embodiment of the present disclosure, including:
an obtaining unit 301, configured to obtain a current brightness value detected by a current light sensor;
a determining unit 302, configured to determine, based on the current brightness value, a backlight level corresponding to the current brightness value from a brightness storage set, where the brightness storage set includes the brightness value detected by the brightness sensor and the backlight level corresponding to the brightness value;
a first processing unit 303, configured to determine a light leakage brightness value of the backlight source according to the backlight level and the maximum light leakage value of the light sensor;
a second processing unit 304 for determining an actual luminance value of the current ambient light based on the current luminance value and the leak luminance value.
In some embodiments, please refer to fig. 4, and fig. 4 is a block diagram illustrating a second luminance calibration apparatus according to an embodiment of the present disclosure. The determining unit 302 may include:
an obtaining subunit 3021, configured to obtain the maximum light leakage value and a maximum backlight level corresponding to the maximum light leakage value from a brightness storage set;
a first processing subunit 3022, configured to determine a ratio of the backlight level to the maximum backlight level;
a second processing subunit 3023, configured to determine the light leakage brightness value according to the ratio and the maximum light leakage value.
In some embodiments, the second processing unit 304 may include:
and the third processing subunit is configured to obtain a difference between the current luminance value and the light leakage luminance value, where the difference is the actual luminance value.
In some embodiments, the luminance calibration apparatus may further include:
a switching unit, configured to switch the current brightness value detected by the light sensor to the actual brightness value;
and the first adjusting unit is used for adjusting the backlight brightness based on the actual brightness value.
In some embodiments, the luminance calibration apparatus may further include:
the judging unit is used for judging whether the actual brightness value is smaller than a preset minimum brightness value or not;
and the second adjusting unit is used for adjusting the backlight brightness according to the preset minimum brightness value.
In some embodiments, the brightness adjusting apparatus may further include:
the comparison unit is used for comparing the current brightness value with a preset threshold value;
and the execution unit is used for executing the step of determining the backlight grade corresponding to the current brightness value from a brightness storage set based on the current brightness value if the current brightness value is smaller than a preset threshold value.
The method comprises the steps of acquiring a current brightness value detected by a current light sensor; determining a backlight level corresponding to the current brightness value from a brightness storage set based on the current brightness value, wherein the brightness storage set comprises the brightness value detected by the brightness sensor and the backlight level corresponding to the brightness value; determining the light leakage brightness value of the backlight source according to the backlight grade and the maximum light leakage value of the light sensor; an actual luminance value of the current ambient light is determined based on the current luminance value and the light leakage luminance value. According to the embodiment, through algorithm compensation, the influence of light leakage of the backlight source on the reading of the light sensor is corrected, the actual brightness value of current environment light can be detected, the terminal is enabled to conduct brightness adjustment according to the actual brightness value, and the backlight adjustment accuracy of the terminal can be effectively improved.
The embodiment of the application also provides a terminal. As shown in fig. 5, the terminal may include a Radio Frequency (RF) circuit 601, a memory 602 including one or more storage media, an input unit 603, a display unit 604, a sensor 605, an audio circuit 606, a Wireless Fidelity (WiFi) module 607, a processor 608 including one or more processing cores, and a power supply 609. Those skilled in the art will appreciate that the terminal structure shown in fig. 5 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the RF circuit 601 may be used for receiving and transmitting signals during the process of transmitting and receiving information, and in particular, for processing the received downlink information of the base station by one or more processors 608; in addition, data relating to uplink is transmitted to the base station. In general, the RF circuit 601 includes, but is not limited to, an antenna, at least one Amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuit 601 may also communicate with networks and other devices via wireless communications.
The memory 602 may be used to store software programs and modules, and the processor 608 executes various functional applications and data processing by operating the software programs and modules stored in the memory 602. The memory 602 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function (such as a sound playing function, an image playing function, etc.), and the like. Further, the memory 602 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 602 may also include a memory controller to provide the processor 608 and the input unit 603 access to the memory 602.
The input unit 603 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, in one particular embodiment, input unit 603 may include a touch-sensitive surface as well as other input devices. The touch-sensitive surface, also referred to as a touch display screen or a touch pad, may collect touch operations by a user (e.g., operations by a user on or near the touch-sensitive surface using a finger, a stylus, or any other suitable object or attachment) thereon or nearby, and drive the corresponding connection device according to a predetermined program. The input unit 603 may include other input devices in addition to the touch-sensitive surface. In particular, other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 604 may be used to display information input by or provided to the user and various graphical user interfaces of the server, which may be made up of graphics, text, icons, video, and any combination thereof. The Display unit 604 may include a Display panel, and optionally, the Display panel may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch-sensitive surface may overlay the display panel, and when a touch operation is detected on or near the touch-sensitive surface, the touch operation is transmitted to the processor 608 to determine the type of touch event, and the processor 608 then provides a corresponding visual output on the display panel according to the type of touch event. Although in FIG. 5 the touch-sensitive surface and the display panel are two separate components to implement input and output functions, in some embodiments the touch-sensitive surface may be integrated with the display panel to implement input and output functions.
The terminal may also include at least one sensor 605, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that adjusts the brightness of the display panel according to the brightness of ambient light, and a proximity sensor that turns off the display panel and the backlight when the server moves to the ear.
WiFi belongs to short-distance wireless transmission technology, and the terminal can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 607, and provides wireless broadband internet access for the user. Although fig. 5 shows the WiFi module 607, it is understood that it does not belong to the essential constitution of the terminal, and may be omitted entirely as needed within the scope of not changing the essence of the application.
The processor 608 is a control center of the terminal, connects various parts of the entire handset using various interfaces and lines, and performs various functions of the server and processes data by operating or executing software programs and modules stored in the memory 602 and calling data stored in the memory 602, thereby performing overall monitoring of the handset. Optionally, processor 608 may include one or more processing cores; preferably, the processor 608 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 608.
The terminal also includes a power supply 609 (e.g., a battery) for powering the various components, which may preferably be logically connected to the processor 608 via a power management system that may be used to manage charging, discharging, and power consumption. The power supply 609 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
Specifically, in this embodiment, the processor 608 in the terminal loads the executable file corresponding to the process of one or more application programs into the memory 602 according to the following instructions, and the processor 608 runs the application programs stored in the memory 602, thereby implementing various functions:
receiving a brightness calibration instruction sent by user equipment;
sending the data to be transmitted to the user equipment through a first path according to the brightness calibration instruction;
and when the data volume of the data to be transmitted is detected to be larger than a preset threshold value, transmitting the data to be transmitted at least through a second path, wherein the transmission rate of the first path is smaller than that of the second path.
The embodiment of the application discloses a brightness calibration method, a device, a storage medium and a terminal, which are used for receiving a brightness calibration instruction sent by user equipment; sending the data to be transmitted to the user equipment through a first path according to the brightness calibration instruction; and when the data volume of the data to be transmitted is detected to be larger than a preset threshold value, transmitting the data to be transmitted at least through a second path, wherein the transmission rate of the first path is smaller than that of the second path. According to the embodiment, the power consumption of the terminal can be effectively reduced by detecting the data flow, comparing the data flow with the preset data volume and changing the brightness calibration path according to the comparison result.
It will be understood by those skilled in the art that all or part of the steps in the methods of the above embodiments may be performed by instructions or by instructions controlling associated hardware, which may be stored in a storage medium and loaded and executed by a processor.
To this end, the present application provides a storage medium, in which a plurality of instructions are stored, where the instructions can be loaded by a processor to execute the steps in any one of the brightness calibration methods provided in the embodiments of the present application. For example, the instructions may perform the steps of:
receiving a brightness calibration instruction sent by user equipment; sending the data to be transmitted to the user equipment through a first path according to the brightness calibration instruction; and when the data volume of the data to be transmitted is detected to be larger than a preset threshold value, transmitting the data to be transmitted at least through a second path, wherein the transmission rate of the first path is smaller than that of the second path.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
Wherein the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the storage medium can execute the steps in any brightness calibration method provided in the embodiments of the present application, the beneficial effects that can be achieved by any brightness calibration method provided in the embodiments of the present application can be achieved, which are detailed in the foregoing embodiments and will not be described herein again.
The method, the apparatus, the storage medium, and the terminal for calibrating brightness provided in the embodiments of the present application are described in detail above, and a specific example is applied in the description to explain the principles and embodiments of the present application, and the description of the embodiments above is only used to help understand the method and the core idea of the present application; meanwhile, for those 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 (7)
1. A brightness calibration method, comprising:
acquiring a current brightness value detected by a current light sensor;
comparing the current brightness value with a preset threshold value;
if the current brightness value is smaller than a preset threshold value, determining a backlight level corresponding to the current brightness value from a brightness storage set based on the current brightness value, wherein the brightness storage set comprises the brightness value detected by a brightness sensor and the backlight level corresponding to the brightness value;
acquiring a maximum light leakage value and a maximum backlight grade corresponding to the maximum light leakage value from a brightness storage set;
determining a ratio of the backlight level to the maximum backlight level;
calculating the multiplication value of the ratio and the maximum light leakage value to obtain a light leakage brightness value;
an actual luminance value of the current ambient light is determined based on the current luminance value and the light leakage luminance value.
2. The method of claim 1, wherein determining an actual brightness value of a current ambient light based on the current brightness value and the leak brightness value comprises:
and acquiring a difference value between the current brightness value and the light leakage brightness value, wherein the difference value is the actual brightness value.
3. The method of any of claims 1-2, further comprising, after determining an actual luminance value of current ambient light based on the current luminance value and the leak luminance value:
switching the current brightness value detected by the light sensor to the actual brightness value;
and adjusting the backlight brightness based on the actual brightness value.
4. The method of claim 3, further comprising, prior to performing backlight brightness adjustment based on the actual brightness value:
judging whether the actual brightness value is smaller than a preset minimum brightness value or not;
and if so, adjusting the backlight brightness according to the preset minimum brightness value.
5. A luminance adjustment apparatus, characterized in that the luminance adjustment apparatus is configured to:
comparing the current brightness value with a preset threshold value;
the brightness adjusting device comprises:
the acquisition unit is used for acquiring a current brightness value detected by the current light sensor;
a determining unit, configured to determine, based on the current brightness value, a backlight level corresponding to the current brightness value from a brightness storage set if the current brightness value is smaller than a preset threshold, where the brightness storage set includes the brightness value detected by the brightness sensor and the backlight level corresponding to the brightness value;
the first processing unit is used for acquiring a maximum light leakage value and a maximum backlight grade corresponding to the maximum light leakage value from a brightness storage set; determining a ratio of the backlight level to the maximum backlight level; calculating a multiplication value of the ratio and the maximum light leakage value, and determining a light leakage brightness value based on the multiplication value;
a second processing unit for determining an actual luminance value of the current ambient light based on the current luminance value and the leak luminance value.
6. A storage medium storing instructions adapted to be loaded by a processor to perform the steps of the brightness calibration method according to any one of claims 1 to 4.
7. A terminal comprising a processor and a memory, the memory storing a plurality of instructions, the processor loading the instructions to perform the steps in the brightness calibration method of any one of claims 1 to 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911265210.2A CN111179861B (en) | 2019-12-11 | 2019-12-11 | Brightness calibration method and device, storage medium and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911265210.2A CN111179861B (en) | 2019-12-11 | 2019-12-11 | Brightness calibration method and device, storage medium and terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111179861A CN111179861A (en) | 2020-05-19 |
CN111179861B true CN111179861B (en) | 2021-06-15 |
Family
ID=70653820
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911265210.2A Active CN111179861B (en) | 2019-12-11 | 2019-12-11 | Brightness calibration method and device, storage medium and terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111179861B (en) |
Families Citing this family (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111785230B (en) * | 2020-06-22 | 2022-07-26 | Oppo广东移动通信有限公司 | Brightness adjusting method, terminal and storage medium |
CN112289280B (en) * | 2020-11-18 | 2022-03-22 | 深圳市锐尔觅移动通信有限公司 | Screen brightness adjusting method and device, computer readable medium and electronic equipment |
CN112599088B (en) * | 2020-12-02 | 2022-04-12 | 深圳市汇顶科技股份有限公司 | Screen light leakage and ambient light detection method, chip, terminal and storage 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 |
CN115019730A (en) * | 2021-03-03 | 2022-09-06 | Oppo广东移动通信有限公司 | Screen light leakage amount determining and brightness adjusting method and device and electronic equipment |
CN115019738B (en) * | 2021-10-25 | 2023-04-07 | 荣耀终端有限公司 | Backlight grade calibration method, device and equipment |
CN114441033A (en) * | 2022-01-25 | 2022-05-06 | Tcl通讯科技(成都)有限公司 | Ambient light intensity calibration method and device, electronic equipment and storage medium |
CN114420071B (en) * | 2022-01-28 | 2023-08-25 | Oppo广东移动通信有限公司 | Brightness calibration method, brightness calibration device, electronic equipment and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101236728A (en) * | 2007-02-01 | 2008-08-06 | 三星电子株式会社 | Method and apparatus for controlling backlight in display device |
CN105261346A (en) * | 2015-10-12 | 2016-01-20 | 小米科技有限责任公司 | Backlight brightness adjusting method and device and terminal device |
CN108711402A (en) * | 2018-05-07 | 2018-10-26 | Oppo广东移动通信有限公司 | Brightness of display screen method of adjustment and Related product |
CN109029720A (en) * | 2018-06-29 | 2018-12-18 | 北京小米移动软件有限公司 | Intensity of illumination detection method and device |
CN110535997A (en) * | 2019-08-12 | 2019-12-03 | 上海创功通讯技术有限公司 | A kind of calibration method, device, equipment and the storage medium of terminal screen light leakage |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP5196963B2 (en) * | 2007-11-09 | 2013-05-15 | 株式会社ジャパンディスプレイウェスト | Display device, display control method, and electronic device |
-
2019
- 2019-12-11 CN CN201911265210.2A patent/CN111179861B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101236728A (en) * | 2007-02-01 | 2008-08-06 | 三星电子株式会社 | Method and apparatus for controlling backlight in display device |
CN105261346A (en) * | 2015-10-12 | 2016-01-20 | 小米科技有限责任公司 | Backlight brightness adjusting method and device and terminal device |
CN108711402A (en) * | 2018-05-07 | 2018-10-26 | Oppo广东移动通信有限公司 | Brightness of display screen method of adjustment and Related product |
CN109029720A (en) * | 2018-06-29 | 2018-12-18 | 北京小米移动软件有限公司 | Intensity of illumination detection method and device |
CN110535997A (en) * | 2019-08-12 | 2019-12-03 | 上海创功通讯技术有限公司 | A kind of calibration method, device, equipment and the storage medium of terminal screen light leakage |
Also Published As
Publication number | Publication date |
---|---|
CN111179861A (en) | 2020-05-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111179861B (en) | Brightness calibration method and device, storage medium and terminal | |
CN106791894B (en) | A kind of method and apparatus playing live video | |
CN111092621B (en) | Radio frequency circuit, control method and electronic equipment | |
CN106792120B (en) | Video picture display method and device and terminal | |
CN108470571B (en) | Audio detection method and device and storage medium | |
CN111158455A (en) | Power consumption control method and device, storage medium and terminal | |
CN106710535B (en) | A kind of screen backlight adjusting method, device and mobile terminal | |
CN112311930A (en) | Terminal testing method and device, storage medium and mobile terminal | |
CN107172671B (en) | Channel switching method, device, storage medium and terminal | |
CN111093259B (en) | Bluetooth power adjustment method and device, storage medium and terminal | |
CN111954286B (en) | Power adjusting method, device, storage medium and terminal | |
US20210127279A1 (en) | Method of controlling radio resource management measurement of neighboring cell, mobile communication terminal, and network side device | |
US20190356831A1 (en) | Mobile terminal-based screen light-supplementing photographing method and system, and mobile terminal | |
CN110930964B (en) | Display screen brightness adjusting method and device, storage medium and terminal | |
CN108564539B (en) | Method and device for displaying image | |
CN106936516B (en) | Display screen display state control method, storage medium and terminal | |
CN110099434B (en) | Power adjustment method, terminal equipment and computer readable storage medium | |
CN109743141B (en) | Data transmission adjusting method and terminal equipment | |
CN111372003A (en) | Camera switching method and device and terminal | |
US10225388B2 (en) | Method and apparatus for adjusting volume of an accepted session | |
CN111355991B (en) | Video playing method and device, storage medium and mobile terminal | |
CN105635379B (en) | Noise suppression method and device | |
CN111308303B (en) | Method and device for detecting radio frequency power amplifier of mobile terminal | |
US20230097372A1 (en) | Display image compensation method, device, electronic equipment, and storage medium | |
CN114442346A (en) | Ghost shadow calculation method and device of display panel, storage medium and terminal 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 | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20230403 Address after: 518000 Room 201, building A, No. 1, Qian Wan Road, Qianhai Shenzhen Hong Kong cooperation zone, Shenzhen, Guangdong (Shenzhen Qianhai business secretary Co., Ltd.) Patentee after: Shenzhen Huaxi Investment Co.,Ltd. Address before: 10 / F, No.5 Lane 999, Yangfan Road, high tech Zone, Ningbo City, Zhejiang Province Patentee before: TCL mobile communication technology (Ningbo) Co.,Ltd. |