WO2021017843A1 - 一种屏幕亮度调节方法及装置 - Google Patents

一种屏幕亮度调节方法及装置 Download PDF

Info

Publication number
WO2021017843A1
WO2021017843A1 PCT/CN2020/102285 CN2020102285W WO2021017843A1 WO 2021017843 A1 WO2021017843 A1 WO 2021017843A1 CN 2020102285 W CN2020102285 W CN 2020102285W WO 2021017843 A1 WO2021017843 A1 WO 2021017843A1
Authority
WO
WIPO (PCT)
Prior art keywords
screen
brightness
user
mobile terminal
image
Prior art date
Application number
PCT/CN2020/102285
Other languages
English (en)
French (fr)
Inventor
赵阳
王小梅
易辉
郑毅挺
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2021017843A1 publication Critical patent/WO2021017843A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/011Arrangements for interaction with the human body, e.g. for user immersion in virtual reality
    • 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

Definitions

  • This application relates to the field of terminals, in particular to a method and device for adjusting screen brightness.
  • users can adjust the brightness of the screen of the mobile terminal by touching the mobile terminal.
  • the user can light up the screen of the mobile terminal by fingerprint unlocking; another example, the user can turn on or off the screen of the mobile terminal by pressing the power button of the mobile terminal; another example, when the brightness of the screen of the mobile terminal is relatively dark , The user can tap the screen of the mobile terminal to make the brightness of the mobile terminal brighter, and so on.
  • users may want to adjust the brightness of the screen of the mobile terminal but it is not convenient to touch the mobile terminal.
  • the user has oil stains on his hands while cooking in the kitchen.
  • the user wants to light up the screen of the mobile terminal but it is not convenient to touch the mobile terminal.
  • the user unlocks the mobile terminal, but the user is affected by other things after unlocking the mobile terminal. Delayed, and actually did not use the mobile terminal.
  • the user wants to turn off the screen of the mobile terminal but has no time to touch the mobile terminal. This causes the screen of the mobile terminal to be always on, which consumes power and increases the risk of users’ privacy being peeped. ;and many more.
  • the traditional solution for adjusting the brightness of the screen of the mobile terminal cannot adjust the brightness of the screen of the mobile terminal according to the user's intention, and the user experience is not good. .
  • the embodiments of the present application provide a screen brightness adjustment method and device, which can adjust the brightness of the screen of the mobile terminal according to the user's intention without the user touching the mobile terminal, and improve the user experience.
  • the embodiments of the present application provide a screen brightness adjustment method, which can reflect whether the user is using the mobile terminal considering whether the user is looking at the screen of the mobile terminal, and further can reflect the user's intention to adjust the brightness of the mobile terminal screen . Therefore, in the embodiment of the present application, the brightness of the screen of the mobile terminal can be adjusted according to whether the user is watching the screen of the mobile terminal. Specifically, a first image including the face of the user may be acquired, and then it is determined whether the user is looking at the screen of the mobile terminal according to the first image, and the determination result is obtained.
  • the determination result can reflect whether the user is using the mobile terminal, and can further reflect the user's intention to adjust the brightness of the screen of the mobile terminal, in the embodiment of the present application, the brightness of the screen of the mobile terminal can be adjusted according to the determination result. .
  • the user's intention to adjust the brightness of the mobile terminal's screen can be determined through the determination result of whether the user is watching the screen of the mobile terminal, thereby adjusting the brightness of the mobile terminal's screen, avoiding the traditional In the technology, the user wants to adjust the brightness of the screen of the mobile terminal, but it is inconvenient to touch the mobile terminal, resulting in the problem that the brightness of the screen of the mobile terminal cannot be adjusted according to the user's intention, which improves the user experience.
  • the screen of the mobile terminal has a brightness of 0 and the user is looking at the screen of the mobile terminal, it can indicate to a certain extent that the user wants to use the mobile terminal , Which means that the user wants to light up the screen of the mobile terminal. Therefore, in the embodiment of the present application, if the aforementioned determination result indicates that the user is looking at the screen of the mobile terminal, and the brightness of the screen of the mobile terminal is 0, the brightness of the screen of the mobile terminal is adjusted to the first brightness.
  • the user generally does not always use the mobile terminal to perform other operations, in other words, the time for the user to perform other operations using the mobile terminal is within a certain time range.
  • the mobile terminal may receive a screen lock instruction triggered by the user and start timing; when the timing time reaches the first preset time, the step "acquiring the user's first image" and subsequent steps are executed.
  • the general user's face will appear in the shooting field of view of the camera on the mobile terminal. If the image taken by the mobile terminal does not include the user's face, it can indicate to a certain extent that the user has finished performing other operations using the mobile terminal. On the other hand, when the user uses the mobile terminal to perform other operations, the user's face may occasionally not appear in the shooting field of view of the camera on the mobile terminal. If none of the multiple images continuously captured by the mobile terminal contains the user's face, it can basically be determined that the user has finished performing other operations using the mobile terminal.
  • the mobile terminal after the mobile terminal receives the screen lock instruction triggered by the user, it can control the camera of the mobile terminal to continuously shoot multiple second images based on the lock screen instruction, and the mobile terminal obtains the aforementioned continuous shooting multiple images. After the second image, it can be further determined whether the consecutive multiple second images include the user's face. If none of the multiple second images includes the user's face, it can be considered that the aforementioned user uses the mobile terminal to perform other operations It's over. After it is determined that none of the multiple second images includes the user's face, the aforementioned steps of "acquiring the user's first image" and subsequent steps can be performed.
  • the mobile terminal receiving the screen lock instruction triggered by the user may be the mobile terminal receiving the screen lock instruction triggered by the user by pressing the power button or double-clicking the screen of the mobile terminal.
  • the brightness of the screen of the mobile terminal is the second brightness, and the determination result obtained by the execution is that the user is watching the screen of the mobile terminal, the brightness of the screen of the mobile terminal is adjusted to the first brightness to facilitate The user uses the mobile terminal to prevent the mobile terminal from entering the off-screen state after a certain period of time.
  • the brightness of the screen of the mobile terminal is the first brightness, and the user does not look at the screen of the mobile terminal, it can indicate to a certain extent that the user has unlocked Mobile terminal, but no time to use the mobile terminal. Therefore, in the embodiment of the present application, if the aforementioned determination result indicates that the user is not looking at the screen of the mobile terminal, and the brightness of the screen of the mobile terminal is the first brightness, then the brightness of the screen of the mobile terminal is adjusted to the second brightness.
  • the ambient light brightness of the environment in which the mobile terminal is located is relatively dark
  • the first image acquired by the mobile terminal may not be clear, which causes the mobile terminal according to The determination result of "whether the user is watching the screen of the mobile terminal" determined by the aforementioned first image is not accurate.
  • the screen brightness may be adjusted incorrectly.
  • the ambient light brightness of the mobile terminal can also be obtained. If the ambient light brightness is greater than or equal to the threshold, it means that the ambient light brightness is The first image acquired by the mobile terminal is relatively clear, and the determination result of "whether the user is looking at the screen of the mobile terminal" determined according to the first image is relatively accurate.
  • the brightness of the screen of the mobile terminal is adjusted to the second brightness. brightness. If the ambient light brightness is less than the threshold, the brightness of the screen of the mobile terminal can be adjusted in a traditional way
  • the mobile terminal can be used for calling and sending/receiving short messages, but also has many other functions.
  • the mobile terminal can be used for payment and transportation.
  • functions such as mobile terminal payment and rides can be realized by triggering the scan code event. It is understandable that in practical applications, when a code scanning event is triggered, the brightness of the screen of the mobile terminal cannot be relatively low, otherwise the code scanner cannot correctly recognize the two-dimensional code image displayed on the screen of the mobile terminal. When the scan code event is triggered, the user cannot look at the screen of the mobile terminal.
  • the mobile terminal adjusts the brightness of the screen of the mobile terminal from the first brightness to the second brightness according to the aforementioned determination result, which may cause the code scanner to fail to scan the code.
  • the mobile terminal determines that the scan code event is not triggered, if the foregoing determination result is that the user is not looking at the screen of the mobile terminal, and the brightness of the mobile terminal is the first At the first brightness, the brightness of the screen of the mobile terminal is adjusted to the second brightness. If the mobile terminal determines that the code scanning event is triggered, even if the foregoing determination result is that the user is not looking at the screen of the mobile terminal, the brightness of the screen of the mobile terminal is controlled to maintain the first brightness.
  • the mobile terminal considering that in practical applications, if the mobile terminal is charging, the user may not look at the screen of the mobile terminal for a long time. Therefore, in the embodiment of the present application, if the mobile terminal is charging When charging, the step of adjusting the screen brightness of the mobile terminal from the first brightness to the second brightness is performed according to "the user is not looking at the screen of the mobile terminal and the brightness of the mobile terminal is the first brightness". Considering that in practical applications, the user may have the need for the mobile terminal not to sleep when charging. In this embodiment of the application, if the user triggers the option "The screen will not sleep when charging", the screen brightness of the mobile terminal can be controlled. It is always the first brightness during charging.
  • the screen brightness of the mobile terminal is controlled to be the first brightness. If the mobile terminal does not receive the user-triggered request for the screen not to sleep during charging, the first image is acquired and the subsequent steps are executed.
  • the non-sleep time period set by the user is called the "second preset time” segment". It is understandable that in the second preset time period, the user wants the brightness of the screen of the mobile terminal to be maintained at the first brightness. Therefore, in the embodiment of the present application, the movement is no longer dynamically adjusted during the second preset time period. The brightness of the terminal's screen. After the second preset time period has elapsed, the step of "acquiring the user's first image" and subsequent steps are performed.
  • the gaze point of the user may reflect the position the user is gazing at.
  • the gaze point of the user if the gaze point of the user is on the screen of the mobile terminal, it can mean that the user is looking at the screen of the mobile terminal; if the gaze point of the user is not on the screen of the mobile terminal, it means that the user is not looking at the screen of the mobile terminal.
  • it can be determined whether the gaze point of the user is on the screen of the mobile terminal according to the first image, so as to determine result.
  • the user's gaze point cannot be determined according to the first image.
  • the user wears sunglasses; another example, the user's eyes in the first image are too small; another example, the user's hair is too long, covering the eyes, and so on.
  • the orientation of the user’s face can reflect the position of the user’s gaze to a certain extent
  • the screen of the mobile terminal obtain the determination result
  • the brightness of the screen of the mobile terminal is adjusted.
  • the identity of the user in the first image can also be verified. If the verification result indicates that the user in the first image is a legal user of the mobile terminal, then determine whether The first image determines whether the user is looking at the screen of the mobile terminal. If the verification result indicates that the user in the first image is not a legitimate user of the mobile terminal, the step of "determining whether the user is watching the screen of the mobile terminal according to the first image" is no longer performed.
  • an embodiment of the present application provides a mobile terminal, the mobile terminal includes: an acquiring unit configured to acquire a first image of a user, where the first image is an image including the face of the user; and a determining unit , For determining whether the user is watching the screen of the mobile terminal according to the first image of the user, to obtain a determination result; an adjustment unit, for adjusting the brightness of the screen according to the determination result.
  • the adjustment unit is specifically configured to: if the determination result is that the user is watching the screen of the mobile terminal, and the brightness of the screen is 0, then set The brightness of the screen is adjusted to a first brightness, and the first brightness is greater than zero.
  • the mobile terminal further includes: a timing unit, configured to receive a screen lock instruction triggered by the user, and start timing; the acquiring unit is specifically configured to After the time period is over, the step of acquiring the first image of the user is executed.
  • the adjustment unit is specifically configured to: receive a screen lock instruction triggered by the user, and continuously acquire multiple second images according to the preset screen lock instruction; If none of the multiple second images includes the face of the user, the step of acquiring the first image of the user is performed.
  • the receiving the screen lock instruction triggered by the user includes: receiving the screen lock instruction triggered by the user by pressing a power key or double-tapping the screen.
  • the adjustment unit is specifically configured to: if the determination result is that the user is watching the screen of the mobile terminal, and the brightness of the screen is the second brightness, The brightness of the screen is adjusted to a first brightness, the first brightness is greater than the second brightness, and the second brightness is greater than zero.
  • the adjustment unit is specifically configured to: if the determination result is that the user is not looking at the screen of the mobile terminal, and the brightness of the screen is the first brightness, The brightness of the screen is adjusted to a second brightness, and the first brightness is greater than the second brightness.
  • the brightness of the screen is Adjusting to the second brightness includes: acquiring the ambient light brightness of the mobile terminal; if the ambient light brightness is greater than or equal to a threshold, and the determination result is that the user is not looking at the screen of the mobile terminal, and the screen If the brightness of is the first brightness, the brightness of the screen is adjusted to the second brightness.
  • the adjustment unit is specifically configured to: if the determination result is that the user is not looking at the screen of the mobile terminal, and the brightness of the screen is the first brightness, And if the scan code event is not triggered, the brightness of the screen is adjusted to the second brightness.
  • the acquiring unit is specifically configured to: if the request for the screen not to sleep when charging triggered by the user is not received, acquire the first image of the user, and the charging The non-sleeping screen request is used to instruct the mobile terminal to keep the brightness of the screen at the first brightness when charging.
  • the acquiring unit is specifically configured to acquire the first image of the user if the second preset time period set by the user is exceeded when the screen is not sleeping.
  • the determining unit is specifically configured to determine whether the gaze point of the user is on the screen of the mobile terminal according to the first image of the user.
  • the determining unit is specifically configured to: if it is determined that there are no eyes of the user in the first image, according to the image of the face of the user in the first image The orientation determines whether the user is looking at the screen of the mobile terminal.
  • the determining unit is specifically configured to: if the facial information in the first image matches the facial information pre-stored by the mobile terminal, perform The first image of the user determines whether the user is looking at the screen of the mobile terminal.
  • an embodiment of the present application provides a screen brightness adjustment device, the device includes: a processor and a memory; the memory is configured to store instructions; the processor is configured to execute all the items in the memory The instruction executes the method described in any one of the first aspect above.
  • embodiments of the present application provide a computer-readable storage medium, including instructions, which when run on a computer, cause the computer to execute the method described in any one of the first aspects above.
  • the embodiments of the present application provide a computer program product containing instructions, which when run on a computer, cause the computer to execute the method described in any one of the first aspects above.
  • FIG. 1 is a schematic flowchart of a method for adjusting screen brightness according to an embodiment of the application
  • FIG. 2 is a schematic structural diagram of a mobile terminal provided by an embodiment of this application.
  • FIG. 3 is a schematic structural diagram of a screen brightness adjustment device provided by an embodiment of the application.
  • the embodiments of the present application provide a method and device for adjusting the screen brightness, which are used to solve the problem that the traditional solution for adjusting the brightness of the screen of a mobile terminal cannot adjust the brightness of the screen of the mobile terminal according to the user's intention, resulting in poor user experience. Good question.
  • the screen brightness of the mobile terminal is the first brightness.
  • the state where the brightness of the screen of the mobile terminal is the first brightness is referred to as the "bright screen" state.
  • the brightness of the mobile terminal is reduced from the first brightness to the second brightness, and the second brightness The brightness is a brightness value that is less than the first brightness and greater than zero.
  • the state where the brightness of the screen of the mobile terminal is the second brightness is referred to as the "dark screen" state.
  • the preset time may be determined according to the screen sleep time, and the preset time may be a value less than the screen sleep time. For example, if the screen sleep time is 30 seconds, the preset time may be 24 seconds.
  • the screen sleep time it should be noted that when the screen of the mobile terminal is in the on-screen state, if the user has not touched the screen of the mobile terminal during the screen sleep period, the brightness of the screen of the mobile terminal will be reduced to zero.
  • the state where the brightness of the screen of the mobile terminal is 0 is referred to as the "screen off” state.
  • the aforementioned screen sleep time may be user-defined or system default, which is not specifically limited in the embodiment of the present application. It is understandable that if the user does not actively trigger the behavior of turning off the screen of the mobile terminal, the mobile terminal will change from the "screen on” state to the "screen off” state, and it will experience an intermediate transition state of the "dark screen” state.
  • the embodiments of the present application provide a method and device for adjusting screen brightness, which can solve the above-mentioned problems in the traditional technology.
  • the following describes the screen brightness adjustment method and device provided by the embodiments of the present application with reference to the accompanying drawings.
  • FIG. 1 is a schematic flowchart of a method for adjusting screen brightness according to an embodiment of the application.
  • the screen brightness adjustment method provided in the embodiment of the application may be executed by a mobile terminal.
  • the embodiment of the application does not specifically limit the mobile terminal.
  • the mobile terminal may be, for example, a smart phone, a tablet computer, a POS machine, and so on.
  • the screen brightness adjustment method provided in the embodiment of the present application can be implemented through the following steps 101-103.
  • Step 101 Acquire a first image of the user, where the first image is an image including the user's face.
  • the brightness of the screen of the mobile terminal can be adjusted according to whether the user is watching the screen of the mobile terminal.
  • the first image may be acquired first, and the first image is an image including the user's face.
  • the first image may be an image taken by a front camera on the mobile terminal.
  • the first image may be acquired at a preset frequency.
  • the embodiment of the present application does not specifically limit the preset frequency for acquiring the first image, and the preset frequency may be determined according to actual conditions.
  • the first image can be acquired 10 times every 1 second.
  • Step 102 Determine whether the user is watching the screen of the mobile terminal according to the first image of the user, and obtain a determination result.
  • the specific implementation manner of determining whether the user is looking at the screen of the mobile terminal according to the first image is not specifically limited.
  • image recognition may be performed on the first image to determine whether the user is looking at the mobile terminal. Screen.
  • the user's gaze point can reflect the position the user is gazing at.
  • the gaze point of the user if the gaze point of the user is on the screen of the mobile terminal, it can mean that the user is looking at the screen of the mobile terminal; if the gaze point of the user is not on the screen of the mobile terminal, it means that the user is not looking at the screen of the mobile terminal.
  • whether the user's gaze point is on the screen of the mobile terminal can be determined according to the first image, so as to obtain the determination result.
  • the gaze point of the user in the first image may be determined first, and then combined with the position of the mobile terminal, it is determined whether the gaze point of the user is on the screen of the mobile terminal.
  • the embodiment of the present application does not specifically limit the specific implementation manner of determining the gaze point of the user according to the first image. As an example, considering that the user's pupil position, gaze direction, etc. may all reflect the user's gaze point. Therefore, image recognition can be performed on the first image, the pupil position and gaze direction of the user in the first image can be determined, and the gaze point of the user can be further determined according to the pupil position and gaze direction of the user.
  • the user's eyes may not be included in the first image, so the user's gaze point cannot be determined from the first image.
  • the user wears sunglasses; another example, the user's eyes in the first image are too small; another example, the user's hair is too long, covering the eyes, and so on.
  • the orientation of the user’s face can reflect the position of the user’s gaze to a certain extent
  • step 102 when step 102 is specifically implemented, it can be based on the first image
  • the orientation of the user’s face determines whether the user is looking at the screen of the mobile terminal, and the determination result is obtained.
  • image recognition can be performed on the first image to determine the user’s facial contour and the relative position of the organs in the first image, thereby determining the orientation of the user’s face in the first image, and then according to the mobile terminal
  • the position of and the orientation of the user’s face in the first image determine whether the user’s face in the first image faces the mobile terminal, thereby determining whether the user is looking at the screen of the mobile terminal, and obtaining the determination result.
  • the brightness of the screen of the mobile terminal is adjusted.
  • the identity of the user in the first image can also be verified. If the verification result indicates that the user in the first image is a legal user of the mobile terminal, then determine whether The first image determines whether the user is looking at the screen of the mobile terminal. If the verification result indicates that the user in the first image is not a legitimate user of the mobile terminal, the step of "determining whether the user is watching the screen of the mobile terminal according to the first image" is no longer performed.
  • the mobile terminal if the mobile terminal activates the face unlock function, the mobile terminal pre-stores the face information of the legal user of the mobile terminal . Therefore, in the embodiment of the present application, the face information in the first image can be compared with the face information pre-stored in the mobile terminal to verify the identity of the user in the first image. Specifically, if the face information in the first image matches the face information pre-stored in the mobile terminal, it may indicate that the user in the first image is a legitimate user of the mobile terminal. Of course, considering that in actual applications, the mobile terminal may not activate the face unlock function.
  • the mobile terminal may prompt the user to enter facial information when the user activates the "intelligent adjustment of screen brightness" function corresponding to the screen brightness adjustment method provided in this embodiment of the application, so that the user The entered face information is saved to facilitate subsequent verification of the user's identity in the first image.
  • Step 103 Adjust the brightness of the screen of the mobile terminal according to the determination result.
  • the determination result can determine the user's intention to adjust the brightness of the screen of the mobile terminal. Therefore, after the determination result is obtained, the brightness of the screen of the mobile terminal can be adjusted according to the determination result. Specifically, the screen brightness of the mobile terminal can be adjusted according to the determination result and the current screen brightness of the mobile terminal.
  • the screen brightness adjustment method provided by the embodiments of the present application can determine the user's intention to adjust the screen brightness of the mobile terminal through the determination result of whether the user is looking at the screen of the mobile terminal, thereby adjusting the brightness of the screen of the mobile terminal. This avoids the problem in the traditional technology that users want to adjust the brightness of the screen of the mobile terminal but are inconvenient to touch the mobile terminal, which leads to the inability to adjust the brightness of the screen of the mobile terminal according to the user's intention, and improves the user experience.
  • step 103 when step 103 is specifically implemented, it may include the following three scenarios, namely "smart screen bright when the screen is off”, “intelligent bright screen when the screen is dark”, and “smart screen dark when the screen is bright”.
  • the so-called “smart bright screen when the screen is off” refers to when the brightness of the mobile terminal is 0, the brightness of the mobile terminal's screen is adjusted to the first brightness according to the aforementioned determination result; the so-called “smart bright screen when the screen is dark” refers to when the mobile terminal is moving When the brightness of the terminal is the second brightness, the brightness of the screen of the mobile terminal is adjusted to the first brightness according to the foregoing determination result; the so-called “smart dark screen when the screen is bright” means that when the brightness of the mobile terminal is the first brightness, according to the foregoing As a result of the determination, the brightness of the screen of the mobile terminal is adjusted to the second brightness.
  • the first brightness, the second brightness, the bright screen, the dark screen, and the off screen please refer to the description of the relevant part in the foregoing, which will not be detailed here.
  • step 103 The following describes the specific implementation of step 103 in combination with the above three scenarios.
  • the first scenario smartly bright the screen when the screen is off
  • the screen of the mobile terminal has a brightness of 0 and the user is looking at the screen of the mobile terminal, it can indicate to a certain extent that the user wants to use the mobile terminal, which means that the user wants to light the mobile terminal. Screen. Therefore, in the embodiment of the present application, if the aforementioned determination result indicates that the user is looking at the screen of the mobile terminal, and the brightness of the screen of the mobile terminal is 0, the brightness of the screen of the mobile terminal is adjusted to the first brightness.
  • multiple first images may be acquired continuously, and the determination results corresponding to the multiple first images are all "user gazes and moves Under the premise of the screen of the terminal", then adjust the brightness of the screen of the mobile terminal from 0 to the first brightness.
  • the user looks at the screen of the mobile terminal, the user wants to use the mobile terminal to perform other operations, but does not want to light up the screen of the mobile terminal.
  • the user wants to use the screen of the mobile terminal as a mirror; another example is that the user is introducing the appearance of the mobile terminal to other users, and so on.
  • users generally have the behavior of actively turning off the screen of the mobile terminal.
  • the user before using the screen of the mobile terminal as a mirror, the user generally controls the mobile terminal to lock the screen by pressing the power button of the mobile terminal or double-clicking the screen of the mobile terminal, that is, turning off the screen of the mobile terminal.
  • the aforementioned step 101 to step 103 may be performed after the "user performs other operations using the mobile terminal".
  • the time for the user to perform other operations using the mobile terminal is within a certain time range.
  • the mobile terminal may receive a screen lock instruction triggered by the user and start timing; when the timing time reaches the first preset time, step 101 "acquire the user's first image" and subsequent steps 102 and 103 are executed.
  • the embodiment of the present application does not specifically limit the specific value of the first preset time period.
  • the first preset time period may be a predetermined value. As an example, the first preset time period may be 5 seconds.
  • the general user's face will appear in the shooting field of view of the camera on the mobile terminal. If the image taken by the mobile terminal does not include the user's face, it can indicate to a certain extent that the user has finished performing other operations using the mobile terminal.
  • the user’s face may occasionally not appear in the shooting field of view of the camera on the mobile terminal. For example, when the user introduces the appearance of the mobile terminal to other users, the user 'S face has left the shooting field of view of the camera on the mobile terminal. If none of the multiple images continuously captured by the mobile terminal contains the user's face, it can basically be determined that the user has finished performing other operations using the mobile terminal.
  • the mobile terminal after the mobile terminal receives the screen lock instruction triggered by the user, it can control the camera of the mobile terminal to continuously shoot multiple second images based on the lock screen instruction, and the mobile terminal obtains the aforementioned continuous shooting multiple images. After the second image. It can be further determined whether the user's face is included in the consecutive plurality of second images, and if the user's face is not included in the plurality of second images, it can be considered that the foregoing other operations performed by the user using the mobile terminal have ended. After it is determined that none of the multiple second images includes the user's face, the aforementioned step 101 "acquire the user's first image" and subsequent steps 102 and 103 can be performed.
  • the embodiment of the present application does not specifically limit the specific number of the aforementioned second images.
  • the multiple second images may be taken within a second preset time period after the mobile terminal receives a screen lock instruction triggered by a user.
  • the multiple second images may be images taken within 2 seconds after the mobile terminal receives the screen lock instruction triggered by the user.
  • the mobile terminal receiving the screen lock instruction triggered by the user may be the mobile terminal receiving the screen lock instruction triggered by the user by pressing the power button or double-clicking the screen of the mobile terminal.
  • the determination result obtained by performing the foregoing step 102 may not be accurate.
  • the final brightness adjustment of the mobile terminal does not match the real intention of the user.
  • the eyes of the user in the first image are small, the eyes of the user in the first image are slanted, and the user's eyes are blocked by the user's hair in the first image, and so on.
  • the foregoing determination result is not accurate to a certain extent. Therefore, in this case, in this embodiment of the application, the foregoing steps 102-103 may not be executed, that is, no dynamic adjustment may be performed.
  • the brightness of the screen of the mobile terminal is adjusted to 0 after adjusting the screen brightness of the mobile terminal to the first brightness.
  • the user when the mobile terminal is in the off-screen state, the user can adjust the brightness of the screen of the mobile terminal to the first brightness by looking at the screen of the mobile terminal without the user touching The mobile terminal can adjust the brightness of the screen of the mobile terminal.
  • the second scenario Smart bright screen when dark screen
  • the mobile terminal is in the dark screen state, which means that the brightness of the screen of the mobile terminal is the second brightness.
  • the mobile terminal when the mobile terminal is in the dark screen state, if the user does not touch the screen of the mobile terminal, the mobile terminal will enter the screen off state after a certain period of time.
  • the user looks at the screen of the mobile terminal, it means that the user may wish to use the mobile terminal.
  • the brightness of the screen of the mobile terminal is the second brightness
  • the determination result obtained by performing the foregoing step 102 is that the user is looking at the screen of the mobile terminal
  • the brightness of the screen of the mobile terminal is adjusted to the first brightness , So that users can use the mobile terminal and avoid the mobile terminal from entering the off-screen state after a certain period of time.
  • multiple first images may be acquired continuously, and the determination results corresponding to the multiple first images are all "user gazes and moves On the premise of the screen of the terminal", the brightness of the screen of the mobile terminal is adjusted from the second brightness to the first brightness.
  • the first image can be acquired at a preset frequency.
  • the frequency of acquiring the first image can be increased.
  • the first image is acquired, for example, the first image is acquired every 2 seconds, and when the mobile terminal is in a dark screen state, the first image is acquired according to the second frequency, for example, the first image is acquired every 500 milliseconds.
  • the determination result obtained by performing the foregoing step 102 may not be accurate.
  • the final brightness adjustment of the mobile terminal does not match the real intention of the user.
  • the eyes of the user in the first image are small, the eyes of the user in the first image are slanted, and the user's eyes are blocked by the user's hair in the first image, and so on.
  • the result of the determination is "the user is looking at the screen of the mobile terminal" and the screen brightness of the mobile terminal is the second brightness, after adjusting the screen brightness of the mobile terminal to the first brightness, the user presses the power button.
  • the foregoing steps 102-103 may not be executed, that is Dynamically adjust the brightness of the screen of the mobile terminal. Until the acquired first image no longer exists when the eyes of the user in the first image are small, the eyes of the user in the first image are slanted, and the hair of the user in the first image covers the user's eyes, etc. , And then perform the aforementioned steps 102-103, that is, restart the function of dynamically adjusting the brightness of the screen of the mobile terminal.
  • the user when the mobile terminal is in the dark screen state, the user can adjust the brightness of the screen of the mobile terminal to the first brightness by looking at the screen of the mobile terminal without the user touching The mobile terminal can adjust the brightness of the screen of the mobile terminal.
  • the third scene Smart dark screen when the screen is bright
  • the brightness of the screen of the mobile terminal is the first brightness, and the user does not look at the screen of the mobile terminal, it can indicate to a certain extent that although the user has unlocked the mobile terminal, he has no time to use the mobile terminal. terminal. Therefore, in the embodiment of the present application, if the aforementioned determination result indicates that the user is not looking at the screen of the mobile terminal, and the brightness of the screen of the mobile terminal is the first brightness, then the brightness of the screen of the mobile terminal is adjusted to the second brightness.
  • the user may look at other places while using the mobile terminal.
  • the brightness of the mobile terminal is adjusted to the second brightness when the user is looking at other places, it may bring a bad user experience to the user.
  • multiple first images may be acquired continuously, and if the determination results corresponding to the multiple first images are all "on the premise that the user is not looking at the screen of the mobile terminal", the The brightness of the screen of the mobile terminal is adjusted from the first brightness to the second brightness.
  • the first image acquired by the mobile terminal may not be clear, which causes the mobile terminal to determine whether the user is The determination result of "looking at the screen of the mobile terminal" is not accurate. That is, it is possible that the user is actually looking at the screen of the mobile terminal, but the determination result determined based on the first image is that the user is not looking at the screen of the mobile terminal.
  • the screen brightness may be adjusted incorrectly, that is, the user is actually looking at the screen of the mobile terminal, but the mobile terminal adjusts the brightness of the screen of the mobile terminal from the first brightness to the second brightness.
  • the ambient light brightness of the mobile terminal can also be acquired. If the ambient light brightness is greater than or equal to the threshold, it means that the mobile terminal acquires The first image of is relatively clear, and the determination result of "whether the user is looking at the screen of the mobile terminal" determined according to the first image is relatively accurate. Therefore, if the ambient light brightness is greater than or equal to the threshold, and the determination result obtained in step 102 is that the user is not looking at the screen of the mobile terminal and the brightness of the screen of the mobile terminal is the first brightness, the brightness of the screen of the mobile terminal is adjusted to The second brightness. If the ambient light brightness is less than the threshold value, the foregoing step 103 may not be executed, and the brightness of the screen of the mobile terminal can be adjusted in a traditional manner.
  • mobile terminals can be used for payment and transportation.
  • functions such as mobile terminal payment and rides can be realized by triggering the scan code event. It is understandable that in practical applications, when a code scanning event is triggered, the brightness of the screen of the mobile terminal cannot be relatively low, otherwise the code scanner cannot correctly recognize the two-dimensional code image displayed on the screen of the mobile terminal. When the scan code event is triggered, the user cannot look at the screen of the mobile terminal.
  • the mobile terminal adjusts the brightness of the screen of the mobile terminal from the first brightness to the second brightness according to the aforementioned determination result, which may cause the code scanner to fail to scan the code.
  • the mobile terminal determines that the scan code event is not triggered, if the foregoing determination result is that the user is not looking at the screen of the mobile terminal, and the brightness of the mobile terminal is the first At the first brightness, the brightness of the screen of the mobile terminal is adjusted to the second brightness. If the mobile terminal determines that the code scanning event is triggered, even if the foregoing determination result is that the user is not looking at the screen of the mobile terminal, the brightness of the screen of the mobile terminal is controlled to maintain the first brightness.
  • the mobile terminal can determine whether the code scanning event is triggered according to the operating data of the application related to the code scanning event; as another For example, the mobile terminal can monitor the content displayed on the screen of the mobile terminal to determine whether the scan code event is triggered; for example, if a QR code is displayed on the screen of the mobile terminal, it is determined that the scan code event has been triggered.
  • the mobile terminal if the mobile terminal is charging, the user may not look at the screen of the mobile terminal for a long time. Therefore, in the embodiment of the present application, if the mobile terminal is charging, the The screen of the mobile terminal and the brightness of the mobile terminal are the first brightness" to perform the step of adjusting the screen brightness of the mobile terminal from the first brightness to the second brightness.
  • the user may have a requirement that the mobile terminal does not sleep during charging. For example, the user wants the mobile terminal to keep the screen on, so that the user can view time information at any time.
  • the developer options of mobile terminals also provide users with the option of "screen will not sleep while charging".
  • the screen brightness of the mobile terminal can be controlled to always be the first brightness during charging.
  • the screen brightness of the mobile terminal is controlled to be the first brightness. If the mobile terminal does not receive the user-triggered request for the screen not to sleep during charging, the first image is acquired, and the subsequent steps 102-103 are executed.
  • the user can also set the screen non-sleep time period.
  • the non-sleep time period set by the user is called the "second preset time period".
  • the user can set the screen non-sleep time period for 10 minutes. Sleeping means starting from the time when the user touched the mobile terminal last time. If the user does not touch the screen of the mobile terminal within 10 minutes, the mobile terminal can enter the sleep state. It is understandable that in the second preset time period, the user wants the brightness of the screen of the mobile terminal to be maintained at the first brightness. Therefore, in the embodiment of the present application, the movement is no longer dynamically adjusted during the second preset time period.
  • step 101 "acquire the user's first image" and subsequent steps 102 and 103 are performed.
  • the determination result obtained by performing the foregoing step 102 may not be accurate.
  • the final brightness adjustment of the mobile terminal does not match the real intention of the user.
  • the eyes of the user in the first image are small, the eyes of the user in the first image are slanted, and the user's eyes are blocked by the user's hair in the first image, and so on.
  • the determination result is "the user is not looking at the screen of the mobile terminal" and the screen brightness of the mobile terminal is the first brightness
  • the user touches the mobile terminal The screen adjusts the brightness of the screen of the mobile terminal to the first brightness, which to a certain extent indicates that the foregoing determination result is inaccurate. Therefore, in this case, in this embodiment of the present application, the foregoing steps 102-103 may not be performed. That is, the brightness of the screen of the mobile terminal is no longer dynamically adjusted.
  • the brightness of the screen of the mobile terminal can be adjusted from the first brightness to the second brightness , The brightness of the screen of the mobile terminal can be adjusted without the user touching the mobile terminal.
  • an embodiment of the present application also provides a mobile terminal, which is described below with reference to the accompanying drawings.
  • FIG. 2 is a schematic structural diagram of a mobile terminal according to an embodiment of the application.
  • the mobile terminal 200 shown in FIG. 2 specifically includes an acquiring unit 201, a determining unit 202, and an adjusting unit 203.
  • the acquiring unit 201 is configured to acquire a first image of a user, where the first image is an image including the face of the user;
  • the determining unit 202 is configured to determine whether the user is watching the screen of the mobile terminal according to the first image of the user, and obtain a determination result;
  • the adjusting unit 203 is configured to adjust the brightness of the screen according to the determination result.
  • the adjustment unit 203 is specifically configured to:
  • the determination result is that the user is watching the screen of the mobile terminal, and the brightness of the screen is 0, then the brightness of the screen is adjusted to the first brightness, and the first brightness is greater than 0.
  • the mobile terminal 200 further includes:
  • the timing unit is used to receive the screen lock instruction triggered by the user and start timing
  • the acquiring unit 201 is specifically configured to execute the step of acquiring the first image of the user after the first preset time period ends.
  • the adjustment unit 203 is specifically configured to:
  • the step of acquiring the first image of the user is performed.
  • the receiving the screen lock instruction triggered by the user includes:
  • a screen lock instruction triggered by the user by pressing the power button or double-clicking the screen is received.
  • the adjustment unit 203 is specifically configured to:
  • the brightness of the screen is adjusted to the first brightness, and the first brightness is greater than the first brightness. Two brightnesses and the second brightness is greater than zero.
  • the adjustment unit 203 is specifically configured to:
  • the brightness of the screen is adjusted to the second brightness, and the first brightness is greater than the The second brightness.
  • Two brightness includes:
  • the brightness of the screen is adjusted to the first brightness Two brightness.
  • the adjustment unit 203 is specifically configured to:
  • the determination result is that the user is not looking at the screen of the mobile terminal, and the brightness of the screen is the first brightness, and the code scanning event is not triggered, then the brightness of the screen is adjusted to the second brightness.
  • the acquiring unit 201 is specifically configured to:
  • the request for the screen not to sleep during charging triggered by the user is not received, the first image of the user is acquired.
  • the request for the screen not to sleep during charging is used to instruct the mobile terminal to keep the screen brightness at the time of charging. First brightness.
  • the acquiring unit 201 is specifically configured to:
  • the second preset time period set by the user for the screen not to sleep is exceeded, the first image of the user is acquired.
  • the determining unit 202 is specifically configured to:
  • the determining unit 202 is specifically configured to:
  • the determining unit 202 is specifically configured to:
  • the face information in the first image matches the face information pre-stored by the mobile terminal, it is determined whether the user is looking at the screen of the mobile terminal according to the first image of the user.
  • the mobile terminal 200 is a mobile terminal corresponding to the method provided in the above method embodiment, the specific implementation of each unit of the mobile terminal 200 is based on the same idea as the above method embodiment. Therefore, regarding the mobile terminal 200 For the specific implementation of each unit of, please refer to the description part of the above method embodiment, which will not be repeated here.
  • An embodiment of the present application also provides a screen brightness adjustment device, the device including: a processor and a memory;
  • the memory is used to store instructions
  • the processor is configured to execute the instructions in the memory, and execute any one of the screen brightness adjustment methods provided in the above method embodiments.
  • the screen brightness adjustment device provided in the embodiment of the present application may be a device corresponding to the aforementioned mobile terminal 200.
  • the hardware structure of the screen brightness adjustment device may be the structure shown in FIG. 3, and FIG. 3 is a schematic structural diagram of a screen brightness adjustment device provided in an embodiment of the application.
  • the screen brightness adjusting device 300 includes a processor 310, a communication interface 320, and a memory 330.
  • the number of processors 310 in the screen brightness adjustment device 300 may be one or more, and one processor is taken as an example in FIG. 3.
  • the processor 310, the communication interface 320, and the memory 330 may be connected through a bus system or other methods. In FIG. 3, the connection through the bus system 340 is taken as an example.
  • the processor 310 may be a central processing unit (CPU), a network processor (NP), or a combination of a CPU and an NP.
  • the processor 310 may further include a hardware chip.
  • the aforementioned hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD) or a combination thereof.
  • ASIC application-specific integrated circuit
  • PLD programmable logic device
  • the above-mentioned PLD may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL) or any combination thereof.
  • the memory 330 may include a volatile memory (English: volatile memory), such as random-access memory (RAM); the memory 330 may also include a non-volatile memory (English: non-volatile memory), such as fast Flash memory (English: flash memory), hard disk drive (HDD) or solid-state drive (SSD); the memory 330 may also include a combination of the foregoing types of memory.
  • volatile memory such as random-access memory (RAM)
  • non-volatile memory such as fast Flash memory (English: flash memory), hard disk drive (HDD) or solid-state drive (SSD)
  • HDD hard disk drive
  • SSD solid-state drive
  • the memory 330 may store data such as an image of a legal user of the mobile terminal mentioned in the foregoing embodiment.
  • the memory 330 stores an operating system and a program, an executable module or a data structure, or a subset of them, or an extended set of them, where the program may include various operation instructions for implementing various operations.
  • the operating system may include various system programs for implementing various basic services and processing hardware-based tasks.
  • the processor 310 can read the program in the memory 330 to implement the screen brightness adjustment method provided in the embodiment of the present application.
  • the bus system 340 may be a peripheral component interconnect standard (PCI) bus or an extended industry standard architecture (EISA) bus, etc.
  • PCI peripheral component interconnect standard
  • EISA extended industry standard architecture
  • the bus system 340 can be divided into an address bus, a data bus, a control bus, and so on. For ease of representation, only one thick line is used in FIG. 3 to represent, but it does not mean that there is only one bus or one type of bus.
  • the embodiments of the present application also provide a computer-readable storage medium, including instructions, which when run on a computer, cause the computer to execute any one of the screen brightness adjustment methods provided in the above method embodiments.
  • the embodiments of the present application also provide a computer program product containing instructions, which when run on a computer, cause the computer to execute any one of the screen brightness adjustment methods provided in the above method embodiments.
  • the disclosed system, device, and method may be implemented in other ways.
  • the device embodiments described above are only illustrative.
  • the division of the units is only a logical business division, and there may be other divisions in actual implementation, for example, multiple units or components can be combined or It can be integrated into another system, or some features can be ignored or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
  • business units in the various embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
  • the above-mentioned integrated unit can be implemented in the form of hardware or software business unit.
  • the integrated unit is implemented in the form of a software business unit and sold or used as an independent product, it can be stored in a computer readable storage medium.
  • the technical solution of this application essentially or the part that contributes to the existing technology or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , Including several instructions to make a computer device (which can be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the method described in each embodiment of the present application.
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disks or optical disks and other media that can store program codes. .
  • the services described in the present invention can be implemented by hardware, software, firmware, or any combination thereof.
  • these services can be stored in a computer-readable medium or transmitted as one or more instructions or codes on the computer-readable medium.
  • the computer-readable medium includes a computer storage medium and a communication medium, where the communication medium includes any medium that facilitates the transfer of a computer program from one place to another.
  • the storage medium may be any available medium that can be accessed by a general-purpose or special-purpose computer.

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)
  • Telephone Function (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

一种屏幕亮度调节方法,包括:获取包括用户的面部的第一图像(101);根据第一图像确定用户是否注视移动终端的屏幕,得到确定结果(102);确定结果可以体现用户是否在使用移动终端,即可以体现用户调节移动终端的屏幕的亮度的意图,故而根据确定结果对屏幕的亮度进行调节(103)。利用本申请实施例提供的方案,可以通过用户是否注视移动终端的屏幕的确定结果,确定用户调节移动终端的屏幕的亮度的意图,从而调节移动终端的屏幕的亮度,避免了传统技术中存在的用户希望调节移动终端的屏幕的亮度却不方便接触移动终端、而导致无法根据用户意图调节移动终端的屏幕的亮度的问题,提升了用户体验。

Description

一种屏幕亮度调节方法及装置
本申请要求于2019年7月30日提交中国国家知识产权局、申请号为201910695681.0、发明名称为“一种屏幕亮度调节方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及终端领域,尤其是涉及一种屏幕亮度调节方法及装置。
背景技术
随着科学技术的发展,智能手机、平板电脑等移动终端已经成为人们生活中的一个重要部分。目前,用户可以通过触摸移动终端来调节移动终端的屏幕的亮度。例如,用户可以通过指纹解锁的方式点亮移动终端的屏幕;又如,用户可以通过按移动终端的电源键点亮或者熄灭移动终端的屏幕;再如,当移动终端的屏幕的亮度比较暗时,用户可以点击移动终端的屏幕,从而使得移动终端的亮度更亮,等等。
可以理解的是,在实际应用中,用户可能想要调节移动终端的屏幕的亮度却不方便触摸移动终端。例如,用户在厨房做饭时手上沾有油污,此时用户想要点亮移动终端的屏幕却不方便触摸移动终端;又如,用户解锁了移动终端,但是用户解锁移动终端之后被其它事情耽搁了,实际上并没有使用移动终端,用户想要熄灭移动终端的屏幕但是又无暇触摸移动终端,从而导致移动终端的屏幕一直处于点亮状态,耗电而且也会增加用户隐私被窥视的风险;等等。
对于用户想要调节移动终端的屏幕的亮度却不方便触摸移动终端的场景,传统的调节移动终端的屏幕的亮度的方案,不能按照用户意图对移动终端的屏幕的亮度进行调节,用户体验不好。
发明内容
本申请实施例提供了一种屏幕亮度调节方法及装置,能够在无需用户接触移动终端的情况下,按照用户意图调节移动终端的屏幕的亮度,提升用户体验。
第一方面,本申请实施例提供了一种屏幕亮度调节方法,考虑到用户是否注视移动终端的屏幕,可以体现用户是否在使用移动终端,进一步地可以体现用户调节移动终端的屏幕的亮度的意图。因此,在本申请实施例中,可以根据用户是否注视移动终端的屏幕,来对移动终端的屏幕的亮度进行调节。具体地,可以获取包括用户的面部的第一图像,而后根据该第一图像确定用户是否注视移动终端的屏幕,得到确定结果。由于该确定结果可以体现用户是否在使用移动终端,进一步地可以体现用户调节移动终端的屏幕的亮度的意图,故而在本申请实施例中,可以根据该确定结果对移动终端的屏幕的亮度进行调节。由此可见,利用本申请实施例提供的方案,可以通过用户是否注视移动终端的屏幕的确定结果,确定用户调节移动终端的屏幕的亮度的意图,从而调节移动终端的屏幕的亮度,避免了传统技术中存在的用户希望调节移动终端的屏幕的亮度却不方便接触移动终端、而导致无法根据用户意图调节移动终端的屏幕的亮度的问题,提升了用户体验。
在本申请实施例的一种实现方式中,考虑到在实际应用中,若移动终端的屏幕得亮度为0,且用户注视着移动终端的屏幕,则在一定程度上可以表示用户希望使用移动终端,即表示用户希望点亮移动终端的屏幕。故而在本申请实施例中,若前述确定结果表示用户注视移动终端的屏幕,且移动终端的屏幕的亮度为0,则将该移动终端的屏幕的亮度调节为第一亮度。
在本申请实施例的一种实现方式中,考虑到用户一般不会一直利用移动终端执行其它操作,换言之,用户利用移动终端执行其它操作的时间在一定的时间范围内。鉴于此,在本申请实施例中,可以等待第一预设时间段,第一预设时间段之后,可以认为前述“用户利用移动终端执行其它操作”已经结束。具体地,移动终端可以接收用户触发的锁屏指令,并开始计时;当计时时间达到第一预设时间之后,再执行步骤“获取用户的第一图像”以及后续步骤。
在本申请实施例的一种实现方式中,考虑到在实际应用中,一方面,用户在利用移动终端执行其它操作时,一般用户的脸会出现在移动终端上的摄像头的拍摄视野内。若移动终端拍摄的图像中不包括用户的脸,则在一定程度上可以表示用户利用移动终端执行其它操作已经结束。另一方面,用户在利用移动终端执行其它操作时,用户的脸也可能偶尔不出现在移动终端上的摄像头的拍摄视野内。若移动终端连续拍摄的多个图像中均不包含用户的脸,则基本可以确定用户利用移动终端执行其它操作已经结束。鉴于此,在本申请实施例中,移动终端接收到用户触发的锁屏指令之后,可以基于该锁屏指令控制移动终端的摄像头连续拍摄多个第二图像,移动终端获取到前述连续拍摄的多个第二图像之后,可以进一步判断该连续多个第二图像中是否包括用户的脸,若多个第二图像中均不包括所述用户的脸,则可以认为前述用户利用移动终端执行其它操作已经结束。在确定多个第二图像中均不包括所述用户的脸之后,即可执行前述步骤“获取用户的第一图像”以及后续步骤。
在本申请实施例的一种实现方式中,考虑到用户可以通过按电源键或者双击移动终端的屏幕来控制移动终端锁屏。故而在本申请实施例的一种实现方式中,移动终端接收用户触发的锁屏指令,可以为移动终端接收用户通过按电源键或者双击移动终端的屏幕而触发的锁屏指令。
在本申请实施例的一种实现方式中,考虑到在实际应用中,用户注视移动终端的屏幕,则表示用户可能希望使用移动终端。故而在本申请实施例中,若移动终端的屏幕的亮度为第二亮度,且执行得到的确定结果为用户注视移动终端的屏幕,则将移动终端的屏幕的亮度调节为第一亮度,以便于用户使用移动终端,避免移动终端在一定时间之后进入灭屏状态。
在本申请实施例的一种实现方式中,考虑到在实际应用中,若移动终端的屏幕的亮度为第一亮度,且用户未注视移动终端的屏幕,则在一定程度上可以表示用户虽然解锁了移动终端,但却无暇使用移动终端。故而在本申请实施例中,若前述确定结果表示用户未注视移动终端的屏幕,且移动终端的屏幕的亮度为第一亮度,则将该移动终端的屏幕的亮度调节为第二亮度。
在本申请实施例的一种实现方式中,考虑到在实际应用中,若移动终端所处环境的环 境光亮度比较暗,则移动终端获取的第一图像可能不清晰,这就导致移动终端根据前述第一图像确定的“用户是否注视移动终端的屏幕”的确定结果不准确。对于这种情况,可能会出现屏幕亮度误调节的现象,为了避免这种情况发生,还可以获取移动终端的环境光亮度,若该环境光亮度大于或者等于阈值,则表示在该环境光亮度下移动终端获取的第一图像比较清晰,根据第一图像确定的“用户是否注视移动终端的屏幕”的确定结果比较准确。故而若该环境光亮度大于或者等于阈值,且前述得到的确定结果为用户未注视移动终端的屏幕、以及移动终端的屏幕的亮度为第一亮度时,将移动终端的屏幕的亮度调节为第二亮度。若该环境光亮度小于阈值,则可以按照传统方式对移动终端的屏幕的亮度进行调节
在本申请实施例的一种实现方式中,考虑到移动终端除了可以用于通话、发送/接收短信之外,还具备很多其它功能,例如,移动终端可以用于支付以及乘车等功能。在实际应用中,可以通过触发扫码事件来实现移动终端的支付以及乘车等功能。可以理解的是,在实际应用中,触发扫码事件时,移动终端的屏幕的亮度不能比较低,否则扫码器不能正确识别移动终端的屏幕上显示的二维码图像。而触发扫码事件时,用户是无法注视移动终端的屏幕的。若触发扫码事件之后,移动终端根据前述确定结果而将移动终端的屏幕的亮度由第一亮度调节为第二亮度,则可能导致扫码器扫码失败。为了避免这种情况,在本申请实施例的一种实现方式中,在移动终端确定扫码事件未被触发时,若前述确定结果为用户未注视移动终端的屏幕,且移动终端的亮度为第一亮度时,才将移动终端的屏幕的亮度调节为第二亮度。若移动终端确定扫码事件被触发,则即使前述确定结果为用户未注视移动终端的屏幕,也控制移动终端的屏幕的亮度维持第一亮度。
在本申请实施例的一种实现方式中,考虑到在实际应用中,若移动终端正在充电,则用户可能长时间不会注视移动终端的屏幕,故而在本申请实施例中,若移动终端正在充电,则会根据“用户未注视移动终端的屏幕以及移动终端的亮度为第一亮度”执行将移动终端的屏幕亮度由第一亮度调节为第二亮度的步骤。而考虑到在实际应用中,用户可能具备充电时移动终端不休眠的需求,在本申请实施例中,若用户触发了“充电时屏幕不会休眠”的选项,则可以控制移动终端的屏幕亮度在充电期间一直为第一亮度。换言之,在本申请实施例中,若移动终端接收到用户触发的充电时屏幕不休眠请求,则控制移动终端的屏幕亮度为第一亮度。若移动终端未接收到用户触发的充电时屏幕不休眠请求,则获取第一图像,并执行后续步骤。
在本申请实施例的一种实现方式中,考虑到在实际应用中,用户还可以设置屏幕不休眠时间段,为方便描述,将该用户设置的不休眠时间段称为“第二预设时间段”。可以理解的是,在第二预设时间段内,用户希望移动终端的屏幕的亮度保持在第一亮度,故而在本申请实施例中,在第二预设时间段内,不再动态调整移动终端的屏幕的亮度。当超出该第二预设时间段之后,再执行步骤“获取用户的第一图像”以及后续步骤。
在本申请实施例的一种实现方式中,考虑到在实际应用中,用户的注视点可以体现用户所注视的位置。换言之,若用户的注视点在移动终端的屏幕上,则可以表示用户在注视移动终端的屏幕;若用户的注视点不在移动终端的屏幕上,则表示用户不在注视移动终端的屏幕。鉴于此,“根据用户的第一图像确定该用户是否注视移动终端的屏幕,得到确定结 果”在具体实现时,可以根据第一图像确定用户的注视点是否在移动终端的屏幕上,从而得到确定结果。
在本申请实施例的一种实现方式中,考虑到在一些情况下,第一图像中可能不包括用户的眼睛,故而无法根据第一图像确定用户的注视点。例如,用户带了墨镜;又如,第一图像中用户的眼睛太小;再如,用户的头发太长,遮挡了眼睛,等等。对于这种情况,考虑到用户的脸的朝向可以在一定程度上体现用户所注视的位置,故而在本申请实施例的又一种实现方式中,“根据用户的第一图像确定该用户是否注视移动终端的屏幕,得到确定结果”在具体实现时,可以根据第一图像中用户的脸的朝向确定用户是否注视移动终端的屏幕,得到确定结果。
在本申请实施例的一种实现方式中,为保护用户隐私以及用户的信息安全,为避免移动终端基于非法用户的调节移动终端的屏幕的亮度的意图,对移动终端的屏幕的亮度进行调节。在根据该第一图像确定用户是否注视移动终端的屏幕之前,还可以对第一图像中的用户的身份进行验证,若验证结果表示第一图像中的用户是移动终端的合法用户,再确定根据该第一图像确定用户是否注视移动终端的屏幕。若验证结果表示第一图像中的用户不是移动终端的合法用户,则不再执行“根据该第一图像确定用户是否注视移动终端的屏幕”的步骤。
第二方面,本申请实施例提供了一种移动终端,所述移动终端包括:获取单元,用于获取用户的第一图像,所述第一图像为包括所述用户的面部的图像;确定单元,用于根据所述用户的第一图像确定所述用户是否注视所述移动终端的屏幕,得到确定结果;调节单元,用于根据所述确定结果对所述屏幕的亮度进行调节。
在本申请实施例的一种实现方式中,所述调节单元,具体用于:若所述确定结果为所述用户注视所述移动终端的屏幕,且所述屏幕的亮度为0,则将所述屏幕的亮度调为第一亮度,所述第一亮度大于0。
在本申请实施例的一种实现方式中,所述移动终端还包括:计时单元,用于接收所述用户触发的锁屏指令,并开始计时;所述获取单元,具体用于在第一预设时间段结束后,执行获取所述用户的第一图像的步骤。
在本申请实施例的一种实现方式中,所述调节单元,具体用于:接收所述用户触发的锁屏指令,根据所述预设锁屏指令连续获取多个第二图像;若所述多个第二图像中均不包括所述用户的脸,则执行所述获取所述用户的第一图像的步骤。
在本申请实施例的一种实现方式中,所述接收所述用户触发的锁屏指令包括:接收所述用户通过按电源键或双击屏幕触发的锁屏指令。
在本申请实施例的一种实现方式中,所述调节单元,具体用于:若所述确定结果为所述用户注视所述移动终端的屏幕,且所述屏幕的亮度为第二亮度,则将所述屏幕的亮度调为第一亮度,所述第一亮度大于所述第二亮度且所述第二亮度大于0。
在本申请实施例的一种实现方式中,所述调节单元,具体用于:若所述确定结果为所述用户未注视所述移动终端的屏幕,且所述屏幕的亮度为第一亮度,则将所述屏幕的亮度调为第二亮度,所述第一亮度大于所述第二亮度。
在本申请实施例的一种实现方式中,所述若所述确定结果为所述用户未注视所述移动终端的屏幕,且所述屏幕的亮度为第一亮度,则将所述屏幕的亮度调为第二亮度包括:获取所述移动终端的环境光亮度;若所述环境光亮度大于或等于阈值,且所述确定结果为所述用户未注视所述移动终端的屏幕,以及所述屏幕的亮度为第一亮度,则将所述屏幕的亮度调为第二亮度。
在本申请实施例的一种实现方式中,所述调节单元,具体用于:若所述确定结果为所述用户未注视所述移动终端的屏幕,且所述屏幕的亮度为第一亮度,以及扫码事件未被触发,则将所述屏幕的亮度调为第二亮度。
在本申请实施例的一种实现方式中,所述获取单元,具体用于:若未接收到所述用户触发的充电时屏幕不休眠请求,则获取所述用户的第一图像,所述充电时屏幕不休眠请求用于指示所述移动终端在充电的时候屏幕的亮度保持在第一亮度。
在本申请实施例的一种实现方式中,所述获取单元,具体用于:若超出用户设置的屏幕不休眠的第二预设时间段,则获取所述用户的第一图像。
在本申请实施例的一种实现方式中,所述确定单元,具体用于:根据所述用户的第一图像确定所述用户的注视点是否在所述移动终端的屏幕上。
在本申请实施例的一种实现方式中,所述确定单元,具体用于:若确定所述第一图像中没有所述用户的眼睛,则根据所述第一图像中所述用户的脸的朝向确定所述用户是否注视所述移动终端的屏幕。
在本申请实施例的一种实现方式中,所述确定单元,具体用于:若所述第一图像中的人脸信息与所述移动终端预先存储的人脸信息相匹配,则根据所述用户的第一图像确定所述用户是否注视所述移动终端的屏幕。
第三方面,本申请实施例提供了一种屏幕亮度调节设备,所述设备包括:处理器和存储器;所述存储器,用于存储指令;所述处理器,用于执行所述存储器中的所述指令,执行以上第一方面任意一项所述的方法。
第四方面,本申请实施例提供了一种计算机可读存储介质,包括指令,当其在计算机上运行时,使得计算机执行以上第一方面任意一项所述的方法。
第五方面,本申请实施例提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行以上第一方面任意一项所述的方法。
附图说明
图1为本申请实施例提供的一种屏幕亮度调节方法的流程示意图;
图2为本申请实施例提供的一种移动终端的结构示意图;
图3为本申请实施例提供的一种屏幕亮度调节设备的结构示意图。
具体实施方式
本申请实施例提供了一种屏幕亮度调节的方法及装置,用于解决传统的调节移动终端的屏幕的亮度的方案存在的不能按照用户意图对移动终端的屏幕的亮度进行调节,导致用户体验不好的问题。
为方便理解,首先对传统技术中移动终端的屏幕的亮度调节方式进行简单介绍。
在传统技术中,若用户按下电源键点亮移动终端的屏幕、或者用户利用指纹解锁、密码解锁等解锁方式解锁移动终端之后,移动终端的屏幕亮度为第一亮度。为方便描述,在本申请实施例的以下描述中,将移动终端的屏幕的亮度为第一亮度的状态,称为“亮屏”状态。在传统技术中,当移动终端处于亮屏状态时,若用户在预设时间段内一直未触碰移动终端的屏幕,则移动终端的亮度则由第一亮度降低为第二亮度,该第二亮度为小于第一亮度且大于0的一个亮度值。在本申请实施例的以下描述中,将移动终端的屏幕的亮度为第二亮度的状态,称为“暗屏”状态。其中,该预设时间可以是根据屏幕休眠时间确定的,该预设时间可以为一个小于屏幕休眠时间的值,例如屏幕休眠时间为30秒,则该预设时间可以为24秒。关于屏幕休眠时间,需要说明的是,移动终端的屏幕处于亮屏状态时,若用户在该屏幕休眠时间段内一直未触碰移动终端的屏幕,则移动终端的屏幕的亮度会降低为0。在本申请实施例的以下描述中,将移动终端的屏幕的亮度为0的状态,称为“灭屏”状态。需要说明的是,前述屏幕休眠时间可以是用户自定义的,也可以是系统默认的,本申请实施例不做具体限定。可以理解的是,若用户不主动触发熄灭移动终端的屏幕的行为,则移动终端的由“亮屏”状态转变为“灭屏”状态,中间会经历“暗屏”状态这个中间过渡状态。
传统的调节移动终端的屏幕的亮度的方式,若要对移动终端的屏幕的亮度进行调节,需要用户触摸移动终端。若用户不方便触摸移动终端,则不能按照用户意图调节移动终端的屏幕的亮度。本申请实施例提供了一种屏幕亮度调节方法及装置,可以解决传统技术中存在的上述问题。以下结合附图对本申请实施例提供的屏幕亮度调节方法及装置进行介绍。
参见图1,该图为本申请实施例提供的一种屏幕亮度调节方法的流程示意图。
本申请实施例提供的屏幕亮度调节方法,可以由移动终端执行,本申请实施例不具体限定该移动终端,移动终端例如可以为智能手机、平板电脑以及POS机等等。
本申请实施例提供的屏幕亮度调节方法,可以通过如下步骤101-103实现。
步骤101:获取用户的第一图像,该第一图像为包括用户面部的图像。
在本申请实施例中,考虑到在实际应用中,用户是否注视移动终端的屏幕,可以体现用户是否需要使用移动终端,进一步地,可以体现用户是否具备调节移动终端的屏幕的亮度的意图。鉴于此,在本申请实施例中,因此,在本申请实施例中,可以根据用户是否注视移动终端的屏幕,来对移动终端的屏幕的亮度进行调节。
可以理解的是,用户是否注视移动终端的屏幕,可以通过包括用户的面部的图像来进行确定,故而在本申请实施例中,可以首先获取第一图像,该第一图像为包括用户面部的图像。在本申请实施例中,该第一图像可以是移动终端上的前置摄像头拍摄的图像。
在本申请实施例中,可以按照预设频率获取第一图像,本申请实施例不具体限定获取第一图像的预设频率,该预设频率可以根据实际情况确定。例如可以每1秒获取10次第一图像。
步骤102:根据用户的第一图像确定该用户是否注视移动终端的屏幕,得到确定结果。
获取该第一图像之后,即可根据该第一图像,确定第一图像中包括的用户是否注视移动终端的屏幕。在本申请实施例中,不具体限定根据第一图像确定用户是否注视所述移动终端的屏幕的具体实现方式,作为一种示例,可以对第一图像进行图像识别,从而确定用 户是否注视移动终端的屏幕。
考虑到在实际应用中,用户的注视点可以体现用户所注视的位置。换言之,若用户的注视点在移动终端的屏幕上,则可以表示用户在注视移动终端的屏幕;若用户的注视点不在移动终端的屏幕上,则表示用户不在注视移动终端的屏幕。鉴于此,在本申请实施例的一种实现方式中,步骤102在具体实现时,可以根据第一图像确定用户的注视点是否在移动终端的屏幕上,从而得到确定结果。在本申请实施例中,可以首先确定第一图像中用户的注视点,而后结合移动终端的位置,确定该用户的注视点是否在移动终端的屏幕上。本申请实施例不具体限定根据第一图像确定用户的注视点的具体实现方式。作为一种示例,考虑到用户的瞳孔位置、注视方向等均可能体现用户的注视点。故而可以对第一图像进行图像识别,确定第一图像中用户的瞳孔位置以及注视方向,进一步地根据用户的瞳孔位置和注视方向,确定用户的注视点。
可以理解的是,在一些情况下,第一图像中可能不包括用户的眼睛,故而无法根据第一图像确定用户的注视点。例如,用户带了墨镜;又如,第一图像中用户的眼睛太小;再如,用户的头发太长,遮挡了眼睛,等等。对于这种情况,考虑到用户的脸的朝向可以在一定程度上体现用户所注视的位置,故而在本申请实施例的又一种实现方式中,步骤102在具体实现时,可以根据第一图像中用户的脸的朝向确定用户是否注视移动终端的屏幕,得到确定结果。具体地,可以对第一图像进行图像识别,确定出第一图像中用户的脸部轮廓、器官之间的相对位置等,从而确定出第一图像中用户的脸的朝向,而后,根据移动终端的位置和第一图像中用户的脸的朝向,确定第一图像中用户的脸是否朝向移动终端,从而确定用户是否注视移动终端的屏幕,得到确定结果。
在本申请实施例的一种实现方式中,为保护用户隐私以及用户的信息安全,为避免移动终端基于非法用户的调节移动终端的屏幕的亮度的意图,对移动终端的屏幕的亮度进行调节。在根据该第一图像确定用户是否注视移动终端的屏幕之前,还可以对第一图像中的用户的身份进行验证,若验证结果表示第一图像中的用户是移动终端的合法用户,再确定根据该第一图像确定用户是否注视移动终端的屏幕。若验证结果表示第一图像中的用户不是移动终端的合法用户,则不再执行“根据该第一图像确定用户是否注视移动终端的屏幕”的步骤。
在本申请实施例中,考虑到实际应用中,许多移动终端都具有人脸解锁功能,若移动终端启动了人脸解锁功能,则移动终端中预先存储有该移动终端的合法用户的人脸信息。故而在本申请实施例中,可以将第一图像中的人脸信息与移动终端预先存储的人脸信息进行比较,来对第一图像中的用户的身份进行验证。具体地,若第一图像中的人脸信息与移动终端预先存储的人脸信息相匹配,则可以表示第一图像中的用户是该移动终端的合法用户。当然,考虑到在实际应用中,移动终端也可能未启动人脸解锁功能。对于这种情况,在本申请实施例中,移动终端可以在用户启动对应于本申请实施例提供的屏幕亮度调节方法的“智能调节屏幕亮度”功能时,提示用户录入人脸信息,从而将用户录入的人脸信息保存,以便于后续对第一图像中的用户的身份进行验证。
步骤103:根据该确定结果对移动终端的屏幕的亮度进行调节。
如前文,该确定结果能够确定用户调节移动终端的屏幕的亮度的意图,故而在得到该确定结果之后,即可根据该确定结果对移动终端的屏幕的亮度进行调节。具体地,可以根据该确定结果以及移动终端当前的屏幕亮度,对移动终端的屏幕亮度进行调节。
通过以上描述可知,利用本申请实施例提供的屏幕亮度调节方法,可以通过用户是否注视移动终端的屏幕的确定结果,确定用户调节移动终端的屏幕的亮度的意图,从而调节移动终端的屏幕的亮度,避免了传统技术中存在的用户希望调节移动终端的屏幕的亮度却不方便接触移动终端、而导致无法根据用户意图调节移动终端的屏幕的亮度的问题,提升了用户体验。
在本申请实施例中,步骤103在具体实现时,可以包括以下三种场景,分别为“灭屏时智能亮屏”、“暗屏时智能亮屏”以及“亮屏时智能暗屏”。所谓“灭屏时智能亮屏”是指当移动终端的亮度为0时,根据前述确定结果将移动终端的屏幕的亮度调节为第一亮度;所谓“暗屏时智能亮屏”是指当移动终端的亮度为第二亮度时,根据前述确定结果将移动终端的屏幕的亮度调节为第一亮度;所谓“亮屏时智能暗屏”是指当移动终端的亮度为第一亮度时,根据前述确定结果将移动终端的屏幕的亮度调节为第二亮度。关于第一亮度、第二亮度、亮屏、暗屏以及灭屏,可以参考前文相关部分的描述,此处不再详述。
以下结合上述三种场景,介绍步骤103的具体实现方式。
第一种场景:灭屏时智能亮屏
可以理解的是,在实际应用中,若移动终端的屏幕得亮度为0,且用户注视着移动终端的屏幕,则在一定程度上可以表示用户希望使用移动终端,即表示用户希望点亮移动终端的屏幕。故而在本申请实施例中,若前述确定结果表示用户注视移动终端的屏幕,且移动终端的屏幕的亮度为0,则将该移动终端的屏幕的亮度调节为第一亮度。
在实际应用中,考虑到用户可能会无意中瞥一眼移动终端的屏幕,实际上用户可能并不想点亮移动终端的屏幕。为了避免用户瞥一眼即将屏幕的亮度调节为第一亮度的情况,在本申请实施例中,可以连续获取多个第一图像,并在多个第一图像对应的确定结果均为“用户注视移动终端的屏幕的前提下”,再将移动终端的屏幕的亮度由0调节为第一亮度。
考虑到在实际应用中存在一些场景,在这些场景中,虽然用户注视移动终端的屏幕,但是用户希望利用移动终端执行其它操作,而并不想点亮移动终端的屏幕。例如,用户希望将移动终端的屏幕当成镜子来使用;又如,用户在和其他用户介绍该移动终端的外观,等等。而对于这些场景,用户一般会存在主动熄灭移动终端的屏幕的行为。例如,用户在将移动终端的屏幕当成镜子使用之前,一般会通过按移动终端的电源键或者双击移动终端的屏幕等操作,控制移动终端锁屏,即熄灭移动终端的屏幕。对于这种场景,若依然前述步骤101-步骤103,将移动终端的屏幕的亮度调节为第一亮度,则可能与用户的真实意图不符。对于这种情况,在本申请实施例中,可以在“用户利用移动终端执行其它操作”结束之后,再执行前述步骤101-步骤103。
在本申请实施例中,可以采用多种方式确定“用户利用移动终端执行其它操作”已经结束。以下介绍两种可能的方式。
在一种实现方式中,考虑到用户一般不会一直利用移动终端执行其它操作,换言之, 用户利用移动终端执行其它操作的时间在一定的时间范围内。鉴于此,在本申请实施例中,可以等待第一预设时间段,第一预设时间段之后,可以认为前述“用户利用移动终端执行其它操作”已经结束。具体地,移动终端可以接收用户触发的锁屏指令,并开始计时;当计时时间达到第一预设时间之后,再执行步骤101“获取用户的第一图像”以及后续步骤102和103。本申请实施例不具体限定该第一预设时间段的具体取值,该第一预设时间段可以为一个预先确定的值,作为一种示例,第一预设时间段可以为5秒。
在又一种实现方式中,考虑到在实际应用中,一方面,用户在利用移动终端执行其它操作时,一般用户的脸会出现在移动终端上的摄像头的拍摄视野内。若移动终端拍摄的图像中不包括用户的脸,则在一定程度上可以表示用户利用移动终端执行其它操作已经结束。另一方面,用户在利用移动终端执行其它操作时,用户的脸也可能偶尔不出现在移动终端上的摄像头的拍摄视野内,例如,用户在向其它用户介绍移动终端的外观的过程中,用户的脸离开了移动终端上的摄像头的拍摄视野范围。若移动终端连续拍摄的多个图像中均不包含用户的脸,则基本可以确定用户利用移动终端执行其它操作已经结束。
鉴于此,在本申请实施例中,移动终端接收到用户触发的锁屏指令之后,可以基于该锁屏指令控制移动终端的摄像头连续拍摄多个第二图像,移动终端获取到前述连续拍摄的多个第二图像之后。可以进一步判断该连续多个第二图像中是否包括用户的脸,若多个第二图像中均不包括所述用户的脸,则可以认为前述用户利用移动终端执行其它操作已经结束。在确定多个第二图像中均不包括所述用户的脸之后,即可执行前述步骤101“获取用户的第一图像”以及后续步骤102和103。本申请实施例不具体限定前述第二图像的具体数目,作为一种示例,该多个第二图像例如可以为移动终端接收到用户触发的锁屏指令之后,在第二预设时间段内拍摄的图像,例如,该多个第二图像可以为移动终端接收到用户触发的锁屏指令之后2秒内拍摄的图像。
如前文,用户可以通过按电源键或者双击移动终端的屏幕来控制移动终端锁屏。故而在本申请实施例的一种实现方式中,移动终端接收用户触发的锁屏指令,可以为移动终端接收用户通过按电源键或者双击移动终端的屏幕而触发的锁屏指令。
可以理解的是,在一些场景中,执行前述步骤102得到的确定结果可能并不准确。从而导致最终对移动终端的亮度调节与用户的真实意图不符。例如,第一图像中的用户的眼睛很小、第一图像中的用户的眼睛为斜眼以及第一图像中用户的头发遮挡了用户的眼睛等等。对于这种情况,若根据该确定结果为“用户注视移动终端的屏幕”、且移动终端的屏幕亮度为0,将移动终端的屏幕亮度调节为第一亮度之后,用户通过按电源键的方式将移动终端的屏幕的亮度调节成0,则在一定程度上表示前述确定结果不准确,故而对于这种情况,在本申请实施例中,可以不再执行前述步骤102-103,即不再动态调整移动终端的屏幕的亮度。直到获取到的第一图像中不再存在前述第一图像中的用户的眼睛很小、第一图像中的用户的眼睛为斜眼以及第一图像中用户的头发遮挡了用户的眼睛等等情况时,再执行前述步骤102-103,即再启动动态调整移动终端的屏幕的亮度的功能。
通过以上描述可知,利用本申请实施例的方案,当移动终端处于灭屏状态时,用户可以通过注视移动终端的屏幕的方式,来将移动终端的屏幕的亮度调节为第一亮度,无需用 户触摸移动终端,即可调节移动终端的屏幕的亮度。
第二种场景:暗屏时智能亮屏
如前文,移动终端处于暗屏状态,表示移动终端的屏幕的亮度为第二亮度。在传统技术中,当移动终端处于暗屏状态时,若用户不触摸移动终端的屏幕,则经过一定时间之后,移动终端会进入灭屏状态。在本申请实施例中,考虑到在实际应用中,用户注视移动终端的屏幕,则表示用户可能希望使用移动终端。故而在本申请实施例中,若移动终端的屏幕的亮度为第二亮度,且执行前述步骤102得到的确定结果为用户注视移动终端的屏幕,则将移动终端的屏幕的亮度调节为第一亮度,以便于用户使用移动终端,避免移动终端在一定时间之后进入灭屏状态。
在实际应用中,考虑到用户可能会无意中瞥一眼移动终端的屏幕,实际上用户可能并不想点亮移动终端的屏幕。为了避免用户瞥一眼即将屏幕的亮度调节为第一亮度的情况,在本申请实施例中,可以连续获取多个第一图像,并在多个第一图像对应的确定结果均为“用户注视移动终端的屏幕的前提下”,再将移动终端的屏幕的亮度由第二亮度调节为第一亮度。
如前文,在本申请实施例中,可以按照预设频率获取第一图像。在本申请实施例的一种实现方式中,为了提升用户体验,当移动终端处于暗屏状态时,一旦确定用户注视移动终端的屏幕,则将移动终端的屏幕的亮度调节为第一亮度。故而在本申请实施例的一种实现方式中,当移动终端进入暗屏状态之后,可以增加获取第一图像的频率,例如,当移动终端处于亮屏状态和灭屏状态时,根据第一频率获取第一图像,例如每2秒获取一次第一图像,当移动终端处于暗屏状态时,根据第二频率获取第一图像,例如每500毫秒获取一次第一图像。
可以理解的是,在一些场景中,执行前述步骤102得到的确定结果可能并不准确。从而导致最终对移动终端的亮度调节与用户的真实意图不符。例如,第一图像中的用户的眼睛很小、第一图像中的用户的眼睛为斜眼以及第一图像中用户的头发遮挡了用户的眼睛等等。对于这种情况,若根据该确定结果为“用户注视移动终端的屏幕”、且移动终端的屏幕亮度为第二亮度,将移动终端的屏幕亮度调节为第一亮度之后,用户通过按电源键的方式将移动终端的屏幕的亮度调节成0,则在一定程度上表示前述确定结果不准确,故而对于这种情况,在本申请实施例中,可以不再执行前述步骤102-103,即不再动态调整移动终端的屏幕的亮度。直到获取到的第一图像中不再存在前述第一图像中的用户的眼睛很小、第一图像中的用户的眼睛为斜眼以及第一图像中用户的头发遮挡了用户的眼睛等等情况时,再执行前述步骤102-103,即再启动动态调整移动终端的屏幕的亮度的功能。
通过以上描述可知,利用本申请实施例的方案,当移动终端处于暗屏状态时,用户可以通过注视移动终端的屏幕的方式,来将移动终端的屏幕的亮度调节为第一亮度,无需用户触摸移动终端,即可调节移动终端的屏幕的亮度。
第三种场景:亮屏时智能暗屏
可以理解的是,在实际应用中,若移动终端的屏幕的亮度为第一亮度,且用户未注视移动终端的屏幕,则在一定程度上可以表示用户虽然解锁了移动终端,但却无暇使用移动 终端。故而在本申请实施例中,若前述确定结果表示用户未注视移动终端的屏幕,且移动终端的屏幕的亮度为第一亮度,则将该移动终端的屏幕的亮度调节为第二亮度。
在实际应用中,考虑到用户在使用移动终端的过程中可能会注视其它地方。而若在用户注视其它地方的时候将移动终端的亮度调节成第二亮度,则可能会给用户带来不好的用户体验。为了避免这种情况,在本申请实施例中,可以连续获取多个第一图像,并在多个第一图像对应的确定结果均为“用户未注视移动终端的屏幕的前提下”,再将移动终端的屏幕的亮度由第一亮度调节为第二亮度。
可以理解的是,在实际应用中,若移动终端所处环境的环境光亮度比较暗,则移动终端获取的第一图像可能不清晰,这就导致移动终端根据前述第一图像确定的“用户是否注视移动终端的屏幕”的确定结果不准确。即可能用户实际上在注视移动终端的屏幕,而基于第一图像确定的确定结果却是用户未注视移动终端的屏幕。对于这种情况,可能会出现屏幕亮度误调节的现象,即用户实际上在注视移动终端的屏幕,而移动终端却将移动终端的屏幕的亮度由第一亮度调节为了第二亮度。在本申请实施例的一种实现方式中,为了避免这种情况发生,还可以获取移动终端的环境光亮度,若该环境光亮度大于或者等于阈值,则表示在该环境光亮度下移动终端获取的第一图像比较清晰,根据第一图像确定的“用户是否注视移动终端的屏幕”的确定结果比较准确。故而若该环境光亮度大于或者等于阈值,且前述步骤102得到的确定结果为用户未注视移动终端的屏幕、以及移动终端的屏幕的亮度为第一亮度时,将移动终端的屏幕的亮度调节为第二亮度。若该环境光亮度小于阈值,则可以不再执行前述步骤103,按照传统方式对移动终端的屏幕的亮度进行调节。
随着科学技术的发展,移动终端除了可以用于通话、发送/接收短信之外,还具备很多其它功能,例如,移动终端可以用于支付以及乘车等功能。在实际应用中,可以通过触发扫码事件来实现移动终端的支付以及乘车等功能。可以理解的是,在实际应用中,触发扫码事件时,移动终端的屏幕的亮度不能比较低,否则扫码器不能正确识别移动终端的屏幕上显示的二维码图像。而触发扫码事件时,用户是无法注视移动终端的屏幕的。若触发扫码事件之后,移动终端根据前述确定结果而将移动终端的屏幕的亮度由第一亮度调节为第二亮度,则可能导致扫码器扫码失败。为了避免这种情况,在本申请实施例的一种实现方式中,在移动终端确定扫码事件未被触发时,若前述确定结果为用户未注视移动终端的屏幕,且移动终端的亮度为第一亮度时,才将移动终端的屏幕的亮度调节为第二亮度。若移动终端确定扫码事件被触发,则即使前述确定结果为用户未注视移动终端的屏幕,也控制移动终端的屏幕的亮度维持第一亮度。
本申请实施例不具体限定移动终端监控扫码事件的具体实现方式,作为一种示例,移动终端可以根据与扫码事件相关的应用程序的运行数据,确定扫码事件是否被触发;作为又一种示例,移动终端可以监控移动终端的屏幕上显示的内容,确定扫码事件是否被触发;例如,若移动终端的屏幕上显示有二维码,则确定扫码事件已经被触发。
可以理解的是,在实际应用中,若移动终端正在充电,则用户可能长时间不会注视移动终端的屏幕,故而在本申请实施例中,若移动终端正在充电,则会根据“用户未注视移动终端的屏幕以及移动终端的亮度为第一亮度”执行将移动终端的屏幕亮度由第一亮度调节 为第二亮度的步骤。而考虑到在实际应用中,用户可能具备充电时移动终端不休眠的需求,例如,用户希望移动终端保持亮屏状态,以便于用户随时查看时间信息等等。在实际应用中,移动终端的开发人员选项中,也为用户提供了“充电时屏幕不会休眠”的选项。在本申请实施例中,若用户触发了“充电时屏幕不会休眠”的选项,则可以控制移动终端的屏幕亮度在充电期间一直为第一亮度。换言之,在本申请实施例中,若移动终端接收到用户触发的充电时屏幕不休眠请求,则控制移动终端的屏幕亮度为第一亮度。若移动终端未接收到用户触发的充电时屏幕不休眠请求,则获取第一图像,并执行后续步骤102-103。
另外,在实际应用中,用户还可以设置屏幕不休眠时间段,为方便描述,将该用户设置的不休眠时间段称为“第二预设时间段”,例如,用户可以设置10分钟屏幕不休眠,即从用户上一次触摸移动终端时开始计时,若10分钟内用户均未触摸移动终端的屏幕,则移动终端可以进入休眠状态。可以理解的是,在第二预设时间段内,用户希望移动终端的屏幕的亮度保持在第一亮度,故而在本申请实施例中,在第二预设时间段内,不再动态调整移动终端的屏幕的亮度,即不再执行前述步骤101和103。当超出该第二预设时间段之后,再执行步骤101“获取用户的第一图像”以及后续步骤102和103。
可以理解的是,在一些场景中,执行前述步骤102得到的确定结果可能并不准确。从而导致最终对移动终端的亮度调节与用户的真实意图不符。例如,第一图像中的用户的眼睛很小、第一图像中的用户的眼睛为斜眼以及第一图像中用户的头发遮挡了用户的眼睛等等。对于这种情况,若根据该确定结果为“用户未注视移动终端的屏幕”、且移动终端的屏幕亮度为第一亮度,将移动终端的屏幕亮度调节为第二亮度之后,用户通过触摸移动终端的屏幕将移动终端的屏幕的亮度调节成第一亮度,则在一定程度上表示前述确定结果不准确,故而对于这种情况,在本申请实施例中,可以不再执行前述步骤102-103,即不再动态调整移动终端的屏幕的亮度。直到获取到的第一图像中不再存在前述第一图像中的用户的眼睛很小、第一图像中的用户的眼睛为斜眼以及第一图像中用户的头发遮挡了用户的眼睛等等情况时,再执行前述步骤102-103,即再启动动态调整移动终端的屏幕的亮度的功能。
通过以上描述可知,利用本申请实施例的方案,当移动终端处于亮屏状态时,若用户不再注视移动终端的屏幕,则可以将移动终端的屏幕的亮度由第一亮度调节为第二亮度,无需用户触摸移动终端,即可调节移动终端的屏幕的亮度。
基于以上实施例提供的屏幕亮度调节方法,本申请实施例还提供了一种移动终端,以下结合附图介绍该移动终端。
参见图2,该图为本申请实施例提供的一种移动终端的结构示意图。
图2所示的移动终端200,具体包括获取单元201、确定单元202和调节单元203。
获取单元201,用于获取用户的第一图像,所述第一图像为包括所述用户的面部的图像;
确定单元202,用于根据所述用户的第一图像确定所述用户是否注视所述移动终端的屏幕,得到确定结果;
调节单元203,用于根据所述确定结果对所述屏幕的亮度进行调节。
在一种可能的实现方式中,所述调节单元203,具体用于:
若所述确定结果为所述用户注视所述移动终端的屏幕,且所述屏幕的亮度为0,则将所述屏幕的亮度调为第一亮度,所述第一亮度大于0。
在一种可能的实现方式中,所述移动终端200还包括:
计时单元,用于接收所述用户触发的锁屏指令,并开始计时;
所述获取单元201,具体用于在第一预设时间段结束后,执行获取所述用户的第一图像的步骤。
在一种可能的实现方式中,所述调节单元203,具体用于:
接收所述用户触发的锁屏指令,根据所述预设锁屏指令连续获取多个第二图像;
若所述多个第二图像中均不包括所述用户的脸,则执行所述获取所述用户的第一图像的步骤。
在一种可能的实现方式中,所述接收所述用户触发的锁屏指令包括:
接收所述用户通过按电源键或双击屏幕触发的锁屏指令。
在一种可能的实现方式中,所述调节单元203,具体用于:
若所述确定结果为所述用户注视所述移动终端的屏幕,且所述屏幕的亮度为第二亮度,则将所述屏幕的亮度调为第一亮度,所述第一亮度大于所述第二亮度且所述第二亮度大于0。
在一种可能的实现方式中,所述调节单元203,具体用于:
若所述确定结果为所述用户未注视所述移动终端的屏幕,且所述屏幕的亮度为第一亮度,则将所述屏幕的亮度调为第二亮度,所述第一亮度大于所述第二亮度。
在一种可能的实现方式中,所述若所述确定结果为所述用户未注视所述移动终端的屏幕,且所述屏幕的亮度为第一亮度,则将所述屏幕的亮度调为第二亮度包括:
获取所述移动终端的环境光亮度;
若所述环境光亮度大于或等于阈值,且所述确定结果为所述用户未注视所述移动终端的屏幕,以及所述屏幕的亮度为第一亮度,则将所述屏幕的亮度调为第二亮度。
在一种可能的实现方式中,所述调节单元203,具体用于:
若所述确定结果为所述用户未注视所述移动终端的屏幕,且所述屏幕的亮度为第一亮度,以及扫码事件未被触发,则将所述屏幕的亮度调为第二亮度。
在一种可能的实现方式中,所述获取单元201,具体用于:
若未接收到所述用户触发的充电时屏幕不休眠请求,则获取所述用户的第一图像,所述充电时屏幕不休眠请求用于指示所述移动终端在充电的时候屏幕的亮度保持在第一亮度。
在一种可能的实现方式中,所述获取单元201,具体用于:
若超出用户设置的屏幕不休眠的第二预设时间段,则获取所述用户的第一图像。
在一种可能的实现方式中,所述确定单元202,具体用于:
根据所述用户的第一图像确定所述用户的注视点是否在所述移动终端的屏幕上。
在一种可能的实现方式中,所述确定单元202,具体用于:
若确定所述第一图像中没有所述用户的眼睛,则根据所述第一图像中所述用户的脸的朝向确定所述用户是否注视所述移动终端的屏幕。
在一种可能的实现方式中,所述确定单元202,具体用于:
若所述第一图像中的人脸信息与所述移动终端预先存储的人脸信息相匹配,则根据所述用户的第一图像确定所述用户是否注视所述移动终端的屏幕。
由于所述移动终端200是与以上方法实施例提供的方法对应的移动终端,所述移动终端200的各个单元的具体实现,均与以上方法实施例为同一构思,因此,关于所述移动终端200的各个单元的具体实现,可以参考以上方法实施例的描述部分,此处不再赘述。
本申请实施例还提供了一种屏幕亮度调节设备,所述设备包括:处理器和存储器;
所述存储器,用于存储指令;
所述处理器,用于执行所述存储器中的所述指令,执行以上方法实施例提供的任意一项屏幕亮度调节方法。
需要说明的是,本申请实施例中提供的屏幕亮度调节设备,可以为与前述移动终端200对应的设备。该屏幕亮度调节设备的硬件结构可以为如图3所示的结构,图3为本申请实施例提供的一种屏幕亮度调节设备的结构示意图。
请参阅图3所示,屏幕亮度调节设备300包括:处理器310、通信接口320和和存储器330。其中屏幕亮度调节设备300中的处理器310的数量可以一个或多个,图3中以一个处理器为例。本申请实施例中,处理器310、通信接口320和存储器330可通过总线系统或其它方式连接,其中,图3中以通过总线系统340连接为例。
处理器310可以是中央处理器(central processing unit,CPU),网络处理器(network processor,NP)或者CPU和NP的组合。处理器310还可以进一步包括硬件芯片。上述硬件芯片可以是专用集成电路(application-specific integrated circuit,ASIC),可编程逻辑器件(programmable logic device,PLD)或其组合。上述PLD可以是复杂可编程逻辑器件(complex programmable logic device,CPLD),现场可编程逻辑门阵列(field-programmable gate array,FPGA),通用阵列逻辑(generic array logic,GAL)或其任意组合。
存储器330可以包括易失性存储器(英文:volatile memory),例如随机存取存储器(random-access memory,RAM);存储器330也可以包括非易失性存储器(英文:non-volatile memory),例如快闪存储器(英文:flash memory),硬盘(hard disk drive,HDD)或固态硬盘(solid-state drive,SSD);存储器330还可以包括上述种类的存储器的组合。
存储器330可以存储前述实施例提及的该移动终端的合法用户的图像等数据。
可选地,存储器330存储有操作系统和程序、可执行模块或者数据结构,或者它们的子集,或者它们的扩展集,其中,程序可包括各种操作指令,用于实现各种操作。操作系统可包括各种系统程序,用于实现各种基础业务以及处理基于硬件的任务。处理器310可以读取存储器330中的程序,实现本申请实施例提供的屏幕亮度调节方法。
总线系统340可以是外设部件互连标准(peripheral component interconnect,PCI)总线 或扩展工业标准结构(extended industry standard architecture,EISA)总线等。总线系统340可以分为地址总线、数据总线、控制总线等。为便于表示,图3中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。
本申请实施例还提供了一种计算机可读存储介质,包括指令,当其在计算机上运行时,使得计算机执行以上方法实施例提供的任意一项屏幕亮度调节方法。
本申请实施例还提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行以上方法实施例提供的任意一项屏幕亮度调节方法。
本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”、“第三”、“第四”等(如果存在)是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的实施例能够以除了在这里图示或描述的内容以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑业务划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本申请各个实施例中的各业务单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件业务单元的形式实现。
所述集成的单元如果以软件业务单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、 随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。
本领域技术人员应该可以意识到,在上述一个或多个示例中,本发明所描述的业务可以用硬件、软件、固件或它们的任意组合来实现。当使用软件实现时,可以将这些业务存储在计算机可读介质中或者作为计算机可读介质上的一个或多个指令或代码进行传输。计算机可读介质包括计算机存储介质和通信介质,其中通信介质包括便于从一个地方向另一个地方传送计算机程序的任何介质。存储介质可以是通用或专用计算机能够存取的任何可用介质。
以上所述的具体实施方式,对本发明的目的、技术方案和有益效果进行了进一步详细说明,所应理解的是,以上所述仅为本发明的具体实施方式而已。
以上所述,以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的范围。

Claims (30)

  1. 一种屏幕亮度调节方法,其特征在于,所述方法应用于移动终端,所述方法包括:
    获取用户的第一图像,所述第一图像为包括所述用户的面部的图像;
    根据所述用户的第一图像确定所述用户是否注视所述移动终端的屏幕,得到确定结果;
    根据所述确定结果对所述屏幕的亮度进行调节。
  2. 根据权利要求1所述的方法,其特征在于,所述根据所述确定结果对所述屏幕的亮度进行调节包括:
    若所述确定结果为所述用户注视所述移动终端的屏幕,且所述屏幕的亮度为0,则将所述屏幕的亮度调为第一亮度,所述第一亮度大于0。
  3. 根据权利要求2所述的方法,其特征在于,所述方法还包括:
    接收所述用户触发的锁屏指令,并开始计时;
    在第一预设时间段结束后,执行获取所述用户的第一图像的步骤。
  4. 根据权利要求2所述的方法,其特征在于,所述若所述确定结果为所述用户注视所述移动终端的屏幕,且所述屏幕的亮度为0,则将所述屏幕的亮度调为第一亮度包括:
    接收所述用户触发的锁屏指令,根据所述预设锁屏指令连续获取多个第二图像;
    若所述多个第二图像中均不包括所述用户的脸,则执行所述获取所述用户的第一图像的步骤。
  5. 根据权利要求3或4所述的方法,其特征在于,所述接收所述用户触发的锁屏指令包括:
    接收所述用户通过按电源键或双击屏幕触发的锁屏指令。
  6. 根据权利要求1所述的方法,其特征在于,所述根据所述确定结果对所述屏幕的亮度进行调节包括:
    若所述确定结果为所述用户注视所述移动终端的屏幕,且所述屏幕的亮度为第二亮度,则将所述屏幕的亮度调为第一亮度,所述第一亮度大于所述第二亮度且所述第二亮度大于0。
  7. 根据权利要求1所述的方法,其特征在于,所述根据所述确定结果对所述屏幕的亮度进行调节包括:
    若所述确定结果为所述用户未注视所述移动终端的屏幕,且所述屏幕的亮度为第一亮度,则将所述屏幕的亮度调为第二亮度,所述第一亮度大于所述第二亮度。
  8. 根据权利要求7所述的方法,其特征在于,所述若所述确定结果为所述用户未注视所述移动终端的屏幕,且所述屏幕的亮度为第一亮度,则将所述屏幕的亮度调为第二亮度包括:
    获取所述移动终端的环境光亮度;
    若所述环境光亮度大于或等于阈值,且所述确定结果为所述用户未注视所述移动终端的屏幕,以及所述屏幕的亮度为第一亮度,则将所述屏幕的亮度调为第二亮度。
  9. 根据权利要求7所述的方法,其特征在于,所述若所述确定结果为所述用户未注视所述移动终端的屏幕,且所述屏幕的亮度为第一亮度,则将所述屏幕的亮度调为第二亮度 包括:
    若所述确定结果为所述用户未注视所述移动终端的屏幕,且所述屏幕的亮度为第一亮度,以及扫码事件未被触发,则将所述屏幕的亮度调为第二亮度。
  10. 根据权利要求7所述的方法,其特征在于,所述获取用户的第一图像包括:
    若未接收到所述用户触发的充电时屏幕不休眠请求,则获取所述用户的第一图像,所述充电时屏幕不休眠请求用于指示所述移动终端在充电的时候屏幕的亮度保持在第一亮度。
  11. 根据权利要求7所述的方法,其特征在于,所述获取用户的第一图像包括:
    若超出用户设置的屏幕不休眠的第二预设时间段,则获取所述用户的第一图像。
  12. 根据权利要求1-11任一项所述的方法,其特征在于,所述根据所述用户的第一图像确定所述用户是否注视所述移动终端的屏幕包括:
    根据所述用户的第一图像确定所述用户的注视点是否在所述移动终端的屏幕上。
  13. 根据权利要求1-11任一项所述的方法,其特征在于,所述根据所述用户的第一图像确定所述用户是否注视所述移动终端的屏幕包括:
    若确定所述第一图像中没有所述用户的眼睛,则根据所述第一图像中所述用户的脸的朝向确定所述用户是否注视所述移动终端的屏幕。
  14. 根据权利要求1-13任一项所述的方法,其特征在于,所述根据所述用户的第一图像确定所述用户是否注视所述移动终端的屏幕包括:
    若所述第一图像中的人脸信息与所述移动终端预先存储的人脸信息相匹配,则根据所述用户的第一图像确定所述用户是否注视所述移动终端的屏幕。
  15. 一种移动终端,其特征在于,所述移动终端包括:
    获取单元,用于获取用户的第一图像,所述第一图像为包括所述用户的面部的图像;
    确定单元,用于根据所述用户的第一图像确定所述用户是否注视所述移动终端的屏幕,得到确定结果;
    调节单元,用于根据所述确定结果对所述屏幕的亮度进行调节。
  16. 根据权利要求15所述的移动终端,其特征在于,所述调节单元,具体用于:
    若所述确定结果为所述用户注视所述移动终端的屏幕,且所述屏幕的亮度为0,则将所述屏幕的亮度调为第一亮度,所述第一亮度大于0。
  17. 根据权利要求16所述的移动终端,其特征在于,所述移动终端还包括:
    计时单元,用于接收所述用户触发的锁屏指令,并开始计时;
    所述获取单元,具体用于在第一预设时间段结束后,执行获取所述用户的第一图像的步骤。
  18. 根据权利要求16所述的移动终端,其特征在于,所述调节单元,具体用于:
    接收所述用户触发的锁屏指令,根据所述预设锁屏指令连续获取多个第二图像;
    若所述多个第二图像中均不包括所述用户的脸,则执行所述获取所述用户的第一图像的步骤。
  19. 根据权利要求17或18所述的移动终端,其特征在于,所述接收所述用户触发的 锁屏指令包括:
    接收所述用户通过按电源键或双击屏幕触发的锁屏指令。
  20. 根据权利要求15所述的移动终端,其特征在于,所述调节单元,具体用于:
    若所述确定结果为所述用户注视所述移动终端的屏幕,且所述屏幕的亮度为第二亮度,则将所述屏幕的亮度调为第一亮度,所述第一亮度大于所述第二亮度且所述第二亮度大于0。
  21. 根据权利要求15所述的移动终端,其特征在于,所述调节单元,具体用于:
    若所述确定结果为所述用户未注视所述移动终端的屏幕,且所述屏幕的亮度为第一亮度,则将所述屏幕的亮度调为第二亮度,所述第一亮度大于所述第二亮度。
  22. 根据权利要求21所述的移动终端,其特征在于,所述若所述确定结果为所述用户未注视所述移动终端的屏幕,且所述屏幕的亮度为第一亮度,则将所述屏幕的亮度调为第二亮度包括:
    获取所述移动终端的环境光亮度;
    若所述环境光亮度大于或等于阈值,且所述确定结果为所述用户未注视所述移动终端的屏幕,以及所述屏幕的亮度为第一亮度,则将所述屏幕的亮度调为第二亮度。
  23. 根据权利要求21所述的移动终端,其特征在于,所述调节单元,具体用于:
    若所述确定结果为所述用户未注视所述移动终端的屏幕,且所述屏幕的亮度为第一亮度,以及扫码事件未被触发,则将所述屏幕的亮度调为第二亮度。
  24. 根据权利要求21所述的移动终端,其特征在于,所述获取单元,具体用于:
    若未接收到所述用户触发的充电时屏幕不休眠请求,则获取所述用户的第一图像,所述充电时屏幕不休眠请求用于指示所述移动终端在充电的时候屏幕的亮度保持在第一亮度。
  25. 根据权利要求21所述的移动终端,其特征在于,所述获取单元,具体用于:
    若超出用户设置的屏幕不休眠的第二预设时间段,则获取所述用户的第一图像。
  26. 根据权利要求15-25任一项所述的移动终端,其特征在于,所述确定单元,具体用于:
    根据所述用户的第一图像确定所述用户的注视点是否在所述移动终端的屏幕上。
  27. 根据权利要求15-25任一项所述的移动终端,其特征在于,所述确定单元,具体用于:
    若确定所述第一图像中没有所述用户的眼睛,则根据所述第一图像中所述用户的脸的朝向确定所述用户是否注视所述移动终端的屏幕。
  28. 根据权利要求15-27任一项所述的移动终端,其特征在于,所述确定单元,具体用于:
    若所述第一图像中的人脸信息与所述移动终端预先存储的人脸信息相匹配,则根据所述用户的第一图像确定所述用户是否注视所述移动终端的屏幕。
  29. 一种屏幕亮度调节设备,其特征在于,所述设备包括:处理器和存储器;
    所述存储器,用于存储指令;
    所述处理器,用于执行所述存储器中的所述指令,执行权利要求1-14任意一项所述的方法。
  30. 一种计算机可读存储介质,其特征在于,包括指令,当其在计算机上运行时,使得计算机执行以上权利要求1-14任意一项所述的方法。
PCT/CN2020/102285 2019-07-30 2020-07-16 一种屏幕亮度调节方法及装置 WO2021017843A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910695681.0 2019-07-30
CN201910695681.0A CN110534073A (zh) 2019-07-30 2019-07-30 一种屏幕亮度调节方法及装置

Publications (1)

Publication Number Publication Date
WO2021017843A1 true WO2021017843A1 (zh) 2021-02-04

Family

ID=68661127

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/102285 WO2021017843A1 (zh) 2019-07-30 2020-07-16 一种屏幕亮度调节方法及装置

Country Status (2)

Country Link
CN (1) CN110534073A (zh)
WO (1) WO2021017843A1 (zh)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110534073A (zh) * 2019-07-30 2019-12-03 华为技术有限公司 一种屏幕亮度调节方法及装置
CN110970001B (zh) * 2019-12-03 2021-07-20 Oppo广东移动通信有限公司 屏幕亮度调节方法、装置、电子设备及计算机存储介质
CN111179880A (zh) * 2019-12-26 2020-05-19 恒大新能源汽车科技(广东)有限公司 一种显示屏幕的亮度调节方法、装置、电子设备及系统
CN112631432A (zh) * 2021-01-05 2021-04-09 Oppo广东移动通信有限公司 一种屏幕控制方法及穿戴式设备、存储介质
CN113628579A (zh) * 2021-08-09 2021-11-09 深圳市优聚显示技术有限公司 一种led节能显示方法、led显示屏系统及lcd显示设备
CN113903317B (zh) * 2021-10-19 2023-06-27 Oppo广东移动通信有限公司 电子设备的屏幕亮度调节方法、装置以及电子设备

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040175020A1 (en) * 2003-03-05 2004-09-09 Bradski Gary R. Method and apparatus for monitoring human attention in dynamic power management
US20090082066A1 (en) * 2007-09-26 2009-03-26 Sony Ericsson Mobile Communications Ab Portable electronic equipment with automatic control to keep display turned on and method
CN103135762A (zh) * 2011-11-29 2013-06-05 三星电子株式会社 用于基于眼睛跟踪操作用户功能的方法及其移动装置
CN104076898A (zh) * 2013-03-27 2014-10-01 腾讯科技(深圳)有限公司 一种控制移动终端屏幕亮度的方法和装置
US20150334658A1 (en) * 2012-01-24 2015-11-19 Charles J. Kulas Affecting device action based on a distance of a user's eyes
CN106445151A (zh) * 2016-09-29 2017-02-22 珠海格力电器股份有限公司 一种终端屏幕亮度的控制方法及终端
CN107707751A (zh) * 2017-09-28 2018-02-16 努比亚技术有限公司 视频播放省电方法及对应的移动终端
CN108008804A (zh) * 2016-10-28 2018-05-08 腾讯科技(深圳)有限公司 智能设备的屏幕控制方法及装置
CN109167877A (zh) * 2018-08-01 2019-01-08 Oppo(重庆)智能科技有限公司 终端屏幕控制方法、装置、终端设备和存储介质
CN110534073A (zh) * 2019-07-30 2019-12-03 华为技术有限公司 一种屏幕亮度调节方法及装置

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102842291B (zh) * 2012-09-04 2015-09-02 济南微晶电子技术有限公司 一种基于正面人脸检测的背光调整系统及方法
CN103327172A (zh) * 2013-04-28 2013-09-25 华为终端有限公司 一种调节终端屏幕亮度的方法和终端
TW201517010A (zh) * 2013-10-31 2015-05-01 Pegatron Corp 電子裝置及其螢幕控制方法
CN104836900A (zh) * 2015-04-02 2015-08-12 来安县新元机电设备设计有限公司 一种移动终端解锁的方法及移动终端
CN109658904B (zh) * 2019-02-20 2021-07-20 北京七鑫易维信息技术有限公司 一种屏幕亮度调节方法及装置

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040175020A1 (en) * 2003-03-05 2004-09-09 Bradski Gary R. Method and apparatus for monitoring human attention in dynamic power management
US20090082066A1 (en) * 2007-09-26 2009-03-26 Sony Ericsson Mobile Communications Ab Portable electronic equipment with automatic control to keep display turned on and method
CN103135762A (zh) * 2011-11-29 2013-06-05 三星电子株式会社 用于基于眼睛跟踪操作用户功能的方法及其移动装置
US20150334658A1 (en) * 2012-01-24 2015-11-19 Charles J. Kulas Affecting device action based on a distance of a user's eyes
CN104076898A (zh) * 2013-03-27 2014-10-01 腾讯科技(深圳)有限公司 一种控制移动终端屏幕亮度的方法和装置
CN106445151A (zh) * 2016-09-29 2017-02-22 珠海格力电器股份有限公司 一种终端屏幕亮度的控制方法及终端
CN108008804A (zh) * 2016-10-28 2018-05-08 腾讯科技(深圳)有限公司 智能设备的屏幕控制方法及装置
CN107707751A (zh) * 2017-09-28 2018-02-16 努比亚技术有限公司 视频播放省电方法及对应的移动终端
CN109167877A (zh) * 2018-08-01 2019-01-08 Oppo(重庆)智能科技有限公司 终端屏幕控制方法、装置、终端设备和存储介质
CN110534073A (zh) * 2019-07-30 2019-12-03 华为技术有限公司 一种屏幕亮度调节方法及装置

Also Published As

Publication number Publication date
CN110534073A (zh) 2019-12-03

Similar Documents

Publication Publication Date Title
WO2021017843A1 (zh) 一种屏幕亮度调节方法及装置
US11468155B2 (en) Embedded authentication systems in an electronic device
RU2666278C2 (ru) Способ и аппарат для управления устройством отображения и интеллектуальная подушка
AU2015202397B2 (en) Embedded authentication systems in an electronic device
US10728499B2 (en) Electronic apparatus and communication method thereof
JP2020502602A (ja) 顔認識に基づいた認証
CN111695509A (zh) 一种身份验证方法、装置、机器可读介质及设备
CN107786349B (zh) 一种针对用户账号的安全管理方法及装置
WO2020135397A1 (zh) 屏幕显示控制方法及装置
WO2021092769A1 (zh) 安全防护方法、装置、移动终端及存储介质
CN111985305A (zh) 防窥屏方法、装置及终端设备
CN116909382A (zh) 利用眼睛注视来输入字符的方法及相关产品
CN110837755A (zh) 指纹识别方法及装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20848423

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20848423

Country of ref document: EP

Kind code of ref document: A1