CN109859718B - Screen brightness adjusting method and terminal equipment - Google Patents
Screen brightness adjusting method and terminal equipment Download PDFInfo
- Publication number
- CN109859718B CN109859718B CN201811624068.1A CN201811624068A CN109859718B CN 109859718 B CN109859718 B CN 109859718B CN 201811624068 A CN201811624068 A CN 201811624068A CN 109859718 B CN109859718 B CN 109859718B
- Authority
- CN
- China
- Prior art keywords
- screen
- area
- terminal device
- brightness value
- user
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Landscapes
- Telephone Function (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The embodiment of the invention discloses a screen brightness adjusting method and terminal equipment, relates to the technical field of communication, and can solve the problem that the flexibility of a screen brightness adjusting mode of the terminal equipment is poor. The specific scheme is as follows: determining a first area where a face image of a user is located in a screen of a terminal device; and adjusting the current brightness value of the screen according to the first area. The embodiment of the invention is applied to the process of adjusting the screen brightness of the terminal equipment.
Description
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a screen brightness adjusting method and terminal equipment.
Background
Generally, when a user uses the terminal device in a relatively bright or dark environment, the terminal device may detect the ambient brightness of the environment where the terminal device is currently located, and adjust the brightness of the screen of the terminal device according to the ambient brightness, so that the brightness of the screen of the terminal device can adapt to the environment where the terminal device is currently located, thereby improving the user experience.
However, after the terminal device adjusts the brightness of the screen according to the ambient brightness, for the user, if the screen of the terminal device is still bright or dark, the user still needs to manually adjust the brightness of the screen of the terminal device, and thus the flexibility of the manner in which the terminal device adjusts the screen brightness is poor.
Disclosure of Invention
The embodiment of the invention provides a screen brightness adjusting method and terminal equipment, which can solve the problem of poor flexibility of a mode for adjusting screen brightness by the terminal equipment.
In order to solve the technical problem, the embodiment of the invention adopts the following technical scheme:
in a first aspect of the embodiments of the present invention, a method for adjusting screen brightness is provided, where the method for adjusting screen brightness includes: determining a first area where a face image of a user is located in a screen of a terminal device; and adjusting the current brightness value of the screen according to the first area.
In a second aspect of the embodiments of the present invention, a terminal device is provided, where the terminal device may include: a determining unit and an adjusting unit. The determining unit is used for determining a first area where the face image of the user is located in the screen of the terminal equipment. And the adjusting unit is used for adjusting the current brightness value of the screen according to the first area determined by the determining unit.
In a third aspect of the embodiments of the present invention, a terminal device is provided, where the terminal device includes a processor, a memory, and a computer program stored in the memory and being executable on the processor, and the computer program, when executed by the processor, implements the steps of the screen brightness adjusting method according to the first aspect.
A fourth aspect of the embodiments of the present invention provides a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the steps of the screen brightness adjustment method according to the first aspect.
In the embodiment of the invention, the terminal device can determine a first area where the face image of the user is located in the screen of the terminal device, and adjust the current brightness value of the screen according to the first area. The inclination condition of the face of the user and the screen of the terminal device can be represented in the first area where the face image of the user is located in the screen of the terminal device, so that after the current brightness value of the screen is adjusted according to the inclination condition of the face of the user and the screen of the terminal device, the brightness of the screen of the terminal device can meet the requirement of the user, and the user does not need to manually adjust the brightness of the screen of the terminal device, so that the flexibility of the mode for adjusting the brightness of the screen is good.
Drawings
Fig. 1 is a schematic structural diagram of an android operating system according to an embodiment of the present invention;
fig. 2 is a schematic diagram illustrating a method for adjusting screen brightness according to an embodiment of the present invention;
fig. 3 is a schematic diagram of an example of an interface of a mobile phone according to an embodiment of the present invention;
fig. 4 is a second schematic diagram illustrating a method for adjusting screen brightness according to an embodiment of the present invention;
fig. 5 is a third schematic diagram illustrating a method for adjusting screen brightness according to an embodiment of the present invention;
fig. 6 is a schematic diagram illustrating an example of a positional relationship between a light source and a mobile phone according to an embodiment of the present invention;
fig. 7 is a second schematic diagram of an example of an interface of a mobile phone according to an embodiment of the present invention;
fig. 8 is a third schematic diagram of an example of an interface of a mobile phone according to the embodiment of the present invention;
fig. 9 is a schematic structural diagram of a terminal device according to an embodiment of the present invention;
fig. 10 is a second schematic structural diagram of a terminal device according to an embodiment of the present invention;
fig. 11 is a hardware schematic diagram of a terminal device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. 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" and "second," and the like, in the description and in the claims of embodiments of the present invention are used for distinguishing between different objects and not for describing a particular order of the objects. For example, the first luminance value and the second luminance value, etc. are for distinguishing different luminance values, not for describing a specific order of luminance values.
In the description of the embodiments of the present invention, the meaning of "a plurality" means two or more unless otherwise specified. For example, a plurality of elements refers to two elements or more.
The term "and/or" herein is an association relationship describing an associated object, and means that there may be three relationships, for example, a display panel and/or a backlight, which may mean: there are three cases of a display panel alone, a display panel and a backlight at the same time, and a backlight alone. The symbol "/" herein denotes a relationship in which the associated object is or, for example, input/output denotes input or output.
In the embodiments of the present invention, words such as "exemplary" or "for example" are used to mean serving as examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "e.g.," an embodiment of the present invention is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
The embodiment of the invention provides a screen brightness adjusting method and terminal equipment. The inclination condition of the face of the user and the screen of the terminal device can be represented in the first area where the face image of the user is located in the screen of the terminal device, so that after the current brightness value of the screen is adjusted according to the inclination condition of the face of the user and the screen of the terminal device, the brightness of the screen of the terminal device can meet the requirement of the user, and the user does not need to manually adjust the brightness of the screen of the terminal device, so that the flexibility of the mode for adjusting the brightness of the screen is good.
The screen brightness adjusting method and the terminal device provided by the embodiment of the invention can be applied to the process of adjusting the screen brightness of the terminal device. Specifically, the method can be applied to a process of adjusting the screen brightness of the terminal device according to the area where the face image of the user is located in the screen of the terminal device.
The terminal device in the embodiment of the present invention may be a terminal 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 invention are not limited in particular.
The following describes a software environment to which the screen brightness adjustment method provided by the embodiment of the present invention is applied, by taking an android operating system as an example.
Fig. 1 is a schematic diagram of an architecture of a possible android operating system according to an embodiment of the present invention. In fig. 1, the architecture of the android operating system includes 4 layers, which are respectively: an application layer, an application framework layer, a system runtime layer, and a kernel layer (specifically, a Linux kernel layer).
The application program layer comprises various application programs (including system application programs and third-party application programs) in an android operating system.
The application framework layer is a framework of the application, and a developer can develop some applications based on the application framework layer under the condition of complying with the development principle of the framework of the application.
The system runtime layer includes libraries (also called system libraries) and android operating system runtime environments. The library mainly provides various resources required by the android operating system. The android operating system running environment is used for providing a software environment for the android operating system.
The kernel layer is an operating system layer of an android operating system and belongs to the bottommost layer of an android operating system software layer. The kernel layer provides kernel system services and hardware-related drivers for the android operating system based on the Linux kernel.
Taking an android operating system as an example, in the embodiment of the present invention, a developer may develop a software program for implementing the screen brightness adjustment method provided in the embodiment of the present invention based on the system architecture of the android operating system shown in fig. 1, so that the screen brightness adjustment method may operate based on the android operating system shown in fig. 1. Namely, the processor or the terminal device can realize the screen brightness adjusting method provided by the embodiment of the invention by running the software program in the android operating system.
A screen brightness adjustment method and a terminal device provided in the embodiments of the present invention are described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
At present, in the prior art, after the terminal device adjusts the brightness of the screen according to the ambient brightness, for a user, if the screen of the terminal device is still brighter or darker, the user still needs to manually adjust the brightness of the screen of the terminal device, and thus the flexibility of the mode for adjusting the screen brightness by the terminal device is poor.
In order to solve the above technical problem, in a method for adjusting screen brightness provided in an embodiment of the present invention, fig. 2 shows a flowchart of the method for adjusting screen brightness provided in an embodiment of the present invention, and the method can be applied to a terminal device having an android operating system as shown in fig. 1. As shown in fig. 2, the screen brightness adjusting method provided by the embodiment of the present invention may include the following steps 201 and 202.
In the embodiment of the invention, the terminal device can acquire the face image of the user through a camera (such as a front camera) of the terminal device, and detect the first area of the face image in the current screen of the terminal device.
Optionally, in the embodiment of the present invention, the user may trigger the terminal device to start the brightness detection function, so that the terminal device may detect the first area where the face image of the user is located in the screen of the terminal device in real time.
It should be noted that, in the embodiment of the present invention, when the screen of the terminal device is in the non-screen-locked state, the terminal device may detect a first area where a face image of a user is located in the screen of the terminal device. Illustratively, the screen of the terminal device currently displays the interface of the application.
Optionally, in the embodiment of the present invention, the step 201 may be specifically implemented by the following step 201 a.
Step 201a, the terminal device determines a first area where the face image of the user is located in the screen of the terminal device according to the first parameter.
In an embodiment of the present invention, the first parameter may include at least one of: the target included angle value is an included angle value between a plane where the face of the user is located and a plane where the screen of the terminal device is located, and the target direction is an opening direction of an included angle between the plane where the face of the user is located and the plane where the screen of the terminal device is located.
It can be understood that, in the embodiment of the present invention, the first parameter is different (that is, the parameter is different between the plane where the face of the user is located and the plane where the screen of the terminal device is located), and the first area where the face image of the user is located in the screen is different.
Optionally, in the embodiment of the present invention, if an included angle value (for example, 0 or 180 °) between a plane where a face of a user is located and a plane where a screen of the terminal device is located is within a first preset range (for example, the face of the user is parallel to the screen of the terminal device), the face image of the user is located in a first preset area (that is, the first area is within the first preset area).
Optionally, in this embodiment of the present invention, the first preset area may be a middle area of a screen preset by the terminal device (for example, an area where a distance between the first preset area and a camera of the terminal device is greater than a first threshold and smaller than a second threshold).
Optionally, in this embodiment of the present invention, if an angle between a plane where the face of the user is located and a plane where the screen of the terminal device is located is within a second preset range (for example, the second preset range may be an open range (0, 180 °)), and an opening direction of an angle between the plane where the face of the user is located and the plane where the screen of the terminal device is located is a first direction (the first direction is a direction toward the top of the terminal device), the face image of the user is located in a second preset area (that is, the first area is within the second preset area).
Optionally, in this embodiment of the present invention, the second preset area may be a bottom area of a screen preset by the terminal device (for example, an area where a distance between the bottom area and a camera of the terminal device is greater than or equal to a second threshold).
Optionally, in this embodiment of the present invention, if an angle between a plane where the face of the user is located and a plane where the screen of the terminal device is located is within a third preset range (for example, the third preset range may be an open range (0, 180 °)), and an opening direction of an angle between the plane where the face of the user is located and the plane where the screen of the terminal device is located is a second direction (the second direction is a direction toward the bottom of the terminal device), the face image of the user is located in a third preset area (that is, the first area is within the third preset area).
Optionally, in this embodiment of the present invention, the third preset area may be a top area of a screen preset by the terminal device (for example, an area where a distance between the third preset area and a camera of the terminal device is less than or equal to a first threshold).
It can be understood that if the inclination of the face of the user is different from that of the screen of the terminal device, the first area of the face image of the user in the screen of the terminal device is also different; namely, the first area of the face image of the user in the screen of the terminal device can represent the inclination condition of the face of the user and the screen of the terminal device.
For example, a terminal device is taken as a mobile phone for explanation. As shown in fig. 3 (a), the screen of the mobile phone 10 displays an interface 11 (e.g., a main interface of the mobile phone 10), where the interface 11 includes at least one icon of an application program, and when the face of the user is parallel to the screen of the mobile phone 10, the mobile phone 10 can detect that the face image of the user is located in a middle area 12 (indicated by a solid line box in fig. 3 (a)); when there is an inclination between the face of the user and the screen of the mobile phone 10 (for example, an angle between a plane where the face image of the user is located and a plane where the screen of the mobile phone 10 is located is within an open interval (0, 180 °), and an opening direction of an angle between the plane where the face image of the user is located and the plane where the screen of the mobile phone 10 is located is a first direction), as shown in (B) in fig. 3, the mobile phone 10 may detect that the face image of the user is located in the bottom area 13 (indicated by a solid line box in (B) in fig. 3); when there is a situation that the face of the user and the screen of the mobile phone 10 are inclined (for example, an angle between a plane where the face image of the user is located and a plane where the screen of the mobile phone 10 is located is within an open range (0, 180 °), and an opening direction of an angle between the plane where the face image of the user is located and the plane where the screen of the mobile phone 10 is located is a second direction), as shown in (C) in fig. 3, the mobile phone 10 may detect that the face image of the user is located in the top area 14 (indicated by a solid line box in (C) in fig. 3).
Optionally, in the embodiment of the present invention, the first parameters are different (that is, the parameters between the plane where the face of the user is located and the plane where the screen is located are different), the first area where the face image of the user is located in the screen is different, and the brightness values of the adjusted screen are different.
It can be understood that if the first area of the face image of the user in the screen is different, the brightness value of the adjusted screen is also different.
Optionally, in the embodiment of the present invention, as shown in fig. 4 in combination with fig. 2, the step 202 may be specifically implemented by the following steps 202a to 202 c.
In the embodiment of the invention, the environment image is an environment image acquired when the terminal equipment acquires the face image.
In the embodiment of the present invention, after the terminal device collects the face image of the user, when the terminal device detects that the face image is located in the first preset region (that is, the first region is within the first preset region), the terminal device may obtain a brightness value of an environment image collected when the face image is collected, determine the first brightness value according to the brightness value, and then adjust the current brightness value of the screen to the first brightness value.
It is understood that the terminal device may determine the first brightness value according to the magnitude of the brightness value of the environment image (i.e., the brightness degree of the environment image) acquired when the face image is acquired, where the first brightness value is greater than the current brightness value of the screen, or the first brightness value is less than the current brightness value of the screen.
In the embodiment of the invention, when the first area is in the first preset area, the terminal device can adjust the current brightness value of the screen to the first brightness value determined according to the brightness value of the environment image acquired when the face image is acquired, and the user does not need to manually adjust the brightness of the screen of the terminal device, so that the flexibility of the mode for adjusting the screen brightness is better.
In an embodiment of the present invention, the second brightness value is greater than a current brightness value of the screen.
In the embodiment of the present invention, when the terminal device detects that the face image of the user is located in the second preset area (that is, the first area is located in the second preset area), the terminal device may increase the current brightness value of the screen to the second brightness value.
It can be understood that, under the condition that the first area is in the second preset area, the distance between the face of the user and the lens of the terminal device (the lens of the camera) is relatively long, the range in which the lens of the terminal device collects the background image of the user is relatively large (for example, some relatively bright background images such as sky, light, sunlight, and the like), and the terminal device may increase the current brightness value of the screen of the terminal device, so that the brightness of the screen of the terminal device can meet the requirements of the user.
In the embodiment of the invention, when the first area is in the second preset area, the terminal device can increase the current brightness value of the screen of the terminal device, so that the brightness of the screen of the terminal device can meet the requirement of a user, and the user does not need to manually adjust the brightness of the screen of the terminal device, therefore, the flexibility of the mode for adjusting the brightness of the screen is better.
In an embodiment of the present invention, the third brightness value is smaller than a current brightness value of the screen.
In the embodiment of the invention, the distance between the first preset area and the lens of the terminal equipment is smaller than the distance between the second preset area and the lens; the distance between the first preset area and the lens is larger than the distance between the third preset area and the lens.
In the embodiment of the present invention, when the terminal device detects that the face image of the user is located in the third preset area (that is, the first area is located in the third preset area), the terminal device may adjust the current brightness value of the screen down to the third brightness value.
It can be understood that, under the condition that the first area is in the third preset area, the distance between the face of the user and the lens of the terminal device is short, the range in which the lens of the terminal device collects the background image of the user is small, that is, the collected brighter background image is less, and the terminal device may turn down the current brightness value of the screen of the terminal device, so that the brightness of the screen of the terminal device can meet the requirements of the user.
In the embodiment of the invention, when the first area is in the third preset area, the terminal device can reduce the current brightness value of the screen of the terminal device, so that the brightness of the screen of the terminal device can meet the requirement of a user, and the user does not need to manually adjust the brightness of the screen of the terminal device, therefore, the flexibility of the mode for adjusting the brightness of the screen is better.
The embodiment of the invention provides a screen brightness adjusting method, and terminal equipment can determine a first area of a face image of a user in a screen of the terminal equipment and adjust the current brightness value of the screen according to the first area. The inclination condition of the face of the user and the screen of the terminal device can be represented in the first area where the face image of the user is located in the screen of the terminal device, so that after the current brightness value of the screen is adjusted according to the inclination condition of the face of the user and the screen of the terminal device, the brightness of the screen of the terminal device can meet the requirement of the user, and the user does not need to manually adjust the brightness of the screen of the terminal device, so that the flexibility of the mode for adjusting the brightness of the screen is good.
Optionally, in the embodiment of the present invention, as shown in fig. 5 with reference to fig. 2, after the step 202, the method for adjusting screen brightness according to the embodiment of the present invention may further include the following step 301 and step 302.
In an embodiment of the present invention, a difference between the brightness value of the second region and the brightness value of another region is greater than or equal to a preset threshold, where the another region is a region of the screen other than the second region.
Optionally, in this embodiment of the present invention, if the first area is within the second preset area, the terminal device may determine the second area in the screen.
Optionally, in this embodiment of the present invention, when a light source in an environment where the terminal device is located is projected to a second area in a screen of the terminal device, a difference between a luminance value of the second area and a luminance value of another area is greater than or equal to a preset threshold.
In the embodiment of the present invention, the terminal device may detect the brightness value of the screen of the terminal device in real time, and when a difference between the brightness value of a certain area and the brightness value of other areas in the screen of the terminal device is greater than or equal to a preset threshold, the terminal device may determine the area as the second area.
Optionally, in the embodiment of the present invention, the step 301 may be specifically implemented by the following steps 301a to 301 c.
Step 301a, the terminal device acquires the position information of the first image in the screen.
In the embodiment of the present invention, the first image is an image of a light source in an environment where the terminal device is located in a screen.
In the embodiment of the invention, the terminal device can acquire the first image through a camera (such as a front camera) of the terminal device and acquire the position information of the first image in the current screen of the terminal device.
In the embodiment of the invention, the terminal device can determine the distance between the first image and the lens of the terminal device according to the position information of the first image in the screen.
Step 301b, the terminal device obtains the first parameter.
In an embodiment of the present invention, the first parameter includes a first included angle value, a second included angle value, a first distance, and a second distance, where the first included angle value is an included angle value between a first straight line and a screen of the terminal device, the second included angle value is an included angle value between a second straight line and the screen of the terminal device, the first distance is a distance between a face of a user and a lens of the terminal device, the second distance is a distance between a light source and the lens of the terminal device, the first straight line is a straight line where the face of the user and the lens of the terminal device are located, and the second straight line is a straight line where the face of the user and the lens of the terminal device are located.
Optionally, in this embodiment of the present invention, the terminal device may detect the first included angle value, the second included angle value, the first distance, and the second distance through a camera of the terminal device.
Optionally, in the embodiment of the present invention, the terminal device may calculate, according to the first included angle value and the first distance, a vertical distance between the face of the user and the screen; the terminal device may calculate a vertical distance between the light source and the screen according to the second included angle value and the second distance.
Optionally, in the embodiment of the present invention, the terminal device may also detect a vertical distance between a face of the user and the screen and a vertical distance between the light source and the screen through a camera of the terminal device.
And step 301c, the terminal device determines a second area according to the position information and the first parameter.
Optionally, in the embodiment of the present invention, the terminal device may determine the second area according to the position information and the first parameter by using a preset algorithm.
Optionally, in the embodiment of the present invention, the preset algorithm may be:wherein, x is a vertical distance between a reflection point of light of the light source on the screen (i.e. one edge point in the second region, the one edge point being a closest edge point among all edge points in the second region) and the lens of the terminal device, α is an angle between the first line and the screen of the terminal device, D is a distance between the face of the user and the lens, l is a distance between the first image and the lens of the terminal device, H is D arcsin α, H is D arcsin θ, D is a distance between the light source and the lens, and θ is an angle between the second line and the screen of the terminal device.
It can be understood that, in the embodiment of the present invention, after the terminal device calculates the vertical distance between the reflection point and the lens of the terminal device by using the preset algorithm, the second area may be determined according to the vertical distance.
Optionally, in this embodiment of the present invention, the terminal device may calculate a difference between a size of the screen of the terminal device in the third direction and x, to determine the difference as a size of the second area in the third direction, and determine a size of the screen of the terminal device in the fourth direction as a size of the second area in the fourth direction, where the third direction is perpendicular to the fourth direction.
Alternatively, in this embodiment of the present invention, the terminal device may calculate a difference between the first size (i.e., a vertical distance between the face image of the user and the lens of the terminal device) and x to determine the difference as the size of the second area in the third direction, and determine the size of the screen of the terminal device in the fourth direction as the size of the second area in the fourth direction.
Exemplarily, as shown in fig. 6, an included angle between a first straight line (i.e., a straight line where a face a of a user and a lens B of the mobile phone 10 are located) and the screen of the mobile phone 10 is α, an included angle between a second straight line (i.e., a straight line where a light source C and a lens B are located) and the screen of the mobile phone 10 is θ, a distance between the face a of the user and the lens B is D, a distance between the light source C and the lens B is D, an image of the light source C in the screen is an image E, a distance between the image E and the lens B is l, a vertical distance between the face a of the user and the screen of the mobile phone 10 is H, and a vertical distance between the light source C and the screen of the mobile phone 10 is H; the mobile phone 10 can use the above-mentioned preset algorithm to calculate x (the vertical distance between an edge point in the second area and the lens B) according to these values to determine the reflection point F on the light screen of the light source, so as to determine the second area (illustrated in fig. 6 by a cross-sectional view of the mobile phone 10 (the size of the second area in the third direction is m)).
Optionally, in this embodiment of the present invention, the second area includes a part of objects displayed on a screen of the terminal device.
Further exemplarily, as shown in fig. 7, a screen of the mobile phone 10 displays an interface 11 (e.g., a main interface of the mobile phone 10), where the interface 11 includes at least one icon of an application, and a second area in the screen is an area 15 (illustrated as a filled area in fig. 7), and the area includes an icon of a phone application, an icon of a contact list application, and an icon of a short message application.
In an embodiment of the present invention, the first action may include any one of: displaying prompt information, adjusting the current brightness value of the second area, and displaying the object in the second area in a first mode, wherein the prompt information is used for prompting a user to adjust the current brightness value of the screen.
Optionally, in this embodiment of the present invention, after determining the second area in the screen of the terminal device, the terminal device may display a prompt message in a superimposed manner on the screen to prompt the user to manually adjust the current brightness value of the screen, or prompt the user whether to allow the terminal device to adjust the current brightness value of the screen. It is understood that after the user makes a first input to the prompt information, the first input being used to trigger the terminal device to adjust the current brightness value of the screen, the terminal device may adjust the current brightness value of the screen in response to the first input by the user.
Optionally, in this embodiment of the present invention, after determining the second region in the screen of the terminal device, the terminal device may adjust a current luminance value of the second region to a fourth luminance value, where the fourth luminance value is greater than the current luminance value of the second region.
Optionally, in this embodiment of the present invention, after determining the second area in the screen of the terminal device, the terminal device may determine objects (for example, images, icons, characters, and/or controls of applications, and the like) in the second area, and display the objects in a preset first manner.
Optionally, in this embodiment of the present invention, the first mode may be an enlarged display mode, a list-form superimposed display mode on the screen, a highlight display mode, or a dynamic display mode.
Illustratively, in conjunction with fig. 7, as shown in fig. 8, the mobile phone 10 may display a prompt message 16 superimposed on the screen, the prompt message being used to prompt the user whether to allow the mobile phone 10 to adjust the current brightness value of the screen.
In the embodiment of the invention, under the condition that the light source in the environment where the terminal device is located influences the brightness of the screen of the terminal device, the terminal device can determine the second area with larger brightness value difference in the screen of the terminal device, and execute the first action aiming at the second area, so as to improve the display effect of the object in the second area, thereby meeting the requirements of the user.
Fig. 9 shows a schematic diagram of a possible structure of a terminal device involved in the embodiment of the present invention. As shown in fig. 9, the terminal device 90 may include: a determination unit 91 and an adjustment unit 92.
The determining unit 91 is used for determining a first area where the face image of the user is located in the screen of the terminal device. An adjusting unit 92, configured to adjust a current brightness value of the screen according to the first region determined by the determining unit 91.
In a possible implementation manner, the adjusting unit 92 is specifically configured to determine a first brightness value according to a brightness value of the acquired environment image if the first region determined by the determining unit 91 is within a first preset region, and adjust a current brightness value of a screen to the first brightness value, where the environment image is an environment image acquired when a face image is acquired; if the first region determined by the determining unit 91 is within the second preset region, adjusting the current brightness value of the screen to be a second brightness value, where the second brightness value is greater than the current brightness value of the screen; if the first region determined by the determining unit 91 is within the third preset region, the current brightness value of the screen is adjusted to a third brightness value, which is smaller than the current brightness value of the screen. The distance between the first preset area and the lens of the terminal equipment is smaller than the distance between the second preset area and the lens; the distance between the first preset area and the lens is larger than the distance between the third preset area and the lens.
In a possible implementation manner, the determining unit 91 is specifically configured to determine, according to the first parameter, a first region where the face image of the user is located in the screen of the terminal device. Wherein the first parameter may comprise at least one of: the target included angle value is an included angle value between a plane where the face of the user is located and a plane where the screen of the terminal device is located, and the target direction is an opening direction of an included angle between the plane where the face of the user is located and the plane where the screen of the terminal device is located.
In a possible implementation manner, the determining unit 91 is further configured to determine a second area in the screen, where a difference between a luminance value of the second area and a luminance value of another area is greater than or equal to a preset threshold, where the other area is an area other than the second area in the screen. With reference to fig. 9, as shown in fig. 10, the terminal device provided in the embodiment of the present invention may further include: a processing unit 93. Wherein, the processing unit 93 is configured to execute a first action for the second area determined by the determining unit 91; wherein the first action may include any one of: displaying prompt information, adjusting the current brightness value of the second area, and displaying the object in the second area in a first mode, wherein the prompt information is used for prompting a user to adjust the current brightness value of the screen.
In a possible implementation manner, the determining unit 91 is specifically configured to acquire position information of a first image in a screen, where the first image is an image of a light source in an environment where the terminal device is located; and acquiring a first parameter; and determining a second area according to the position information and the first parameter. The first parameter may include a first included angle value, a second included angle value, a first distance and a second distance, the first included angle value is an included angle value between a first straight line and a screen, the second included angle value is an included angle value between a second straight line and the screen, the first distance is a distance between a face of a user and a lens of the terminal device, the second distance is a distance between a light source and the lens, the first straight line is a straight line where the face of the user and the lens are located, and the second straight line is a straight line where the face of the user and the lens are located.
The terminal device provided by the embodiment of the present invention can implement each process implemented by the terminal device in the above method embodiments, and for avoiding repetition, detailed description is not repeated here.
The embodiment of the invention provides a terminal device, which can determine a first area of a face image of a user in a screen of the terminal device and adjust the current brightness value of the screen according to the first area. The inclination condition of the face of the user and the screen of the terminal device can be represented in the first area where the face image of the user is located in the screen of the terminal device, so that after the current brightness value of the screen is adjusted according to the inclination condition of the face of the user and the screen of the terminal device, the brightness of the screen of the terminal device can meet the requirement of the user, and the user does not need to manually adjust the brightness of the screen of the terminal device, so that the flexibility of the mode for adjusting the brightness of the screen is good.
Fig. 11 is a hardware schematic diagram of a terminal device for implementing various embodiments of the present invention. As shown in fig. 11, the terminal device 100 includes, but is not limited to: radio frequency unit 101, network module 102, audio output unit 103, input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111.
It should be noted that, as those skilled in the art will appreciate, the terminal device structure shown in fig. 11 does not constitute a limitation to the terminal device, and the terminal device may include more or less components than those shown in fig. 11, or may combine some components, or may arrange different components. In the embodiment of the present invention, the terminal device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
The processor 110 is configured to determine a first area where a face image of a user is located in a screen of the terminal device; and adjusting the current brightness value of the screen according to the first area.
The embodiment of the invention provides a terminal device, which can determine a first area of a face image of a user in a screen of the terminal device and adjust the current brightness value of the screen according to the first area. The inclination condition of the face of the user and the screen of the terminal device can be represented in the first area where the face image of the user is located in the screen of the terminal device, so that after the current brightness value of the screen is adjusted according to the inclination condition of the face of the user and the screen of the terminal device, the brightness of the screen of the terminal device can meet the requirement of the user, and the user does not need to manually adjust the brightness of the screen of the terminal device, so that the flexibility of the mode for adjusting the brightness of the screen is good.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 101 may be used for receiving and sending signals during a message transmission or call process, and specifically, after receiving downlink data from a base station, the downlink data is processed by the processor 110; in addition, the uplink data is transmitted to the base station. Typically, radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 can also communicate with a network and other devices through a wireless communication system.
The terminal device provides wireless broadband internet access to the user through the network module 102, such as helping the user send and receive e-mails, browse webpages, access streaming media, and the like.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the network module 102 or stored in the memory 109 into an audio signal and output as sound. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the terminal device 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 includes a speaker, a buzzer, a receiver, and the like.
The input unit 104 is used to receive an audio or video signal. The input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, and the Graphics processor 1041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the network module 102. The microphone 1042 may receive sound and may be capable of processing such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode.
The terminal device 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 1061 and/or the backlight when the terminal device 100 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), detect the magnitude and direction of gravity when stationary, and can be used to identify the terminal device posture (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration identification related functions (such as pedometer, tapping), and the like; the sensors 105 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 106 is used to display information input by a user or information provided to the user. The Display unit 106 may include a Display panel 1061, and the Display panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the terminal device. Specifically, the user input unit 107 includes a touch panel 1071 and other input devices 1072. Touch panel 1071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 1071 (e.g., operations by a user on or near touch panel 1071 using a finger, stylus, or any suitable object or attachment). The touch panel 1071 may include two parts of 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 the touch information into touch point coordinates, sends the touch point coordinates to the processor 110, and receives and executes commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. Specifically, other input devices 1072 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 detail herein.
Further, the touch panel 1071 may be overlaid on the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although in fig. 11, the touch panel 1071 and the display panel 1061 are two independent components to implement the input and output functions of the terminal device, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the terminal device, and is not limited herein.
The interface unit 108 is an interface for connecting an external device to the terminal apparatus 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the terminal apparatus 100 or may be used to transmit data between the terminal apparatus 100 and the external device.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required 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 109 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.
The processor 110 is a control center of the terminal device, connects various parts of the entire terminal device by using various interfaces and lines, and performs various functions of the terminal device and processes data by running or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the terminal device. Processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The terminal device 100 may further include a power supply 111 (such as a battery) for supplying power to each component, and preferably, the power supply 111 may be logically connected to the processor 110 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system.
In addition, the terminal device 100 includes some functional modules that are not shown, and are not described in detail here.
Preferably, an embodiment of the present invention further provides a terminal device, which includes the processor 110 shown in fig. 11, the memory 109, and a computer program stored in the memory 109 and capable of running on the processor 110, and when the computer program is executed by the processor 110, the computer program implements each process of the foregoing method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not described here again.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements the processes of the method embodiments, and can achieve the same technical effects, and in order to avoid repetition, the details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
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.
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 invention 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 invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.
Claims (9)
1. A method for adjusting screen brightness, the method comprising:
determining a first area where a face image of a user is located in a screen of a terminal device;
adjusting the current brightness value of the screen according to the first area;
determining a second area in the screen, wherein a difference value between a brightness value of the second area and brightness values of other areas is greater than or equal to a preset threshold value, and the other areas are areas except the second area in the screen;
performing a first action with respect to the second region; wherein the first action comprises any one of: displaying prompt information, adjusting the current brightness value of the second area, and displaying an object in the second area in a first mode, wherein the prompt information is used for prompting a user to adjust the current brightness value of the screen;
wherein the first mode comprises any one of: zooming in, displaying in a list, displaying superimposed on the screen, highlighting, or dynamically displaying.
2. The method of claim 1, wherein said adjusting a current brightness value of said screen according to said first region comprises:
if the first area is in a first preset area, determining a first brightness value according to a brightness value of an acquired environment image, and adjusting a current brightness value of the screen to the first brightness value, wherein the environment image is an environment image acquired when the face image is acquired;
if the first area is in a second preset area, adjusting the current brightness value of the screen to be a second brightness value, wherein the second brightness value is larger than the current brightness value of the screen;
if the first area is in a third preset area, adjusting the current brightness value of the screen to a third brightness value, wherein the third brightness value is smaller than the current brightness value of the screen;
the distance between the first preset area and a lens of the terminal device is smaller than the distance between the second preset area and the lens; the distance between the first preset area and the lens is larger than the distance between the third preset area and the lens.
3. The method according to claim 1 or 2, wherein the determining a first area in which the face image of the user is located in the screen of the terminal device comprises:
determining a first area where a face image of a user is located in a screen of the terminal equipment according to the first parameter;
wherein the first parameter comprises at least one of: the target included angle value is an included angle value between a plane where the face of the user is located and a plane where the screen is located, and the target direction is an opening direction of an included angle between the plane where the face of the user is located and the plane where the screen is located.
4. The method of claim 1, wherein the determining the second region in the screen comprises:
acquiring position information of a first image in the screen, wherein the first image is an image of a light source in the environment where the terminal equipment is located in the screen;
acquiring a first parameter; the first parameter comprises a first included angle value, a second included angle value, a first distance and a second distance, the first included angle value is an included angle value between a first straight line and the screen, the second included angle value is an included angle value between a second straight line and the screen, the first distance is a distance between a face of a user and a lens of the terminal equipment, the second distance is a distance between the light source and the lens, the first straight line is a straight line where the face of the user and the lens are located, and the second straight line is a straight line where the light source and the lens are located;
and determining the second area according to the position information and the first parameter.
5. A terminal device, characterized in that the terminal device comprises: the device comprises a determining unit, an adjusting unit and a processing unit;
the determining unit is used for determining a first area where the face image of the user is located in the screen of the terminal equipment;
the adjusting unit is used for adjusting the current brightness value of the screen according to the first area determined by the determining unit;
the determining unit is further configured to determine a second region in the screen, where a difference between a brightness value of the second region and a brightness value of another region is greater than or equal to a preset threshold, where the other region is a region other than the second region in the screen;
the processing unit is used for executing a first action aiming at the second area determined by the determining unit; wherein the first action comprises any one of: displaying prompt information, adjusting the current brightness value of the second area, and displaying an object in the second area in a first mode, wherein the prompt information is used for prompting a user to adjust the current brightness value of the screen;
wherein the first mode comprises any one of: zooming in, displaying in a list, displaying superimposed on the screen, highlighting, or dynamically displaying.
6. The terminal device according to claim 5, wherein the adjusting unit is specifically configured to determine a first brightness value according to a brightness value of an acquired environment image if the first area determined by the determining unit is within a first preset area, and adjust a current brightness value of the screen to the first brightness value, where the environment image is an environment image acquired when the face image is acquired; if the first area determined by the determining unit is in a second preset area, adjusting the current brightness value of the screen to a second brightness value, wherein the second brightness value is greater than the current brightness value of the screen; if the first area determined by the determining unit is in a third preset area, adjusting the current brightness value of the screen to a third brightness value, where the third brightness value is smaller than the current brightness value of the screen;
the distance between the first preset area and a lens of the terminal device is smaller than the distance between the second preset area and the lens; the distance between the first preset area and the lens is larger than the distance between the third preset area and the lens.
7. The terminal device according to claim 5 or 6, wherein the determining unit is specifically configured to determine, according to the first parameter, a first region where the face image of the user is located on a screen of the terminal device;
wherein the first parameter comprises at least one of: the target included angle value is an included angle value between a plane where the face of the user is located and a plane where the screen is located, and the target direction is an opening direction of an included angle between the plane where the face of the user is located and the plane where the screen is located.
8. The terminal device according to claim 5, wherein the determining unit is specifically configured to obtain position information of a first image in the screen, where the first image is an image of a light source in an environment where the terminal device is located in the screen; and acquiring a first parameter; and determining the second area according to the position information and the first parameter; the first parameter comprises a first included angle value, a second included angle value, a first distance and a second distance, the first included angle value is a first straight line and an included angle value between screens, the second included angle value is a second straight line and an included angle value between screens, the first distance is a distance between a face of a user and a lens of the terminal device, the second distance is a distance between the light source and the lens, the first straight line is a face of the user and a straight line where the lens is located, and the second straight line is a straight line where the light source and the lens are located.
9. A terminal device comprising a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the screen brightness adjustment method according to any one of claims 1 to 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811624068.1A CN109859718B (en) | 2018-12-28 | 2018-12-28 | Screen brightness adjusting method and terminal equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811624068.1A CN109859718B (en) | 2018-12-28 | 2018-12-28 | Screen brightness adjusting method and terminal equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109859718A CN109859718A (en) | 2019-06-07 |
CN109859718B true CN109859718B (en) | 2021-03-23 |
Family
ID=66892964
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811624068.1A Active CN109859718B (en) | 2018-12-28 | 2018-12-28 | Screen brightness adjusting method and terminal equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109859718B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI711030B (en) | 2019-10-15 | 2020-11-21 | 宏碁股份有限公司 | Display device and operation method thereof |
CN112764231B (en) * | 2021-01-18 | 2022-06-28 | 梁付奎 | CT medical image is with reading piece ware based on AI technique |
CN116501281A (en) * | 2023-06-27 | 2023-07-28 | 京东方艺云(杭州)科技有限公司 | Anti-dazzle method and device, electronic equipment and storage medium |
Family Cites Families (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100809347B1 (en) * | 2006-07-31 | 2008-03-05 | 삼성전자주식회사 | Method and apparatus for compensating shadow area |
KR101602363B1 (en) * | 2008-09-11 | 2016-03-10 | 엘지전자 주식회사 | 3 Controling Method of 3 Dimension User Interface Switchover and Mobile Terminal using the same |
CN103295370B (en) * | 2012-09-13 | 2015-07-22 | 上海凯融信息科技有限公司 | Method and system for preventing myopia by monitoring distance between eyes and screen |
CN104331168B (en) * | 2014-11-28 | 2018-01-16 | 广东欧珀移动通信有限公司 | Display adjusting method and electronic equipment |
CN106157926A (en) * | 2015-03-23 | 2016-11-23 | 中兴通讯股份有限公司 | A kind of method and device regulating brightness of display screen |
CN106022209B (en) * | 2016-04-29 | 2019-09-17 | 杭州华橙网络科技有限公司 | A kind of method and device of range estimation and processing based on Face datection |
CN106101461A (en) * | 2016-08-26 | 2016-11-09 | 乐视控股(北京)有限公司 | The control method of a kind of application software and device |
CN108875473A (en) * | 2017-06-29 | 2018-11-23 | 北京旷视科技有限公司 | Living body verification method, device and system and storage medium |
-
2018
- 2018-12-28 CN CN201811624068.1A patent/CN109859718B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN109859718A (en) | 2019-06-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109743498B (en) | Shooting parameter adjusting method and terminal equipment | |
CN109828732B (en) | Display control method and terminal equipment | |
CN111142991A (en) | Application function page display method and electronic equipment | |
CN108345425B (en) | Application management method and mobile terminal | |
CN109710349B (en) | Screen capturing method and mobile terminal | |
CN109257505B (en) | Screen control method and mobile terminal | |
CN111083386B (en) | Image processing method and electronic device | |
CN111385415B (en) | Shooting method and electronic equipment | |
CN109257504B (en) | Audio processing method and terminal equipment | |
CN109859718B (en) | Screen brightness adjusting method and terminal equipment | |
CN111031178A (en) | Video stream clipping method and electronic equipment | |
CN110753155A (en) | Proximity detection method and terminal equipment | |
CN110602390B (en) | Image processing method and electronic equipment | |
CN111158485B (en) | Screen control method and electronic equipment | |
CN110058686B (en) | Control method and terminal equipment | |
CN109104573B (en) | Method for determining focusing point and terminal equipment | |
CN111343710A (en) | Power adjustment method and electronic equipment | |
CN108449490B (en) | Terminal control method and terminal | |
CN109756630A (en) | A kind of screen control method and terminal device | |
CN111432122B (en) | Image processing method and electronic equipment | |
CN110740265B (en) | Image processing method and terminal equipment | |
CN111246105B (en) | Photographing method, electronic device, and computer-readable storage medium | |
CN110769162B (en) | Electronic equipment and focusing method | |
CN111026263B (en) | Audio playing method and electronic equipment | |
CN110913133B (en) | Shooting method and electronic 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 |