CN108595000B - Screen brightness adjusting method and device - Google Patents

Screen brightness adjusting method and device Download PDF

Info

Publication number
CN108595000B
CN108595000B CN201810360762.0A CN201810360762A CN108595000B CN 108595000 B CN108595000 B CN 108595000B CN 201810360762 A CN201810360762 A CN 201810360762A CN 108595000 B CN108595000 B CN 108595000B
Authority
CN
China
Prior art keywords
brightness
user
electronic equipment
preset
screen
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
CN201810360762.0A
Other languages
Chinese (zh)
Other versions
CN108595000A (en
Inventor
郭凌
冷文华
杨海
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810360762.0A priority Critical patent/CN108595000B/en
Publication of CN108595000A publication Critical patent/CN108595000A/en
Application granted granted Critical
Publication of CN108595000B publication Critical patent/CN108595000B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/011Arrangements for interaction with the human body, e.g. for user immersion in virtual reality
    • G06F3/013Eye tracking input arrangements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/147Digital output to display device ; Cooperation and interconnection of the display device with other functional units using display panels

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The embodiment of the application discloses a method and a device for adjusting screen brightness, wherein the method comprises the following steps: acquiring a plurality of images obtained by continuously shooting eyes of a user by electronic equipment within a preset time period; detecting whether eyes of a user are tired based on the plurality of images; adjusting screen brightness of the electronic device upon detecting eye fatigue of a user. The embodiment of the application also discloses a corresponding screen brightness adjusting device. The embodiment of the application is favorable for realizing whether the electronic equipment adjusts the screen brightness according to the fatigue of the eyes of the user, thereby relieving the visual fatigue of the user and improving the eye protection effect of the electronic equipment.

Description

Screen brightness adjusting method and device
Technical Field
The application relates to the technical field of mobile terminals, in particular to a screen brightness adjusting method and device.
Background
With the popularization of internet electronic products, electronic devices such as tablet computers and mobile phones have become necessities of life of users. However, the electronic product is a double-edged sword, which helps users to surf the internet and learn, and also has adverse effects on the eyesight of users, and especially when users (e.g., children) lack self-control and eyesight protection awareness, the users often look at the electronic screen for a long time, which causes eye fatigue of the users, and further suffers from eye diseases such as myopia and astigmatism.
Moreover, in the process of using electronic products, users often adjust the screen brightness to be high in order to pursue the best color development effect, which further increases the burden of eyes.
Disclosure of Invention
The embodiment of the invention provides a method and a device for adjusting screen brightness, aiming at relieving eye fatigue of a user in the process of using electronic equipment by the user.
In a first aspect, an embodiment of the present application provides a method for adjusting screen brightness, including:
acquiring a plurality of images obtained by continuously shooting eyes of a user by electronic equipment within a preset time period;
detecting whether eyes of a user are tired based on the plurality of images;
adjusting screen brightness of the electronic device upon detecting eye fatigue of a user.
In a second aspect, an embodiment of the present application provides a screen brightness adjusting apparatus, including:
the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring a plurality of images obtained by continuously shooting eyes of a user by electronic equipment within a preset time period;
a detection unit configured to detect whether eyes of a user are tired based on the plurality of images;
and the adjusting unit is used for adjusting the screen brightness of the electronic equipment when the eye fatigue of the user is detected.
In a third aspect, an embodiment of the present application provides an electronic device, including a processor, a memory, a communication interface, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the processor, and the program includes instructions for executing steps in any method of the first aspect of the embodiment of the present application.
In a fourth aspect, the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program for electronic data exchange, where the computer program makes a computer perform part or all of the steps described in any one of the methods of the first aspect of the present application.
In a fifth aspect, the present application provides a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to perform some or all of the steps as described in any one of the methods of the first aspect of the embodiments of the present application. The computer program product may be a software installation package.
It can be seen that in the screen brightness adjusting method provided by the embodiment of the application, the electronic device acquires a plurality of images obtained by continuously shooting the eyes of the user by the electronic device within a preset time period, detects whether the eyes of the user are tired based on the plurality of images, and adjusts the screen brightness of the electronic device when the eyes of the user are tired. Therefore, by the screen brightness adjusting method in the embodiment of the application, the electronic equipment adjusts the screen brightness according to whether the eyes of the user are fatigue, so that the visual fatigue of the user is relieved, and the eye protection effect of the electronic equipment is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic flowchart of a method for adjusting screen brightness disclosed in an embodiment of the present application;
FIG. 2 is a schematic flow chart of another screen brightness adjusting method disclosed in the embodiments of the present application;
FIG. 3 is a schematic flow chart of another screen brightness adjusting method disclosed in the embodiments of the present application;
FIG. 4 is a block diagram of a screen brightness adjusting device according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of an electronic device disclosed in an embodiment of the present application;
fig. 6 is a schematic structural diagram of another electronic device disclosed in the embodiment of the present application.
Detailed Description
In order to make the technical solutions of the present invention better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below 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 invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first," "second," and the like in the description and claims of the present invention and in the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the invention. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
The electronic device in the embodiment of the present application may include various handheld devices, vehicle-mounted devices, computing devices or other processing devices connected to a wireless modem, and various forms of User Equipment (UE), Mobile Stations (MS), terminal devices (terminal device), and the like. For convenience of description, the above-mentioned devices are collectively referred to as electronic devices.
In order to better understand the method and the device for adjusting the screen brightness disclosed in the embodiments of the present application, the embodiments of the present application are described in detail below.
Referring to fig. 1, fig. 1 is a schematic flow chart of a screen brightness adjusting method according to an embodiment of the present application, and as shown in fig. 1, the screen brightness adjusting method according to the embodiment of the present application includes the following steps:
s101, the electronic equipment acquires a plurality of images obtained by continuously shooting the eyes of the user in a preset time period.
In the embodiment of the application, the electronic equipment continuously shoots the eyes of the user in the preset time period through the front camera, and then obtains a plurality of images.
Specifically, the electronic device may trigger the front-facing camera to shoot when it is detected that the usage time of the electronic device exceeds a time length, or when it is detected that the screen brightness of the electronic device continues to be greater than or equal to a preset brightness for exceeding a time length.
S102, the electronic equipment detects whether the eyes of the user are tired or not based on the multiple images.
Specifically, the electronic device determines whether the eyes of the user are tired by analyzing the obtained plurality of images.
In one embodiment, the electronic device may detect whether the user's eyes are tired by analyzing the distance between the user's upper and lower eyelids.
In one embodiment, the electronic device may also detect whether the user's eyes are tired by analyzing whether a covering (e.g., a hand or other item for wiping the eyes) is present on the user's eyes.
The implementation manner of detecting whether the eyes of the user are tired by the electronic device may be various, and the embodiment of the application is not limited.
S103, when detecting the eye fatigue of the user, the electronic equipment adjusts the screen brightness of the electronic equipment.
Specifically, upon detecting eye fatigue of the user, the electronic device may obtain a current screen brightness, adjust (dim up or dim down) the screen brightness of the electronic device based on the current screen brightness.
For example, when the current screen brightness of the electronic equipment is detected to be greater than a first preset brightness, the brightness of the screen is reduced; and when detecting that the current screen brightness of the electronic equipment is smaller than a second preset brightness, increasing the brightness of the screen.
In one embodiment, a specific implementation manner of the electronic device detecting whether the eyes of the user are tired based on the plurality of images may be:
determining a plurality of distances of an upper eyelid and a lower eyelid of a user based on the plurality of images; when the average distance of the distances is smaller than or equal to a preset distance threshold value and the variation trend of the distances is a decreasing trend, determining the eye fatigue of the user.
In one embodiment, when the electronic device detects eye fatigue of the user, a specific implementation manner of adjusting the screen brightness of the electronic device may be:
when eye fatigue of a user is detected and the current screen brightness of the electronic equipment is greater than a first preset brightness, reducing the brightness of the screen; or when eye fatigue of the user is detected and the current screen brightness of the electronic equipment is smaller than a second preset brightness, increasing the brightness of the screen.
The first preset brightness may be equal to the second preset brightness, or may not be equal to the second preset brightness, which is not limited in the embodiments of the present application.
In one embodiment, when the electronic device detects that the eyes of the user are tired and the current screen brightness of the electronic device is greater than a first preset brightness, a specific implementation manner of reducing the brightness of the screen may be:
when eye fatigue of a user is detected, acquiring brightness of an environment where the electronic equipment is located; determining the first preset brightness corresponding to the brightness of the environment based on the brightness of the environment; and when detecting that the current screen brightness of the electronic equipment is greater than the first preset brightness, adjusting the screen brightness of the electronic equipment to the first preset brightness.
In one embodiment, when eye fatigue of a user is detected and the current screen brightness of the electronic device is less than a second preset brightness, a specific implementation manner of increasing the brightness of the screen may be:
when eye fatigue of a user is detected, acquiring brightness of an environment where the electronic equipment is located; determining the second preset brightness corresponding to the brightness of the environment based on the brightness of the environment; and when the current screen brightness of the electronic equipment is detected to be smaller than the second preset brightness, adjusting the screen brightness of the electronic equipment to the second preset brightness.
In one embodiment, when the electronic device detects that the eyes of the user are tired and the current screen brightness of the electronic device is greater than a first preset brightness, a specific implementation manner of reducing the brightness of the screen may be:
when eye fatigue of a user is detected and the current screen brightness of the electronic equipment is greater than a first preset brightness, acquiring an application program currently running by the electronic equipment; determining background content and subject content included in current display content of the electronic device based on the application program; reducing the brightness of the background content included in the current display content of the electronic device.
Specifically, the content displayed by the application program may include background content and subject content. The background content is the content which does not affect the operation of the application program by the user, and the subject content is the content other than the background content. For example, the background content of the reading application is the background of the text or the picture, the background does not affect the user to read the text or view the picture, and the subject content is the text or the picture displayed to the user by the reading application. For another example, for a game application, the background content is a background that can beautify a game interface and enrich visual effects or a part that is not operable by a user, and the background does not play any role in the operation of the game by the user, and the theme content is a part that can be operated by the user, such as a battle task in a battle game, a selectable prop, and the like.
In one embodiment, before the electronic device acquires a plurality of images obtained by continuously shooting the eyes of the user in a preset time period, the following operations may be further performed:
acquiring the time that the screen brightness of the electronic equipment is continuously greater than or equal to a third preset brightness; determining that the time is greater than or equal to a preset time threshold.
It can be seen that in the screen brightness adjusting method provided by the embodiment of the application, the electronic device acquires a plurality of images obtained by continuously shooting the eyes of the user by the electronic device within a preset time period, detects whether the eyes of the user are tired based on the plurality of images, and adjusts the screen brightness of the electronic device when the eyes of the user are tired. Therefore, by the screen brightness adjusting method in the embodiment of the application, the electronic equipment adjusts the screen brightness according to whether the eyes of the user are fatigue, so that the visual fatigue of the user is relieved, and the eye protection effect of the electronic equipment is improved.
Referring to fig. 2, fig. 2 is a schematic flowchart illustrating another screen brightness adjusting method according to an embodiment of the present application, consistent with the embodiment shown in fig. 1. As shown in fig. 2, the screen brightness adjusting method in the embodiment of the present application includes the following steps:
s201, the electronic equipment acquires the time that the screen brightness of the electronic equipment is continuously larger than or equal to a third preset brightness.
S202, the electronic equipment determines that the time is larger than or equal to a preset time threshold.
S203, the electronic equipment acquires a plurality of images obtained by continuously shooting the eyes of the user in a preset time period.
S204, the electronic device determines a plurality of distances between the upper eyelid and the lower eyelid of the user based on the plurality of images.
S205, when the electronic equipment detects that the average distance of the distances is smaller than or equal to a preset distance threshold value and the change trend of the distances is a decreasing trend, determining the eye fatigue of the user.
S206, the electronic equipment acquires the brightness of the environment where the electronic equipment is located.
S207, the electronic device determines the first preset brightness corresponding to the brightness of the environment based on the brightness of the environment.
S208, when the electronic equipment detects that the current screen brightness of the electronic equipment is larger than the first preset brightness, the screen brightness of the electronic equipment is adjusted to be the first preset brightness.
It can be seen that in the screen brightness adjusting method provided by the embodiment of the application, the electronic device obtains a plurality of images obtained by continuously shooting the eyes of the user by the electronic device within a preset time period, detects whether the eyes of the user are tired based on the plurality of images, and adjusts the screen brightness of the electronic device to be the first preset brightness corresponding to the environment when the eyes of the user are tired and when the current screen brightness of the electronic device is detected to be greater than the first preset brightness corresponding to the environment. Therefore, by the screen brightness adjusting method in the embodiment of the application, the electronic equipment adjusts the screen brightness according to whether the eyes of the user are fatigue, so that the visual fatigue of the user is relieved, and the eye protection effect of the electronic equipment is improved.
Referring to fig. 3, fig. 3 is a schematic flowchart of another screen brightness adjusting method according to an embodiment of the present disclosure, consistent with the embodiment shown in fig. 1 or fig. 2. As shown in fig. 3, the screen brightness adjusting method in the embodiment of the present application includes the following steps:
s301, the electronic equipment acquires the time that the screen brightness of the electronic equipment is continuously larger than or equal to third preset brightness.
S302, the electronic equipment determines that the time is larger than or equal to a preset time threshold.
S303, the electronic equipment acquires a plurality of images obtained by continuously shooting the eyes of the user in a preset time period.
S304, the electronic device determines a plurality of distances between the upper eyelid and the lower eyelid of the user based on the plurality of images;
s305, when the electronic equipment detects that the average distance of the distances is smaller than or equal to a preset distance threshold value and the change trend of the distances is a decreasing trend, determining the eye fatigue of the user;
s306, when detecting that the current screen brightness of the electronic equipment is larger than a first preset brightness, the electronic equipment acquires an application program currently operated by the electronic equipment;
s307, the electronic equipment determines background content and theme content included in the current display content of the electronic equipment based on the application program;
s308, the electronic equipment reduces the brightness of the background content included in the current display content of the electronic equipment.
It can be seen that, in the screen brightness adjusting method provided in the embodiment of the application, the electronic device obtains a plurality of images obtained by continuously shooting the eyes of the user by the electronic device within a preset time period, detects whether the eyes of the user are tired based on the plurality of images, and adjusts the partial screen brightness of the electronic device based on the current running program when the eyes of the user are tired. Therefore, by the screen brightness adjusting method in the embodiment of the application, on one hand, whether the electronic equipment adjusts the screen brightness according to whether the eyes of the user are fatigue can be achieved, so that the visual fatigue of the user is relieved, and the eye protection effect of the electronic equipment is improved, and on the other hand, when the screen brightness is reduced, the operation of the user on the currently running application program is not influenced.
The above description has introduced the solution of the embodiment of the present application mainly from the perspective of the method-side implementation process. It is understood that the electronic device comprises corresponding hardware structures and/or software modules for performing the respective functions in order to realize the above-mentioned functions. Those of skill in the art will readily appreciate that the present application is capable of hardware or a combination of hardware and computer software implementing the various illustrative elements and algorithm steps described in connection with the embodiments provided herein. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiment of the present application, the electronic device may be divided into the functional units according to the method example, for example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit. It should be noted that the division of the unit in the embodiment of the present application is schematic, and is only a logic function division, and there may be another division manner in actual implementation.
The following is an embodiment of the apparatus of the present invention, which is used to perform the method implemented by the embodiment of the method of the present invention. Referring to fig. 4, fig. 4 is a block diagram of a unit composition of a screen brightness adjusting apparatus disclosed in an embodiment of the present application, and as shown in fig. 4, the screen brightness adjusting apparatus may include an obtaining unit 401, a detecting unit 402, and an adjusting unit 403, where:
an obtaining unit 401, configured to obtain multiple images obtained by continuously shooting eyes of a user by an electronic device within a preset time period;
a detecting unit 402 configured to detect whether eyes of a user are tired based on the plurality of images;
an adjusting unit 403, configured to adjust screen brightness of the electronic device when eye fatigue of the user is detected.
In an embodiment, the detecting unit 402 is specifically configured to:
determining a plurality of distances of an upper eyelid and a lower eyelid of a user based on the plurality of images; when the average distance of the distances is smaller than or equal to a preset distance threshold value and the variation trend of the distances is a decreasing trend, determining the eye fatigue of the user.
In an embodiment, the adjusting unit 403 is specifically configured to:
when eye fatigue of a user is detected and the current screen brightness of the electronic equipment is greater than a first preset brightness, reducing the brightness of the screen; or when eye fatigue of the user is detected and the current screen brightness of the electronic equipment is smaller than a second preset brightness, increasing the brightness of the screen.
In an embodiment, in terms of reducing the brightness of the screen when detecting that the eye fatigue of the user is detected and the current screen brightness of the electronic device is greater than a first preset brightness, the adjusting unit 403 is specifically configured to:
when eye fatigue of a user is detected, acquiring brightness of an environment where the electronic equipment is located; determining the first preset brightness corresponding to the brightness of the environment based on the brightness of the environment; and when detecting that the current screen brightness of the electronic equipment is greater than the first preset brightness, adjusting the screen brightness of the electronic equipment to the first preset brightness.
In an embodiment, in terms of reducing the brightness of the screen when detecting that the eye fatigue of the user is detected and the current screen brightness of the electronic device is greater than a first preset brightness, the adjusting unit 403 is specifically configured to:
when eye fatigue of a user is detected and the current screen brightness of the electronic equipment is greater than a first preset brightness, acquiring an application program currently running by the electronic equipment; determining background content and subject content included in current display content of the electronic device based on the application program; reducing the brightness of the background content included in the current display content of the electronic device.
In one embodiment, the apparatus further comprises:
a determining unit 404, configured to obtain a time that the screen brightness of the electronic device is continuously greater than or equal to a third preset brightness; determining that the time is greater than or equal to a preset time threshold.
Specifically, the specific implementation of each unit may refer to the description of the relevant steps in the embodiments corresponding to fig. 1 to fig. 3, which is not described herein again.
It should be noted that the screen brightness adjusting device described in the embodiment of the present invention is presented in the form of a functional unit. The term "unit" as used herein is to be understood in its broadest possible sense, and objects used to implement the functions described by the respective "unit" may be, for example, an integrated circuit ASIC, a single circuit, a processor (shared, dedicated, or chipset) and memory that execute one or more software or firmware programs, a combinational logic circuit, and/or other suitable components that provide the described functionality.
For example, the function of the acquiring unit 401 to acquire multiple images obtained by continuously capturing the eyes of the user by the electronic device within the preset time period may be implemented by the electronic device shown in fig. 5, and specifically, the processor 501 may acquire the multiple images obtained by continuously capturing the eyes of the user by the electronic device within the preset time period by calling the executable program code in the memory 502.
It can be seen that the screen brightness adjusting device provided by the embodiment of the application obtains a plurality of images obtained by continuously shooting the eyes of the user by the electronic device within a preset time period, detects whether the eyes of the user are tired based on the plurality of images, and adjusts the screen brightness of the electronic device when the eyes of the user are tired. Therefore, by the screen brightness adjusting method in the embodiment of the application, the electronic equipment adjusts the screen brightness according to whether the eyes of the user are fatigue, so that the visual fatigue of the user is relieved, and the eye protection effect of the electronic equipment is improved.
Referring to fig. 5, fig. 5 is a schematic structural diagram of another electronic device 500 disclosed in the embodiment of the present application. The electronic device 500 comprises a processor 501, a memory 502, a communication interface 503, and one or more programs, wherein the one or more programs are stored in the memory 502 and configured to be executed by the processor 501, the programs comprising instructions for:
acquiring a plurality of images obtained by continuously shooting eyes of a user by electronic equipment within a preset time period;
detecting whether eyes of a user are tired based on the plurality of images;
adjusting screen brightness of the electronic device upon detecting eye fatigue of a user.
In one embodiment, in detecting whether the user's eyes are tired based on the plurality of images, the instructions in the program are specifically configured to:
determining a plurality of distances of an upper eyelid and a lower eyelid of a user based on the plurality of images;
when the average distance of the distances is smaller than or equal to a preset distance threshold value and the variation trend of the distances is a decreasing trend, determining the eye fatigue of the user.
In one embodiment, in adjusting the screen brightness of the electronic device upon detecting eye strain of the user, the instructions in the program are specifically configured to:
when eye fatigue of a user is detected and the current screen brightness of the electronic equipment is greater than a first preset brightness, reducing the brightness of the screen; alternatively, the first and second electrodes may be,
and when eye fatigue of the user is detected and the current screen brightness of the electronic equipment is smaller than a second preset brightness, increasing the brightness of the screen.
In one embodiment, in terms of reducing the brightness of the screen when eye fatigue of the user is detected and the current screen brightness of the electronic device is greater than a first preset brightness, the instructions in the program are specifically configured to perform the following operations:
when eye fatigue of a user is detected, acquiring brightness of an environment where the electronic equipment is located;
determining the first preset brightness corresponding to the brightness of the environment based on the brightness of the environment;
and when detecting that the current screen brightness of the electronic equipment is greater than the first preset brightness, adjusting the screen brightness of the electronic equipment to the first preset brightness.
In one embodiment, in terms of reducing the brightness of the screen when eye fatigue of the user is detected and the current screen brightness of the electronic device is greater than a first preset brightness, the instructions in the program are specifically configured to perform the following operations:
when eye fatigue of a user is detected and the current screen brightness of the electronic equipment is greater than a first preset brightness, acquiring an application program currently running by the electronic equipment;
determining background content and subject content included in current display content of the electronic device based on the application program;
reducing the brightness of the background content included in the current display content of the electronic device.
In one embodiment, the program further comprises instructions for:
acquiring the time that the screen brightness of the electronic equipment is continuously greater than or equal to a third preset brightness;
determining that the time is greater than or equal to a preset time threshold.
The communication interface 503 includes, but is not limited to, an antenna, an Amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. The memory 502 includes at least one of: random access memory, non-volatile memory, and external memory.
Specifically, the specific implementation of each unit may refer to the description of the relevant steps in the embodiments corresponding to fig. 1 to fig. 3, which is not described herein again.
It can be seen that the electronic device provided by the embodiment of the application obtains multiple images obtained by continuously shooting eyes of a user by the electronic device within a preset time period, detects whether the eyes of the user are tired based on the multiple images, and adjusts the screen brightness of the electronic device when the eyes of the user are tired. Therefore, by the screen brightness adjusting method in the embodiment of the application, the electronic equipment adjusts the screen brightness according to whether the eyes of the user are fatigue, so that the visual fatigue of the user is relieved, and the eye protection effect of the electronic equipment is improved.
As shown in fig. 6, for convenience of description, only the portions related to the embodiments of the present application are shown, and details of the specific technology are not disclosed, please refer to the method portion of the embodiments of the present application. The electronic device may be any terminal device including a mobile phone, a tablet computer, a PDA (personal digital assistant), a point of sale (POS), a vehicle-mounted computer, and the like, taking the electronic device as the mobile phone as an example:
fig. 6 is a block diagram illustrating a partial structure of a mobile phone related to an electronic device provided in an embodiment of the present application. Referring to fig. 6, the handset includes: radio Frequency (RF) circuitry 910, memory 920, input unit 930, display unit 940, sensor 950, audio circuitry 960, wireless fidelity (Wi-Fi) module 970, processor 980, and power supply 990. Those skilled in the art will appreciate that the handset configuration 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.
The following describes each component of the mobile phone in detail with reference to fig. 6:
RF circuitry 910 may be used for the reception and transmission of information. In general, the RF circuit 910 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuit 910 may also communicate with networks and other devices via wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to global system for mobile communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Message Service (SMS), and the like.
The memory 920 may be used to store software programs and modules, and the processor 980 may execute various functional applications and data processing of the mobile phone by operating the software programs and modules stored in the memory 920. The memory 920 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 920 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. In the embodiment of the present application, the memory 920 may be used to store the relevant data about the fall; for example, the memory 920 may store an estimated fall angle of the electronic device 900 estimated by the processor 980.
The input unit 930 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the cellular phone. Specifically, the input unit 930 may include a touch panel 931. The touch panel 931, also referred to as a touch screen, may collect a touch operation performed by a user on or near the touch panel 931 (e.g., a user's operation on or near the touch panel 931 using a finger, a stylus, or any other suitable object or accessory), and drive a corresponding connection device according to a preset program. Alternatively, the touch panel 931 may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts it to touch point coordinates, and sends the touch point coordinates to the processor 980, and can receive and execute commands from the processor complex 980. In addition, the touch panel 931 may be implemented by various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave.
The display unit 940 may be used to display information input by the user or information provided to the user and various menus of the mobile phone. The display unit 940 may include a display screen 941, and optionally, the display screen 941 may be configured in the form of a Liquid Crystal Display (LCD), an organic light-emitting diode (OLED), or the like.
The handset may also include at least one sensor 950, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display screen 941 according to the brightness of ambient light, and the proximity sensor may turn off the display screen 941 and/or the backlight when the mobile phone is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
Audio circuitry 960, speaker 961, microphone 962 may provide an audio interface between a user and a cell phone. The audio circuit 960 may transmit the electrical signal converted from the received audio data to the speaker 961, and convert the electrical signal into a sound signal for output by the speaker 961; on the other hand, the microphone 962 converts the collected sound signal into an electrical signal, converts the electrical signal into audio data after being received by the audio circuit 960, and outputs the audio data to the processor 980 for processing, and then transmits the audio data to, for example, another mobile phone through the RF circuit 910, or outputs the audio data to the memory 920 for further processing.
WiFi belongs to short-distance wireless transmission technology, and the mobile phone can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 970, and provides wireless broadband Internet access for the user. Although fig. 6 shows the WiFi module 970, it is understood that it does not belong to the essential constitution of the handset, and can be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 980 is a control center of the mobile phone, connects various parts of the entire mobile phone by using various interfaces and lines, and performs various functions of the mobile phone and processes data by operating or executing software programs and/or modules stored in the memory 920 and calling data stored in the memory 920, thereby integrally monitoring the mobile phone. Alternatively, processor 980 may include one or more processing units; preferably, the processor 980 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 980.
In particular, processor 980 may invoke a computer program stored in memory 920 for performing the following operations:
acquiring a plurality of images obtained by continuously shooting eyes of a user by electronic equipment within a preset time period;
detecting whether eyes of a user are tired based on the plurality of images;
adjusting screen brightness of the electronic device upon detecting eye fatigue of a user.
The electronic device also includes a power supply 990 (e.g., a battery) for supplying power to the various components, which may be logically connected to the processor 980 via a power management system, such that the functions of managing charging, discharging, and power consumption are performed via the power management system.
Although not shown, the electronic device may further include a camera, a bluetooth module, and the like, which are not described in detail herein.
In the embodiments shown in fig. 2 and fig. 3, the method flows of the steps may be implemented based on the structure of the electronic device.
In the embodiment shown in fig. 4, the functions of the units can be implemented based on the structure of the electronic device.
Embodiments of the present application also provide a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute some or all of the steps of any one of the screen brightness adjustment methods as described in the above method embodiments.
The embodiment of the present application further provides a computer storage medium, where the computer storage medium may store a program, and the program includes some or all of the steps of any one of the screen brightness adjusting methods described in the above method embodiments when executed.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implementing, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be an electric or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable memory. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a memory and includes several instructions for causing a computer device (which may be a personal computer, a server, a network device, or the like) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned memory comprises: various media capable of storing program codes, such as a usb disk, a read-only memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and the like.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable memory, which may include: a flash disk, a read-only memory (ROM), a Random Access Memory (RAM), a magnetic or optical disk, and the like.
The foregoing embodiments of the present invention have been described in detail, and the principles and embodiments of the present invention are explained herein by using specific examples, which are only used to help understand the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (14)

1. A screen brightness adjusting method is characterized by comprising the following steps:
acquiring a plurality of images obtained by continuously shooting eyes of a user by electronic equipment within a preset time period;
detecting whether eyes of a user are tired based on the plurality of images;
when eye fatigue of a user is detected, adjusting screen brightness of the electronic equipment, wherein when eye fatigue of the user is detected, brightness of an environment where the electronic equipment is located is obtained, in the brightness of the environment, second preset brightness corresponding to the brightness of the environment is determined, and when the current screen brightness of the electronic equipment is detected to be smaller than the second preset brightness, the screen brightness of the electronic equipment is adjusted to be the second preset brightness so as to increase the brightness of a screen.
2. The method of claim 1, wherein the detecting whether the user's eyes are tired based on the plurality of images comprises:
determining a plurality of distances of an upper eyelid and a lower eyelid of a user based on the plurality of images;
when the average distance of the distances is smaller than or equal to a preset distance threshold value and the variation trend of the distances is a decreasing trend, determining the eye fatigue of the user.
3. The method of claim 1 or 2, wherein the adjusting the screen brightness of the electronic device upon detecting eye fatigue of the user comprises:
when eye fatigue of a user is detected and the current screen brightness of the electronic equipment is larger than a first preset brightness, the brightness of the screen is reduced.
4. The method of claim 3, wherein reducing the brightness of the screen when eye fatigue of the user is detected and the current screen brightness of the electronic device is greater than a first preset brightness comprises:
when eye fatigue of a user is detected, acquiring brightness of an environment where the electronic equipment is located;
determining the first preset brightness corresponding to the brightness of the environment based on the brightness of the environment;
and when detecting that the current screen brightness of the electronic equipment is greater than the first preset brightness, adjusting the screen brightness of the electronic equipment to the first preset brightness.
5. The method of claim 3 or 4, wherein reducing the brightness of the screen when eye fatigue of the user is detected and the current screen brightness of the electronic device is greater than a first preset brightness comprises:
when eye fatigue of a user is detected and the current screen brightness of the electronic equipment is greater than a first preset brightness, acquiring an application program currently running by the electronic equipment;
determining background content and subject content included in current display content of the electronic device based on the application program;
reducing the brightness of the background content included in the current display content of the electronic device.
6. The method of any one of claims 1 to 5, wherein before the obtaining the plurality of images obtained by the electronic device continuously capturing the user's eyes for a preset time period, the method further comprises:
acquiring the time that the screen brightness of the electronic equipment is continuously greater than or equal to a third preset brightness;
determining that the time is greater than or equal to a preset time threshold.
7. A screen brightness adjustment apparatus, comprising:
the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring a plurality of images obtained by continuously shooting eyes of a user by electronic equipment within a preset time period;
a detection unit configured to detect whether eyes of a user are tired based on the plurality of images;
the adjusting unit is used for adjusting the screen brightness of the electronic equipment when eye fatigue of a user is detected, acquiring the brightness of an environment where the electronic equipment is located when the eye fatigue of the user is detected, determining a second preset brightness corresponding to the brightness of the environment according to the brightness of the environment, and adjusting the screen brightness of the electronic equipment to be the second preset brightness to increase the screen brightness when the current screen brightness of the electronic equipment is detected to be smaller than the second preset brightness.
8. The apparatus of claim 7, wherein the detection unit is specifically configured to:
determining a plurality of distances of an upper eyelid and a lower eyelid of a user based on the plurality of images; when the average distance of the distances is smaller than or equal to a preset distance threshold value and the variation trend of the distances is a decreasing trend, determining the eye fatigue of the user.
9. The device according to claim 7 or 8, wherein the adjustment unit is specifically configured to:
when eye fatigue of a user is detected and the current screen brightness of the electronic equipment is larger than a first preset brightness, the brightness of the screen is reduced.
10. The apparatus of claim 9, wherein in terms of reducing the brightness of the screen when eye fatigue of the user is detected and the current screen brightness of the electronic device is greater than a first preset brightness, the adjusting unit is specifically configured to:
when eye fatigue of a user is detected, acquiring brightness of an environment where the electronic equipment is located; determining the first preset brightness corresponding to the brightness of the environment based on the brightness of the environment; and when detecting that the current screen brightness of the electronic equipment is greater than the first preset brightness, adjusting the screen brightness of the electronic equipment to the first preset brightness.
11. The apparatus according to claim 9 or 10, wherein, in reducing the brightness of the screen when the eye fatigue of the user is detected and the current screen brightness of the electronic device is greater than a first preset brightness, the adjusting unit is specifically configured to:
when eye fatigue of a user is detected and the current screen brightness of the electronic equipment is greater than a first preset brightness, acquiring an application program currently running by the electronic equipment; determining background content and subject content included in current display content of the electronic device based on the application program; reducing the brightness of the background content included in the current display content of the electronic device.
12. The apparatus of any of claims 7 to 11, further comprising:
the determining unit is used for acquiring the time that the screen brightness of the electronic equipment is continuously greater than or equal to a third preset brightness; determining that the time is greater than or equal to a preset time threshold.
13. An electronic device comprising a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, the programs comprising instructions for performing the steps of the method of any of claims 1-6.
14. A computer-readable storage medium, characterized in that it stores a computer program for electronic data exchange, wherein the computer program causes a computer to perform the method according to any one of claims 1 to 6.
CN201810360762.0A 2018-04-20 2018-04-20 Screen brightness adjusting method and device Active CN108595000B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810360762.0A CN108595000B (en) 2018-04-20 2018-04-20 Screen brightness adjusting method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810360762.0A CN108595000B (en) 2018-04-20 2018-04-20 Screen brightness adjusting method and device

Publications (2)

Publication Number Publication Date
CN108595000A CN108595000A (en) 2018-09-28
CN108595000B true CN108595000B (en) 2021-06-25

Family

ID=63614364

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810360762.0A Active CN108595000B (en) 2018-04-20 2018-04-20 Screen brightness adjusting method and device

Country Status (1)

Country Link
CN (1) CN108595000B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109451177B (en) * 2018-12-26 2022-06-03 努比亚技术有限公司 Display control method, device and computer readable storage medium
CN110572917A (en) * 2019-09-17 2019-12-13 哈尔滨理工大学 Microenvironment light brightness adjusting method and system
WO2021068256A1 (en) * 2019-10-12 2021-04-15 深圳海付移通科技有限公司 Method for relieving eye strain and intelligent teriminal
CN111124534A (en) * 2019-12-05 2020-05-08 深圳智锐通科技有限公司 Intelligent eye protection computer
CN112903094B (en) * 2020-01-21 2022-11-08 上海掌门科技有限公司 Method and equipment for detecting scene light
CN111556194B (en) * 2020-03-31 2021-12-21 宇龙计算机通信科技(深圳)有限公司 Brightness adjusting method and device, storage medium and terminal
CN114690909B (en) * 2022-06-01 2022-08-16 润芯微科技(江苏)有限公司 AI visual self-adaption method, device, system and computer readable medium
CN117272270A (en) * 2023-09-20 2023-12-22 深圳市一诺成电子有限公司 Child flat plate management and control method, system, equipment and medium based on vision monitoring

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104464686A (en) * 2013-09-17 2015-03-25 联想(北京)有限公司 Display brilliance control method and electronic device
CN106297733A (en) * 2016-10-01 2017-01-04 奇酷互联网络科技(深圳)有限公司 Screen intensity Automatic adjustment method and device
CN106297724A (en) * 2015-06-23 2017-01-04 展讯通信(上海)有限公司 Mobile terminal and control method thereof
CN106991792A (en) * 2017-05-15 2017-07-28 广东小天才科技有限公司 A kind of eye fatigue detection method and device, user equipment
CN107665697A (en) * 2017-10-20 2018-02-06 维沃移动通信有限公司 The adjusting method and mobile terminal of a kind of screen intensity
CN107731146A (en) * 2017-10-20 2018-02-23 广东欧珀移动通信有限公司 Brightness adjusting method and related product

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104464686A (en) * 2013-09-17 2015-03-25 联想(北京)有限公司 Display brilliance control method and electronic device
CN106297724A (en) * 2015-06-23 2017-01-04 展讯通信(上海)有限公司 Mobile terminal and control method thereof
CN106297733A (en) * 2016-10-01 2017-01-04 奇酷互联网络科技(深圳)有限公司 Screen intensity Automatic adjustment method and device
CN106991792A (en) * 2017-05-15 2017-07-28 广东小天才科技有限公司 A kind of eye fatigue detection method and device, user equipment
CN107665697A (en) * 2017-10-20 2018-02-06 维沃移动通信有限公司 The adjusting method and mobile terminal of a kind of screen intensity
CN107731146A (en) * 2017-10-20 2018-02-23 广东欧珀移动通信有限公司 Brightness adjusting method and related product

Also Published As

Publication number Publication date
CN108595000A (en) 2018-09-28

Similar Documents

Publication Publication Date Title
CN108595000B (en) Screen brightness adjusting method and device
CN108182019B (en) Suspension control display processing method and mobile terminal
CN107967129B (en) Display control method and related product
CN108920059B (en) Message processing method and mobile terminal
EP3428781B1 (en) Iris-based living-body detection method, mobile terminal and storage medium
CN108646973B (en) Off-screen display method, mobile terminal and computer-readable storage medium
CN108108137B (en) Display control method and related product
CN108762814B (en) Screen lightening method and related equipment
CN106406530B (en) Screen display method and mobile terminal thereof
CN108388340B (en) Electronic equipment control method and related product
CN107317918B (en) Parameter setting method and related product
CN108172200B (en) Method for displaying text in application and terminal equipment
CN107707430B (en) Control method of mobile terminal and mobile terminal
CN105094501B (en) Method, device and system for displaying messages in mobile terminal
CN108052820B (en) Unlocking control method, terminal equipment and related product
CN107818038B (en) Information prompting method and mobile terminal
CN108270853B (en) Message processing method and mobile terminal
CN110362185B (en) Control method for screen brightness adjustment, terminal and computer readable storage medium
US11915633B2 (en) Screen color temperature control method, apparatus, storage medium, and mobile terminal
CN107562303B (en) Method and device for controlling element motion in display interface
CN109521937B (en) Screen display control method and mobile terminal
CN108375912B (en) Intelligent household control method and related product
CN108491143B (en) Object movement control method and mobile terminal
CN106934003B (en) File processing method and mobile terminal
CN106815078B (en) Memory control method and equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant