CN106098021B - A kind of back light brightness regulating method and terminal - Google Patents

A kind of back light brightness regulating method and terminal Download PDF

Info

Publication number
CN106098021B
CN106098021B CN201610645537.2A CN201610645537A CN106098021B CN 106098021 B CN106098021 B CN 106098021B CN 201610645537 A CN201610645537 A CN 201610645537A CN 106098021 B CN106098021 B CN 106098021B
Authority
CN
China
Prior art keywords
backlight brightness
light intensity
brightness levels
intensity values
levels
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
CN201610645537.2A
Other languages
Chinese (zh)
Other versions
CN106098021A (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 CN201610645537.2A priority Critical patent/CN106098021B/en
Publication of CN106098021A publication Critical patent/CN106098021A/en
Application granted granted Critical
Publication of CN106098021B publication Critical patent/CN106098021B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/10Intensity circuits

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Circuit Arrangement For Electric Light Sources In General (AREA)

Abstract

The embodiment of the invention discloses a kind of back light brightness regulating method and terminals, wherein, the light intensity value of the available predetermined number of back light brightness regulating method, when the light intensity value for judging the predetermined number belongs at least two backlight illumination grades, the backlight illumination of screen can be adjusted according to the specific gravity of at least two backlight illuminations grade, as it can be seen that the embodiment of the present invention can change the problem of terminal screen flashes in faster environment to avoid in light intensity value.

Description

Backlight brightness adjusting method and terminal
Technical Field
The invention relates to the technical field of communication, in particular to a backlight brightness adjusting method and a terminal.
Background
At present, a screen of a terminal generally has a function of automatically adjusting backlight brightness, that is, the terminal obtains a current ambient light intensity value through an ambient light sensor, and selects a backlight brightness value corresponding to the ambient light intensity value according to different ambient light intensity values to adjust the backlight brightness of the screen. However, in some situations, for example, when a user uses the terminal in a vehicle driving fast at night, the light emitted from the street lamp is irradiated onto the terminal, so that the ambient light intensity value collected by the ambient light sensor changes rapidly. At this time, the function of automatically adjusting the backlight brightness may cause the backlight brightness value of the screen to change rapidly along with the ambient light intensity value, resulting in screen flicker.
Disclosure of Invention
The embodiment of the invention discloses a backlight brightness adjusting method and a terminal, which can avoid the flicker of a terminal screen when the change of the ambient light intensity value is quick.
The embodiment of the invention discloses a backlight brightness adjusting method, which comprises the following steps:
acquiring a preset number of light intensity values;
judging whether the preset number of light intensity values belong to at least two backlight brightness levels, wherein the light intensity value intervals corresponding to different backlight brightness levels are different;
and if the light intensity values of the preset number belong to at least two backlight brightness levels, adjusting the backlight brightness of the screen according to the proportion of the at least two backlight brightness levels.
Optionally, the adjusting the backlight brightness of the screen according to the specific gravity of the at least two backlight brightness levels includes:
and setting the backlight brightness of the screen as a brightness value corresponding to the backlight brightness level with the highest specific gravity in the at least two backlight brightness levels.
Optionally, the adjusting the backlight brightness of the screen according to the specific gravity of the at least two backlight brightness levels includes:
determining two backlight brightness levels with the largest and the second largest weights among the at least two backlight brightness levels;
calculating the average brightness value of the brightness values corresponding to the maximum and second maximum backlight brightness levels;
setting the backlight brightness of the screen to the average brightness value.
Wherein before the adjusting the backlight brightness of the screen according to the specific gravity of the at least two backlight brightness levels, the method further comprises:
counting the number of light intensity values contained in each backlight brightness level in the at least two backlight brightness levels;
and calculating the ratio of the number of the light intensity values contained in the backlight brightness levels to the preset number for each backlight brightness level in the at least two backlight brightness levels, and taking the ratio as the specific gravity of the backlight brightness levels.
Wherein, obtain the light intensity value of predetermineeing the number, include:
continuously collecting a preset number of light intensity values through an ambient light sensor;
and respectively storing the light intensity values into a cache with a preset size.
Optionally, when the preset number of light intensity values belong to at least two backlight brightness levels, the method further includes:
reducing an integration period of the ambient light sensor.
Correspondingly, the embodiment of the invention also discloses a terminal, which comprises:
the acquisition module is used for acquiring a preset number of light intensity values;
the judging module is used for judging whether the preset number of light intensity values belong to at least two backlight brightness levels, wherein the light intensity value intervals corresponding to different backlight brightness levels are different;
and the adjusting module is used for adjusting the backlight brightness of the screen according to the proportion of the at least two backlight brightness levels when the judging module judges that the preset number of the light intensity values belong to the at least two backlight brightness levels.
Optionally, the adjusting module is specifically configured to set the backlight brightness of the screen to a brightness value corresponding to a backlight brightness level with a highest specific gravity among the at least two backlight brightness levels.
Optionally, the adjusting module includes:
a determining unit for determining two backlight brightness levels having the largest and the second largest weights among the at least two backlight brightness levels;
a calculating unit configured to calculate an average luminance value of luminance values corresponding to two backlight luminance levels having the largest and the second largest specific gravities determined by the determining unit;
a setting unit for setting the backlight brightness of the screen to the average brightness value calculated by the calculating unit.
Wherein, the terminal further includes:
the counting module is used for counting the number of light intensity values contained in each backlight brightness level in the at least two backlight brightness levels before the backlight brightness of the screen is adjusted according to the proportion of the at least two backlight brightness levels;
and the calculating module is used for calculating the ratio of the number of the light intensity values contained in the backlight brightness levels to the preset number aiming at each backlight brightness level in the at least two backlight brightness levels, and taking the ratio as the proportion of the backlight brightness levels.
Wherein, the obtaining module includes:
the acquisition unit is used for continuously acquiring a preset number of light intensity values through the ambient light sensor;
and the storage unit is used for respectively storing the light intensity values acquired by the acquisition unit into a cache with a preset size.
Optionally, the obtaining module further includes:
and the adjusting unit is used for reducing the integration period of the ambient light sensor when the preset number of light intensity values belong to at least two backlight brightness levels.
The embodiment of the invention can obtain the light intensity values with the preset number, and can adjust the backlight brightness of the screen according to the proportion of the at least two backlight brightness levels when judging that the light intensity values with the preset number belong to the at least two backlight brightness levels.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic flow chart of a backlight brightness adjusting method according to an embodiment of the present invention;
FIG. 2 is a flow chart of another backlight brightness adjusting method according to the embodiment of the present invention;
FIG. 3 is a flowchart illustrating another method for adjusting backlight brightness according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a terminal disclosed in the embodiment of the present invention;
fig. 5 is a schematic structural diagram of another terminal disclosed in the embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, 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 invention.
The embodiment of the invention discloses a backlight brightness adjusting method and a terminal, which can improve the display effect of a screen when the light intensity value changes rapidly.
Referring to fig. 1, fig. 1 is a schematic flow chart of a backlight brightness adjusting method according to an embodiment of the present invention. The backlight brightness adjusting method shown in fig. 1 may include the steps of:
s101, the terminal acquires a preset number of light intensity values;
in the embodiment of the invention, the terminal can comprise a mobile phone, a tablet computer, a portable device and other terminal devices with screens. Wherein, step S101 may include: the terminal continuously collects a preset number of light intensity values through an ambient light sensor; and the terminal respectively stores the collected light intensity values into a cache with a preset size. The size of the buffer memory can be preset according to the configuration of the terminal or manually set by a user.
It should be noted that "continuous" in the preset number of light intensity values continuously collected by the terminal through the ambient light sensor means that the time intervals for collecting the light intensity values by the light sensor are continuous.
S102, the terminal judges whether the light intensity values of the preset number belong to at least two backlight brightness levels, if the light intensity values of the preset number belong to at least two backlight brightness levels, the step S103 is executed, otherwise, the step S104 is executed.
The light intensity value intervals corresponding to different backlight brightness levels are different. In the embodiment of the present invention, the terminal may pre-store the light intensity value intervals corresponding to a plurality of backlight brightness levels, where each backlight brightness level corresponds to one brightness value. For example, the first backlight brightness level corresponds to a light intensity value interval of [0,1 ]; the light intensity value interval corresponding to the second backlight brightness level is [2,5], the light intensity value interval corresponding to the third backlight brightness level is [6,40], the light intensity value interval corresponding to the fourth backlight brightness level is [41,300], and so on.
In the embodiment of the present invention, the terminal determines whether the light intensity values of the preset number belong to at least two backlight brightness levels, and may determine whether the light intensity value of the current environment is rapidly changing, and if the light intensity value belongs to at least two backlight brightness levels, it indicates that the light intensity value of the current environment is rapidly changing, and may perform step S103 to adjust the backlight brightness of the screen; if the current environment does not belong to the at least two backlight brightness levels, it is determined that the light intensity value of the current environment is not changed, and step S104 may be executed to directly set the backlight brightness of the screen according to the backlight brightness level corresponding to the light intensity value.
In the embodiment of the present invention, when the preset number of light intensity values belong to at least two backlight brightness levels in step S102, the integration period of the ambient light sensor can be reduced, so that the ambient light sensor can rapidly collect data. For example, if the integration period of 100ms is reduced to the integration period of 50ms, the time required to collect 20 data by the ambient light sensor will vary from 2s to 1s, so that more data can be collected when the light intensity value is collected again, and the user will not feel that the backlight adjustment is slow due to the time required to collect more data. Optionally, when it is determined in step S102 that the preset number of light intensity values do not belong to at least two backlight brightness levels, that is, belong to the same backlight brightness level, the integration period of the ambient light sensor may be restored to a default value, and the existing backlight brightness adjustment method is executed.
S103, the terminal adjusts the backlight brightness of the screen according to the proportion of the at least two backlight brightness levels;
and S104, the terminal sets the backlight brightness of the screen according to the backlight brightness levels of the intervals where the preset number of light intensity values are located.
In the embodiment of the present invention, when the terminal determines that the preset number of light intensity values belong to at least two backlight brightness levels, before the terminal adjusts the backlight brightness of the screen according to the specific gravity of the at least two backlight brightness levels, the following steps may be performed:
the terminal counts the number of light intensity values contained in each backlight brightness level in the at least two backlight brightness levels;
and calculating the ratio of the number of light intensity values contained in the backlight brightness levels to a preset number for each of the at least two backlight brightness levels, and taking the ratio as the proportion of the backlight brightness levels.
The terminal adjusts the backlight brightness of the screen according to the specific gravity of the at least two backlight brightness levels, and the specific gravity may be: the terminal sets the backlight brightness of the screen to be a brightness value corresponding to the backlight brightness level with the highest specific gravity in the at least two backlight brightness levels; or, setting the backlight brightness of the screen as an average value of brightness values corresponding to two backlight brightness levels with the largest and the second largest specific gravity among the at least two backlight brightness levels; or the backlight brightness of the screen is set to be the sum of products of the specific gravity of the at least two backlight brightness levels and the corresponding brightness value, which is not limited in the embodiment of the present invention.
The embodiment of the invention can obtain the light intensity values with the preset number, and can adjust the backlight brightness of the screen according to the proportion of the at least two backlight brightness levels when judging that the light intensity values with the preset number belong to the at least two backlight brightness levels.
Referring to fig. 2, fig. 2 is a flowchart illustrating another backlight brightness adjusting method according to an embodiment of the present invention, where steps S201 to S202 in the backlight brightness adjusting method shown in fig. 2 are the same as steps S101 to S102 in the backlight brightness adjusting method shown in fig. 1, and are not described in detail here. In step S202, when the terminal determines that the preset number of light intensity values belong to at least two backlight brightness levels, steps S203 to S205 may be executed. Accordingly, in step S202, when the terminal determines that the preset number of light intensity values do not belong to at least two backlight brightness levels, that is, belong to one backlight brightness level, step S206 may be executed, where step S206 is the same as step S104 in the backlight brightness adjustment method shown in fig. 1, and details thereof are not described here.
S203, the terminal determines two backlight brightness levels with the largest specific gravity and the second largest specific gravity in the at least two backlight brightness levels;
s204, the terminal calculates the average brightness value of the brightness values corresponding to the two backlight brightness levels with the maximum and the second highest specific gravity;
and S205, the terminal sets the backlight brightness of the screen to be the average brightness value.
Wherein, the specific gravity of the backlight brightness level refers to a ratio of the number of the obtained light intensity values contained in the backlight brightness level to a preset number (the total number of the obtained light intensity values); the two backlight luminance levels having the greatest and the second greatest specific gravity are the first two backlight luminance levels arranged from the greatest specific gravity to the least specific gravity of the at least two backlight luminance levels.
For example, 20 light intensity values are obtained, where the number of light intensity values at the third backlight brightness level is 10, the number of light intensity values at the second backlight brightness level is 6, the number of light intensity values at the first backlight brightness level is 4, the specific gravity of the third backlight brightness level is 0.5, the specific gravity of the second backlight brightness level is 0.3, and the specific gravity of the first backlight brightness level is 0.2, it can be seen that the two backlight brightness levels with the largest and the second largest specific gravity are the third backlight brightness level and the second backlight brightness level respectively, and the corresponding brightness values are 30 and 20 respectively, and the brightness value of the screen brightness is set to 25. The embodiment can avoid the excessive flicker degree of the backlight and the delay of the backlight adjustment by acquiring a plurality of light intensity values and setting the backlight brightness according to the proportion of the backlight brightness level.
Referring to fig. 3, fig. 3 is a flowchart illustrating another backlight brightness adjusting method according to an embodiment of the present invention, wherein steps S301 to S302 of the backlight brightness adjusting method shown in fig. 3 are the same as steps S101 to S102 of the backlight brightness adjusting method shown in fig. 1, and are not described in detail herein. In step S302, when the terminal determines that the preset number of light intensity values belong to at least two backlight brightness levels, steps S303 to S304 may be performed. Accordingly, in step S302, when the terminal determines that the preset number of light intensity values do not belong to at least two backlight brightness levels, that is, belong to one backlight brightness level, step S305 may be executed, where step S305 is the same as step S104 in the backlight brightness adjustment method shown in fig. 1, and is not described in detail here.
S303, the terminal determines the backlight brightness level with the maximum specific gravity in the at least two backlight brightness levels;
s304, the terminal sets the backlight brightness of the screen to be the brightness value corresponding to the backlight brightness level with the maximum proportion.
For example, if the brightness value corresponding to the third backlight brightness level with the highest specific gravity is 30, the backlight brightness of the screen may be set to 30. Because the specific gravity of the backlight brightness level is the maximum, the light intensity value of the current environment is mainly in the light intensity value interval corresponding to the backlight brightness level, and the backlight brightness of the screen is set to the brightness value corresponding to the backlight brightness level, so that the continuous flicker of the backlight can be avoided.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a terminal according to an embodiment of the present invention, and as shown in fig. 4, the terminal may include the following modules and units.
An obtaining module 410, configured to obtain a preset number of light intensity values;
the determining module 420 is configured to determine whether the preset number of light intensity values belong to at least two backlight brightness levels, where light intensity value intervals corresponding to different backlight brightness levels are different;
the adjusting module 430 is configured to adjust the backlight brightness of the screen according to a specific gravity of the at least two backlight brightness levels when the determining module 420 determines that the preset number of light intensity values belong to the at least two backlight brightness levels.
Optionally, the obtaining module 410 may include:
the acquisition unit is used for continuously acquiring a preset number of light intensity values through the ambient light sensor;
and the storage unit is used for respectively storing the light intensity values acquired by the acquisition unit into a cache with a preset size.
The size of the buffer memory can be preset according to the configuration of the terminal or manually set by a user.
It should be noted that "continuous" in the preset number of light intensity values continuously collected by the collecting unit through the ambient light sensor means that the time intervals of collecting the light intensity values by the ambient light sensor are continuous. The obtaining module 410 in the embodiment of the present invention may further include an adjusting unit, configured to reduce an integration period of the ambient light sensor when the determining module 420 determines that the preset number of light intensity values belong to at least two backlight brightness levels, so that the ambient light sensor quickly acquires data. For example, if the integration period of 100ms is reduced to the integration period of 50ms, the time required for acquiring 20 data by the ambient light sensor changes from 2s to 1s, so that on one hand, more data can be acquired in the same time period when the ambient light intensity value is determined to change faster, and the effect that the acquisition time is too long and the backlight adjustment is slow for the user due to the fact that the acquired data is increased is avoided.
The light intensity value intervals corresponding to different backlight brightness levels are different. In the embodiment of the present invention, the storage unit may further pre-store light intensity value intervals corresponding to a plurality of backlight brightness levels, where each backlight brightness level corresponds to one brightness value. For example, the first backlight brightness level corresponds to a light intensity value interval of [0,1 ]; the light intensity value interval corresponding to the second backlight brightness level is [2,5], the light intensity value interval corresponding to the third backlight brightness level is [6,40], the light intensity value interval corresponding to the fourth backlight brightness level is [41,300], and so on.
In the embodiment of the present invention, the determining module 420 determines whether the preset number of light intensity values belong to at least two backlight brightness levels, and may determine whether the light intensity value of the current environment is rapidly changing, and if the preset number of light intensity values belong to at least two backlight brightness levels, it indicates that the light intensity value of the current environment is rapidly changing, and the adjusting module 430 may adjust the backlight brightness of the screen; if the brightness level does not belong to at least two backlight brightness levels, it indicates that the light intensity value of the current environment is not changed, and the backlight brightness of the screen can be directly set by the adjusting module 430 according to the backlight brightness level corresponding to the light intensity value.
In this embodiment of the present invention, the terminal shown in fig. 4 may further include the following modules:
the counting module 440 is configured to count the number of light intensity values included in each of the at least two backlight brightness levels before the adjusting module 430 adjusts the backlight brightness of the screen according to the specific gravity of the at least two backlight brightness levels;
the calculating module 450 is configured to calculate, for each of the at least two backlight brightness levels, a ratio of the number of light intensity values included in the backlight brightness level to a preset number, and use the ratio as a specific gravity of the backlight brightness level.
For example, 20 light intensity values are obtained, where the number of light intensity values at the third backlight brightness level is 10, the number of light intensity values at the second backlight brightness level is 6, and the number of light intensity values at the first backlight brightness level is 4, then the specific gravity of the third backlight brightness level is 0.5, the specific gravity of the second backlight brightness level is 0.3, and the specific gravity of the first backlight brightness level is 0.2.
As an alternative embodiment, the adjusting module 430 may be configured to set the backlight brightness of the screen to a brightness value corresponding to the backlight brightness level with the highest specific gravity of the at least two backlight brightness levels. For example, if the brightness value corresponding to the third backlight brightness level with the highest specific gravity is 30, the backlight brightness of the screen may be set to 30. Because the specific gravity of the backlight brightness level is the maximum, the light intensity value of the current environment is mainly in the light intensity value interval corresponding to the backlight brightness level, and the backlight brightness of the screen is set to the brightness value corresponding to the backlight brightness level, so that the continuous flicker of the backlight can be avoided.
As another alternative, the adjusting module 430 may include the following units:
a determining unit for determining two backlight brightness levels having the largest and the second largest weights among the at least two backlight brightness levels;
a calculating unit for calculating an average luminance value of luminance values corresponding to the two backlight luminance levels having the greatest and the next greatest specific gravity determined by the determining unit;
a setting unit for setting the backlight brightness of the screen as the average brightness value calculated by the calculating unit.
For example, the two backlight brightness levels with the highest and the second highest specific gravity are the third backlight brightness level and the second backlight brightness level, respectively, and the corresponding brightness values are 30 and 20, respectively, the brightness value of the screen brightness is set to 25. The embodiment can avoid the excessive flicker degree of the backlight and the delay of the backlight adjustment by acquiring a plurality of light intensity values and setting the backlight brightness according to the proportion of the backlight brightness level.
In summary, the embodiments of the present invention may obtain the preset number of light intensity values, and when it is determined that the preset number of light intensity values belong to at least two backlight brightness levels, the backlight brightness of the screen may be adjusted according to the specific gravity of the at least two backlight brightness levels.
Referring to fig. 5, fig. 5 is a schematic structural diagram of another terminal according to the disclosure of the embodiment of the disclosure, as shown in fig. 5, the terminal may include at least one processor 501, for example, a CPU, a user interface 502, a memory 503, and at least one communication bus 504. Wherein a communication bus 504 is used to enable communication connections between these components. The memory 503 may be a high-speed RAM memory or a non-volatile memory (non-volatile memory), such as at least one disk memory. The memory 503 may optionally be at least one storage device located remotely from the processor 501. Wherein, the processor 501 can be combined with the terminal described in fig. 4, the memory 503 stores a set of program codes, and the processor 501 calls the program codes stored in the memory 503 to execute the following operations:
acquiring a preset number of light intensity values;
judging whether the preset number of light intensity values belong to at least two backlight brightness levels, wherein the light intensity value intervals corresponding to different backlight brightness levels are different;
and if the backlight brightness levels belong to at least two backlight brightness levels, adjusting the backlight brightness of the screen according to the specific gravity of the at least two backlight brightness levels.
The processor 501 may continuously collect a preset number of light intensity values through the ambient light sensor in the user interface 502; the collected light intensity values are respectively stored in the caches with preset sizes in the memory 503. The size of the buffer memory can be preset according to the configuration of the terminal or manually set by a user.
It should be noted that "continuous" in continuously acquiring a preset number of light intensity values by the ambient light sensor in the user interface 502 means that the time intervals in which the ambient light sensor acquires the light intensity values are continuous. According to the embodiment of the invention, when the light intensity values with the preset number are judged to belong to at least two backlight brightness levels, the integration period of the ambient light sensor is reduced, so that the ambient light sensor can rapidly acquire data. For example, the integration period of 100ms is reduced to the integration period of 50ms, and the time required for acquiring 20 data by the ambient light sensor changes from 2s to 1s, so that on one hand, a plurality of data can be acquired when the ambient light intensity value changes rapidly, the time for acquiring the plurality of data is not too long, and the effect of dullness in backlight adjustment on a user is avoided.
In the embodiment of the present invention, the memory 503 may store in advance light intensity value intervals corresponding to a plurality of backlight brightness levels, where each backlight brightness level corresponds to a brightness value. For example, the first backlight brightness level corresponds to a light intensity value interval of [0,1 ]; the light intensity value interval corresponding to the second backlight brightness level is [2,5], the light intensity value interval corresponding to the third backlight brightness level is [6,40], the light intensity value interval corresponding to the fourth backlight brightness level is [41,300], and so on.
In the embodiment of the present invention, the processor 501 determines whether the preset number of light intensity values belong to at least two backlight brightness levels, and may determine whether the light intensity value of the current environment is rapidly changing, and if the preset number of light intensity values belong to at least two backlight brightness levels, it indicates that the light intensity value of the current environment is rapidly changing, and may adjust the backlight brightness of the screen according to the specific gravity of the at least two backlight brightness levels; if the current environment does not belong to the at least two backlight brightness levels, the light intensity value of the current environment is not changed, and the backlight brightness of the screen can be directly set according to the backlight brightness level corresponding to the light intensity value.
In this embodiment of the present invention, the processor 501 calls the program code in the memory 503, and before adjusting the backlight brightness of the screen according to the specific gravity of the at least two backlight brightness levels, the following steps may be further performed:
counting the number of light intensity values contained in each backlight brightness level in the at least two backlight brightness levels;
and calculating the ratio of the number of the light intensity values contained in the backlight brightness grade to the preset number for each backlight brightness grade in the at least two backlight brightness grades, and taking the ratio as the specific gravity of the backlight brightness grade.
In this embodiment of the present invention, the adjusting, by the processor 501, the backlight brightness of the screen according to the specific gravity of the at least two backlight brightness levels may be: the processor 501 sets the backlight brightness of the screen to a brightness value corresponding to the backlight brightness level with the highest specific gravity of the at least two backlight brightness levels; or, setting the backlight brightness of the screen as an average value of brightness values corresponding to two backlight brightness levels with the largest and the second largest specific gravity among the at least two backlight brightness levels; or the backlight brightness of the screen is set to be the sum of products of the specific gravity of the at least two backlight brightness levels and the corresponding brightness value, which is not limited in the embodiment of the present invention.
In the embodiment of the present invention, the processor 501 calls the program code in the memory 503 to adjust the backlight brightness of the screen according to the specific gravity of the at least two backlight brightness levels, including:
determining two backlight brightness levels with the largest and the second largest weights among the at least two backlight brightness levels;
calculating the average brightness value of the brightness values corresponding to the two backlight brightness levels with the maximum and the second largest specific gravity;
the backlight luminance of the screen is set to the average luminance value.
For example, 20 light intensity values are obtained, where the number of light intensity values at the third backlight brightness level is 10, the number of light intensity values at the second backlight brightness level is 6, the number of light intensity values at the first backlight brightness level is 4, the specific gravity of the third backlight brightness level is 0.5, the specific gravity of the second backlight brightness level is 0.3, and the specific gravity of the first backlight brightness level is 0.2, it can be seen that the two backlight brightness levels with the largest and the second largest specific gravity are the third backlight brightness level and the second backlight brightness level respectively, and the corresponding brightness values are 30 and 20 respectively, and the brightness value of the screen brightness is set to 25. The embodiment can avoid the excessive flicker degree of the backlight and the delay of the backlight adjustment by acquiring a plurality of light intensity values and setting the backlight brightness according to the proportion of the backlight brightness level.
In this embodiment of the present invention, the invoking of the program code in the memory 503 by the processor 501 to adjust the backlight brightness of the screen according to the specific gravity of at least two backlight brightness levels may include:
the backlight brightness of the screen is set to a brightness value corresponding to a backlight brightness level having a highest specific gravity among the at least two backlight brightness levels.
For example, if the brightness value corresponding to the third backlight brightness level with the highest specific gravity is 30, the backlight brightness of the screen may be set to 30. Because the specific gravity of the backlight brightness level is the maximum, the light intensity value of the current environment is mainly in the light intensity value interval corresponding to the backlight brightness level, and the backlight brightness of the screen is set to the brightness value corresponding to the backlight brightness level, so that the continuous flicker of the backlight can be avoided.
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 storage medium, and the storage medium may include: flash disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The backlight brightness adjusting method and the terminal disclosed by the embodiment of the invention are described in detail, a specific example is applied in the text to explain the principle and the implementation of the invention, and the description of the embodiment is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, 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 invention.

Claims (10)

1. A backlight brightness adjusting method is characterized by comprising the following steps:
acquiring a preset number of light intensity values;
judging whether the preset number of light intensity values belong to at least two backlight brightness levels, wherein the light intensity value intervals corresponding to different backlight brightness levels are different;
if the light intensity values of the preset number belong to at least two backlight brightness levels, adjusting the backlight brightness of the screen according to the proportion of the at least two backlight brightness levels;
wherein the adjusting the backlight brightness of the screen according to the specific gravity of the at least two backlight brightness levels comprises: setting the backlight brightness of the screen to be a brightness value corresponding to the backlight brightness level with the highest specific gravity in the at least two backlight brightness levels;
or, the adjusting the backlight brightness of the screen according to the specific gravity of the at least two backlight brightness levels includes: determining two backlight brightness levels with the largest and the second largest weights among the at least two backlight brightness levels; calculating the average brightness value of the brightness values corresponding to the two backlight brightness levels with the maximum specific gravity and the second maximum specific gravity; setting the backlight brightness of the screen to the average brightness value.
2. The backlight brightness adjustment method according to claim 1, wherein before adjusting the backlight brightness of the screen according to the specific gravity of the at least two backlight brightness levels, the method further comprises:
counting the number of light intensity values contained in each backlight brightness level in the at least two backlight brightness levels;
and calculating the ratio of the number of the light intensity values contained in the backlight brightness levels to the preset number for each backlight brightness level in the at least two backlight brightness levels, and taking the ratio as the specific gravity of the backlight brightness levels.
3. The method according to claim 2, wherein the obtaining a predetermined number of light intensity values comprises:
continuously collecting a preset number of light intensity values through an ambient light sensor;
and respectively storing the light intensity values into a cache with a preset size.
4. The backlight brightness adjustment method according to claim 3, wherein when the preset number of light intensity values belong to at least two backlight brightness levels, the method further comprises:
reducing an integration period of the ambient light sensor.
5. A terminal, comprising:
the acquisition module is used for acquiring a preset number of light intensity values;
the judging module is used for judging whether the preset number of light intensity values belong to at least two backlight brightness levels, wherein the light intensity value intervals corresponding to different backlight brightness levels are different;
the adjusting module is used for adjusting the backlight brightness of the screen according to the proportion of the at least two backlight brightness levels when the judging module judges that the light intensity values with the preset number belong to the at least two backlight brightness levels;
the adjusting module is specifically configured to set the backlight brightness of the screen to a brightness value corresponding to a backlight brightness level with the highest specific gravity of the at least two backlight brightness levels;
or,
the adjustment module includes:
a determining unit for determining two backlight brightness levels having the largest and the second largest weights among the at least two backlight brightness levels;
a calculating unit configured to calculate an average luminance value of luminance values corresponding to two backlight luminance levels having the largest and the second largest specific gravities determined by the determining unit;
a setting unit for setting the backlight brightness of the screen to the average brightness value calculated by the calculating unit.
6. The terminal of claim 5, further comprising:
the counting module is used for counting the number of light intensity values contained in each backlight brightness level in the at least two backlight brightness levels before the backlight brightness of the screen is adjusted according to the proportion of the at least two backlight brightness levels;
and the calculating module is used for calculating the ratio of the number of the light intensity values contained in the backlight brightness levels to the preset number aiming at each backlight brightness level in the at least two backlight brightness levels, and taking the ratio as the proportion of the backlight brightness levels.
7. The terminal of claim 6, wherein the obtaining module comprises:
the acquisition unit is used for continuously acquiring a preset number of light intensity values through the ambient light sensor;
and the storage unit is used for respectively storing the light intensity values acquired by the acquisition unit into a cache with a preset size.
8. The terminal of claim 7, wherein the obtaining module further comprises:
and the adjusting unit is used for reducing the integration period of the ambient light sensor when the judging module judges that the preset number of light intensity values belong to at least two backlight brightness levels.
9. A computer-readable storage medium, characterized in that it stores a computer program for instructing associated hardware to perform the method of any one of claims 1 to 4.
10. A terminal, characterized in that it comprises at least one processor, a user interface, a memory, at least one communication bus; the communication bus is used for realizing communication connection among the components;
wherein the memory has stored therein a set of program code, and the processor invokes the program code stored in the memory to perform the method of any of claims 1 to 4.
CN201610645537.2A 2016-08-08 2016-08-08 A kind of back light brightness regulating method and terminal Active CN106098021B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610645537.2A CN106098021B (en) 2016-08-08 2016-08-08 A kind of back light brightness regulating method and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610645537.2A CN106098021B (en) 2016-08-08 2016-08-08 A kind of back light brightness regulating method and terminal

Publications (2)

Publication Number Publication Date
CN106098021A CN106098021A (en) 2016-11-09
CN106098021B true CN106098021B (en) 2019-02-05

Family

ID=57455733

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610645537.2A Active CN106098021B (en) 2016-08-08 2016-08-08 A kind of back light brightness regulating method and terminal

Country Status (1)

Country Link
CN (1) CN106098021B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106774921A (en) * 2016-12-28 2017-05-31 深圳天珑无线科技有限公司 Back light brightness regulating method, device and terminal
CN107093416B (en) * 2017-06-08 2020-02-21 青岛海信电器股份有限公司 Screen backlight brightness adjusting method and device based on light sensor and terminal
CN109451171A (en) * 2018-12-12 2019-03-08 青岛海信移动通信技术股份有限公司 A kind of method and apparatus of adjusting backlight luminance
CN112351137A (en) * 2020-10-28 2021-02-09 深圳市华卓智能科技有限公司 Backlight brightness adjusting method based on light sensitivity value
CN112102791A (en) * 2020-10-30 2020-12-18 重庆长安汽车股份有限公司 Vehicle-mounted display screen partition brightness adjusting system and control method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103823626A (en) * 2013-10-31 2014-05-28 小米科技有限责任公司 Method and device for regulating display contents and electronic equipment
CN105405429A (en) * 2015-12-11 2016-03-16 Tcl移动通信科技(宁波)有限公司 Mobile terminal, ambient light dynamic induction control method, ambient light dynamic induction control system
CN105425905A (en) * 2015-10-30 2016-03-23 联想(北京)有限公司 Information processing method and electronic device
CN105469775A (en) * 2016-01-29 2016-04-06 广东欧珀移动通信有限公司 Method for adjusting brightness of display screen and terminal equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103823626A (en) * 2013-10-31 2014-05-28 小米科技有限责任公司 Method and device for regulating display contents and electronic equipment
CN105425905A (en) * 2015-10-30 2016-03-23 联想(北京)有限公司 Information processing method and electronic device
CN105405429A (en) * 2015-12-11 2016-03-16 Tcl移动通信科技(宁波)有限公司 Mobile terminal, ambient light dynamic induction control method, ambient light dynamic induction control system
CN105469775A (en) * 2016-01-29 2016-04-06 广东欧珀移动通信有限公司 Method for adjusting brightness of display screen and terminal equipment

Also Published As

Publication number Publication date
CN106098021A (en) 2016-11-09

Similar Documents

Publication Publication Date Title
CN106098021B (en) A kind of back light brightness regulating method and terminal
EP3561765B1 (en) Dynamic tone mapping method, mobile terminal, and computer readable storage medium
US11914446B2 (en) Electronic device control method and apparatus, and electronic device
US10181305B2 (en) Method of controlling display and electronic device for providing the same
CN104618588A (en) Method for regulating terminal screen brightness
CN107409171B (en) Method and apparatus for image capture
EP3062511A1 (en) Method and device for adjusting frame rate of video recording
KR102642689B1 (en) Electronic Apparatus and the Method for Controlling Traffic thereof
CN105632447A (en) Display brightness adjustment method and device of liquid crystal display
KR20150099302A (en) Electronic device and control method of the same
CN104464686A (en) Display brilliance control method and electronic device
US20150356905A1 (en) Liquid crystal display device
JP2017511514A (en) Image processing method and apparatus, and computer device
CN108510964B (en) Screen brightness adjusting range adjusting method and device, terminal and storage medium
CN104023145A (en) Method and device for automatically starting automatic backlight adjustment of mobile terminal
CN108733428B (en) Screen display control method and device
CN110688081A (en) Method for displaying data on screen and display control device
CN107277259B (en) Signal adjusting method, electronic device and computer readable storage medium
CN104754219A (en) Terminal
CN110609718A (en) Picture loading method and device, electronic equipment and readable storage medium
CN107018230A (en) A kind of back light brightness regulating method and terminal
CN106297675A (en) A kind of method for controlling backlight thereof and device
CN106453930B (en) Method for lighting screen of mobile terminal and mobile terminal
CN113395457A (en) Parameter adjusting method, device and equipment of image collector and storage medium
CN111506181A (en) Automatic equipment brightness adjusting method, device, equipment and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant after: OPPO Guangdong Mobile Communications Co., Ltd.

Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant before: Guangdong OPPO Mobile Communications Co., Ltd.

GR01 Patent grant
GR01 Patent grant