CN110930964B - Display screen brightness adjusting method and device, storage medium and terminal - Google Patents
Display screen brightness adjusting method and device, storage medium and terminal Download PDFInfo
- Publication number
- CN110930964B CN110930964B CN201911264547.1A CN201911264547A CN110930964B CN 110930964 B CN110930964 B CN 110930964B CN 201911264547 A CN201911264547 A CN 201911264547A CN 110930964 B CN110930964 B CN 110930964B
- Authority
- CN
- China
- Prior art keywords
- brightness
- value
- display screen
- display
- terminal
- 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
- G09G5/00—Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
- G09G5/10—Intensity circuits
Abstract
The embodiment of the application discloses a display screen brightness adjusting method and device, a storage medium and a terminal. The method comprises the following steps: acquiring a current environment brightness value; judging whether the brightness value is smaller than a preset threshold value or not; if so, acquiring a distance value between the current position and the front position of the face of the user; and adjusting the brightness of the display screen according to the distance value. According to the embodiment, the brightness of the environment when the current terminal is used is detected, the brightness of the environment is compared with the brightness of the terminal display screen, the terminal display screen light is used as a light source for enhancing or weakening the weak environment light of the user, the range environment light brightness of the user is enhanced or weakened, and the brightness adjusting efficiency of the terminal display screen can be effectively improved.
Description
Technical Field
The application relates to the field of mobile terminal application, in particular to a display screen brightness adjusting method and device, a storage medium and a terminal.
Background
With the development of science and technology, various intelligent terminals are more and more popularized in life, people strongly depend on the intelligent terminals, and the intelligent terminals are applied to various environments, such as strong light environments like open air in sunny days or under light, and weak light environments like cloudy days or at night. Human eyes are very sensitive to the brightness of the display screen of the intelligent terminal, and the brightness of the display screen not only influences user experience, but also influences the eye health of the user.
In the related art, the brightness of the weak environment light where the user is located does not change when the user uses the intelligent terminal, the user uses the intelligent mobile terminal in the weak environment light, and the difference between the light of the mobile terminal screen and the light of the environment is large, so that the user is uncomfortable to use.
Disclosure of Invention
The embodiment of the application provides a display screen brightness adjusting method and device, a storage medium and a terminal, which can effectively improve the brightness adjusting efficiency of a terminal display screen.
The embodiment of the application provides a display screen brightness adjusting method, which comprises the following steps:
acquiring a current environment brightness value;
judging whether the brightness value is smaller than a preset threshold value or not;
if so, acquiring a distance value between the current position and the front position of the face of the user;
and adjusting the brightness of the display screen according to the distance value.
Correspondingly, the embodiment of the present application further provides a display screen brightness adjusting device, including:
the first acquisition unit is used for acquiring a current environment brightness value;
the judging unit is used for judging whether the brightness value is smaller than a preset threshold value or not;
the second acquisition unit is used for acquiring the current distance value between the user and the face of the user;
and the adjusting unit is used for adjusting the brightness of the display screen according to the distance value.
Correspondingly, the embodiment of the application 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 execute the steps in the display screen brightness adjusting method.
Correspondingly, the embodiment of the application also provides a terminal, which comprises a processor and a memory, wherein the memory stores a plurality of instructions, and the processor loads the instructions to execute the steps in the display screen brightness adjusting method.
The embodiment of the application discloses a display screen brightness adjusting method and device, a storage medium and a terminal. The method comprises the following steps: acquiring a current environment brightness value; judging whether the brightness value is smaller than a preset threshold value or not; if so, acquiring a distance value between the current position and the front position of the face of the user; and adjusting the brightness of the display screen according to the distance value. According to the embodiment, the brightness of the environment when the current terminal is used is detected, the brightness of the environment is compared with the brightness of the terminal display screen, the terminal display screen light is used as a light source for enhancing or weakening the weak environment light of the user, the range environment light brightness of the user is enhanced or weakened, and the brightness adjusting efficiency of the terminal display screen 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 schematic flowchart of a first display screen brightness adjustment method according to an embodiment of the present disclosure.
Fig. 2 is a display sub-area display diagram of a method for adjusting brightness of a display screen according to an embodiment of the present disclosure.
Fig. 3 is a flowchart illustrating a second method for adjusting brightness of a display screen according to an embodiment of the present disclosure.
Fig. 4 is a display content display interface diagram of a display screen brightness adjustment method according to an embodiment of the present application.
Fig. 5 is a block diagram of a display screen brightness adjusting apparatus according to an embodiment of the present application.
Fig. 6 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 above problems, embodiments of the present application provide a display screen brightness adjustment method, device, storage medium, and terminal, which can effectively improve brightness adjustment efficiency of a display screen 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 method for adjusting brightness of a display screen according to an embodiment of the present disclosure. The display screen brightness adjusting method can be applied to mobile terminals such as mobile phones, tablet computers, notebook computers, palm computers, Portable Media Players (PMPs) and the like, and fixed terminals such as desktop computers and the like. The specific flow of the display screen brightness adjusting method can be as follows:
101. and acquiring the current environment brightness value.
Specifically, the current environment brightness value may be obtained through a brightness sensor, which may be installed on the terminal device, for example, the brightness sensor may be disposed above the terminal screen. The brightness sensor of the terminal is used for detecting the current environment brightness value, and the current environment brightness value can be detected by turning on the power supply of the terminal so that the brightness sensor is in a working state.
Among them, a brightness Sensor, known by the english name Light-Sensor, is equipped in many tablet computers and mobile phones. The screen brightness of the handheld device can be automatically adjusted according to the brightness of the light of the handheld device at present, and an optimal visual effect is brought to a user. The brightness sensor is composed of two components, i.e. light projector and light receiver, and utilizes the light projector to focus the light from lens, and then transmits it to lens of light receiver, and then to receiving sensor, and the receiving sensor converts the received light signal into electric signal, and said telecommunication signal can be further used for various switching and control actions, and its basic principle is that the signal obtained by the action of shielding light between light projector and light receiver can be used to implement various automatic controls.
When the terminal is powered on, the brightness sensor can detect the brightness value of the surrounding environment in real time, for example, the brightness sensor can detect that the current environment brightness value can be 100, 200, 300Lux (brightness unit: Lux)
102. And judging whether the brightness value is smaller than a preset threshold value.
After the current environment brightness value is obtained, the current environment brightness value may be compared with a preset threshold, where the preset threshold may be a minimum comfortable brightness value that can be accepted by human eyes, that is, in the preset threshold and a brightness environment greater than the preset threshold, a user may not be greatly affected by the brightness of the external environment when using the terminal.
For example, if the current environment brightness value may be 50Lux and the preset threshold may be 100Lux, it may be determined that the current environment brightness value is smaller than the preset threshold, and step 103 may be executed; for another example, if the current environment brightness value may be 200Lux and the preset threshold may be 100Lux, it may be determined that the current environment brightness value is greater than the preset threshold, and step 105 may be executed.
103. And acquiring a distance value between the current face and the face of the user.
Specifically, after determining that the current environment brightness value is smaller than the preset threshold, a distance value between the current environment brightness value and the face of the user may be obtained, where the distance value may refer to a distance between the current terminal display screen and the face of the user. Wherein, the distance value can be obtained by a distance sensor.
The distance sensors are also called displacement sensors, and are generally arranged on two sides of the mobile phone receiver or in the groove of the mobile phone receiver, so that the mobile phone receiver is convenient to work. Distance sensors are classified into laser distance sensors and ultrasonic distance sensors according to different measurement principles. Distance sensors used in mobile phones generally consist of two components, which are arranged at a slight angle, wherein one component emits a particularly short light pulse, so that when an object is close enough, the object to be detected reflects infrared rays onto the component which receives or detects the infrared rays. The distance to the object can then be calculated from the time interval by measuring the time from the emission of the light pulse to the reflection of the light pulse by the object.
For example, the distance sensor detects that the current distance between the terminal display screen and the face of the user can be 0.1 meter, 0.2 meter, 0.3 meter, 0.4 meter, and the like.
104. And adjusting the brightness of the display screen according to the distance value.
Specifically, the brightness of the display screen can be increased or decreased according to the distance value, because the distance between the face of the user and the display screen of the terminal is dynamically changed when the user uses the terminal, the brightness of the display screen can be adjusted according to the change of the distance value.
For example, when the distance value is small, that is, the face of the user is close to the display screen of the terminal, the brightness of the display screen of the terminal can be correspondingly reduced; when the distance value is larger, namely the face of the user is far away from the display screen of the terminal, the brightness of the display screen of the terminal can be correspondingly increased.
In some embodiments, the step of "adjusting the brightness of the display screen according to the distance value" may include the following steps:
acquiring brightness values of a plurality of display sub-regions;
sorting the display sub-regions based on the brightness values of the display sub-regions to obtain a sorting result;
judging whether the distance value is greater than a preset distance or not;
and if so, increasing the brightness values of the display sub-regions in corresponding quantity according to the sorting result.
Specifically, the luminance value of the display screen of the terminal is obtained, and the terminal may be divided into a plurality of display sub-regions, for example, referring to fig. 2, and fig. 2 is a display sub-region display diagram of a display screen luminance adjusting method provided in the embodiment of the present application. In fig. 2, the terminal display area, that is, the visual area of the terminal, may be divided into a plurality of display sub-areas, where the division manner for dividing the terminal visual area into a plurality of display sub-areas may be various, for example, the visual area may be divided into rectangular display sub-areas with the same area size, and the like.
The brightness values of the plurality of display sub-regions are acquired, and the brightness value of each display sub-region can be detected through the light source driving module, so that the brightness values of different display sub-regions are acquired. After the brightness values of the display sub-regions are obtained, the display sub-regions may be sorted according to the brightness values of the display sub-regions.
The sorting may include a plurality of sorting manners, for example, the display sub-regions may be sorted in turn according to the brightness values of the display sub-regions. For example, the display sub-regions may include a display sub-region 1, a display sub-region 2, a display sub-region 3, a display sub-region 4, a display sub-region 5, and the like, and according to that the light source driving module may detect that the luminance value of the display sub-region 1 is 30Lux, the luminance value of the display sub-region 2 is 40Lux, the luminance value of the display sub-region 3 is 20Lux, the luminance value of the display sub-region 4 is 10Lux, and the luminance value of the display sub-region 5 is 50Lux, and then sequentially sorting according to the luminance values, the sorted list of the display sub-regions may be obtained as the display sub-region 4, the display.
After the sequencing result of the display sub-regions is determined, the acquired distance value between the terminal display screen and the face of the user can be compared with a preset distance, and then the brightness value of the current terminal display screen is adjusted according to the comparison result.
For example, when the distance sensor detects that the distance value between the current terminal display screen and the face of the user can be 0.5 m, and the preset distance can be 0.3 m, it can be determined that the distance value is greater than the preset distance, and when the distance value is greater than the preset distance, the light brightness in the distance range between the face of the user and the terminal display screen is weakened, and in order to ensure that the user is in a comfortable light environment, the brightness value of the display sub-regions in corresponding quantity can be increased according to the sequencing result, namely, the sequencing list of the display sub-regions.
In some embodiments, the step of "increasing the brightness value of the corresponding number of display sub-regions according to the sorting result" may include the following procedures:
acquiring an electric signal value of each display sub-region;
performing superposition processing on the electric signal values based on the sequencing result to obtain a total electric signal value;
and increasing the brightness value of the corresponding display sub-area according to the total value of the electric signals.
Specifically, the brightness values of the display sub-units in the corresponding number are increased according to the sorting result, the electrical signal value of each display sub-region may be obtained first, and the electrical signal value may be a current value, which may be detected by the light source driving module, and because the brightness value of each display sub-region is different, the electrical signal value of each display sub-region may also have a corresponding difference.
For example, the display sub-regions may include a display sub-region 1, a display sub-region 2, a display sub-region 3, a display sub-region 4, and a display sub-region 5, and the light source driving module detects that the current value of the display sub-region 1 may be 0.1A (ampere), the current value of the display sub-region 2 may be 0.2A, the current value of the display sub-region 3 may be 0.2A, the current value of the display sub-region may be 0.1A, and the current value of the display sub-region 5 may be 0.3A.
Further, after the electric signal value of each display sub-region is obtained, the electric signal values of the corresponding display sub-regions may be subjected to superposition processing according to the sequencing result of the plurality of sub-regions, so as to obtain a total electric signal value.
For example, the ordered list of the display sub-regions may be the display sub-region 4, the display sub-region 3, the display sub-region 1, the display sub-region 2, and the display sub-region 5, and the current values of the corresponding display sub-regions may be sequentially superimposed according to the order of the ordered list, that is, the total current value may be 0.9A for the current value of the display sub-region 4, the current value of the display sub-region 3, the current value of the display sub-region 1, the current value of the display sub-region 2, and the current value of the display sub-.
After the total current value is obtained, the brightness value of the corresponding number of display sub-regions may be increased according to the total current value. Since the brightness value of the terminal display screen has the maximum upper limit value, and the power consumption of the light source driving module may also have the upper limit value, in some embodiments, the step of "increasing the brightness values of the corresponding number of display sub-regions according to the total value of the electrical signals" may include the following process:
judging whether the total value of the electric signals is smaller than a preset electric signal value or not when each electric signal value of one display sub-region is superposed on the sequencing result;
and when the total electric signal value is larger than the preset electric signal value, stopping superposing the electric signal value of the next display sub-area.
Specifically, when the current value of each display sub-region is subjected to the superposition processing, there may be a plurality of superposition manners, for example, a single superposition or a plurality of superpositions may be performed at a time, and in order to more specifically represent the power consumption of the current light source driving module, a single current value may be selected to be superposed at a time in this embodiment.
For example, the ordered list of the display sub-regions may be the display sub-region 4, the display sub-region 3, the display sub-region 1, the display sub-region 2, and the display sub-region 5, and then the current value is superimposed according to a single current value at a time, that is, the current value of the display sub-region 4 is added to the current value of the current sub-region 3 to obtain a total current value 1, then the total current value 1 is added to the current value of the display sub-region 1 to obtain a total current value 2, then the total current value 2 is added to the current value of the display sub-region 2 to obtain a total current value 3, and finally the total current value.
After all the total values of the electrical signals are obtained, each of the total values of the electrical signals may be compared with a preset electrical signal value, for example, a total current value 1 of 0.3A, a total current value 2 of 0.4A, a total current value 3 of 0.6A, and a total current value 0.9A may be obtained according to the above steps. The preset current value may be 0.5A, and it may be determined that the total current value obtained after the total current value 2 is greater than the preset current value.
Specifically, the method comprises the following steps. When the total value of the electrical signals is greater than the preset electrical signal value, the electrical signal value of the next display sub-region is stopped being superimposed, that is, the current display screen brightness power consumption exceeds the preset power consumption, the brightness increase adjustment of the next display sub-region may be stopped, for example, the display brightness of the display sub-region with the corresponding current value included in the total current value 2 may be increased, that is, the brightness of the display sub-region 3, and the display sub-region 2 may be increased.
In some embodiments, before the step of "increasing the brightness value of the corresponding number of display sub-regions according to the sorting result", the following steps may be further included:
and when the distance value is detected to be smaller than the preset distance, reducing the brightness value of the corresponding number of display sub-regions based on the sorting result.
Specifically, when it is detected that the distance value between the terminal display screen and the face of the user is smaller than the preset distance, the brightness values of the display sub-regions in the corresponding number may be reduced based on the sorting result of the display sub-regions.
For example, when the distance sensor detects that the distance value between the current terminal display screen and the face of the user can be 0.2 m, and the preset distance can be 0.3 m, it can be determined that the distance value is smaller than the preset distance, and when the distance value is smaller than the preset distance, the light brightness in the distance range between the face of the user and the terminal display screen is enhanced, and in order to ensure that the user is in a comfortable light environment, the sorting list of the sub-regions can be displayed according to the sorting result, and the brightness value of the corresponding number of display sub-regions can be reduced.
In some embodiments, the step of "adjusting the brightness of the display screen according to the distance value" may include the following steps:
detecting the display content position of the current display screen;
and adjusting the brightness value of the display content position.
Specifically, the display content position of the current display screen is detected, and the display content position may be an area where the main display content is located in the display interface of the current display screen, for example, the display content position may be at the top, the bottom, the left side, or the right side of the display screen, and so on.
After the display content position is detected, the brightness of the display content position area can be adjusted, so that the power consumption of the terminal can be saved, and a proper brightness view field is provided for a user in the process of using the terminal.
105. And acquiring the brightness value of the display screen.
When the ambient brightness value is greater than the preset threshold, the user is not greatly influenced by the ambient brightness when using the terminal under the current ambient brightness. However, the brightness of the display screen of the terminal is different from the ambient brightness, and the brightness of the display screen can be adjusted through the brightness of the display screen and the ambient brightness, so that a better light view field is provided for a user. The brightness of the display screen can be acquired through the light source driving module.
For example, the acquired current display screen brightness may be 150 Lux.
106. And adjusting the brightness of the display screen according to the brightness value.
According to the acquired brightness of the display screen, the current brightness of the display screen can be determined to be smaller than the ambient brightness, and then the light source driving module can be triggered to adjust the brightness, so that the brightness of the display screen is adjusted to be the same as the current ambient brightness. For example, the ambient brightness is 200Lux, the display screen brightness may be 150Lux, and the light source driving module may adjust the display screen brightness to 200Lux, so as to maintain the uniformity of the display screen brightness and the ambient brightness.
The embodiment of the application discloses a display screen brightness adjusting method. The method comprises the following steps: acquiring a current environment brightness value; judging whether the brightness value is smaller than a preset threshold value or not; if so, acquiring a distance value between the current position and the front position of the face of the user; and adjusting the brightness of the display screen according to the distance value. According to the embodiment, the brightness of the environment when the current terminal is used is detected, the brightness of the environment is compared with the brightness of the terminal display screen, the terminal display screen light is used as a light source for enhancing or weakening the weak environment light of the user, the range environment light brightness of the user is enhanced or weakened, and the brightness adjusting efficiency of the terminal display screen can be effectively improved.
Referring to fig. 3, fig. 3 is a schematic flowchart of a second display screen brightness adjustment method according to an embodiment of the present disclosure. The specific scene application of the display screen brightness adjusting method can be as follows:
201. the terminal detects that the current display screen is in a use state.
Specifically, when the terminal detects that the current display screen is in the use state, whether the current display screen is in the bright screen state or not can be detected, and if yes, the current display screen can be judged to be in the use state.
For example, when the user turns on the power button of the terminal, the terminal may be powered on to perform the corresponding operation triggered by the user.
202. The terminal acquires a position area of the display content in the display screen.
Specifically, the terminal acquires a position area of the display content in the display screen, and can acquire corresponding operations required by the user through the touch operation of the user on the current display screen.
For example, after the terminal is turned on, a user needs to play a video, may open a video folder, and then select a video to be played in the video folder, and play the video through the terminal, referring to fig. 4, where fig. 4 is a display content display interface diagram of a display screen brightness adjustment method provided in the embodiment of the present application.
Fig. 4 may show a video playing interface displayed after a user opens a video file, where a content area of the video playing display may be shown as a location area. The position display area can be a main display area in the current display screen, namely when the brightness of the display screen is adjusted, the position display area can be mainly adjusted according to the position area, so that the power consumption of the terminal can be saved, and the brightness adjusting efficiency is improved.
203. The terminal acquires the brightness value of the position area.
After the terminal acquires the position area of the display content in the current display screen, the brightness value of the position area can be acquired. Specifically, when the brightness value of the position area is obtained, the brightness value can be obtained through the brightness sensor, the brightness sensor can be located inside the terminal, for example, the brightness sensor can be arranged above a display screen of the terminal, and the brightness value of the current position area can be conveniently detected.
For example, the brightness sensor detects that the current position area brightness value can be 100 Lux.
204. The terminal obtains the distance value between the display screen and the face of the user.
Specifically, the terminal acquires a distance value between the display screen and the face of the user, and the distance value can be acquired through a distance sensor. Wherein the distance sensor may be located inside the terminal, for example, the distance sensor may be arranged above the display screen.
For example, the distance sensor may detect that the current distance between the terminal display screen and the user's face has a value of 0.5 meters.
205. And the terminal judges whether the distance value is greater than a preset distance.
Specifically, after the terminal acquires the distance value between the display screen and the face of the user, in order to perform specific brightness adjustment operation on the display screen, the distance value between the display screen and the face of the user may be compared with a preset distance value, and the brightness of the display screen is increased or decreased according to the comparison result. The definition of the preset distance may refer to the above embodiments, which are not described herein in detail.
For example, the distance value between the display screen and the face of the user may be 0.5 m, the preset distance may be 0.3 m or 0.6 m, and the like, when the preset distance is 0.3 m, it may be determined that the distance value between the display screen and the face of the user is greater than the preset distance, and step 206 may be performed; when the preset distance is 0.6 m, it may be determined that the distance value between the display screen and the face of the user is smaller than the preset distance, and step 207 may be performed.
206. The terminal increases the brightness value of the position area in the display screen.
When the distance value between the display screen and the face of the user is determined to be larger than the preset distance, the brightness value of the position area in the current display screen can be obtained, then brightness adjustment can be carried out on the brightness value of the position area based on the preset maximum brightness value of the display screen, and the brightness value of the position area can be increased.
For example, the preset maximum brightness value of the display screen may be 500Lux, and the brightness value of the position area may be increased to 500Lux, so that the brightness between the current user face and the display screen terminal may be increased.
207. The terminal reduces the brightness value of the location area in the display screen.
When the distance value between the display screen and the face of the user is determined to be smaller than the preset distance, the brightness value of the position area in the current display screen can be obtained, then the brightness value of the position area can be adjusted based on the minimum brightness value of the display screen, and the brightness value of the position area can be reduced.
For example, the preset minimum brightness value of the display screen may be 20Lux, and the brightness value of the location area may be reduced to 20Lux, so that the brightness between the current face of the user and the terminal of the display screen may be reduced appropriately.
The embodiment of the application discloses a display screen brightness adjusting method. The method comprises the following steps: acquiring a current environment brightness value; judging whether the brightness value is smaller than a preset threshold value or not; if so, acquiring a distance value between the current position and the front position of the face of the user; and adjusting the brightness of the display screen according to the distance value. According to the embodiment, the brightness of the environment when the current terminal is used is detected, the brightness of the environment is compared with the brightness of the terminal display screen, the terminal display screen light is used as a light source for enhancing or weakening the weak environment light of the user, the range environment light brightness of the user is enhanced or weakened, and the brightness adjusting efficiency of the terminal display screen can be effectively improved.
In order to better implement the display screen brightness adjusting method provided by the embodiment of the present application, the embodiment of the present application further provides a device based on the display screen brightness adjusting method. The terms are the same as those in the above display screen brightness adjusting method, and specific implementation details can refer to the description in the method embodiment.
Referring to fig. 5, fig. 5 is a block diagram of a display screen brightness adjusting device according to an embodiment of the present disclosure, including:
a first obtaining unit 301, configured to obtain a current environment brightness value;
a determining unit 302, configured to determine whether the brightness value is smaller than a preset threshold;
a second obtaining unit 303, configured to obtain a current distance value from the face of the user;
and the adjusting unit 304 is used for adjusting the brightness of the display screen according to the distance value.
In some embodiments, the adjusting unit 304 may include:
an acquisition subunit, configured to acquire luminance values of a plurality of display sub-regions;
the sorting subunit is used for sorting the display subregions based on the brightness values of the display subregions to obtain a sorting result;
the judging subunit is used for judging whether the distance value is greater than a preset distance;
and the adjusting subunit is used for increasing the brightness values of the display sub-regions in corresponding quantity according to the sorting result.
In some embodiments, the conditioning subunit may be specifically configured to: acquiring an electric signal value of each display sub-region; performing superposition processing on the electric signal values based on the sequencing result to obtain a total electric signal value; judging whether the total value of the electric signals is smaller than a preset electric signal value or not when each electric signal value of one display sub-region is superposed on the sequencing result; and when the total electric signal value is larger than the preset electric signal value, stopping superposing the electric signal value of the next display sub-area.
In some embodiments, the adjusting unit 304 may further include:
and the execution subunit is used for reducing the brightness value of the corresponding number of display sub-areas based on the sorting result when the distance value is detected to be smaller than the preset distance.
In some embodiments, the display screen brightness adjusting apparatus may further include:
the third obtaining unit is used for obtaining the brightness value of the display screen if the brightness value is larger than or equal to a preset threshold value;
and the operation unit is used for adjusting the brightness of the display screen according to the brightness value.
In some embodiments, the adjusting unit 304 may include:
the detection subunit is used for detecting the display content position of the current display screen;
and the operation subunit is used for adjusting the brightness value of the display content position.
The embodiment of the application discloses display screen brightness control device includes: acquiring a current environment brightness value; judging whether the brightness value is smaller than a preset threshold value or not; if so, acquiring a distance value between the current position and the front position of the face of the user; and adjusting the brightness of the display screen according to the distance value. According to the embodiment, the brightness of the environment when the current terminal is used is detected, the brightness of the environment is compared with the brightness of the terminal display screen, the terminal display screen light is used as a light source for enhancing or weakening the weak environment light of the user, the range environment light brightness of the user is enhanced or weakened, and the brightness adjusting efficiency of the terminal display screen can be effectively improved.
The embodiment of the application also provides a terminal. As shown in fig. 6, 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. 6 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. 6 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. 6 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:
acquiring a current environment brightness value;
judging whether the brightness value is smaller than a preset threshold value or not;
if so, acquiring a distance value between the current position and the front position of the face of the user;
and adjusting the brightness of the display screen according to the distance value.
The embodiment of the application discloses a display screen brightness adjusting method, a display screen brightness adjusting device, a storage medium and a terminal, and the display screen brightness adjusting method, the storage medium and the terminal are used for obtaining the current environment brightness value; judging whether the brightness value is smaller than a preset threshold value or not; if so, acquiring a distance value between the current position and the front position of the face of the user; and adjusting the brightness of the display screen according to the distance value. According to the embodiment, the brightness of the environment when the current terminal is used is detected, the brightness of the environment is compared with the brightness of the terminal display screen, the terminal display screen light is used as a light source for enhancing or weakening the weak environment light of the user, the range environment light brightness of the user is enhanced or weakened, and the brightness adjusting efficiency of the terminal display screen can be effectively improved.
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 display screen brightness adjustment methods provided in the present application. For example, the instructions may perform the steps of:
acquiring a current environment brightness value; judging whether the brightness value is smaller than a preset threshold value or not; if so, acquiring a distance value between the current position and the front position of the face of the user; and adjusting the brightness of the display screen according to the distance value.
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 display screen brightness adjustment method provided in the embodiments of the present application, beneficial effects that can be achieved by any display screen brightness adjustment 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 display screen brightness adjusting method, device, storage medium and terminal provided by the embodiment of the present application are described in detail above, a specific example is applied in the present application to explain the principle and the implementation of the present application, and the description of the above embodiment is only used to help understanding 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 (8)
1. A display screen brightness adjusting method is applied to a terminal and is characterized by comprising the following steps:
acquiring a current environment brightness value;
judging whether the brightness value is smaller than a preset threshold value or not;
if so, acquiring a distance value between the current position and the front position of the face of the user;
adjusting the brightness of the display screen according to the distance value, comprising:
acquiring brightness values of a plurality of display sub-regions;
sorting the display sub-regions based on the brightness values of the display sub-regions to obtain a sorting result;
judging whether the distance value is greater than a preset distance or not;
if so, acquiring an electric signal value of each display sub-region;
performing superposition processing on the electric signal values based on the sequencing result to obtain a total electric signal value;
and increasing the brightness value of the corresponding display sub-area according to the total value of the electric signals.
2. The method of claim 1, wherein said increasing the brightness value of a corresponding number of display sub-regions according to the total value of the electrical signal comprises:
judging whether the total value of the electric signals is smaller than a preset electric signal value or not when each electric signal value of one display sub-region is superposed on the sequencing result;
and when the total electric signal value is larger than the preset electric signal value, stopping superposing the electric signal value of the next display sub-area.
3. The method of claim 1, further comprising, prior to obtaining the electrical signal value for each display sub-region:
and when the distance value is detected to be smaller than the preset distance, reducing the brightness value of the corresponding number of display sub-regions based on the sorting result.
4. The method of claim 1, further comprising:
if the brightness value is larger than or equal to a preset threshold value, acquiring a brightness value of the display screen;
and adjusting the brightness of the display screen according to the brightness value.
5. The method of claim 1, wherein said adjusting display screen brightness based on said distance value comprises:
detecting the display content position of the current display screen;
and adjusting the brightness value of the display content position.
6. A display screen brightness adjusting device, comprising:
the first acquisition unit is used for acquiring a current environment brightness value;
the judging unit is used for judging whether the brightness value is smaller than a preset threshold value or not;
the second acquisition unit is used for acquiring the current distance value between the user and the face of the user;
the adjusting unit is used for adjusting the brightness of the display screen according to the distance value and comprises:
acquiring brightness values of a plurality of display sub-regions;
sorting the display sub-regions based on the brightness values of the display sub-regions to obtain a sorting result;
judging whether the distance value is greater than a preset distance or not;
if so, acquiring an electric signal value of each display sub-region;
performing superposition processing on the electric signal values based on the sequencing result to obtain a total electric signal value;
and increasing the brightness value of the corresponding display sub-area according to the total value of the electric signals.
7. A storage medium storing instructions adapted to be loaded by a processor to perform the steps of the method of any one of claims 1 to 5.
8. A terminal comprising a processor and a memory, wherein the memory stores a plurality of instructions, and the processor loads the instructions to perform the steps of the method for adjusting brightness of a display screen according to any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911264547.1A CN110930964B (en) | 2019-12-11 | 2019-12-11 | Display screen brightness adjusting method and device, storage medium and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911264547.1A CN110930964B (en) | 2019-12-11 | 2019-12-11 | Display screen brightness adjusting method and device, storage medium and terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110930964A CN110930964A (en) | 2020-03-27 |
CN110930964B true CN110930964B (en) | 2021-04-09 |
Family
ID=69858852
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911264547.1A Active CN110930964B (en) | 2019-12-11 | 2019-12-11 | Display screen brightness adjusting method and device, storage medium and terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110930964B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113593484B (en) * | 2021-07-17 | 2022-07-01 | 何磊 | Backlight brightness adjusting method, system and device and display equipment |
CN113495629B (en) * | 2021-09-08 | 2021-11-30 | 艾伯资讯(深圳)有限公司 | Notebook computer display screen brightness adjusting system and method |
CN116229890B (en) * | 2023-05-08 | 2023-07-28 | 中国标准化研究院 | Intelligent control method and control system based on LED display screen |
Family Cites Families (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3347074B2 (en) * | 1998-10-05 | 2002-11-20 | エヌイーシーアクセステクニカ株式会社 | Light amount control method of light emitting unit and telephone having light emitting unit for controlling light amount |
CN104468912B (en) * | 2014-12-08 | 2018-01-16 | 上海斐讯数据通信技术有限公司 | A kind of control method and its display terminal of mobile terminal screen brightness |
CN104575447A (en) * | 2015-02-11 | 2015-04-29 | 京东方科技集团股份有限公司 | Brightness adjusting device and method thereof and display |
CN105959490B (en) * | 2016-06-28 | 2019-08-20 | Oppo广东移动通信有限公司 | Control method, control device and electronic device |
CN106210536A (en) * | 2016-08-04 | 2016-12-07 | 深圳众思科技有限公司 | A kind of screen luminance adjustment method, device and terminal |
CN106681609B (en) * | 2016-12-15 | 2019-01-18 | 珠海格力电器股份有限公司 | A kind of terminal device screen luminance adjustment method, device and terminal device |
CN107491162A (en) * | 2017-09-29 | 2017-12-19 | 河南职业技术学院 | Display screen state adjustment method, display screen state adjusting device and terminal |
CN107767839B (en) * | 2017-10-20 | 2020-01-31 | Oppo广东移动通信有限公司 | Brightness adjusting method and related product |
-
2019
- 2019-12-11 CN CN201911264547.1A patent/CN110930964B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN110930964A (en) | 2020-03-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10326861B2 (en) | Method for controlling cooperation of multiple intelligent devices and apparatus thereof | |
WO2018095129A1 (en) | Method and device for playing live video | |
CN106993227B (en) | Method and device for information display | |
CN111179861B (en) | Brightness calibration method and device, storage medium and terminal | |
RU2632153C2 (en) | Method, device and terminal for displaying virtual keyboard | |
CN110930964B (en) | Display screen brightness adjusting method and device, storage medium and terminal | |
CN111158455A (en) | Power consumption control method and device, storage medium and terminal | |
CN106850983B (en) | screen-off control method and device, terminal and storage medium | |
CN111954286B (en) | Power adjusting method, device, storage medium and terminal | |
CN106487984B (en) | A kind of method and apparatus adjusting volume | |
CN103530520A (en) | Method and terminal for obtaining data | |
CN110688051B (en) | Screen recording operation method and device, computer readable storage medium and terminal | |
CN106532876B (en) | Power supply control method and device and computer equipment | |
CN107622234B (en) | Method and device for displaying budding face gift | |
CN108564539B (en) | Method and device for displaying image | |
CN111372003A (en) | Camera switching method and device and terminal | |
CN112542867B (en) | Mobile terminal power supply control method and device, terminal equipment and storage medium | |
CN111355991B (en) | Video playing method and device, storage medium and mobile terminal | |
CN114582264A (en) | Display brightness control method and device, electronic equipment and storage medium | |
CN110120208B (en) | Method for automatically adjusting screen display, wearable device and storage medium | |
CN111898542A (en) | Display screen control method and device and terminal | |
CN111107616A (en) | Light sensor control method and device and terminal | |
CN111026259A (en) | Control method and device of mobile terminal and storage medium | |
CN110618798A (en) | Multi-screen display method, multi-screen device, storage medium and terminal equipment | |
CN111163223A (en) | Flash lamp control method and device, 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 |