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, andstep 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, andstep 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 obtainingunit 301, configured to obtain a current environment brightness value;
a determiningunit 302, configured to determine whether the brightness value is smaller than a preset threshold;
a second obtainingunit 303, configured to obtain a current distance value from the face of the user;
and the adjustingunit 304 is used for adjusting the brightness of the display screen according to the distance value.
In some embodiments, the adjustingunit 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 adjustingunit 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 adjustingunit 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, amemory 602 including one or more storage media, aninput unit 603, adisplay unit 604, asensor 605, anaudio circuit 606, a Wireless Fidelity (WiFi)module 607, aprocessor 608 including one or more processing cores, and apower 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:
theRF 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 ormore processors 608; in addition, data relating to uplink is transmitted to the base station. In general, theRF 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, theRF circuit 601 may also communicate with networks and other devices via wireless communications.
Thememory 602 may be used to store software programs and modules, and theprocessor 608 executes various functional applications and data processing by operating the software programs and modules stored in thememory 602. Thememory 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, thememory 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, thememory 602 may also include a memory controller to provide theprocessor 608 and theinput unit 603 access to thememory 602.
Theinput 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. Theinput 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.
Thedisplay 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. TheDisplay 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 theprocessor 608 to determine the type of touch event, and theprocessor 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 onesensor 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.
Audio circuitry 606, speakers, and microphones may provide an audio interface between the user and the server. Theaudio circuit 606 may transmit the electrical signal converted from the received audio data to a speaker, and convert the electrical signal into a sound signal for output; on the other hand, the microphone converts the collected sound signal into an electrical signal, which is received by theaudio circuit 606 and converted into audio data, which is then processed by the audiodata output processor 608, and then passed through theRF circuit 601 to be sent to, for example, a terminal, or the audio data is output to thememory 602 for further processing. Theaudio circuitry 606 may also include an ear-bud jack to provide communication of peripheral headphones with the server.
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 theWiFi module 607, and provides wireless broadband internet access for the user. Although fig. 6 shows theWiFi 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.
Theprocessor 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 thememory 602 and calling data stored in thememory 602, thereby performing overall monitoring of the handset. Optionally,processor 608 may include one or more processing cores; preferably, theprocessor 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 theprocessor 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 theprocessor 608 via a power management system that may be used to manage charging, discharging, and power consumption. Thepower 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, theprocessor 608 in the terminal loads the executable file corresponding to the process of one or more application programs into thememory 602 according to the following instructions, and theprocessor 608 runs the application programs stored in thememory 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.