CN111857484B - Screen brightness adjusting method and device, electronic equipment and readable storage medium - Google Patents

Screen brightness adjusting method and device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN111857484B
CN111857484B CN202010739747.4A CN202010739747A CN111857484B CN 111857484 B CN111857484 B CN 111857484B CN 202010739747 A CN202010739747 A CN 202010739747A CN 111857484 B CN111857484 B CN 111857484B
Authority
CN
China
Prior art keywords
screen
brightness
brightness value
screen brightness
value
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
CN202010739747.4A
Other languages
Chinese (zh)
Other versions
CN111857484A (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202010739747.4A priority Critical patent/CN111857484B/en
Publication of CN111857484A publication Critical patent/CN111857484A/en
Application granted granted Critical
Publication of CN111857484B publication Critical patent/CN111857484B/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/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
    • 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/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G3/00Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
    • G09G3/20Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/10Intensity circuits

Landscapes

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

Abstract

The application discloses a screen brightness adjusting method and device, electronic equipment and a readable storage medium, and belongs to the technical field of electronics. The screen brightness adjusting method comprises the following steps: under the condition that the brightness automatic adjustment function of the screen is in a closed state, acquiring a first environment brightness value of the current environment; displaying at least one brightness adjusting key under the condition that the current first screen brightness value of the screen is not matched with the first environment brightness value; receiving a first input of a target brightness adjusting key by a user; and responding to the first input, and adjusting the brightness of the screen to be a target screen brightness value, wherein the target screen brightness value is a screen brightness value corresponding to the target brightness adjusting key. The technical scheme provided by the embodiment of the application can solve the problem that the operation is inconvenient when a user adjusts the screen brightness due to the fact that the screen brightness and the environment brightness are not matched in the prior art to a certain extent.

Description

Screen brightness adjusting method and device, electronic equipment and readable storage medium
Technical Field
The application belongs to the technical field of electronics, and particularly relates to a screen brightness adjusting method and device, electronic equipment and a readable storage medium.
Background
At present, many electronic devices (such as mobile phones, tablet computers, and the like) are provided with display screens, and users often have a demand for adjusting screen brightness for the display screens. In the prior art, the adjustment of the screen brightness generally includes two modes, one mode is automatic adjustment, namely, the screen brightness automatically changes along with the change of the brightness of the external environment; the other mode is manual adjustment, namely, the screen brightness is manually adjusted by a user according to the requirement of the user.
For the automatic adjustment mode, the user does not need to execute the adjustment operation of the screen brightness, and the use is convenient. However, for some users, it is more customary to adjust the screen brightness according to their own needs, so that the automatic adjustment function is turned off and manual adjustment is adopted.
In general, the screen brightness and the ambient brightness have a positive correlation, that is, the higher the ambient brightness is, the higher the screen brightness is; the lower the ambient brightness, the lower the screen brightness is. After the screen brightness automatic adjustment function is turned off, under some special scenes, the situation that the screen brightness is not matched with the ambient brightness may be encountered, and the user is influenced to view the display content in the screen. For example, when the user suddenly enters an environment with high illumination intensity (such as an environment with direct sunlight), it may be difficult to see the display content in the screen due to low screen brightness; or suddenly enter an environment with weak illumination intensity (such as an environment without illumination at night), the screen brightness is too high, which may cause dazzling. In the two scenes, because the contrast between the ambient brightness and the screen brightness is large, the screen brightness lacks comfort, the use of the screen by a user is influenced, and the problem of inconvenient operation exists when the user adjusts the screen brightness in the scene.
Disclosure of Invention
An object of the embodiments of the present application is to provide a method and an apparatus for adjusting screen brightness, an electronic device, and a readable storage medium, which can solve a problem that a user has inconvenient operation when adjusting screen brightness due to mismatching between screen brightness and ambient brightness in the prior art to a certain extent.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides a screen brightness adjusting method, where the screen brightness adjusting method includes:
under the condition that the brightness automatic adjustment function of the screen is in a closed state, acquiring a first environment brightness value of the current environment;
displaying at least one brightness adjusting key under the condition that the current first screen brightness value of the screen is not matched with the first environment brightness value; each brightness adjusting key corresponds to a screen brightness value, and the screen brightness value corresponding to each brightness adjusting key is matched with the first environment brightness value;
receiving a first input of a target brightness adjusting key by a user; the target brightness adjusting key is one of the at least one brightness adjusting key;
and responding to the first input, and adjusting the brightness of the screen to be a target screen brightness value, wherein the target screen brightness value is a screen brightness value corresponding to the target brightness adjusting key.
In a second aspect, an embodiment of the present application provides a screen brightness adjusting apparatus, including:
the acquisition module is used for acquiring a first environment brightness value of the current environment under the condition that the automatic brightness adjustment function of the screen is in a closed state;
the display module is used for displaying at least one brightness adjusting key under the condition that the current first screen brightness value of the screen is not matched with the first environment brightness value; each brightness adjusting key corresponds to a screen brightness value, and the screen brightness value corresponding to each brightness adjusting key is matched with the first environment brightness value;
the receiving module is used for receiving first input of a user to the target brightness adjusting key; the target brightness adjusting key is one of the at least one brightness adjusting key;
and the adjusting module is used for responding to the first input and adjusting the brightness of the screen to be a target screen brightness value, and the target screen brightness value is a screen brightness value corresponding to the target brightness adjusting key.
In a third aspect, an embodiment of the present application provides an electronic device, including: a processor, a memory and a program or instructions stored on the memory and executable on the processor, which when executed by the processor implement the steps in the screen brightness adjustment method according to the first aspect.
In a fourth aspect, the present application provides a readable storage medium, on which a program or instructions are stored, and when executed by a processor, the program or instructions implement the steps of the screen brightness adjustment method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the screen brightness adjustment method according to the first aspect.
In the embodiment of the application, after the brightness automatic adjustment function of the screen is closed, if the situation that the current brightness of the screen is not matched with the ambient brightness is met, the brightness adjustment key can be displayed quickly, so that a user can adjust the brightness of the screen, and the operation work of searching the brightness adjustment key by the user is omitted. In addition, the brightness adjustment key in the embodiment of the application is one-key brightness adjustment, that is, after a certain brightness adjustment key is touched, the screen brightness can be directly adjusted to the screen brightness value corresponding to the brightness adjustment key, and compared with a traditional dragging adjustment mode, the brightness adjustment is faster. Furthermore, in the embodiment of the application, the screen brightness value corresponding to each brightness adjusting key is matched with the brightness of the current environment, and a user does not need to try and explore the screen brightness value, so that the brightness adjusting operation is more convenient. In a word, the screen brightness adjusting method provided by the embodiment of the application can enable a user to conveniently and quickly adjust the screen brightness to the proper brightness under the condition that the screen brightness is not matched with the environment brightness, and reduce the time length bringing inconvenience to the user.
Drawings
FIG. 1 is a schematic flowchart of a method for adjusting screen brightness according to an embodiment of the present disclosure;
FIG. 2 is a schematic flow chart of an example provided by an embodiment of the present application;
FIG. 3 is a schematic block diagram of a screen brightness adjusting apparatus provided in an embodiment of the present application;
FIG. 4 is a block diagram of an electronic device provided by an embodiment of the application;
fig. 5 is a second schematic block diagram of an electronic device according to an embodiment of the present application.
Detailed Description
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 some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The screen brightness adjusting method provided by the embodiment of the present application is described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
Fig. 1 is a flowchart illustrating a screen brightness adjusting method according to an embodiment of the present application, where the screen brightness adjusting method is applied to an electronic device provided with a screen.
As shown in fig. 1, the screen brightness adjusting method includes:
step 101: and under the condition that the brightness automatic adjustment function of the screen is in a closed state, acquiring a first environment brightness value of the current environment.
In the embodiment of the application, when the brightness automatic adjustment function of the screen is in the off state, the environment brightness value (i.e., the first environment brightness value) of the environment (i.e., the current environment) where the electronic device is located may be obtained in real time or at regular time.
For many electronic devices (such as mobile phones, tablet computers, and the like), the light-sensitive sensor is a necessary component, and therefore, in the embodiment of the present application, the brightness value of the current environment can be obtained through the light-sensitive sensor installed in the electronic device.
Step 102: and displaying at least one brightness adjusting key under the condition that the current first screen brightness value of the screen is not matched with the first environment brightness value.
In the embodiment of the application, after the brightness value of the current environment is obtained, whether the current brightness of the screen is matched with the brightness of the current environment can be judged. And displaying at least one brightness adjusting key under the condition that the two are not matched.
Each brightness adjusting key corresponds to a screen brightness value, namely, different brightness adjusting keys are touched, the screen brightness is adjusted to different brightness values, and after one brightness adjusting key is touched, the screen brightness is directly adjusted to the screen brightness value corresponding to the brightness adjusting key. In addition, the screen brightness value corresponding to each brightness adjusting key is matched with the brightness value of the current environment.
Step 103: and receiving a first input of a target brightness adjusting key by a user.
The target brightness adjustment key is one of the at least one brightness adjustment keys described in step 102.
The first input described herein may include, but is not limited to: single-click touch operation, double-click touch operation, long-press touch operation, or double-press touch operation.
Step 104: in response to a first input, the brightness of the screen is adjusted to a target screen brightness value.
And the target screen brightness value is the screen brightness value corresponding to the target brightness adjusting key.
And after receiving the first input, the electronic equipment responds to the first input and adjusts the brightness of the screen to be a target screen brightness value, wherein the target screen brightness value is a screen brightness value corresponding to the target brightness adjusting key.
In the embodiment of the application, after the automatic brightness adjustment function of the screen is turned off, if the current brightness of the screen is not matched with the ambient brightness (for example, when the contrast is large), the brightness adjustment key can be automatically displayed so that a user can adjust the brightness of the screen, and the operation work of searching the brightness adjustment key by the user is omitted. In addition, the brightness adjustment key in the embodiment of the application is one-key brightness adjustment, that is, after a certain brightness adjustment key is touched, the screen brightness can be directly adjusted to the screen brightness value corresponding to the brightness adjustment key, and compared with a traditional dragging adjustment mode, the brightness adjustment is faster. Furthermore, in the embodiment of the application, the screen brightness value corresponding to each brightness adjusting key is matched with the brightness of the current environment, and a user does not need to try and explore the screen brightness value, so that the brightness adjusting operation is more convenient.
In a word, the screen brightness adjusting method provided by the embodiment of the application can enable a user to conveniently and quickly adjust the screen brightness to the proper brightness under the condition that the screen brightness is not matched with the environment brightness, and reduce the time length bringing inconvenience to the user.
Optionally, after the brightness adjustment key is displayed, if the user does not want to adjust the screen brightness, the display of the brightness adjustment key may be cancelled through a preset operation, such as through voice input control, touch operation on the touch screen (e.g., clicking a display area outside the brightness adjustment key), touch operation on a preset physical key (e.g., a power key, a home key, etc.), or an operation of a gesture across the air, etc.
Optionally, the number of brightness adjustment keys is one. Under the condition that the screen brightness is not matched with the ambient brightness, the user expects to adjust the screen brightness as soon as possible so as to better check the screen content, therefore, one brightness adjusting key can quickly finish the brightness adjusting work while meeting the brightness requirement, and the adjusting process is simpler and more convenient.
Optionally, the number of the brightness adjusting keys is at least two. Different users have different perceptibility to light, therefore, a plurality of brightness adjusting keys are provided, so that the users can select the screen brightness more suitable for themselves, and the comfort is improved.
Optionally, the brightness adjusting keys may be arranged in the order of the corresponding screen brightness values from small to large along the left-to-right direction or the top-to-bottom direction, so that the user can distinguish the magnitude relationship of the screen brightness value corresponding to each brightness adjusting key. Where left and right are described herein as directions with respect to a user as a reference, for example, where left is: the left side of the user when the screen is positioned face-to-face with respect to the user, where the right side is: the screen is positioned opposite the user face to face with respect to the user's right side. The above and below are directions in which the electronic device is taken as a reference, wherein the top of the electronic device is taken as the top, and the bottom of the electronic device is taken as the bottom.
Optionally, the foregoing mentions: in a case that a current first screen brightness value of a screen is not matched with a first environment brightness value, displaying at least one brightness adjustment key, and determining whether the current first screen brightness value of the screen is matched with the first environment brightness value, an embodiment of the present application provides an implementation manner, as follows:
before step 102, the screen brightness adjusting method may further include:
determining a target screen brightness value range corresponding to the first environment brightness value according to a preset corresponding relation between the environment brightness value and the screen brightness value; under the condition that the first screen brightness value is not in the target screen brightness value range, determining that the first screen brightness value is not matched with the first environment brightness value; and under the condition that the first screen brightness value is within the range of the target screen brightness value, determining that the first screen brightness value is matched with the first environment brightness value.
In the embodiment of the application, a preset corresponding relationship between the environment brightness value and the screen brightness value can be preset. Wherein, the screen brightness value corresponding to each environment brightness value is: and under the environment brightness of the environment brightness value, the screen brightness suitable for the user to view the screen content is obtained.
After the first environment brightness value of the current environment is obtained, a screen brightness value (hereinafter referred to as a second screen brightness value) corresponding to the first environment brightness value may be determined according to a preset corresponding relationship between the environment brightness value and the screen brightness value, and then a target screen brightness value range is determined according to the second screen brightness value and a preset brightness redundancy (non-0 value). If the first screen brightness value is within the target screen brightness value range, the first screen brightness value is considered to be matched with the first environment brightness value; and if the first screen brightness value is not in the target screen brightness value range, the first screen brightness value is considered to be not matched with the first environment brightness value.
Optionally, in a case that it is determined that the first screen brightness value does not match the first environment brightness value, the screen brightness adjusting method may further include: and determining the number of brightness adjusting keys according to the value range of the target screen brightness.
In the embodiment of the application, the number of the brightness adjusting keys can be determined according to the brightness value range of the target screen. For example, the range of the brightness of the target screen is [100, 200], and then every 30 brightness values are preset to generate a brightness adjusting key. If the screen brightness value corresponding to the first brightness adjusting key is 100, 4 brightness adjusting keys can be obtained according to the value range of the target screen brightness, and the screen brightness value corresponding to each brightness adjusting key is as follows from small to large: 100. 130, 160, 190. The preset difference value between the screen brightness values corresponding to the two adjacent brightness adjusting keys can be set according to actual requirements. The screen brightness value corresponding to the first brightness adjustment key may be the minimum value in the value range of the target screen brightness, or may be set to have other value rules for value, which is not limited in the embodiment of the present invention.
Optionally, in the case that the screen brightness does not match the ambient brightness, if the user does not have a need to view the screen display content, there is no need to adjust the screen brightness, and therefore, in this embodiment of the application, before displaying the at least one brightness adjustment key, it may also be detected whether the user has a need to view the screen display content. For how to detect whether a user has a requirement for viewing screen display content, the embodiment of the present application provides the following implementation manner:
step 103: displaying at least one brightness adjustment key may include:
when the first screen brightness value is smaller than the minimum value in the target screen brightness value range and the electronic equipment where the screen is located is detected to move towards the face of the user, displaying at least one brightness adjusting key;
or, displaying at least one brightness adjusting key under the condition that the first screen brightness value is smaller than the minimum value in the target screen brightness value range and the user eyes are detected to watch the screen;
or, when the first screen brightness value is larger than the maximum value in the target screen brightness value range and the electronic equipment is detected to move away from the face of the user, displaying at least one brightness adjusting key;
or, displaying at least one brightness adjusting key under the condition that the first screen brightness value is larger than the maximum value in the target screen brightness value range and the user eyes are detected to watch the screen.
In the embodiment of the application, whether the user has the requirement of using the screen or not can be judged through the change of the position relation between the electronic equipment and the face of the user and/or whether the eyes of the user watch the screen or not. This is explained further below.
Under the condition that the first screen brightness value is smaller than the minimum value in the target screen brightness value range, it is indicated that the screen brightness is lower than the ambient brightness, and the display content in the screen is difficult to see because the screen brightness is lower. Therefore, under the condition that the first screen brightness value is smaller than the minimum value in the target screen brightness value range, if the electronic equipment is detected to move towards the face of the user, the user can be considered to have the requirement of viewing the screen display content; if it is detected that the electronic device does not move towards the face of the user, it can be considered that the user does not have a need to view the screen display content.
Under the condition that the first screen brightness value is larger than the maximum value in the target screen brightness value range, the screen brightness is higher than the ambient brightness, the screen is dazzling due to higher brightness, and at the moment, if a user uses the screen, the user can be conscious of keeping the electronic equipment away from the face of the user, so that the distance between the screen and the eyes of the user is increased, and dazzling is avoided. Therefore, under the condition that the first screen brightness value is larger than the maximum value in the target screen brightness value range, if the electronic equipment is detected to move away from the face of the user, the user can be considered to have the requirement of viewing the screen display content; if it is detected that the electronic device does not move towards the face of the user, it can be considered that the user does not have a need to view the screen display content.
Optionally, when detecting a change in the positional relationship between the electronic device and the face of the user, the detection may be performed by a gravitational acceleration sensor and a camera provided on the electronic device. For example, the electronic equipment is detected to move upwards through the gravity acceleration sensor, and the electronic equipment is considered to move towards the face of the user if the face of the user is determined to be at the overlooking angle through the image acquired by the camera; or the electronic equipment is detected to move downwards through the gravity acceleration sensor, and the face of the user is determined to be at the elevation angle degree through the image acquired by the camera, so that the electronic equipment is considered to move towards the face of the user. For another example, the electronic equipment is detected to move downwards through the gravity acceleration sensor, and the electronic equipment is considered to move away from the face of the user if the face of the user is determined to be at the overlooking angle through the image acquired by the camera; or the electronic equipment is detected to move upwards through the gravity acceleration sensor, and the face of the user is determined to be at the elevation angle degree through the image acquired by the camera, so that the electronic equipment is considered to move away from the face of the user.
It should be noted that the upper and lower directions described herein are defined with reference to the direction of gravity, and are lower when the direction is the same as the direction of gravity and upper when the direction is opposite to the direction of gravity.
Alternatively, when the change of the position relationship between the electronic device and the face of the user is detected, the detection may also be performed by a distance sensor (such as an optical distance sensor, an infrared distance sensor, an ultrasonic distance sensor, or the like) provided on the electronic device. When the distance between the electronic equipment and the face of the user is detected to be gradually reduced, the electronic equipment is considered to move towards the face of the user; when the distance between the electronic equipment and the face of the user is detected to be gradually increased, the electronic equipment is considered to move away from the face of the user.
In the embodiment of the application, whether the user has the requirement of using the screen or not can be judged through the change of the position relation between the electronic equipment and the face of the user, and whether the user has the requirement of viewing the display content of the screen or not can be judged through detecting whether the eyes of the user watch the screen or not. For example, if it is detected that the user's eyes are looking at the screen, the user may be deemed to have a need to view the screen display content; if it is detected that the user's eyes are not looking at the screen, it may be assumed that the user does not have a need to view the screen display.
Alternatively, when detecting whether the eyes of the user are looking at the screen, the determination may be made by an image acquired by a camera provided on the electronic device. Determining that the eyes of a user watch the screen under the condition that the image acquired by the camera comprises a human eye image and the focus of the human eye sight is determined to be in the display area of the screen according to the human eye image; and under the condition that the image acquired by the camera does not comprise a human eye image or comprises a human eye image, but the focus of the human eye sight line is determined not to be in the display area of the screen according to the human eye image, determining that the user eyes do not watch the screen.
It is understood that, the two aforementioned implementations for determining whether the user has the requirement of using the screen may be used alone or in combination. In combination, if and only if it is determined that the user has a need to use the screen through both of the two implementation manners, the at least one brightness adjustment key is displayed, so that the accuracy of user behavior judgment can be improved.
In the embodiment of the application, the brightness adjusting key is friendly called out by combining the natural reaction of a human body to the screen brightness so as to fit the actual requirement of a user, and the user can accept the brightness adjusting key more easily.
Optionally, in a case that the screen brightness is lower than the ambient brightness, when the brightness adjustment key is displayed, in order to make the user see the brightness adjustment key clearly, the brightness adjustment key may be highlighted, and therefore, step 102: displaying at least one brightness adjustment key may include:
and displaying at least one brightness adjusting key under the condition that the first screen brightness value is smaller than the minimum value in the target screen brightness value range. The screen brightness value of the at least one brightness adjusting key is larger than the first screen brightness value and is within the range of the target screen brightness value.
In the embodiment of the application, when the brightness adjusting key is highlighted, only the brightness value of the display area where the brightness adjusting key is displayed can be controlled to be within the value range of the brightness of the target screen; the brightness value of the whole display area of the screen can be in the value range of the target screen brightness, and the display picture can be darkened in the screen display area except the brightness adjusting key display area through a specific technical means, so that the display of the brightness adjusting key is highlighted. Wherein, the specific technical means described herein may include but are not limited to: performing regional gray processing on the target display picture, displaying a preset transparency mask on the target display picture, or converting pixels of the display picture into a state with lower brightness values by adopting a certain pixel algorithm. Preferably, the brightness of the target display screen may be adjusted to the first screen brightness value by a specific technical means. The target display picture is a display picture in a display area except the display area where the brightness adjusting key is located.
After the user touches the brightness adjusting key, the electronic device adjusts the screen brightness to the screen brightness value corresponding to the touched brightness adjusting key, and the display of the brightness adjusting key is automatically cancelled.
When the brightness of the whole display area or part of the display area of the screen is adjusted in order to highlight the brightness adjusting key, if any processing operation on the terminal is not detected within a preset time period, the original brightness (namely the first screen brightness value) is recovered.
Optionally, in a case that the screen brightness is higher than the ambient brightness, when the brightness adjustment key is displayed, in order to facilitate the user to view the brightness adjustment key, the brightness adjustment key may be highlighted, and therefore, step 102: displaying at least one brightness adjustment key may include:
when the first screen brightness value is larger than the maximum value in the target screen brightness value range, performing preset processing on a display picture in the screen; and displaying at least one brightness adjusting key after the display picture is subjected to preset processing.
The preset processing described herein is used to reduce the display brightness of the display screen, and may include: displaying a mask with preset transparency on the display picture, or performing regional gray processing on the display picture, or controlling pixels of the display picture to display at a preset brightness value. Wherein, the preset brightness value is smaller than the first screen brightness value.
The screen brightness value of the brightness adjusting key is within the value range of the target screen brightness, and the screen brightness value is larger than the brightness value of the display picture after the preset processing, so that the brightness adjusting key can be highlighted while the screen is ensured not to be dazzled, and the user can conveniently check the brightness adjusting key.
After the user touches the brightness adjusting key, the electronic device adjusts the screen brightness to the screen brightness value corresponding to the touched brightness adjusting key, and the display of the brightness adjusting key is automatically cancelled.
In this embodiment, for the situation that the user enters the dark environment from the bright environment, the display brightness of the whole screen can be processed through a series of methods, and then the brightness adjustment key is controlled to display, so that the user can quickly adjust the screen to the proper brightness, the user is guaranteed not to stimulate eyes due to the excessively bright screen after entering the dark environment, and the situation that the user cannot see the screen due to the fact that the terminal automatically adjusts the screen to the excessively low brightness in the automatic brightness adjustment mode is avoided.
Optionally, in this embodiment of the application, in the case that the screen brightness does not match the environment brightness value, the user may adjust the screen brightness through a physical key in addition to the virtual brightness adjustment key, for example, the volume keys (including the volume plus key and the volume minus key) are used to adjust the screen brightness. For example, when the first screen brightness value is smaller than the minimum value in the target screen brightness value range, the screen brightness may be increased by the volume addition key, and at this time, the volume addition key corresponds to one screen brightness value, and after the volume addition key is pressed once, the screen brightness is adjusted to the screen brightness value. And when the first screen brightness value is larger than the maximum value in the target screen brightness value range, the screen brightness can be reduced through the volume reduction key, at the moment, the volume reduction key corresponds to one screen brightness value, and after the volume addition key is pressed once, the screen brightness is adjusted to the screen brightness value.
In order to facilitate the user to identify the volume key to be pressed, text or pattern prompt can be performed in the display area adjacent to the volume key to be touched, and the user can complete the adjustment of the screen brightness after pressing the corresponding volume key according to the prompt.
Finally, in order to better understand the screen brightness adjusting method provided by the embodiment of the present application, the following further explains the method with an example. In this example, the electronic device is a cell phone.
As shown in fig. 2, the exemplary adjustment process may include:
step 201: initial state: the automatic backlight function (i.e., the screen brightness automatic adjustment function) is turned off, and then step 202 is entered.
After the automatic backlight function is closed, the mobile phone cannot automatically adjust the backlight brightness according to the ambient brightness and must be manually adjusted by a user.
Step 202, obtaining the current ambient brightness through a photosensitive sensor in the mobile phone, and then entering step 203.
And step 203, judging whether the current backlight brightness of the mobile phone screen is matched with the ambient brightness. If the brightness of the backlight is not matched with the ambient brightness, the process proceeds to step 204, and if the brightness of the backlight is higher than the ambient brightness, the process proceeds to step 205.
And step 204, judging whether the mobile phone has the action of approaching the human eyes or not through a gravity acceleration sensor and a camera in the mobile phone. If the mobile phone has the motion close to the human eyes, step 206 is entered, otherwise step 202 is entered.
When a user enters a strong light environment, the backlight brightness is darker relative to the ambient brightness, and the user needs to take the mobile phone close to watch the mobile phone, so that the mobile phone is detected to move upwards through the gravity acceleration sensor, and the mobile phone is determined to have the action close to human eyes if the face of the user is determined to be at the overlooking angle through the image acquired by the camera; or when the gravity acceleration sensor detects that the mobile phone moves downwards and the face of the user is determined to be at the upward viewing angle through the image acquired by the camera, the mobile phone is determined to have the action close to the eyes of the user.
Both above and below are defined herein and hereinafter with reference to the direction of gravity. The direction of gravity is downward when the direction is the same as the direction of gravity, and upward when the direction is opposite to the direction of gravity.
The upward moving speed and the downward moving speed of the gravity acceleration sensor can be set, and when the upward moving speed or the downward moving speed of the gravity acceleration sensor reaches a preset speed, whether the mobile phone has an action close to the human eyes or not is judged, so that false triggering is avoided.
And step 205, judging whether the mobile phone has the action of being far away from human eyes or not through a gravity acceleration sensor and a camera in the mobile phone. If the mobile phone has the motion away from the human eyes, step 206 is entered, otherwise step 202 is entered.
When a user enters a dark light environment, the backlight brightness is brighter than the ambient brightness, and the user habitually takes the mobile phone away to watch the mobile phone so as to avoid dazzling, so that when the downward movement of the mobile phone is detected through the gravity acceleration sensor, and the face of the user is determined to be at a overlooking angle through an image acquired by the camera, the mobile phone is determined to have an action of being away from the eyes of the user; or when the mobile phone is detected to move upwards through the gravity acceleration sensor, and the face of the user is determined to be at the upward viewing angle through the image acquired by the camera, the mobile phone is determined to have the action of being far away from the eyes.
Step 206: and judging whether the user watches the mobile phone screen or not through the camera. If it is determined that the user is looking at the mobile phone screen, the process proceeds to step 207 if the screen backlight brightness is dark, and proceeds to step 208 if the screen backlight brightness is bright.
After the gravity acceleration sensor and the camera in the mobile phone are used for determining that the mobile phone has the action of approaching to the eyes of a user or has the action of leaving away from the eyes of the user, whether the user watches the screen of the mobile phone can be judged through the camera, so that whether the user uses the screen at the moment can be further determined, and the accuracy of judging the behavior of the user is improved.
Step 207: displaying a brightness adjustment key, increasing the brightness of the display area where the brightness adjustment key is located, and then proceeding to step 209.
The brightness adjusting key corresponds to a screen brightness value.
In the embodiment of the application, when the backlight brightness of the screen is higher, the brightness adjusting key can be highlighted in order to facilitate a user to view the brightness adjusting key.
Step 208: a brightness adjustment key is displayed and the brightness of the whole display area of the screen is reduced, and then the process goes to step 209.
The brightness adjusting key corresponds to a screen brightness value.
In the embodiment of the application, when the backlight brightness of the screen is higher, the brightness of the whole display area of the screen can be controlled to be reduced by a little in order to facilitate a user to check the brightness adjusting key.
Step 209: and receiving the click operation of the user on the brightness adjusting key, and adjusting the screen backlight brightness to the screen brightness value corresponding to the brightness adjusting key according to the click operation so as to realize one-key adjustment of the backlight brightness.
The above is a description of this example. It should be noted that the example is only for illustrating the technical solutions provided in the embodiments of the present application, and is not a specific limitation to the technical solutions provided in the embodiments of the present application.
To sum up, in the embodiment of the present application, after the brightness automatic adjustment function of the screen is turned off, if the current brightness of the screen is not matched with the ambient brightness, the brightness adjustment key can be automatically displayed, so that the user can adjust the brightness of the screen, and the operation work of the user for searching the brightness adjustment key is omitted. In addition, the brightness adjustment button in the embodiment of the application is one-key brightness adjustment, that is, after a certain brightness adjustment button is touched, the screen brightness can be directly adjusted to the screen brightness value corresponding to the brightness adjustment button, and compared with a traditional dragging adjustment mode, the brightness adjustment is faster and faster. Furthermore, the screen brightness value corresponding to each brightness adjusting key of the preset screen brightness difference value is matched with the brightness of the current environment, so that the user does not need to try and explore, and the brightness adjusting operation is more convenient. In a word, the screen brightness adjusting method provided by the embodiment of the application can enable a user to conveniently and quickly adjust the screen brightness to the proper brightness under the condition that the screen brightness is not matched with the environment brightness, and reduce the time length bringing inconvenience to the user.
It should be noted that, in the screen brightness adjusting method provided in the embodiment of the present application, the execution main body may be a screen brightness adjusting device, or a control module in the screen brightness adjusting device for executing the screen brightness adjusting method. In the embodiment of the present application, a method for executing screen brightness adjustment by a screen brightness adjustment device is taken as an example to describe the screen brightness adjustment device provided in the embodiment of the present application.
Fig. 3 is a schematic block diagram of a screen brightness adjusting apparatus according to an embodiment of the present application.
As shown in fig. 3, the screen brightness adjusting apparatus includes:
the obtaining module 301 is configured to obtain a first environment brightness value of a current environment when the brightness automatic adjustment function of the screen is in an off state.
A display module 302, configured to display at least one brightness adjustment key when a current first screen brightness value of the screen does not match the first environment brightness value.
Each brightness adjusting key corresponds to a screen brightness value, and the screen brightness value corresponding to each brightness adjusting key is matched with the first environment brightness value.
The receiving module 303 is configured to receive a first input of the target brightness adjusting key from the user.
The target brightness adjusting key is one of the at least one brightness adjusting key.
An adjusting module 304, configured to adjust the brightness of the screen to a target screen brightness value in response to the first input.
And the target screen brightness value is a screen brightness value corresponding to the target brightness adjusting key.
Optionally, the screen brightness adjusting apparatus further includes:
the first determining module is used for determining a target screen brightness value range corresponding to the first environment brightness value according to a preset corresponding relation between the environment brightness value and the screen brightness value.
And the second determining module is used for determining the number of the brightness adjusting keys according to the target screen brightness value range determined by the first determining module.
Optionally, the display module 302 includes:
and the first display unit is used for displaying the at least one brightness adjusting key under the condition that the first screen brightness value is smaller than the minimum value in the target screen brightness value range and the electronic equipment where the screen is located is detected to move towards the face of the user.
And the second display unit is used for displaying the at least one brightness adjusting key under the condition that the first screen brightness value is smaller than the minimum value in the target screen brightness value range and the condition that the eyes of the user are detected to watch the screen.
And the third display unit is used for displaying the at least one brightness adjusting key under the condition that the first screen brightness value is larger than the maximum value in the target screen brightness value range and the electronic equipment is detected to move away from the face of the user.
And the fourth display unit is used for displaying the at least one brightness adjusting key under the condition that the first screen brightness value is larger than the maximum value in the target screen brightness value range and the condition that the eyes of the user are detected to watch the screen.
Optionally, the display module 302 includes:
and the fifth display unit is used for displaying the at least one brightness adjusting key under the condition that the first screen brightness value is smaller than the minimum value in the target screen brightness value range.
And the screen brightness value of the at least one brightness adjusting key is greater than the first screen brightness value and is within the target screen brightness value range.
Optionally, the display module 302 includes:
and the processing unit is used for performing preset processing on the display picture in the screen under the condition that the first screen brightness value is larger than the maximum value in the target screen brightness value range.
Wherein the preset processing comprises: displaying a mask with preset transparency on the display picture, or performing regional gray processing on the display picture, or controlling pixels of the display picture to be displayed with a preset brightness value; and the preset brightness value is smaller than the first screen brightness value.
And the sixth display unit is used for displaying the at least one brightness adjusting key.
And the screen brightness value of the brightness adjusting key is in the value range of the target screen brightness.
To sum up, in the embodiment of the present application, after the brightness automatic adjustment function of the screen is turned off, if the current brightness of the screen is not matched with the ambient brightness, the brightness adjustment key can be automatically displayed, so that the user can adjust the brightness of the screen, and the operation work of the user for searching the brightness adjustment key is omitted. In addition, the brightness adjustment key in the embodiment of the application is one-key brightness adjustment, that is, after a certain brightness adjustment key is touched, the screen brightness can be directly adjusted to the screen brightness value corresponding to the brightness adjustment key, and compared with a traditional dragging adjustment mode, the brightness adjustment is faster. Furthermore, in the embodiment of the application, the screen brightness value corresponding to each brightness adjusting key is matched with the brightness of the current environment, and a user does not need to try and explore the screen brightness value, so that the brightness adjusting operation is more convenient. In a word, the screen brightness adjusting method provided by the embodiment of the application can enable a user to conveniently and quickly adjust the screen brightness to the proper brightness under the condition that the screen brightness is not matched with the environment brightness, and reduce the time length bringing inconvenience to the user.
The screen brightness adjusting device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The screen brightness adjusting device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The screen brightness adjusting device provided in the embodiment of the present application can implement each process implemented by the screen brightness adjusting method embodiment shown in fig. 1, and is not described here again to avoid repetition.
Optionally, as shown in fig. 4, an electronic device 400 is further provided in this embodiment of the present application, and includes a processor 401, a memory 402, and a program or an instruction stored in the memory 402 and executable on the processor 401, where the program or the instruction is executed by the processor 401 to implement each process of the foregoing screen brightness adjustment method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
It should be noted that the electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 5 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 500 includes, but is not limited to: a radio frequency unit 501, a network module 502, an audio output unit 503, an input unit 504, a sensor 505, a display unit 506, a user input unit 507, an interface unit 508, a memory 509, a processor 510, and the like. The electronic device 500 may be a headset.
Those skilled in the art will appreciate that the electronic device 500 may further include a power supply (e.g., a battery) for supplying power to various components, and the power supply may be logically connected to the processor 510 via a power management system, so as to implement functions of managing charging, discharging, and power consumption via the power management system. The electronic device structure shown in fig. 5 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
Wherein, the sensor 505 is used for: under the condition that the brightness automatic adjustment function of the screen is in a closed state, acquiring a first environment brightness value of the current environment; processor 510 is configured to: controlling the display unit 506 to display at least one brightness adjusting key under the condition that the current first screen brightness value of the screen is not matched with the first environment brightness value; the user input unit 507 is used to: receiving a first input of a target brightness adjusting key by a user; processor 510 is further configured to: and responding to the first input, and adjusting the brightness of the screen to be a target screen brightness value, wherein the target screen brightness value is a screen brightness value corresponding to the target brightness adjusting key.
Each brightness adjusting key corresponds to a screen brightness value, and the screen brightness value corresponding to each brightness adjusting key is matched with the first environment brightness value; the target brightness adjusting key is one of the at least one brightness adjusting key.
Optionally, the processor 510 is further configured to: determining a target screen brightness value range corresponding to the first environment brightness value according to a preset corresponding relation between the environment brightness value and the screen brightness value; and determining the number of the brightness adjusting keys according to the value range of the target screen brightness.
Optionally, the processor 510 is further configured to: and controlling the display unit 506 to display the at least one brightness adjusting key when the first screen brightness value is smaller than the minimum value in the target screen brightness value range and the sensor 505 detects that the electronic device where the screen is located moves towards the face of the user.
Optionally, the processor 510 is further configured to: and controlling the display unit 506 to display the at least one brightness adjusting key when the first screen brightness value is smaller than the minimum value in the target screen brightness value range and the sensor 505 detects that the eyes of the user watch the screen.
Optionally, the processor 510 is further configured to: and controlling the display unit 506 to display the at least one brightness adjusting key when the first screen brightness value is larger than the maximum value in the target screen brightness value range and the sensor 505 detects that the electronic equipment moves away from the face of the user.
Optionally, the processor 510 is further configured to: and controlling the display unit 506 to display the at least one brightness adjusting key when the first screen brightness value is larger than the maximum value in the target screen brightness value range and the sensor 505 detects that the eyes of the user watch the screen.
Optionally, the processor 510 is further configured to: and controlling the display unit 506 to display the at least one brightness adjusting key when the first screen brightness value is smaller than the minimum value in the target screen brightness value range.
And the screen brightness value of the at least one brightness adjusting key is greater than the first screen brightness value and is within the target screen brightness value range.
Optionally, the processor 510 is further configured to: when the first screen brightness value is larger than the maximum value in the target screen brightness value range, performing preset processing on a display picture in the screen; and controls the display unit 506 to display the at least one brightness adjustment key.
Wherein the preset processing comprises: displaying a mask with preset transparency on the display picture, or performing regional gray processing on the display picture, or controlling pixels of the display picture to be displayed with a preset brightness value; wherein the preset brightness value is smaller than the first screen brightness value; and the screen brightness value of the brightness adjusting key is in the value range of the target screen brightness.
To sum up, in the embodiment of the present application, after the brightness automatic adjustment function of the screen is turned off, if the current brightness of the screen is not matched with the ambient brightness, the brightness adjustment key can be automatically displayed, so that the user can adjust the brightness of the screen, and the operation work of the user for searching the brightness adjustment key is omitted. In addition, the brightness adjustment key in the embodiment of the application is one-key brightness adjustment, that is, after a certain brightness adjustment key is touched, the screen brightness can be directly adjusted to the screen brightness value corresponding to the brightness adjustment key, and compared with a traditional dragging adjustment mode, the brightness adjustment is faster. Furthermore, in the embodiment of the application, the screen brightness value corresponding to each brightness adjusting key is matched with the brightness of the current environment, and a user does not need to try and explore the screen brightness value, so that the brightness adjusting operation is more convenient. In a word, the screen brightness adjusting method provided by the embodiment of the application can enable a user to conveniently and quickly adjust the screen brightness to the proper brightness under the condition that the screen brightness is not matched with the environment brightness, and reduce the time length bringing inconvenience to the user.
It should be understood that in the embodiment of the present application, the input Unit 504 may include a Graphics Processing Unit (GPU) 5041 and a microphone 5042, and the Graphics processor 5041 processes image data of a still picture or a video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 506 may include a display panel 5061, and the display panel 5061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 507 includes a touch panel 5071 and other input devices 5072. A touch panel 5071, also referred to as a touch screen. The touch panel 5071 may include two parts of a touch detection device and a touch controller. Other input devices 5072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in further detail herein. The memory 509 may be used to store software programs as well as various data including, but not limited to, application programs and operating systems. Processor 510 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 processor 510.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the above-mentioned method for adjusting screen brightness, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement each process of the foregoing screen brightness adjustment method embodiment, and can achieve the same technical effect, and for avoiding repetition, the details are not repeated here.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (8)

1. A screen brightness adjusting method is characterized by comprising the following steps:
under the condition that the brightness automatic adjustment function of the screen is in a closed state, acquiring a first environment brightness value of the current environment;
displaying at least one brightness adjusting key under the condition that the current first screen brightness value of the screen is not matched with the first environment brightness value; each brightness adjusting key corresponds to a screen brightness value, and the screen brightness value corresponding to each brightness adjusting key is matched with the first environment brightness value;
receiving a first input of a target brightness adjusting key by a user; the target brightness adjusting key is one of the at least one brightness adjusting key;
responding to the first input, adjusting the brightness of the screen to be a target screen brightness value, wherein the target screen brightness value is a screen brightness value corresponding to the target brightness adjusting key;
wherein, before displaying at least one brightness adjusting key under the condition that the current first screen brightness value of the screen does not match the first environment brightness value, the screen brightness adjusting method further comprises:
determining a target screen brightness value range corresponding to the first environment brightness value according to a preset corresponding relation between the environment brightness value and the screen brightness value;
determining the number of the brightness adjusting keys according to the value range of the target screen brightness;
the displaying at least one brightness adjusting key under the condition that the current first screen brightness value of the screen is not matched with the first environment brightness value comprises:
displaying the at least one brightness adjusting key when the first screen brightness value is smaller than the minimum value in the target screen brightness value range and the electronic equipment is detected to move towards the face of the user;
or, when the first screen brightness value is smaller than the minimum value in the target screen brightness value range and the condition that the eyes of the user watch the screen is detected, displaying the at least one brightness adjusting key;
or, when the first screen brightness value is larger than the maximum value in the target screen brightness value range and the electronic equipment is detected to move away from the face of the user, displaying the at least one brightness adjusting key;
or, when the first screen brightness value is larger than the maximum value in the target screen brightness value range and the user eyes are detected to watch the screen, displaying the at least one brightness adjusting key.
2. The method for adjusting screen brightness according to claim 1, wherein the displaying at least one brightness adjusting key if the current first screen brightness value of the screen does not match the first environment brightness value comprises:
displaying the at least one brightness adjusting key under the condition that the first screen brightness value is smaller than the minimum value in the target screen brightness value range;
and the screen brightness value of the at least one brightness adjusting key is greater than the first screen brightness value and is within the target screen brightness value range.
3. The method for adjusting screen brightness according to claim 1, wherein the displaying at least one brightness adjusting key if the current first screen brightness value of the screen does not match the first environment brightness value comprises:
when the first screen brightness value is larger than the maximum value in the target screen brightness value range, performing preset processing on a display picture in the screen; wherein the preset processing comprises: displaying a mask with preset transparency on the display picture, or performing regional gray processing on the display picture, or controlling pixels of the display picture to be displayed with a preset brightness value; wherein the preset brightness value is smaller than the first screen brightness value;
displaying the at least one brightness adjustment key; and the screen brightness value of the brightness adjusting key is in the value range of the target screen brightness.
4. A screen brightness adjustment apparatus, comprising:
the acquisition module is used for acquiring a first environment brightness value of the current environment under the condition that the automatic brightness adjustment function of the screen is in a closed state;
the display module is used for displaying at least one brightness adjusting key under the condition that the current first screen brightness value of the screen is not matched with the first environment brightness value; each brightness adjusting key corresponds to a screen brightness value, and the screen brightness value corresponding to each brightness adjusting key is matched with the first environment brightness value;
the receiving module is used for receiving first input of a user to the target brightness adjusting key; the target brightness adjusting key is one of the at least one brightness adjusting key;
the adjusting module is used for responding to the first input, adjusting the brightness of the screen to be a target screen brightness value, wherein the target screen brightness value is a screen brightness value corresponding to the target brightness adjusting key;
wherein, the screen brightness adjusting device further comprises:
the first determining module is used for determining a target screen brightness value range corresponding to the first environment brightness value according to a preset corresponding relation between the environment brightness value and the screen brightness value;
the second determining module is used for determining the number of the brightness adjusting keys according to the target screen brightness value range determined by the first determining module;
the display module includes:
the first display unit is used for displaying the at least one brightness adjusting key under the condition that the first screen brightness value is smaller than the minimum value in the target screen brightness value range and the electronic equipment where the screen is located is detected to move towards the face of the user;
the second display unit is used for displaying the at least one brightness adjusting key under the condition that the first screen brightness value is smaller than the minimum value in the target screen brightness value range and the condition that the eyes of the user are detected to watch the screen is detected;
the third display unit is used for displaying the at least one brightness adjusting key under the condition that the first screen brightness value is larger than the maximum value in the target screen brightness value range and the electronic equipment is detected to move away from the face of the user;
and the fourth display unit is used for displaying the at least one brightness adjusting key under the condition that the first screen brightness value is larger than the maximum value in the target screen brightness value range and the condition that the eyes of the user are detected to watch the screen.
5. The screen brightness adjustment device of claim 4, wherein the display module comprises:
the fifth display unit is used for displaying the at least one brightness adjusting key under the condition that the first screen brightness value is smaller than the minimum value in the target screen brightness value range;
and the screen brightness value of the at least one brightness adjusting key is greater than the first screen brightness value and is within the target screen brightness value range.
6. The screen brightness adjustment device of claim 4, wherein the display module comprises:
the processing unit is used for presetting a display picture in the screen under the condition that the first screen brightness value is larger than the maximum value in the target screen brightness value range; wherein the preset processing comprises: displaying a mask with preset transparency on the display picture, or performing regional gray processing on the display picture, or controlling pixels of the display picture to be displayed with a preset brightness value; wherein the preset brightness value is smaller than the first screen brightness value;
the sixth display unit is used for displaying the at least one brightness adjusting key; and the screen brightness value of the brightness adjusting key is in the value range of the target screen brightness.
7. An electronic device, comprising: a processor, a memory, and a program or instructions stored on the memory and executable on the processor, the program or instructions when executed by the processor implementing the steps in the screen brightness adjustment method of any one of claims 1 to 3.
8. A readable storage medium storing thereon a program or instructions which, when executed by a processor, implement the steps in the screen brightness adjustment method according to any one of claims 1 to 3.
CN202010739747.4A 2020-07-28 2020-07-28 Screen brightness adjusting method and device, electronic equipment and readable storage medium Active CN111857484B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010739747.4A CN111857484B (en) 2020-07-28 2020-07-28 Screen brightness adjusting method and device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010739747.4A CN111857484B (en) 2020-07-28 2020-07-28 Screen brightness adjusting method and device, electronic equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN111857484A CN111857484A (en) 2020-10-30
CN111857484B true CN111857484B (en) 2022-02-08

Family

ID=72948131

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010739747.4A Active CN111857484B (en) 2020-07-28 2020-07-28 Screen brightness adjusting method and device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN111857484B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112767837A (en) * 2021-01-14 2021-05-07 维沃移动通信有限公司 Control method of electronic equipment and electronic equipment
CN112992100A (en) * 2021-04-19 2021-06-18 Oppo广东移动通信有限公司 Screen brightness adjusting method and device, electronic equipment and storage medium
WO2023279894A1 (en) * 2021-07-09 2023-01-12 海信视像科技股份有限公司 Display method and display device
CN113885824A (en) * 2021-10-18 2022-01-04 Oppo广东移动通信有限公司 Screen control method and device, electronic equipment and storage medium
CN114968061A (en) * 2022-05-25 2022-08-30 展讯通信(天津)有限公司 Brightness control method and device, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102404448A (en) * 2011-09-07 2012-04-04 惠州Tcl移动通信有限公司 Mobile terminal screen control method and mobile terminal
WO2017161867A1 (en) * 2016-03-22 2017-09-28 中兴通讯股份有限公司 Screen brightness adjustment method and apparatus, and intelligent terminal
CN110211549A (en) * 2019-04-25 2019-09-06 深圳市泰衡诺科技有限公司 A kind of screen brightness regulation method, device, terminal and storage medium

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106302977A (en) * 2015-06-24 2017-01-04 小米科技有限责任公司 The display packing of a kind of brightness regulating button and device
KR102565847B1 (en) * 2015-07-06 2023-08-10 삼성전자주식회사 Electronic device and method of controlling display in the electronic device
KR102483721B1 (en) * 2016-03-02 2023-01-02 삼성전자주식회사 Electronic device and operating method thereof
CN106201254B (en) * 2016-06-28 2019-04-12 Oppo广东移动通信有限公司 Control method, control device and electronic device
CN108346411A (en) * 2017-01-22 2018-07-31 中兴通讯股份有限公司 A kind of back light brightness regulating method, device and terminal
CN108279842A (en) * 2018-01-10 2018-07-13 维沃移动通信有限公司 A kind of function controlling method, function controlling device and terminal device
CN109637468A (en) * 2019-02-20 2019-04-16 昆山弘锦威电子有限公司 Adjust the electronic device and its backlight brightness regulation method of backlight illumination
CN110503925A (en) * 2019-09-02 2019-11-26 深圳利亚德光电有限公司 Adjusting method, device, storage medium and the processor of the backlight illumination of display screen

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102404448A (en) * 2011-09-07 2012-04-04 惠州Tcl移动通信有限公司 Mobile terminal screen control method and mobile terminal
WO2017161867A1 (en) * 2016-03-22 2017-09-28 中兴通讯股份有限公司 Screen brightness adjustment method and apparatus, and intelligent terminal
CN110211549A (en) * 2019-04-25 2019-09-06 深圳市泰衡诺科技有限公司 A kind of screen brightness regulation method, device, terminal and storage medium

Also Published As

Publication number Publication date
CN111857484A (en) 2020-10-30

Similar Documents

Publication Publication Date Title
CN111857484B (en) Screen brightness adjusting method and device, electronic equipment and readable storage medium
US9965039B2 (en) Device and method for displaying user interface of virtual input device based on motion recognition
US10255874B2 (en) Display controlling method and display device
CN107250969B (en) Screen opening method and device and electronic equipment
WO2017032017A1 (en) Method for controlling screen of user terminal and user terminal
KR20150049045A (en) Method and apparautus for controlling the brightness of the screen in portable device
KR20110091301A (en) Device and method for controlling a mouse pointer
EP3340026B1 (en) Watch-type mobile terminal
CN105204734A (en) Brightness control method and system
CN109451172A (en) A kind of method and apparatus of adjusting backlight luminance
US20230152956A1 (en) Wallpaper display control method and apparatus and electronic device
US20160261788A1 (en) System, method, and apparatus for timer operations controlling camera
CN113138560B (en) Terminal control method, device, equipment and readable storage medium
CN111045577A (en) Horizontal and vertical screen switching method, wearable device and device with storage function
CN112214112A (en) Parameter adjusting method and device
CN114779977A (en) Interface display method and device, electronic equipment and storage medium
CN112673612B (en) Display mode switching method, device, equipment and medium
CN114242023A (en) Display screen brightness adjusting method, display screen brightness adjusting device and electronic equipment
CN111414112B (en) Information display method and device and electronic equipment
CN112416172A (en) Electronic equipment control method and device and electronic equipment
EP4432682A1 (en) Photographing method and apparatus
CN113473008B (en) Shooting method and device
CN111176601A (en) Processing method and device
CN113703592B (en) Secure input method and device
CN115529405A (en) Image display method and device of front camera

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