CN111556194B - Brightness adjusting method and device, storage medium and terminal - Google Patents

Brightness adjusting method and device, storage medium and terminal Download PDF

Info

Publication number
CN111556194B
CN111556194B CN202010244925.6A CN202010244925A CN111556194B CN 111556194 B CN111556194 B CN 111556194B CN 202010244925 A CN202010244925 A CN 202010244925A CN 111556194 B CN111556194 B CN 111556194B
Authority
CN
China
Prior art keywords
brightness value
display unit
preset
user
brightness
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010244925.6A
Other languages
Chinese (zh)
Other versions
CN111556194A (en
Inventor
刘焕发
陈达
张涛
王德兴
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Original Assignee
Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yulong Computer Telecommunication Scientific Shenzhen Co Ltd filed Critical Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Priority to CN202010244925.6A priority Critical patent/CN111556194B/en
Publication of CN111556194A publication Critical patent/CN111556194A/en
Application granted granted Critical
Publication of CN111556194B publication Critical patent/CN111556194B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions

Landscapes

  • Engineering & Computer Science (AREA)
  • Environmental & Geological Engineering (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the application discloses a brightness adjusting method, a brightness adjusting device, a storage medium and a terminal, and belongs to the technical field of computers. The method comprises the following steps: the terminal monitors the blinking frequency of the user, acquires the current brightness value of the display unit when the blinking frequency is determined to be larger than or equal to the preset frequency, reduces the brightness value of the display unit when the current brightness value is larger than or equal to the preset brightness value, and adjusts the brightness of the display unit through the blinking frequency of the user so as to meet the requirements of different users on the brightness of the display unit and improve the user experience.

Description

Brightness adjusting method and device, storage medium and terminal
Technical Field
The present application relates to the field of computer technologies, and in particular, to a brightness adjustment method, an apparatus, a storage medium, and a terminal.
Background
With the progress of scientific technology and the development of intelligent terminals, the intelligent terminals with display functions such as mobile phones and tablets are used by more and more people, users can acquire more knowledge and information through the display unit on the terminal, the life of the users is enriched, and when the users watch the display unit of the terminal frequently, the eye health of the users is closely influenced by factors such as the brightness of the display unit, the use time of the users and the like. In the related art, the terminal may adjust the brightness of the display unit according to the current environment condition based on the corresponding relationship between the environment condition and the brightness value of the display unit, but the adjusted brightness of the display unit may not necessarily meet the requirements of all users on the brightness of the display unit, and still cause the users to feel uncomfortable about eyes due to too high or too low brightness of the display unit of the terminal.
Disclosure of Invention
The embodiment of the application provides a brightness adjusting method, a brightness adjusting device, a storage medium and a terminal, which can solve the problem that the brightness of a display unit of the terminal cannot meet the requirement of a user on the brightness of the display unit when the brightness of the display unit is adjusted based on the current environment. The technical scheme is as follows:
in a first aspect, an embodiment of the present application provides a brightness adjustment method, where the method includes:
monitoring a blink frequency of a user;
when the blink frequency is determined to be greater than or equal to the preset frequency, acquiring a current brightness value of a display unit;
and when the current brightness value is greater than or equal to a preset brightness value, reducing the brightness value of the display unit.
In a second aspect, an embodiment of the present application provides a brightness adjustment apparatus, including:
the monitoring module is used for monitoring the blink frequency of the user;
the acquiring module is used for acquiring the current brightness value of the display unit when the blink frequency is determined to be greater than or equal to the preset frequency;
and the adjusting module is used for reducing the brightness value of the display unit when the current brightness value is greater than or equal to a preset brightness value.
In a third aspect, embodiments of the present application provide a computer storage medium storing a plurality of instructions adapted to be loaded by a processor and to perform the above-mentioned method steps.
In a fourth aspect, an embodiment of the present application provides a terminal, including: a processor, a memory, a display unit; wherein the memory stores a computer program adapted to be loaded by the processor and to perform the above-mentioned method steps.
The beneficial effects brought by the technical scheme provided by some embodiments of the application at least comprise:
when the scheme of the embodiment of the application is executed, the terminal monitors the blink frequency of the user, obtains the current brightness value of the display unit when the blink frequency is determined to be larger than or equal to the preset frequency, reduces the brightness value of the display unit when the current brightness value is larger than or equal to the preset brightness value, and adjusts the brightness of the display unit through the blink frequency of the user so as to meet the requirements of different users on the brightness of the display unit and improve the user experience.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic structural diagram of a terminal provided in an embodiment of the present application;
FIG. 2 is a schematic structural diagram of an operating system and a user space provided in an embodiment of the present application;
FIG. 3 is an architectural diagram of the android operating system of FIG. 1;
FIG. 4 is an architecture diagram of the IOS operating system of FIG. 1;
fig. 5 is a schematic flowchart of a brightness adjustment method provided in an embodiment of the present application;
fig. 6 is another schematic flow chart of a brightness adjustment method provided in the embodiment of the present application;
FIG. 7 is a graph of the square root of the light intensity and the screen brightness provided by the embodiment of the present application in a linear relationship;
FIG. 8 is a schematic diagram of a display interface of a terminal provided in an embodiment of the present application;
fig. 9 is a schematic view of a brightness adjusting apparatus according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the application, as detailed in the appended claims.
In the description of the present application, it is to be understood that the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. The specific meaning of the above terms in the present application can be understood in a specific case by those of ordinary skill in the art. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
Referring to fig. 1, a block diagram of a terminal according to an exemplary embodiment of the present application is shown. A terminal in the present application may include one or more of the following components: a processor 110, a memory 120, an input device 130, an output device 140, and a bus 150. The processor 110, memory 120, input device 130, and output device 140 may be connected by a bus 150.
Processor 110 may include one or more processing cores. The processor 110 connects various parts within the overall terminal using various interfaces and lines, performs various functions of the terminal and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 120, and calling data stored in the memory 120. Alternatively, the processor 110 may be implemented in hardware using at least one of Digital Signal Processing (DSP), field-programmable gate Array (FPGA), and Programmable Logic Array (PLA). The processor 110 may integrate one or more of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing display content; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 110, but may be implemented by a communication chip.
The Memory 120 may include a Random Access Memory (RAM) or a read-only Memory (ROM). Optionally, the memory 120 includes a non-transitory computer-readable medium. The memory 120 may be used to store instructions, programs, code sets, or instruction sets. The memory 120 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing various method embodiments described below, and the like, and the operating system may be an Android (Android) system (including a system based on Android system depth development), an IOS system developed by apple inc (including a system based on IOS system depth development), or other systems. The storage data area may also store data created by the terminal in use, such as a phonebook, audio-video data, chat log data, and the like.
Referring to fig. 2, the memory 120 may be divided into an operating system space, in which an operating system runs, and a user space, in which native and third-party applications run. In order to ensure that different third-party application programs can achieve a better operation effect, the operating system allocates corresponding system resources for the different third-party application programs. However, the requirements of different application scenarios in the same third-party application program on system resources are different, for example, in a local resource loading scenario, the third-party application program has a higher requirement on the disk reading speed; in the animation rendering scene, the third-party application program has a high requirement on the performance of the GPU. The operating system and the third-party application program are independent from each other, and the operating system cannot sense the current application scene of the third-party application program in time, so that the operating system cannot perform targeted system resource adaptation according to the specific application scene of the third-party application program.
In order to enable the operating system to distinguish a specific application scenario of the third-party application program, data communication between the third-party application program and the operating system needs to be opened, so that the operating system can acquire current scenario information of the third-party application program at any time, and further perform targeted system resource adaptation based on the current scenario.
Taking an operating system as an Android system as an example, programs and data stored in the memory 120 are as shown in fig. 3, and a Linux kernel layer 320, a system runtime library layer 340, an application framework layer 360, and an application layer 380 may be stored in the memory 120, where the Linux kernel layer 320, the system runtime library layer 340, and the application framework layer 360 belong to an operating system space, and the application layer 380 belongs to a user space. The Linux kernel layer 320 provides underlying drivers for various hardware of the terminal, such as a display driver, an audio driver, a camera driver, a bluetooth driver, a Wi-Fi driver, a power management, and the like. The system runtime library layer 340 provides a main feature support for the Android system through some C/C + + libraries. For example, the SQLite library provides support for a database, the OpenGL/ES library provides support for 3D drawing, the Webkit library provides support for a browser kernel, and the like. Also provided in the system runtime library layer 340 is an Android runtime library (Android runtime), which mainly provides some core libraries that can allow developers to write Android applications using the Java language. The application framework layer 360 provides various APIs that may be used in building an application, and developers may build their own applications by using these APIs, such as activity management, window management, view management, notification management, content provider, package management, session management, resource management, and location management. At least one application program runs in the application layer 380, and the application programs may be native application programs carried by the operating system, such as a contact program, a short message program, a clock program, a camera application, and the like; or a third-party application developed by a third-party developer, such as a game-like application, an instant messaging program, a photo beautification program, a shopping program, and the like.
Taking an operating system as an IOS system as an example, programs and data stored in the memory 120 are shown in fig. 4, and the IOS system includes: a Core operating system Layer 420(Core OS Layer), a Core Services Layer 440(Core Services Layer), a Media Layer 460(Media Layer), and a touchable Layer 480(Cocoa Touch Layer). The kernel operating system layer 420 includes an operating system kernel, drivers, and underlying program frameworks that provide functionality closer to hardware for use by program frameworks located in the core services layer 440. The core services layer 440 provides system services and/or program frameworks, such as a Foundation framework, an account framework, an advertisement framework, a data storage framework, a network connection framework, a geographic location framework, a motion framework, and so forth, as required by the application. The media layer 460 provides audiovisual related interfaces for applications, such as graphics image related interfaces, audio technology related interfaces, video technology related interfaces, audio video transmission technology wireless playback (AirPlay) interfaces, and the like. Touchable layer 480 provides various common interface-related frameworks for application development, and touchable layer 480 is responsible for user touch interaction operations on the terminal. Such as a local notification service, a remote push service, an advertising framework, a game tool framework, a messaging User Interface (UI) framework, a User Interface UIKit framework, a map framework, and so forth.
In the framework shown in FIG. 4, the framework associated with most applications includes, but is not limited to: a base framework in the core services layer 440 and a UIKit framework in the touchable layer 480. The base framework provides many basic object classes and data types, provides the most basic system services for all applications, and is UI independent. While the class provided by the UIKit framework is a basic library of UI classes for creating touch-based user interfaces, iOS applications can provide UIs based on the UIKit framework, so it provides an infrastructure for applications for building user interfaces, drawing, processing and user interaction events, responding to gestures, and the like.
The Android system can be referred to as a mode and a principle for realizing data communication between the third-party application program and the operating system in the IOS system, and details are not repeated herein.
The input device 130 is used for receiving input instructions or data, and the input device 130 includes, but is not limited to, a keyboard, a mouse, a camera, a microphone, or a touch device. The output device 140 is used for outputting instructions or data, and the output device 140 includes, but is not limited to, a display device, a speaker, and the like. In one example, the input device 130 and the output device 140 may be combined, and the input device 130 and the output device 140 are touch display screens, i.e., display units, for receiving touch operations of a user on or near the touch display screens using any suitable object, such as a finger, a touch pen, and displaying user interfaces of respective applications. The touch display screen is generally provided at a front panel of the terminal. The touch display screen may be designed as a full-face screen, a curved screen, or a profiled screen. The touch display screen can also be designed to be a combination of a full-face screen and a curved-face screen, and a combination of a special-shaped screen and a curved-face screen, which is not limited in the embodiment of the present application.
In addition, those skilled in the art will appreciate that the configurations of the terminals illustrated in the above-described figures do not constitute limitations on the terminals, as the terminals may include more or less components than those illustrated, or some components may be combined, or a different arrangement of components may be used. For example, the terminal further includes a radio frequency circuit, an input unit, a sensor, an audio circuit, a wireless fidelity (WiFi) module, a power supply, a bluetooth module, and other components, which are not described herein again.
In the embodiment of the present application, the main body of execution of each step may be the terminal described above. Optionally, the execution subject of each step is an operating system of the terminal. The operating system may be an android system, an IOS system, or another operating system, which is not limited in this embodiment of the present application.
In the terminal shown in fig. 1, the processor 110 may be configured to call an application program stored in the memory 120 and specifically execute the brightness adjustment method according to the embodiment of the present application.
In the following method embodiments, for convenience of description, only the main execution body of each step is described as a terminal.
The brightness adjusting method provided by the embodiment of the present application will be described in detail below with reference to fig. 5 to 8.
Fig. 5 is a schematic flow chart of a brightness adjusting method according to an embodiment of the present disclosure. The present embodiment is exemplified by a method for adjusting brightness applied to a terminal, and the method for adjusting brightness may include the following steps:
s501, monitoring the blink frequency of the user.
The blinking frequency refers to the blinking times per minute of a user when using the terminal, the blinking times per minute of the user is 15-20 times under normal conditions, blinking helps the user to protect and moisten eyes, the user can easily forget to keep the normal blinking times when staring at a display unit of the terminal for a long time, and the blinking times per minute is less than 5 times under an unconscious state; meanwhile, under the condition that the eyes of the user are tired, the user can relieve the eye fatigue by blinking, and at the moment, the blinking times of the user are properly increased and may be higher than the blinking times per minute.
Generally, before monitoring the blinking frequency of a user, the terminal acquires a light intensity value of a current environment, adjusts the luminance value of the display unit to a luminance value corresponding to the light intensity according to the light intensity value, and in order to enable the luminance of the display unit to meet the requirements of the user, the terminal acquires the blinking times of the user within a preset time period through a camera or a motion capture sensor, and calculates the blinking frequency of the user according to the blinking times and a first preset time period.
And S502, acquiring the current brightness value of the display unit when the blink frequency is determined to be greater than or equal to the preset frequency.
The preset frequency refers to the preset number of blinks per minute of the user under a general condition.
Generally, a terminal monitors the blinking frequency of a user based on a preset duration, and when the blinking frequency of the user is monitored to be greater than or equal to the preset frequency, the terminal can preliminarily know that the user may have overuse of eyes or the user feels discomfort to eyes under the current brightness of a display unit, and can prepare for adjusting the brightness of the display unit to the brightness satisfied by the user by further acquiring the current brightness value of the display unit.
S503, when the current brightness value is larger than or equal to the preset brightness value, the brightness value of the display unit is reduced.
The preset brightness value refers to a preset brightness value with a blinking frequency corresponding to the brightness of the display unit, and the current brightness value is a brightness value of the display unit after the brightness of the display unit is adjusted by the terminal based on the current ambient light intensity and/or the display mode (such as an eye protection mode).
Generally, a terminal monitors the blinking frequency of a user after adjusting the brightness of a display unit based on the current ambient light intensity and/or the display mode (e.g., eye protection mode), acquires the current brightness value of the display unit when the blinking frequency of the user is monitored to be greater than or equal to a preset frequency, and if the current brightness value is greater than or equal to the brightness value corresponding to the blinking frequency of the user, the brightness value of the current display unit needs to be reduced to meet the brightness requirement of the user, thereby relieving eye fatigue and eye discomfort of the user.
According to the brightness adjusting method, the terminal monitors the blink frequency of the user, acquires the current brightness value of the display unit when the blink frequency is determined to be greater than or equal to the preset frequency, reduces the brightness value of the display unit when the current brightness value is greater than or equal to the preset brightness value, and adjusts the brightness of the display unit through the blink frequency of the user, so that the requirements of different users on the brightness of the display unit are met, and the use experience of the user is improved.
Referring to fig. 6, another flow chart of a brightness adjusting method according to an embodiment of the present application is shown. The present embodiment is exemplified by a method for adjusting brightness applied to a terminal. The brightness adjusting method may include the steps of:
s601, obtaining the light intensity value of the current environment.
The light intensity value refers to the illumination intensity in the environment, and the illumination intensity refers to the luminous flux of the received visible light on a unit area and is used for indicating the intensity of illumination and the amount of illumination degree of the surface area of the object.
S602, adjusting the brightness value of the display unit to a brightness value corresponding to the light intensity according to the light intensity value.
Generally, a certain corresponding relationship exists between a light intensity value and a brightness value of a display unit, a light source sensor is arranged in a terminal, a received light signal is converted into an electric signal by the light source sensor, the light intensity value of the current environment of the terminal is obtained based on the electric signal, the brightness value corresponding to the light intensity value is inquired according to the light intensity value, and the brightness of the display unit of the terminal is adjusted to the brightness value.
For example, the following steps are carried out: referring to fig. 7, a graph of the square root of the light intensity and the screen brightness is plotted linearly, where the X-axis is the brightness of the display unit and the Y-axis is the square root of the light intensity, and when the light intensity value is 10000 (the square root is 100), the brightness of the display unit is 255, which satisfies a linear relationship, such as: the light intensity value was 6400 (square root value of 80) and the calculated screen brightness was 200. Generally, when the light intensity is about 10000 under daylight illumination in the daytime, the brightness value of the corresponding display unit is the highest, the display unit displays the brightest, and when the brightness value exceeds the brightness value, the display unit keeps the brightest.
And S603, acquiring the current time.
Generally, the time for a user to use a terminal is different, the display modes of the corresponding display units are also different, some terminals can set a certain time period as an eye protection mode, the terminal in the eye protection mode automatically reduces the brightness of the display units to a certain brightness, and adjusts the color temperature of the display units to reach a soft brightness so as to protect the eyes of the user; or the terminal can directly acquire the current time to provide certain reference information for adjusting the brightness value of the display unit due to different light intensities in different time periods in one day.
And S604, when the current time is a preset time, adjusting the brightness value of the display unit to the brightness value of the eye protection mode.
The preset time refers to the time for the user to preset the eye protection mode of the display unit. The eye protection mode is a mode that the display unit displays soft color temperature and brightness, and soft light is generated by red light and yellow light, so that blue light of the display unit can be reduced, and further, the damage to eyes is reduced.
Generally, after a user sets a terminal to open an eye protection mode within a certain time period, when the terminal detects that the current time is the time for opening the eye protection mode, the terminal adjusts the display unit to the eye protection mode so as to weaken the brightness and light of the display unit to hurt the eyes of the user, and meanwhile, the terminal can remind the user of properly relieving eye fatigue to a certain extent.
And S605, acquiring the blinking times of the user in a first preset time length through a camera or a motion capture sensor.
The first preset time period is a preset time for monitoring the blinking number of the user, and is usually 1 minute.
Generally, a terminal can start a camera within a certain time period to acquire the blinking frequency of a user within 1 minute, and then the blinking frequency of the user is calculated based on the acquired data; the terminal can also track the eye movement of the user through the movement capturing sensor, and then the blinking frequency of the user is calculated.
And S606, calculating the blinking frequency of the user according to the blinking times and the first preset time length.
The blinking frequency refers to the blinking times per minute of a user when using the terminal, the blinking times per minute of the user is 15-20 times under normal conditions, blinking helps the user to protect and moisten eyes, the user can easily forget to keep the normal blinking times when staring at a display unit of the terminal for a long time, and the blinking times per minute is less than 5 times under an unconscious state; meanwhile, under the condition that the eyes of the user are tired, the user can relieve the eye fatigue by blinking, and at the moment, the blinking times of the user are properly increased and may be higher than the blinking times per minute.
S607, judging whether the blink frequency is more than or equal to the preset frequency.
The preset frequency refers to the preset blinking frequency of the user per minute under a general condition, and the blinking frequency is judged to preliminarily analyze whether the user is in eye fatigue or eye overuse.
S608, when the blink frequency is determined to be larger than or equal to the preset frequency, the current brightness value of the display unit is obtained.
Generally, a terminal monitors the blinking frequency of a user based on a preset duration, and when the blinking frequency of the user is monitored to be greater than or equal to the preset frequency, the terminal can preliminarily know that the user may have overuse of eyes or the user feels discomfort to eyes under the current brightness of a display unit, and can prepare for adjusting the brightness of the display unit to the brightness satisfied by the user by further acquiring the current brightness value of the display unit.
And S609, when the current brightness value is greater than or equal to the preset brightness value, reducing the brightness value of the display unit.
The preset brightness value refers to a preset brightness value with a blinking frequency corresponding to the brightness of the display unit, and the current brightness value is a brightness value of the display unit after the brightness of the display unit is adjusted by the terminal based on the current ambient light intensity and/or the display mode (such as an eye protection mode).
Generally, a terminal monitors the blinking frequency of a user after adjusting the brightness of a display unit based on the current ambient light intensity and/or the display mode (e.g., eye protection mode), acquires the current brightness value of the display unit when the blinking frequency of the user is monitored to be greater than or equal to a preset frequency, and if the current brightness value is greater than or equal to the brightness value corresponding to the blinking frequency of the user, the brightness value of the current display unit needs to be reduced to meet the brightness requirement of the user, thereby relieving eye fatigue and eye discomfort of the user.
For example, the following steps are carried out: referring to table 1, if the maximum luminance value of the display unit is X, the terminal adjusts the luminance of the display unit to 80% of X when the terminal acquires that the light intensity of the current environment is strong, and when the terminal monitors that the blinking frequency of the user is 22 times/minute, it can be known that the user is overusing eyes at the time and the eye fatigue is relieved by increasing the blinking frequency, and meanwhile, the terminal can inquire that the blinking frequency of the user is greater than or equal to the preset blinking frequency of 20 times/minute, and the corresponding luminance value is 60% of X when the blinking frequency of the user is greater than or equal to the preset blinking frequency of 20 times/minute, so the terminal needs to adjust the current luminance value of the display unit from 80% of X to 60% of X. When the terminal monitors that the blinking frequency of the user is 4 times/minute, the terminal can know that the user is excessively attentive to the content displayed by the display unit at the moment to cause eye fatigue, meanwhile, the terminal can inquire that the blinking frequency of the user is less than 5 times/minute of the preset blinking frequency, and the corresponding brightness value is 40% of X when the blinking frequency is less than 5 times/minute of the preset blinking frequency, so that the terminal needs to reduce the brightness value of the display unit from 80% of X to 40% of X, relieve the eye fatigue of the user in a mode of properly reducing the brightness value of the display unit, and remind the user of timely adjusting the eye time.
Figure BDA0002433738050000101
TABLE 1
S610, when the fact that the duration that the user is continuously in the eye closing state exceeds a third preset duration is detected, controlling the display unit to be turned off.
The third preset time duration is the preset maximum time duration that the user is in the eye-closing state in the blinking process, and is a basis for measuring whether the user uses the terminal.
Generally, the eye closing state of the user is monitored while the blinking frequency of the user is monitored, and when it is detected that the duration of the user continuously in the eye closing state exceeds the preset maximum eye closing duration, it is determined that the user is not watching the display unit of the terminal, and the terminal performs a screen-off operation or adjusts the brightness value of the display unit to the minimum, so as to save the power consumption of the terminal.
S611, when the blink frequency is determined to be smaller than the preset frequency, the duration of the display unit in the lighting state is obtained.
Generally, a terminal monitors the blink frequency of a user based on a preset time length, when the blink frequency of the user is monitored to be smaller than the preset frequency, the use time length of the terminal needs to be analyzed, whether the user uses the terminal for a long time is judged, so that the user excessively concentrates on the content displayed by a display unit and automatically ignores the blink condition, the time length of the display unit in the continuously lit state is further obtained, and the time length of the display unit in the continuously lit state is analyzed to determine whether the user uses the terminal for a long time.
And S612, judging whether the duration of the continuous lighting state is greater than or equal to a second preset duration.
The second preset duration is a preset time length that the display unit is continuously in the lighting state, and if the duration that the display unit is continuously in the lighting state is longer than the preset duration, it indicates that the user uses the terminal for a long time, and at this time, the user still continues to use the terminal, which is not favorable for eye health of the user.
And S613, displaying an eye protection reminding message through the display unit when the duration of the continuous lighting state is greater than or equal to a second preset duration.
The eye protection reminding message is a message which is displayed by the display unit and used for reminding the user of relieving the eye fatigue, can be in a form of a pop-up frame, can also be in a form of icon display, and can also be in a form of flashing color of the short-time display unit, so that the effects of reminding the user of using the terminal properly and relieving the eye fatigue in time are achieved.
For example, the following steps are carried out: referring to the terminal display interface of fig. 8, when the duration of the display unit being continuously in the lit state is longer than the preset duration, the user may be excessively attentive to use the terminal for a long time, the terminal displays the reminding message frame 801 on the display unit in the form of a display pop frame, and the user can view the related message of the reminding eye protection displayed in the reminding message frame 801. When the user clicks the "ok" virtual key 802 in the reminder message box 801, the terminal will turn on the off-screen mode, and the user may also click the "cancel" virtual key 803 in the reminder message box 801 to continue using the terminal. Meanwhile, the reminding content may be "do you use the mobile phone for a long time, do you feel tired and sour without feeling eyes? Put down the mobile phone and let the eyes rest at a bar! "and the like.
And S614, acquiring the current brightness value of the display unit when the duration of the continuous lighting state is less than a second preset duration.
Generally, when the blinking frequency of a user is less than a preset frequency, the user may pay too much attention to the content displayed on the display unit and automatically ignore blinking, when it is detected that the duration of the display unit being continuously in the lighting state is less than the preset duration, the current brightness value of the display unit is obtained, when the current brightness value is less than the preset brightness value, the brightness value of the display unit can be properly increased to meet the brightness requirement of the user, and meanwhile, the user is indirectly reminded of the eye overuse through the brightness change of the display unit.
S615, when the current brightness value is smaller than the preset brightness value, the brightness value of the display unit is increased.
Figure BDA0002433738050000121
TABLE 2
For example, the following steps are carried out: please refer to table 2, when the terminal acquires that the light intensity of the current environment is weak, the terminal adjusts the brightness of the display unit to 10% of X, and when the terminal monitors that the blinking frequency of the user is 4 times/minute, it can be known that the user is excessively attentive to the content displayed by the display unit at the moment, which causes eye fatigue, and meanwhile, the terminal can inquire that the blinking frequency of the user is less than 5 times/minute of the preset blinking frequency and the corresponding brightness value is 15% of X when the blinking frequency is less than 5 times/minute of the preset blinking frequency, so that the terminal needs to increase the brightness value of the display unit from 10% of X to 15% of X, alleviate the eye fatigue of the user by appropriately increasing the brightness value of the display unit, and remind the user of adjusting the eye time in time.
According to the above content, in the brightness adjusting method provided by the present scheme, the terminal obtains the light intensity value of the current environment, and adjusts the brightness value of the display unit to the brightness value corresponding to the light intensity according to the light intensity value, so as to obtain the current time; when the current time is a preset time, adjusting the brightness value of the display unit to the brightness value of the eye protection mode, acquiring the blinking times of a user in a first preset time length through a camera or a motion capture sensor, calculating the blinking frequency of the user according to the blinking times and the first preset time length, judging whether the blinking frequency is greater than or equal to the preset frequency, acquiring the current brightness value of the display unit when the blinking frequency is determined to be greater than or equal to the preset frequency, reducing the brightness value of the display unit when the current brightness value is greater than or equal to the preset brightness value, and controlling the display unit to be turned off when the duration that the user is continuously in the eye closing state is detected to exceed a third preset time length; when the blinking frequency is determined to be less than the preset frequency, the duration that the display unit is continuously in the lighting state is obtained, whether the duration that the display unit is continuously in the lighting state is greater than or equal to a second preset duration is judged, when the duration that the display unit is continuously in the lighting state is greater than or equal to the second preset duration, an eye protection reminding message is displayed through the display unit, when the duration that the display unit is continuously in the lighting state is less than the second preset duration, the current brightness value of the display unit is obtained, and when the current brightness value is less than the preset brightness value, the brightness value of the display unit is increased. According to the method, after the brightness of the display unit of the terminal is adjusted based on the current environment, the brightness of the display unit can be further adjusted according to the blinking frequency of the user, the requirements of the user on the brightness of the display unit at different moments are met, and the use experience of the user is improved.
The following are embodiments of the apparatus of the present application that may be used to perform embodiments of the method of the present application. For details which are not disclosed in the embodiments of the apparatus of the present application, reference is made to the embodiments of the method of the present application.
Referring to fig. 9, a schematic structural diagram of a brightness adjustment apparatus provided in an exemplary embodiment of the present application is shown, which is hereinafter referred to as the apparatus 9. The means 9 may be implemented in software, hardware or a combination of both as all or part of a terminal. The device 9 is applied to a terminal, and the device 9 comprises:
a monitoring module 901, configured to monitor a blink frequency of a user;
an obtaining module 902, configured to obtain a current luminance value of a display unit when it is determined that the blink frequency is greater than or equal to a preset frequency;
an adjusting module 903, configured to reduce the brightness value of the display unit when the current brightness value is greater than or equal to a preset brightness value.
Optionally, the monitoring module 901 includes:
the first acquisition unit is used for acquiring the blinking times of the user within a first preset time length through a camera or a motion capture sensor;
and the calculating unit is used for calculating the blinking frequency of the user according to the blinking times and the first preset time length.
Optionally, the monitoring module 901 further includes:
the second acquisition unit is used for acquiring the light intensity value of the current environment;
the first adjusting unit is used for adjusting the brightness value of the display unit to a brightness value corresponding to the light intensity according to the light intensity value.
Optionally, the apparatus 9 further includes:
the third acquisition unit is used for acquiring the duration of the display unit in a lighting state continuously when the blink frequency is determined to be smaller than the preset frequency;
and the first display unit is used for displaying an eye protection reminding message through the display unit when the duration of the continuous lighting state is greater than or equal to a second preset duration.
Optionally, the apparatus 9 further includes:
a fourth obtaining unit, configured to obtain a current brightness value of the display unit when the duration of the continuous lighting state is less than the second preset duration;
and the second adjusting unit is used for increasing the brightness value of the display unit when the current brightness value is smaller than the preset brightness value.
Optionally, the monitoring module 901 further includes:
a fifth obtaining unit, configured to obtain a current time;
and the third adjusting unit is used for adjusting the brightness value of the display unit to the brightness value of the eye protection mode when the current moment is a preset moment.
Optionally, the apparatus 9 further includes:
and the control unit is used for controlling the display unit to turn off the screen when the duration that the user is continuously in the eye closing state is detected to exceed a third preset duration.
It should be noted that, when the brightness adjusting apparatus provided in the foregoing embodiment executes the brightness adjusting method, only the division of the functional modules is illustrated, and in practical applications, the functions may be distributed and completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules, so as to complete all or part of the functions described above. In addition, the brightness adjusting device and the brightness adjusting method provided by the above embodiments belong to the same concept, and details of implementation processes thereof are referred to in the method embodiments and are not described herein again.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
Embodiments of the present application also provide a computer storage medium that may store a plurality of instructions adapted to be loaded by a processor and to perform the method steps as described above.
The application also provides a terminal, which comprises a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and to perform the above-mentioned method steps.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a read-only memory or a random access memory.
The above disclosure is only for the purpose of illustrating the preferred embodiments of the present application and is not to be construed as limiting the scope of the present application, so that the present application is not limited thereto, and all equivalent variations and modifications can be made to the present application.

Claims (8)

1. A method of adjusting brightness, the method comprising:
monitoring a blink frequency of a user;
when the blink frequency is determined to be greater than or equal to the preset frequency, acquiring a current brightness value of a display unit;
when the current brightness value is larger than or equal to a preset brightness value, reducing the brightness value of the display unit;
when the blink frequency is determined to be smaller than the preset frequency, acquiring the duration of the display unit in the continuously lit state, acquiring the current brightness value of the display unit when the duration of the continuously lit state is smaller than a second preset duration, and increasing the brightness value of the display unit when the current brightness value is smaller than the preset brightness value;
the preset brightness value comprises a preset blinking frequency and a brightness value corresponding to the brightness of the display unit, and the current brightness value comprises a brightness value obtained by adjusting the brightness of the display unit based on the current ambient light intensity and/or the display mode.
2. The method of claim 1, wherein the monitoring the blink frequency of the user comprises:
acquiring the blinking times of the user within a first preset time length through a camera or a motion capture sensor;
and calculating the blinking frequency of the user according to the blinking times and the first preset time length.
3. The method of claim 1, wherein prior to monitoring the blink frequency of the user, further comprising:
acquiring a light intensity value of the current environment;
and adjusting the brightness value of the display unit to a brightness value corresponding to the light intensity according to the light intensity value.
4. The method of claim 1, wherein prior to monitoring the blink frequency of the user, further comprising:
acquiring the current moment;
and when the current moment is a preset moment, adjusting the brightness value of the display unit to the brightness value of the eye protection mode.
5. The method of claim 1, further comprising:
and controlling the display unit to turn off the screen when the duration that the user is continuously in the eye closing state is detected to exceed a third preset duration.
6. A luminance adjustment apparatus, characterized in that the apparatus comprises:
the monitoring module is used for monitoring the blink frequency of the user;
the acquiring module is used for acquiring the current brightness value of the display unit when the blink frequency is determined to be greater than or equal to the preset frequency;
the first adjusting module is used for reducing the brightness value of the display unit when the current brightness value is greater than or equal to a preset brightness value;
the second adjusting module is used for acquiring the duration of the display unit in the continuously lighting state when the blink frequency is determined to be smaller than the preset frequency, acquiring the current brightness value of the display unit when the duration of the continuously lighting state is smaller than a second preset duration, and increasing the brightness value of the display unit when the current brightness value is smaller than the preset brightness value;
the preset brightness value comprises a preset blinking frequency and a brightness value corresponding to the brightness of the display unit, and the current brightness value comprises a brightness value obtained by adjusting the brightness of the display unit based on the current ambient light intensity and/or the display mode.
7. A computer storage medium, characterized in that it stores a plurality of instructions adapted to be loaded by a processor and to perform the method steps according to any of claims 1 to 5.
8. A terminal, comprising: a processor, a memory, a display unit; wherein the memory stores a computer program adapted to be loaded by the processor and to perform the method steps of any of claims 1 to 5.
CN202010244925.6A 2020-03-31 2020-03-31 Brightness adjusting method and device, storage medium and terminal Active CN111556194B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010244925.6A CN111556194B (en) 2020-03-31 2020-03-31 Brightness adjusting method and device, storage medium and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010244925.6A CN111556194B (en) 2020-03-31 2020-03-31 Brightness adjusting method and device, storage medium and terminal

Publications (2)

Publication Number Publication Date
CN111556194A CN111556194A (en) 2020-08-18
CN111556194B true CN111556194B (en) 2021-12-21

Family

ID=72001919

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010244925.6A Active CN111556194B (en) 2020-03-31 2020-03-31 Brightness adjusting method and device, storage medium and terminal

Country Status (1)

Country Link
CN (1) CN111556194B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108595000A (en) * 2018-04-20 2018-09-28 Oppo广东移动通信有限公司 Screen luminance adjustment method and device
EP3388923A3 (en) * 2017-04-10 2018-12-12 INTEL Corporation Adjusting graphics rendering based on facial expression
CN109561213A (en) * 2018-11-30 2019-04-02 努比亚技术有限公司 A kind of eyeshield mode control method, terminal and computer readable storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106297733B (en) * 2016-10-01 2019-12-17 奇酷互联网络科技(深圳)有限公司 Screen brightness automatic adjusting method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3388923A3 (en) * 2017-04-10 2018-12-12 INTEL Corporation Adjusting graphics rendering based on facial expression
CN108595000A (en) * 2018-04-20 2018-09-28 Oppo广东移动通信有限公司 Screen luminance adjustment method and device
CN109561213A (en) * 2018-11-30 2019-04-02 努比亚技术有限公司 A kind of eyeshield mode control method, terminal and computer readable storage medium

Also Published As

Publication number Publication date
CN111556194A (en) 2020-08-18

Similar Documents

Publication Publication Date Title
CN108491275B (en) Program optimization method, device, terminal and storage medium
US20210048939A1 (en) Icon display method, device, and terminal
WO2021057830A1 (en) Information processing method and electronic device
CN108803964B (en) Buoy display method, device, terminal and storage medium
CN110475072B (en) Method, device, terminal and storage medium for shooting image
CN106936995B (en) A kind of control method, device and the mobile terminal of mobile terminal frame per second
CN109343902B (en) Audio processing assembly operation method and device, terminal and storage medium
WO2020156308A1 (en) Message processing method, device, terminal, and storage medium
US20230035047A1 (en) Remote assistance method, device, storage medium, and terminal
CN111225138A (en) Camera control method and device, storage medium and terminal
WO2019047738A1 (en) Message display method, device, mobile terminal and storage medium
CN112714216B (en) Brightness adjusting method and device, storage medium and terminal
CN107608550B (en) Touch operation response method and device
CN111338838A (en) Method for controlling frequency of central processing unit and related device
CN111124668B (en) Memory release method, memory release device, storage medium and terminal
CN113094135B (en) Page display control method, device, equipment and storage medium
WO2019047226A1 (en) Touch operation response method and device
CN112631542A (en) Audio adjusting method and device, storage medium and electronic equipment
CN110702346B (en) Vibration testing method and device, storage medium and terminal
WO2019047234A1 (en) Touch operation response method and apparatus
CN111913614B (en) Multi-picture display control method and device, storage medium and display
CN114285936B (en) Screen brightness adjustment method and device, storage medium and terminal
WO2021052488A1 (en) Information processing method and electronic device
CN111556194B (en) Brightness adjusting method and device, storage medium and terminal
CN112114965A (en) Application program running method and device, terminal and storage medium

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