WO2023065849A1 - Screen brightness adjustment method and apparatus for electronic device, and electronic device - Google Patents

Screen brightness adjustment method and apparatus for electronic device, and electronic device Download PDF

Info

Publication number
WO2023065849A1
WO2023065849A1 PCT/CN2022/116557 CN2022116557W WO2023065849A1 WO 2023065849 A1 WO2023065849 A1 WO 2023065849A1 CN 2022116557 W CN2022116557 W CN 2022116557W WO 2023065849 A1 WO2023065849 A1 WO 2023065849A1
Authority
WO
WIPO (PCT)
Prior art keywords
screen
gaze point
electronic device
face image
brightness
Prior art date
Application number
PCT/CN2022/116557
Other languages
French (fr)
Chinese (zh)
Inventor
孙哲
王征添
Original Assignee
Oppo广东移动通信有限公司
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 Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2023065849A1 publication Critical patent/WO2023065849A1/en

Links

Images

Classifications

    • 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
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2320/00Control of display operating conditions
    • G09G2320/06Adjustment of display parameters
    • G09G2320/0626Adjustment of display parameters for control of overall brightness
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2330/00Aspects of power supply; Aspects of display protection and defect management
    • G09G2330/02Details of power systems and of start or stop of display operation
    • G09G2330/021Power management, e.g. power saving
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Definitions

  • the present application relates to the technical field of electronic equipment, and more specifically, to a method and device for adjusting screen brightness of electronic equipment and electronic equipment.
  • the present application proposes a method and device for adjusting screen brightness of an electronic device, and an electronic device to solve the above problems.
  • the embodiment of the present application provides a method for adjusting screen brightness of an electronic device, which is applied to an electronic device.
  • the method includes: collecting a face image through a camera of the electronic device; processing the face image through a neural network model. face image to obtain the gaze point position of human eyes on the screen; based on the gaze point position and the distance between the gaze point position and the camera, determine whether the gaze point is located in the screen; when the When the gaze point is not within the screen, reduce the brightness of the screen.
  • the embodiment of the present application provides a device for adjusting screen brightness of an electronic device, which is applied to an electronic device, and the device includes: a face image acquisition module, configured to collect a face image through a camera of the electronic device;
  • the fixation point position acquisition module is used to process the human face image through the neural network model to obtain the fixation point position of the human eye on the screen;
  • the fixation point determination module is used for based on the fixation point position and the fixation point
  • the distance between the position and the camera is used to determine whether the gaze point is located within the screen;
  • the screen brightness reduction module is configured to reduce the brightness of the screen when the gaze point is not located within the screen.
  • the embodiment of the present application provides an electronic device, including a memory and a processor, the memory is coupled to the processor, the memory stores instructions, and when the instructions are executed by the processor, the The processor executes the above method.
  • the embodiment of the present application provides a computer-readable storage medium, where program code is stored in the computer-readable storage medium, and the program code can be invoked by a processor to execute the above method.
  • FIG. 1 shows a schematic flowchart of a method for adjusting screen brightness of an electronic device provided by an embodiment of the present application
  • Figure 2 shows a schematic diagram of the first scenario provided by the embodiment of the present application
  • FIG. 3 shows a schematic diagram of the second scenario provided by the embodiment of this application
  • FIG. 4 shows a schematic flowchart of a method for adjusting screen brightness of an electronic device provided by an embodiment of the present application
  • FIG. 5 shows a schematic diagram of a third scenario provided by the embodiment of the present application.
  • FIG. 6 shows a schematic diagram of a fourth scenario provided by the embodiment of the present application.
  • FIG. 7 shows a schematic flowchart of a method for adjusting screen brightness of an electronic device provided by an embodiment of the present application
  • FIG. 8 shows a schematic flowchart of step S350 of the method for adjusting screen brightness of an electronic device shown in FIG. 7 of the present application;
  • FIG. 9 shows a schematic flowchart of a method for adjusting screen brightness of an electronic device provided by an embodiment of the present application.
  • FIG. 10 shows a schematic flowchart of a method for adjusting screen brightness of an electronic device provided by an embodiment of the present application
  • FIG. 11 shows a schematic flowchart of a method for adjusting screen brightness of an electronic device provided by an embodiment of the present application
  • FIG. 12 shows a schematic flowchart of a method for adjusting screen brightness of an electronic device provided by an embodiment of the present application
  • FIG. 13 shows a block diagram of a device for adjusting screen brightness of an electronic device according to an embodiment of the present application
  • FIG. 14 shows a block diagram of an electronic device used to implement a method for adjusting screen brightness of an electronic device according to an embodiment of the present application
  • Fig. 15 shows a storage unit for storing or carrying program codes for implementing the method for adjusting screen brightness of an electronic device according to an embodiment of the present application according to an embodiment of the present application.
  • the user may manually adjust the brightness of the screen of the electronic device.
  • this adjustment method is cumbersome and the adjustment accuracy is low, which leads to the failure to reduce the power consumption of the electronic device and affects the user experience.
  • the inventor found after long-term research, and proposed the screen brightness adjustment method, device and electronic equipment of the electronic equipment provided in the embodiment of the present application, which judges and detects the position of the fixation point through the detection model, and according to the fixation point The location controls the brightness of the screen, thereby reducing the power consumption of electronic devices and improving the intelligent perception interaction experience.
  • a specific method for adjusting screen brightness of an electronic device will be described in detail in subsequent embodiments.
  • FIG. 1 shows a schematic flowchart of a method for adjusting screen brightness of an electronic device according to an embodiment of the present application.
  • the method is used to judge and detect the gaze point position through the neural network model, and according to the gaze point position and the distance between the gaze point position and the camera, it is determined that the gaze point is not located in the screen and the screen brightness is lowered, thereby reducing the power of the electronic device. consumption, and improve the intelligent perception interaction experience.
  • the method for adjusting screen brightness of an electronic device is applied to a screen brightness adjusting device 200 of an electronic device as shown in FIG. 13 and an electronic device 100 equipped with the screen brightness adjusting device 200 of an electronic device ( FIG. 14 .
  • the electronic device applied in this embodiment may be a smart phone, a tablet computer, a wearable electronic device, etc., which is not limited here.
  • the electronic device includes a camera and a screen.
  • the process shown in FIG. 1 will be described in detail below.
  • the screen brightness adjustment method of the electronic device may specifically include the following steps:
  • Step S110 collecting face images through the camera of the electronic device.
  • the electronic device may include a camera, and image collection may be performed through the camera.
  • image collection may be performed through the camera.
  • the camera may be a front camera, a rear camera, or a rotating camera, etc., which is not limited herein.
  • the camera can be an always-on device built into the electronic device, wherein the always-on device can be a low-power image acquisition device and a sound acquisition device that can be kept always on.
  • the camera can be controlled to collect face images in real time; the camera can be controlled to collect face images at preset time intervals; the camera can be controlled to collect face images at preset time points; the camera can be controlled to collect face images based on operations command to collect face images; the camera can be controlled to collect face images according to other preset rules, which are not limited here.
  • the camera can be controlled to collect face images.
  • Step S120 Processing the face image through a neural network model to obtain gaze points of human eyes on the screen.
  • a neural network model can be obtained in advance, and the neural network model can be used for gaze point position detection.
  • the face image can be input into the neural network model to obtain information output by the neural network model.
  • the neural network model may be stored on the electronic device after being trained by the electronic device, or may be stored on the electronic device after being trained by other devices or servers, which is not limited herein.
  • the neural network model in the case where the neural network model is stored locally on the electronic device, after the face image is obtained, the neural network model can be directly called locally on the electronic device, for example, an instruction can be directly sent to the neural network model to instruct
  • the neural network model reads the face image in the target storage area, or the electronic device can directly input the face image into the local neural network model, thereby effectively avoiding the reduction of the face image input neural network model due to the influence of network factors The speed to improve the speed of the neural network model to obtain face images and improve user experience.
  • the neural network model may be stored in the server after being trained by the electronic device, or may be stored in the server after being trained by other devices or servers, which is not limited here.
  • an instruction can be sent to the neural network model stored in the server through the network, to instruct the neural network model to read the camera information of the electronic device through the network.
  • the collected face image, or the electronic device can send the face image to the neural network model stored in the server through the network, so that by storing the neural network model in the server, the occupation of the storage space of the electronic device is reduced, and the Effects on the normal operation of electronic equipment.
  • the neural network model can be used for gaze point position detection. Therefore, when the neural network model detects that the human face image includes an eye image, the information output by the neural network model may include the gaze point position of the eyeball, which will not be repeated here.
  • Step S130 Based on the gaze point position and the distance between the gaze point position and the camera, determine whether the gaze point is located within the screen.
  • the information output by the neural network model when it is determined that the information output by the neural network model includes the gaze point position of the eyeball, it may be determined whether the gaze point is within the screen based on the gaze point position and the distance between the gaze point position and the camera. For example, when the position of the gaze point is within the corresponding position area of the screen, it can be determined that the gaze point is located within the screen; when the position of the gaze point is not within the corresponding position area of the screen, it can be determined that the gaze point is not located within the screen.
  • Step S140 Decrease the brightness of the screen when the gaze point is not located in the screen.
  • controlling the brightness of the screen may include one of the following: increasing the brightness of the screen, maintaining the brightness of the screen, or reducing the brightness of the screen.
  • reducing the brightness of the screen may include turning off the brightness of the screen.
  • the brightness of the screen when it is determined that the point of gaze is not located on the screen, the brightness of the screen can be reduced, so that when it is determined that the user does not pay attention to the content displayed on the screen of the electronic device, the brightness of the electronic device can be reduced by reducing the brightness of the screen. power consumption.
  • the electronic device can preset and store the position of the camera. When the information output by the neural network model includes the gaze point position of the eyeball, the distance between the gaze point position and the camera can be obtained, and based on the The gaze point position and the distance between the gaze point position and the camera. When it is determined that the gaze point is not within the screen of the electronic device, the brightness of the screen is lowered.
  • FIG. 2 shows a schematic diagram of a first scenario provided by an embodiment of the present application.
  • the user holds the electronic device 100.
  • the electronic device 100 is in a vertical display state, and the user's gaze point is not on the screen.
  • the brightness of the screen can be reduced or the screen can be turned off.
  • FIG. 3 shows a schematic diagram of a second scenario provided by the embodiment of the present application.
  • the user holds the electronic device 100.
  • the electronic device 100 is in a landscape display state, and the user's gaze point is not on the screen.
  • the brightness of the screen can be reduced or the screen can be turned off.
  • the method for adjusting the screen brightness of an electronic device collects a face image through a camera of the electronic device, processes the face image through a neural network model to obtain the fixation point position of the human eye on the screen, based on the fixation point position and The distance between the gaze point position and the camera determines whether the gaze point is within the screen.
  • the gaze point is not within the screen, lower the brightness of the screen to judge and detect the gaze point position through the neural network model, and according to the gaze point position and The distance between the position of the gaze point and the camera is determined to reduce the brightness of the screen when the gaze point is not located on the screen, thereby reducing the power consumption of electronic devices and improving the intelligent perception interaction experience.
  • FIG. 4 shows a method for adjusting screen brightness of an electronic device provided by an embodiment of the present application. This method is applied to the above-mentioned electronic device.
  • the method for adjusting the screen brightness of the device may specifically include the following steps:
  • Step S210 collecting face images through the camera of the electronic device.
  • Step S220 Processing the face image through a neural network model to obtain gaze points of human eyes on the screen.
  • Step S230 Based on the gaze point position and the distance between the gaze point position and the camera, determine whether the gaze point is located within the screen.
  • Step S240 Decrease the brightness of the screen when the gaze point is not located in the screen.
  • step S210-step S240 please refer to step S110-step S140, which will not be repeated here.
  • Step S250 When the gaze point is located in the screen, maintain the current brightness of the screen.
  • the brightness of the screen can be increased or the current brightness of the screen can be maintained, so as to meet the content viewing needs of the user.
  • FIG. 5 shows a schematic diagram of a third scenario provided by the embodiment of the present application.
  • the user holds the electronic device 100.
  • the electronic device 100 is in a vertical display state, and the user's gaze point is on the screen.
  • the brightness of the screen can be increased or maintained.
  • FIG. 6 shows a schematic diagram of a fourth scenario provided by the embodiment of the present application.
  • the user holds the electronic device 100.
  • the electronic device 100 is in a landscape display state, and the user's gaze point is on the screen.
  • the brightness of the screen can be increased or maintained.
  • the screen brightness adjustment method of an electronic device Compared with the screen brightness adjustment method shown in FIG. 1 , the screen brightness adjustment method of an electronic device provided by an embodiment of the present application maintains the current brightness of the screen when the gaze point is located on the screen, so as to improve the user's brightness. Use experience.
  • FIG. 7 shows a method for adjusting the screen brightness of an electronic device provided by an embodiment of the present application. This method is applied to the above-mentioned electronic device.
  • the method for adjusting the screen brightness of the device may specifically include the following steps:
  • Step S310 collecting face images through the camera of the electronic device.
  • Step S320 Processing the face image through a neural network model to obtain gaze points of human eyes on the screen.
  • Step S330 Based on the gaze point position and the distance between the gaze point position and the camera, determine whether the gaze point is located within the screen.
  • step S310-step S330 please refer to step S110-step S130, which will not be repeated here.
  • Step S340 When the gaze point is not located in the screen, determine the operation mode of the electronic device.
  • the operation mode of the electronic device may include a smart screen-off mode or a non-smart screen-off mode.
  • the electronic device in the smart off-screen mode, can automatically adjust the brightness of the screen according to the needs of the user, such as increasing the brightness of the screen or reducing the brightness of the screen.
  • the electronic device in the non-intelligent off-screen mode, can automatically control the screen to turn off or turn on the screen according to the user's needs, such as keeping the screen on or controlling the screen to turn off.
  • the operation mode of the electronic device can be determined, that is, it can be determined whether the operation mode of the electronic device is a smart off-screen mode or a non-smart off-screen mode.
  • the brightness of the screen when the operating mode of the electronic device is the smart screen-off mode, if it is determined that the gaze point is not located within the screen, the brightness of the screen may be controlled in a first manner.
  • the operation mode of the electronic device is the non-smart screen-off mode, if it is determined that the gaze point is not located in the screen, the brightness of the screen may be controlled in a second manner. Wherein, the first manner is different from the second manner.
  • an electronic device can obtain its operating mode.
  • the electronic device may be provided with a target switch, and the target switch is used to control the electronic device to switch between the smart screen-off mode and the non-smart screen-off mode.
  • the target switch is used to control the electronic device to switch between the smart screen-off mode and the non-smart screen-off mode.
  • the target switch may be in an on state or an off state based on a touch operation acting on the screen.
  • an electronic device can obtain its operating mode. For example, the automatic off-screen duration set by the electronic device can be obtained. When the automatic off-screen duration is greater than or equal to the duration threshold, it can be determined that the electronic device is operating in the smart off-screen mode. When the automatic off-screen duration is less than the duration threshold , it can be determined that the electronic device is operating in a non-smart screen-off mode. For example, the duration threshold is 1 minute, 2 minutes, etc. Among them, the automatic off-screen duration is used to represent the duration of the electronic device entering the off-screen without any operation when the screen is on.
  • the automatic off-screen duration set by the electronic device is less than the duration threshold, it can be considered that the electronic device enters the off-screen from the bright screen. If the duration of the electronic device is short and will not cause excessive power consumption of the electronic device, you can set a non-smart off-screen mode; If the screen lasts for a long time, it will cause excessive power consumption of electronic equipment, so you can set the smart off-screen mode.
  • Step S350 Decrease the brightness of the screen according to the operation mode.
  • the brightness of the screen can be adjusted down based on the operation mode. For example, when it is determined that the operating mode of the electronic device is the smart screen-off mode, the brightness of the screen can be reduced in the first way; screen brightness.
  • FIG. 8 shows a schematic flowchart of step S350 of the method for adjusting screen brightness of an electronic device shown in FIG. 7 of the present application.
  • the process shown in Figure 8 will be described in detail below, and the method may specifically include the following steps:
  • Step S351 When the operation mode is the smart screen-off mode, reduce the brightness of the screen.
  • the electronic device operates in a non-smart screen-off mode.
  • the operating mode of the electronic device is the smart off-screen mode
  • the point of gaze is not located on the screen
  • the user can lower the The brightness of the screen can reduce the power consumption of the electronic device, and at the same time, keep the display of the electronic device at a low brightness, so as to avoid the loss and power consumption caused by switching the screen multiple times.
  • the screen after reducing the brightness of the screen, if it is determined that the gaze point is not on the screen within the preset time period, the screen will be turned off; increase the screen brightness.
  • the position of the gaze point can be continuously detected within a preset period of time, the position of the gaze point and the distance between the position of the gaze point and the camera can be obtained, and it can be judged whether the gaze point is within the screen,
  • the preset duration represents the duration from the current time to the set off-screen time.
  • the point of gaze when it is determined within the preset duration that the point of gaze is switched from not being on the screen to being on the screen, it can be considered that the user switches from not watching the content displayed on the screen to watching the screen before the current time reaches the set off-screen time.
  • the content displayed on the screen can be adjusted to increase the brightness of the screen.
  • Step S352 When the operation mode is the non-smart off-screen mode, turn off the screen.
  • the operating mode of the electronic device is the non-smart off-screen mode
  • the method for adjusting the screen brightness of an electronic device provided by an embodiment of the present application, compared with the method for adjusting the screen brightness of an electronic device shown in FIG. 1 , this embodiment also determines the operating mode of the electronic device, and adjusts the The brightness of the screen of the electronic device is improved, thereby improving the diversity and rationality of screen brightness adjustment.
  • FIG. 9 shows a method for adjusting the screen brightness of an electronic device provided by an embodiment of the present application. This method is applied to the above-mentioned electronic device.
  • the gaze point position includes the gaze point in the target coordinate system
  • the coordinate information of the target coordinate system is established with the center position of the camera as the origin.
  • the process shown in FIG. 9 will be described in detail below.
  • the method for adjusting the screen brightness of the electronic device may specifically include the following steps:
  • Step S410 collecting face images through the camera of the electronic device.
  • Step S420 Processing the face image through a neural network model to obtain gaze points of human eyes on the screen.
  • step S410-step S420 please refer to step S110-step S120, which will not be repeated here.
  • Step S430 Obtain the distance between the gaze point position and the camera based on the coordinate information.
  • the electronic device may preliminarily establish a coordinate system with the center of the camera as the origin as the target coordinate system.
  • the electronic device may pre-establish a coordinate system with the center of the camera as the origin, with the vertical axis of the electronic device as the X axis, and with the horizontal axis of the electronic device as the Y axis, as the target coordinate system.
  • the electronic device may pre-establish a coordinate system with the center of the camera as the origin, with the horizontal axis of the electronic device as the X axis, and with the vertical axis of the electronic device as the Y axis, as the target coordinate system.
  • the gaze point position output by the neural network model can be the coordinate information of the gaze point in the target coordinate system. Therefore, when obtaining the gaze point position output by the neural network model, the gaze point position can be obtained at the Coordinate information in the target coordinate system.
  • the coordinate range of the screen of the electronic device under the target coordinate system may be determined and the coordinate information of each position on the screen under the target coordinate system may be determined. Therefore, in this embodiment, after obtaining the coordinate information of the gaze point position in the target coordinate system, the coordinate information of the gaze point position in the target coordinate system can be compared with the coordinate range to determine that the gaze point position is within the target coordinate system. Whether the coordinate information in the coordinate system is within the coordinate range. Wherein, when it is determined that the coordinate information of the gaze point position in the target coordinate system is within the coordinate range, it can be determined that the gaze point position is on the screen, and the brightness of the screen can be maintained or increased. Wherein, when it is determined that the coordinate information of the gaze point position in the target coordinate system is not within the coordinate range, it can be determined that the gaze point position is not on the screen, and then the brightness of the screen can be reduced or the screen can be turned off.
  • the coordinate information of the camera can be (0, 0) by default. Therefore, after obtaining the coordinate information corresponding to the gaze point position, it can be based on this The coordinate information determines the distance of the gaze point position from the camera.
  • Step S440 Determine whether the gaze point is located within the screen based on the distance between the gaze point position and the camera.
  • the gaze point position and the camera after obtaining the distance between the gaze point position and the camera, it may be determined whether the gaze point is within the screen based on the distance between the gaze point position and the camera.
  • Step S450 Decrease the brightness of the screen when the gaze point is not located in the screen.
  • step S450 please refer to step S140, which will not be repeated here.
  • the coordinate information in the target coordinate system based on the coordinate information, obtains the distance between the gaze point position and the camera, and based on the distance between the gaze point position and the camera, determines whether the gaze point is within the screen, thereby improving the accuracy of determining the relationship between the gaze point position and the screen sex.
  • FIG. 10 shows a method for adjusting screen brightness of an electronic device provided by an embodiment of the present application. This method is applied to the above-mentioned electronic device.
  • the method for adjusting the screen brightness of the device may specifically include the following steps:
  • Step S510 collecting face images through the camera of the electronic device.
  • Step S520 Processing the face image through a neural network model to obtain gaze points of human eyes on the screen.
  • step S510-step S520 please refer to step S110-step S120, which will not be repeated here.
  • Step S530 Based on the gaze point position and the camera position, obtain the relative distance and relative direction between the gaze point position and the camera position.
  • the electronic device can preset and store the position of the camera.
  • the position of the gaze point can be obtained based on the position of the gaze point and the position of the camera. The relative distance and relative direction from the position of the camera.
  • the electronic device can pre-set and store the coordinate information of the center of the camera.
  • the real physical distance represented by a single screen pixel can be converted , to calculate the distance from the gaze point position to the center of the camera as the relative distance between the gaze point position and the camera position.
  • the electronic device can be preset and stored with the coordinate information of the center of the camera.
  • the information output by the neural network model includes the coordinate information of the gaze point position of the eyeball, it can be based on the coordinate information of the camera center and the gaze point position.
  • the coordinate information of the gaze point position and the direction of the center of the camera are determined as the relative direction between the gaze point position and the position of the camera.
  • Step S540 Based on the relative distance and the relative direction, determine whether the gaze point is located within the screen.
  • the gaze point after obtaining the relative distance and relative direction between the position of the gaze point and the position of the camera, it may be determined based on the relative distance and relative direction whether the gaze point is located within the screen.
  • the camera is set at the top of the screen, when the relative direction of the gaze point relative to the position of the camera is from the top of the screen to the bottom of the screen, and the relative distance is L1. If the length of the screen of the electronic device is L2, and L2>L1, it can be determined that the gaze point is located within the screen. If the length of the screen of the electronic device is L3, and L1>L3, it can be determined that the gaze point is not located within the screen.
  • the camera is set at the top of the screen, and when the relative direction of the position of the gaze point relative to the position of the camera is from the bottom of the screen to the top of the screen, it can be determined that the gaze point is not located in the screen.
  • Step S550 Decrease the brightness of the screen when the gaze point is not located in the screen.
  • step S550 for the specific description of step S550, please refer to step S140, which will not be repeated here.
  • the method for adjusting the screen brightness of an electronic device is also based on the position of the point of gaze and the position of the camera to obtain the position of the point of gaze and the position of the camera.
  • the relative distance and relative direction of the location determine whether the gaze point is within the screen, thereby improving the accuracy of determining the relationship between the gaze point position and the screen.
  • FIG. 11 shows a method for adjusting the screen brightness of an electronic device provided by an embodiment of the present application. This method is applied to the above-mentioned electronic device.
  • the process shown in FIG. The method for adjusting the screen brightness of the device may specifically include the following steps:
  • Step S610 collecting face images through the camera of the electronic device.
  • step S610 for the specific description of step S610, please refer to step S110, which will not be repeated here.
  • Step S620 When there are multiple facial images collected by the camera, the facial image with the largest area among the multiple facial images is used as the target facial image.
  • the neural network model includes a face detection model and a gaze point detection model to detect whether the image collected by the camera includes a face image.
  • the input of the face detection model can be the image collected by the camera (hereinafter referred to as the image to be detected)
  • the output of the face detection model can be used as the input of the gaze point detection model
  • the gaze point detection model can be based on the input and output Gaze point location.
  • the image to be detected can be input into the face detection model, so as to detect whether the image to be detected includes a face image through the face detection model, and obtain the face detection model.
  • the information output by the face detection model may include one of the following: including a face image and not including a face image.
  • the gaze point detection model may not be invoked, and the brightness of the screen of the electronic device may be directly reduced or the screen may be turned off.
  • the gaze point detection model can be called, and the face image can be input into the gaze point detection model to determine the gaze point position through the gaze point detection model. detection.
  • the information center output by the face detection model includes a face image may include one of the following: including a face image and including an eye image in the face image; including a face image and not including an eye image in the face image .
  • the information input by the face detection model based on the image to be detected may include a face image and the face image may include an eye image.
  • the information input by the face detection model based on the image to be detected may include a face image and the face image does not include an eye image.
  • the gaze point detection model can no longer be called, and the brightness of the screen of the electronic device can be directly reduced or the control The screen goes off.
  • the gaze point detection model can be called, and the face image can be input into the gaze point detection model to pass The gaze detection model performs gaze location detection.
  • the image to be detected can be input into the face detection model, and the face detection model can detect the image to be detected, and detect the face frame in the image to be detected position and the position of multiple key points (such as the position of the center of the two eyes, the position of the center of the nose, and the position of the two corners of the mouth, etc.), and then extract the face image and eye image from the image to be detected and generate a representation of the face position mask.
  • the face detection model can detect the image to be detected, and detect the face frame in the image to be detected position and the position of multiple key points (such as the position of the center of the two eyes, the position of the center of the nose, and the position of the two corners of the mouth, etc.), and then extract the face image and eye image from the image to be detected and generate a representation of the face position mask.
  • the face image when it is determined that the information output by the face detection model includes a face image, the face image may be input into the gaze point detection model to obtain information output by the gaze point detection model.
  • the information output by the gaze point detection model may include one of the following: a gaze point position is detected, and a gaze point position is not detected.
  • the face image output by the face detection model is a side face image (not including the eye image)
  • the gaze point detection model is based on the information output by the face image for not detecting the gaze point position, then It is possible to directly reduce the brightness of the screen of the electronic device or control the screen to turn off.
  • the face image output by the face detection model when the face image output by the face detection model is a frontal face image (including an eye image), the brightness of the screen can be controlled based on the gaze point position.
  • the face image after obtaining the face image output by the face detection model, it may be determined whether the face image satisfies a preset face condition.
  • the face image can be input into the gaze point detection model; when it is judged that the face image does not meet the preset face condition, the face image can not be Input the gaze point detection model, and directly reduce the brightness of the screen of the electronic device or control the screen to turn off.
  • the preset face condition can be a complete face, that is, when the face image includes a complete face, it can be determined that the face image meets the preset face condition, and when the face image contains If the complete face is not included, it can be determined that the face image does not satisfy the preset face condition.
  • the camera may capture multiple faces at the same time during the image collection process, that is, the acquired image to be detected may also include multiple faces. Therefore, the neural network model is based on the output information of the image to be detected. May include multiple face images.
  • the one face image may be directly input into the gaze point detection model.
  • the face image of the user corresponding to the electronic device may be determined from the multiple face images as the target face image, and the The determined target face image is input into the neural network model.
  • the face image with the largest area may be selected from the multiple face images as the target face image.
  • the frontmost face image may be selected from the multiple face images as the target face image.
  • the face image matching the preset face image can be selected from the multiple face images as the target face image.
  • Step S630 Process the target face image through the neural network model to obtain the gaze point of human eyes on the screen.
  • the target face image when it is determined that the target face image should be selected from the plurality of face images, the target face image is processed through the neural network model to obtain the fixation point position of the human eye on the screen.
  • Step S640 Based on the gaze point position and the distance between the gaze point position and the camera, determine whether the gaze point is located within the screen.
  • Step S650 Decrease the brightness of the screen when the gaze point is not located in the screen.
  • step S640-step S650 please refer to step S130-step S140, which will not be repeated here.
  • the method for adjusting the screen brightness of an electronic device provided by an embodiment of the present application is compared with the method for adjusting the screen brightness of an electronic device shown in FIG.
  • the face image with the largest area in the face image is used as the target face image, and the target face image is processed through the neural network model to obtain the position of the fixation point of the face on the screen, so as to improve the accuracy of determining the fixation point of the face.
  • FIG. 12 shows a method for adjusting screen brightness of an electronic device provided by an embodiment of the present application. This method is applied to the above-mentioned electronic device.
  • the process shown in FIG. The method for adjusting the screen brightness of the device may specifically include the following steps:
  • Step S710 Obtain a training data set, wherein the training data set includes a plurality of training images and gaze point positions corresponding to the plurality of training images.
  • a training data set can be obtained.
  • the training data set includes a plurality of training images and a plurality of fixation point positions, wherein a plurality of training images and a plurality of fixation point positions correspond one-to-one, that is, each training image in the plurality of training images corresponds to a plurality of fixation points A fixation position in position.
  • the multiple training images can be obtained by the camera of the electronic device, can be obtained by the local storage of the electronic device, can be obtained by the electronic device from other devices, or can be obtained by the electronic device from a server. Do limited.
  • the multiple gaze point positions may be manually marked on the training image by the user, or automatically marked on the training image by the electronic device, which is not limited here.
  • a label frame for identifying the position of the gaze point can be added to the training image to form a label image with a label frame, or the training image can be marked in the form of an xml format file, which is not limited here.
  • Step S720 Based on the plurality of training images and gaze point positions corresponding to the plurality of training images, train a preset model to obtain a neural network model.
  • the preset model can be trained to obtain the gaze point detection model based on the training data set.
  • the preset model can be trained based on the multiple training images and the respective gaze point positions corresponding to the multiple training images Get the gaze detection model. For example, after obtaining multiple training images and multiple gaze point positions in one-to-one correspondence, multiple training images can be used as input parameters, and multiple gaze point positions can be used as output parameters to train the preset model to obtain a neural network model .
  • the preset model may be a convolutional neural network.
  • Step S730 collecting face images through the camera of the electronic device.
  • Step S740 Processing the face image through a neural network model to obtain gaze points of human eyes on the screen.
  • Step S750 Determine whether the gaze point is located within the screen based on the gaze point position and the distance between the gaze point position and the camera.
  • Step S760 Decrease the brightness of the screen when the gaze point is not located in the screen.
  • step S730-step S760 please refer to step S110-step S140, which will not be repeated here.
  • the method for adjusting the screen brightness of an electronic device provided by an embodiment of the present application also acquires a training data set based on multiple training images and The gaze point positions corresponding to multiple training images are used to train the preset model to obtain a neural network model to improve the accuracy of model recognition.
  • FIG. 13 shows a device for adjusting screen brightness of an electronic device provided by the present application.
  • the screen brightness adjustment device 200 of the electronic equipment includes: a human face image acquisition module 210, a fixation point position acquisition module 220, a fixation point determination module 230 and a screen brightness reduction module 240, wherein:
  • the facial image acquisition module 210 is configured to acquire facial images through the camera of the electronic device.
  • the gaze point position obtaining module 220 is configured to process the face image through a neural network model to obtain the gaze point position of human eyes on the screen.
  • the gaze point position acquisition module 220 includes: a target face image determination submodule and a gaze point position acquisition submodule, wherein:
  • the target human face image determination sub-module is used for taking the human face image with the largest area among the multiple human face images as the target human face image when there are multiple human face images collected by the camera.
  • the gaze point position obtaining submodule is used to process the target face image through the neural network model to obtain the gaze point position of human eyes on the screen.
  • the gaze point determination module 230 is configured to determine whether the gaze point is located within the screen based on the gaze point position and the distance between the gaze point position and the camera.
  • the gaze point position includes coordinate information of the gaze point in a target coordinate system, and the target coordinate system is established with the center position of the camera as the origin, and the gaze point determination module 230 includes: a distance acquisition sub- module and the first fixation point determination submodule, wherein:
  • the distance acquisition submodule is configured to acquire the distance between the gaze point position and the camera based on the coordinate information.
  • the first gaze point determining submodule is configured to determine whether the gaze point is located within the screen based on the distance between the gaze point position and the camera.
  • the gaze point determination module 230 includes: a relative relationship acquisition submodule and a second gaze point determination submodule, wherein:
  • the relative relationship acquisition submodule is configured to acquire the relative distance and direction between the gaze point position and the camera position based on the gaze point position and the camera position.
  • the second gaze point determination submodule is configured to determine whether the gaze point is located within the screen based on the relative distance and the relative direction.
  • the screen brightness reduction module 240 is configured to reduce the screen brightness when the gaze point is not located in the screen.
  • the screen brightness reduction module 240 includes: an operating mode determination sub-module and a screen brightness reduction sub-module, wherein:
  • the operation mode determination submodule is used to determine the operation mode of the electronic device.
  • the screen brightness reduction sub-module is used for reducing the screen brightness according to the operation mode.
  • the screen brightness reduction sub-module includes: a screen brightness reduction unit and a screen extinguishing unit, wherein:
  • the screen brightness reduction unit is configured to reduce the screen brightness when the operation mode is the smart off-screen mode.
  • a screen extinguishing unit configured to extinguish the screen when the operating mode is a non-intelligent off-screen mode.
  • the screen brightness reduction sub-module includes: an automatic off-screen duration acquisition unit, an intelligent off-screen mode determination unit, and a non-intelligent off-screen mode determination unit, wherein:
  • the automatic off-screen duration acquisition unit is configured to acquire the automatic off-screen duration set by the electronic device.
  • the smart screen-off mode determination unit is configured to determine that the electronic device's operating mode is the smart screen-off mode when the automatic screen-off duration is greater than or equal to a duration threshold.
  • the non-smart screen-off mode determination unit is configured to determine that the electronic device is in the non-smart screen-off mode when the automatic screen-off duration is less than the duration threshold.
  • the screen brightness adjusting device 200 of the electronic device also includes: a screen brightness maintaining module, wherein:
  • the screen brightness maintaining module is used for maintaining the current brightness of the screen when the gaze point is located in the screen.
  • the screen brightness adjusting device 200 of the electronic device also includes: a screen extinguishing module and a screen brightness increasing module, wherein:
  • a screen extinguishing module configured to extinguish the screen when it is determined that the gaze point is not within the screen for a predetermined period of time.
  • a screen brightness increasing module configured to increase the screen brightness when it is determined within the preset duration that the gaze point is switched from not being in the screen to being in the screen.
  • the screen brightness adjustment device 200 of the electronic device also includes: a training data set acquisition module and a model training module, wherein:
  • the training data set acquisition module is configured to acquire a training data set, wherein the training data set includes a plurality of training images and gaze point positions corresponding to the plurality of training images.
  • a model training module configured to train a preset model to obtain a neural network model based on the plurality of training images and gaze point positions corresponding to the plurality of training images.
  • the coupling between the modules may be electrical, mechanical or other forms of coupling.
  • each functional module in each embodiment of the present application may be integrated into one processing module, each module may exist separately physically, or two or more modules may be integrated into one module.
  • the above-mentioned integrated modules can be implemented in the form of hardware or in the form of software function modules.
  • FIG. 14 shows a structural block diagram of an electronic device 100 provided by an embodiment of the present application.
  • the electronic device 100 may be an electronic device capable of running application programs, such as a smart phone, a tablet computer, and an e-book.
  • the electronic device 100 in this application may include one or more of the following components: a processor 110, a memory 120, and one or more application programs, wherein one or more application programs may be stored in the memory 120 and configured to be executed by a or a plurality of processors 110, and one or more programs are configured to execute the methods described in the foregoing method embodiments.
  • the processor 110 may include one or more processing cores.
  • the processor 110 uses various interfaces and lines to connect various parts of the entire electronic device 100, and executes or executes instructions, programs, code sets or instruction sets stored in the memory 120, and calls data stored in the memory 120 to execute Various functions of the electronic device 100 and processing data.
  • the processor 110 may adopt at least one of Digital Signal Processing (Digital Signal Processing, DSP), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), and Programmable Logic Array (Programmable Logic Array, PLA). implemented in the form of hardware.
  • DSP Digital Signal Processing
  • FPGA Field-Programmable Gate Array
  • PLA Programmable Logic Array
  • the processor 110 may integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU), a modem, and the like.
  • CPU Central Processing Unit
  • GPU Graphics Processing Unit
  • the CPU mainly handles the operating system, user interface and application programs, etc.
  • the GPU is used to render and draw the content to be displayed
  • the modem is used to handle wireless communication. It can be understood that, the above-mentioned modem may not be integrated into the processor 110, but may be realized by a communication chip alone.
  • the memory 120 may include random access memory (Random Access Memory, RAM), and may also include read-only memory (Read-Only Memory).
  • the memory 120 may be used to store instructions, programs, codes, sets of codes, or sets of instructions.
  • the memory 120 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system and instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.) , instructions for implementing the following method embodiments, and the like.
  • the storage data area can also store data created during use of the electronic device 100 (such as phonebook, audio and video data, chat record data) and the like.
  • FIG. 15 shows a structural block diagram of a computer-readable storage medium provided by an embodiment of the present application.
  • Program codes are stored in the computer-readable medium 300, and the program codes can be invoked by a processor to execute the methods described in the foregoing method embodiments.
  • the computer readable storage medium 300 may be an electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read Only Memory), EPROM, hard disk, or ROM.
  • the computer-readable storage medium 300 includes a non-transitory computer-readable storage medium (non-transitory computer-readable storage medium).
  • the computer-readable storage medium 300 has a storage space for program code 310 for executing any method steps in the above methods. These program codes can be read from or written into one or more computer program products.
  • Program code 310 may, for example, be compressed in a suitable form.
  • the method and device for adjusting the screen brightness of an electronic device and the electronic device collect face images through the camera of the electronic device, and process the face images through a neural network model to obtain the brightness of the human eyes on the screen.
  • the gaze point position based on the gaze point position and the distance between the gaze point position and the camera, determines whether the gaze point is located on the screen. When the gaze point is not located on the screen, lower the brightness of the screen, so as to judge the gaze point position through the neural network model And detection, and according to the gaze point position and the distance between the gaze point position and the camera, it is determined that the gaze point is not located in the screen and the screen brightness is reduced, thereby reducing the power consumption of electronic devices and improving the intelligent perception interaction experience.

Abstract

A screen brightness adjustment method and apparatus for an electronic device, and an electronic device. The screen brightness adjustment method comprises: collecting a facial image by means of a camera of an electronic device (S110); processing the facial image by means of a neural network model, so as to acquire a fixation point position of human eyes on a screen (S120); on the basis of the fixation point position and the distance between the fixation point position and the camera, determining whether a fixation point is located within the screen (S130); and when the fixation point is not located within the screen, lowering the brightness of the screen (S140). A fixation point position is determined and detected by means of a neural network model, and when it is determined, according to the fixation point position and the distance between the fixation point position and a camera, that a fixation point is not located within a screen, the brightness of the screen is lowered, thereby reducing the power consumption of an electronic device, and improving the intelligent perceptual interaction experience.

Description

电子设备的屏幕亮度调节方法、装置以及电子设备Method and device for adjusting screen brightness of electronic equipment, and electronic equipment
相关申请的交叉引用Cross References to Related Applications
本申请要求于2021年10月19日提交的申请号为CN202111217558.1的中国申请的优先权,其在此出于所有目的通过引用将其全部内容并入本文。This application claims priority to Chinese application No. CN202111217558.1 filed on October 19, 2021, which is hereby incorporated by reference in its entirety for all purposes.
技术领域technical field
本申请涉及电子设备技术领域,更具体地,涉及一种电子设备的屏幕亮度调节方法、装置以及电子设备。The present application relates to the technical field of electronic equipment, and more specifically, to a method and device for adjusting screen brightness of electronic equipment and electronic equipment.
背景技术Background technique
随着科学技术的发展,电子设备的使用越来越广泛,功能越来越多,已经成为人们日常生活中的必备之一。为了降低电子设备的功耗,以及减少对用户眼睛的刺激,用户可以手动调节电子设备的屏幕的亮度。With the development of science and technology, the use of electronic equipment is becoming more and more extensive, with more and more functions, and has become one of the must-haves in people's daily life. In order to reduce the power consumption of the electronic device and reduce the irritation to the user's eyes, the user can manually adjust the brightness of the screen of the electronic device.
发明内容Contents of the invention
鉴于上述问题,本申请提出了一种电子设备的屏幕亮度调节方法、装置以及电子设备,以解决上述问题。In view of the above problems, the present application proposes a method and device for adjusting screen brightness of an electronic device, and an electronic device to solve the above problems.
第一方面,本申请实施例提供了一种电子设备的屏幕亮度调节方法,应用于电子设备,所述方法包括:通过所述电子设备的摄像头采集人脸图像;通过神经网络模型处理所述人脸图像以获取人眼在所述屏幕上的注视点位置;基于所述注视点位置以及所述注视点位置与所述摄像头的距离,确定所述注视点是否位于所述屏幕内;当所述注视点未位于所述屏幕内时,调低所述屏幕亮度。In the first aspect, the embodiment of the present application provides a method for adjusting screen brightness of an electronic device, which is applied to an electronic device. The method includes: collecting a face image through a camera of the electronic device; processing the face image through a neural network model. face image to obtain the gaze point position of human eyes on the screen; based on the gaze point position and the distance between the gaze point position and the camera, determine whether the gaze point is located in the screen; when the When the gaze point is not within the screen, reduce the brightness of the screen.
第二方面,本申请实施例提供了一种电子设备的屏幕亮度调节装置,应用于电子设备,所述装置包括:人脸图像采集模块,用于通过所述电子设备的摄像头采集人脸图像;注视点位置获取模块,用于通过神经网络模型处理所述人脸图像以获取人眼在所述屏幕上的注视点位置;注视点确定模块,用于基于所述注视点位置以及所述注视点位置与所述摄像头的距离,确定所述注视点是否位于所述屏幕内;屏幕亮度调低模块,用于当所述注视点未位于所述屏幕内时,调低所述屏幕亮度。In a second aspect, the embodiment of the present application provides a device for adjusting screen brightness of an electronic device, which is applied to an electronic device, and the device includes: a face image acquisition module, configured to collect a face image through a camera of the electronic device; The fixation point position acquisition module is used to process the human face image through the neural network model to obtain the fixation point position of the human eye on the screen; the fixation point determination module is used for based on the fixation point position and the fixation point The distance between the position and the camera is used to determine whether the gaze point is located within the screen; the screen brightness reduction module is configured to reduce the brightness of the screen when the gaze point is not located within the screen.
第三方面,本申请实施例提供了一种电子设备,包括存储器和处理器,所述存储器耦接到所述处理器,所述存储器存储指令,当所述指令由所述处理器执行时所述处理器执行上述方法。In a third aspect, the embodiment of the present application provides an electronic device, including a memory and a processor, the memory is coupled to the processor, the memory stores instructions, and when the instructions are executed by the processor, the The processor executes the above method.
第四方面,本申请实施例提供了一种计算机可读取存储介质,所述计算机可读取存储介质中存储有程序代码,所述程序代码可被处理器调用执行上述方法。In a fourth aspect, the embodiment of the present application provides a computer-readable storage medium, where program code is stored in the computer-readable storage medium, and the program code can be invoked by a processor to execute the above method.
附图说明Description of drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings that need to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present application. For those skilled in the art, other drawings can also be obtained based on these drawings without any creative effort.
图1示出了本申请一实施例提供的电子设备的屏幕亮度调节方法的流程示意图;FIG. 1 shows a schematic flowchart of a method for adjusting screen brightness of an electronic device provided by an embodiment of the present application;
图2示出了本申请实施例提供的第一种场景示意图;Figure 2 shows a schematic diagram of the first scenario provided by the embodiment of the present application;
图3示出了本申请实施例提供的第二种场景示意图Figure 3 shows a schematic diagram of the second scenario provided by the embodiment of this application
图4示出了本申请一实施例提供的电子设备的屏幕亮度调节方法的流程示意图;FIG. 4 shows a schematic flowchart of a method for adjusting screen brightness of an electronic device provided by an embodiment of the present application;
图5示出了本申请实施例提供的第三种场景示意图;FIG. 5 shows a schematic diagram of a third scenario provided by the embodiment of the present application;
图6示出了本申请实施例提供的第四种场景示意图;FIG. 6 shows a schematic diagram of a fourth scenario provided by the embodiment of the present application;
图7示出了本申请一实施例提供的电子设备的屏幕亮度调节方法的流程示意图;FIG. 7 shows a schematic flowchart of a method for adjusting screen brightness of an electronic device provided by an embodiment of the present application;
图8示出了本申请的图7所示的电子设备的屏幕亮度调节方法的步骤S350的流程示意图;FIG. 8 shows a schematic flowchart of step S350 of the method for adjusting screen brightness of an electronic device shown in FIG. 7 of the present application;
图9示出了本申请一实施例提供的电子设备的屏幕亮度调节方法的流程示意图;FIG. 9 shows a schematic flowchart of a method for adjusting screen brightness of an electronic device provided by an embodiment of the present application;
图10示出了本申请一实施例提供的电子设备的屏幕亮度调节方法的流程示意图;FIG. 10 shows a schematic flowchart of a method for adjusting screen brightness of an electronic device provided by an embodiment of the present application;
图11示出了本申请一实施例提供的电子设备的屏幕亮度调节方法的流程示意图;FIG. 11 shows a schematic flowchart of a method for adjusting screen brightness of an electronic device provided by an embodiment of the present application;
图12示出了本申请一实施例提供的电子设备的屏幕亮度调节方法的流程示意图;FIG. 12 shows a schematic flowchart of a method for adjusting screen brightness of an electronic device provided by an embodiment of the present application;
图13示出了本申请实施例提供的电子设备的屏幕亮度调节装置的模块框图;FIG. 13 shows a block diagram of a device for adjusting screen brightness of an electronic device according to an embodiment of the present application;
图14示出了本申请实施例用于执行根据本申请实施例的电子设备的屏幕亮度调节方法的电子设备的框图;FIG. 14 shows a block diagram of an electronic device used to implement a method for adjusting screen brightness of an electronic device according to an embodiment of the present application;
图15示出了本申请实施例的用于保存或者携带实现根据本申请实施例的电子设备的屏幕亮度调节方法的程序代码的存储单元。Fig. 15 shows a storage unit for storing or carrying program codes for implementing the method for adjusting screen brightness of an electronic device according to an embodiment of the present application according to an embodiment of the present application.
具体实施方式Detailed ways
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。In order to enable those skilled in the art to better understand the solutions of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.
其中,为了降低电子设备的功耗,以及减少对用户眼睛的刺激,用户可以手动调节电子设备的屏幕的亮度。发明人经过研究发现,这种调节方式繁琐,且调节的精度较低,导致电子设备的功耗无法降低以及影响用户的使用体验。Wherein, in order to reduce power consumption of the electronic device and reduce irritation to the user's eyes, the user may manually adjust the brightness of the screen of the electronic device. After research, the inventor found that this adjustment method is cumbersome and the adjustment accuracy is low, which leads to the failure to reduce the power consumption of the electronic device and affects the user experience.
针对上述问题,发明人经过长期的研究发现,并提出了本申请实施例提供的电子设备的屏幕亮度调节方法、装置以及电子设备,通过检测模型进行注视点位置的判断和检测,并根据注视点位置对屏幕亮度进行控制,从而降低电子设备的功耗,以及提升智能感知交互体验。其中,具体的电子设备的屏幕亮度调节方法在后续的实施例中进行详细的说明。In view of the above problems, the inventor found after long-term research, and proposed the screen brightness adjustment method, device and electronic equipment of the electronic equipment provided in the embodiment of the present application, which judges and detects the position of the fixation point through the detection model, and according to the fixation point The location controls the brightness of the screen, thereby reducing the power consumption of electronic devices and improving the intelligent perception interaction experience. Wherein, a specific method for adjusting screen brightness of an electronic device will be described in detail in subsequent embodiments.
请参阅图1,图1示出了本申请一实施例提供的电子设备的屏幕亮度调节方法的流程示意图。该方法用于通过神经网络模型进行注视点位置的判断和检测,并根据注视点位置以及注视点位置与摄像头的距离,确定注视点未位于屏幕内时调低屏幕亮度,从而降低电子设备的功耗,以及提升智能感知交互体验。在具体的实施例中,该电子设备的屏幕亮度调节方法应用于如图13所示的电子设备的屏幕亮度调节装置200以及配置有电子设备的屏幕亮度调节装置200的电子设备100(图14)。下面将以电子设备为例,说明本实施例的具体流程,当然,可以理解的,本实施例所应用的电子设备可以为智能手机、平板电脑、穿戴式电子设备等,在此不做限定。于本实施例中,该电子设备包括摄像头和屏幕,下面将针对图1所示的流程进行详细的阐述,所述电子设备的屏幕亮度调节方法具体可以包括以下步骤:Please refer to FIG. 1 , which shows a schematic flowchart of a method for adjusting screen brightness of an electronic device according to an embodiment of the present application. The method is used to judge and detect the gaze point position through the neural network model, and according to the gaze point position and the distance between the gaze point position and the camera, it is determined that the gaze point is not located in the screen and the screen brightness is lowered, thereby reducing the power of the electronic device. consumption, and improve the intelligent perception interaction experience. In a specific embodiment, the method for adjusting screen brightness of an electronic device is applied to a screen brightness adjusting device 200 of an electronic device as shown in FIG. 13 and an electronic device 100 equipped with the screen brightness adjusting device 200 of an electronic device ( FIG. 14 . The following will take an electronic device as an example to illustrate the specific process of this embodiment. Of course, it can be understood that the electronic device applied in this embodiment may be a smart phone, a tablet computer, a wearable electronic device, etc., which is not limited here. In this embodiment, the electronic device includes a camera and a screen. The process shown in FIG. 1 will be described in detail below. The screen brightness adjustment method of the electronic device may specifically include the following steps:
步骤S110:通过所述电子设备的摄像头采集人脸图像。Step S110: collecting face images through the camera of the electronic device.
在本实施例中,电子设备可以包括摄像头,并可以通过该摄像头进行图像采集。例如,进行人脸图像的采集。作为一种方式,该摄像头可以为前置摄像头、可以为后置摄像头、也可以为转动摄像头等,在此不做限定。In this embodiment, the electronic device may include a camera, and image collection may be performed through the camera. For example, collect face images. As a manner, the camera may be a front camera, a rear camera, or a rotating camera, etc., which is not limited herein.
在一些实施方式中,该摄像头可以为电子设备内置的常开装置(Always on),其中,常开装置可以为一个低功耗的能够保持常开的图像采集装置和声音采集装置。In some embodiments, the camera can be an always-on device built into the electronic device, wherein the always-on device can be a low-power image acquisition device and a sound acquisition device that can be kept always on.
在一些实施方式中,可以控制摄像头实时进行人脸图像采集;可以控制摄像头按预设时间间隔进行人脸图像采集;可以控制摄像头按预设时间点进行人脸图像采集;可以控制摄像头可以基于操作指令进行人脸图像采集;可以控制摄像头按其他预设规则进行人脸图像采集等,在此不做限定。In some embodiments, the camera can be controlled to collect face images in real time; the camera can be controlled to collect face images at preset time intervals; the camera can be controlled to collect face images at preset time points; the camera can be controlled to collect face images based on operations command to collect face images; the camera can be controlled to collect face images according to other preset rules, which are not limited here.
作为一种方式,可以在时间接近用户设置的息屏时间时,控制摄像头进行人脸图像采集。As a way, when the time is close to the off-screen time set by the user, the camera can be controlled to collect face images.
步骤S120:通过神经网络模型处理所述人脸图像以获取人眼在所述屏幕上的注视点位置。Step S120: Processing the face image through a neural network model to obtain gaze points of human eyes on the screen.
在本实施例中,可以预先获得神经网络模型,该神经网络模型可以用于进行注视点位置检测。在一实施方式中,在获取人脸图像后,可以将人脸图像输入神经网络模型,获得该神经网络模型输出的信息。In this embodiment, a neural network model can be obtained in advance, and the neural network model can be used for gaze point position detection. In one embodiment, after the face image is acquired, the face image can be input into the neural network model to obtain information output by the neural network model.
在一些实施方式中,神经网络模型可以由电子设备训练完成后存储在该电子设备,也可以由其他设备或者服务器训练完成后存储在该电子设备等,在此不做限定。其中,在神经网络模型存储在该电子设备本地的情况下,则在获取到人脸图像后,可以直接在电子设备本地调用该神经网络模型,例如,可以直接发送指令至神经网络模型,以指示该神经网络模型在目标存储区域读取该人脸图像,或者电子设备可以直接将该人脸图像输入存储在本地的神经网络模型,从而有效避免由于网络因素的影响降低人脸图像输入神经网络模型的速度,以提升神经网络模型获取人脸图像的速度,提升用户体验。In some implementations, the neural network model may be stored on the electronic device after being trained by the electronic device, or may be stored on the electronic device after being trained by other devices or servers, which is not limited herein. Wherein, in the case where the neural network model is stored locally on the electronic device, after the face image is obtained, the neural network model can be directly called locally on the electronic device, for example, an instruction can be directly sent to the neural network model to instruct The neural network model reads the face image in the target storage area, or the electronic device can directly input the face image into the local neural network model, thereby effectively avoiding the reduction of the face image input neural network model due to the influence of network factors The speed to improve the speed of the neural network model to obtain face images and improve user experience.
在一些实施方式中,神经网络模型可以由电子设备训练完成后存储在服务器,也可以由其他设备或者服务器训练完成后存储在服务器等,在此不做限定。其中,在神经网络模型存储在服务器的情况下,则可以获取到人脸图像后,可以通过网络发送指令至存储在服务器的神经网络模型,以指示该神经网络模型通过网络读取电子设备的摄像头采集的人脸图像,或者电子设备可以通过网络将人脸图像发送至存储在服务器的神经网络模型,从而通过将神经网络模型存储在服务器的方式,减少对电子设备的存储空间的占用,降低对电子设备正常运行的影响。In some embodiments, the neural network model may be stored in the server after being trained by the electronic device, or may be stored in the server after being trained by other devices or servers, which is not limited here. Wherein, in the case where the neural network model is stored in the server, after the face image can be obtained, an instruction can be sent to the neural network model stored in the server through the network, to instruct the neural network model to read the camera information of the electronic device through the network. The collected face image, or the electronic device can send the face image to the neural network model stored in the server through the network, so that by storing the neural network model in the server, the occupation of the storage space of the electronic device is reduced, and the Effects on the normal operation of electronic equipment.
在本申请一实施例中,由于神经网络模型可以用于进行注视点位置检测。因此,当神经网络模型检测到人脸图像中包括眼睛图像时,则该神经网络模型输出的信息可以包括眼球的注视点位置,在此不再赘述。In an embodiment of the present application, since the neural network model can be used for gaze point position detection. Therefore, when the neural network model detects that the human face image includes an eye image, the information output by the neural network model may include the gaze point position of the eyeball, which will not be repeated here.
步骤S130:基于所述注视点位置以及所述注视点位置与所述摄像头的距离,确定所述注视点是否位于所述屏幕内。Step S130: Based on the gaze point position and the distance between the gaze point position and the camera, determine whether the gaze point is located within the screen.
在本实施例中,当确定该神经网络模型输出的信息包括眼球的注视点位置时,则可以基于该注视点位置以及注视点位置和摄像头的距离,确定注视点是否在屏幕内。例如,当注视点位置在屏幕对应的位置区域内时,可以确定该注视点位于屏幕内,当注视单位置不在屏幕对应的位置区域内时,可以确定该注视点未位于屏幕内。In this embodiment, when it is determined that the information output by the neural network model includes the gaze point position of the eyeball, it may be determined whether the gaze point is within the screen based on the gaze point position and the distance between the gaze point position and the camera. For example, when the position of the gaze point is within the corresponding position area of the screen, it can be determined that the gaze point is located within the screen; when the position of the gaze point is not within the corresponding position area of the screen, it can be determined that the gaze point is not located within the screen.
步骤S140:当所述注视点未位于所述屏幕内时,调低所述屏幕亮度。Step S140: Decrease the brightness of the screen when the gaze point is not located in the screen.
在本申请一实施方式中,对屏幕的亮度进行控制可以包括以下一种:调高屏幕的亮度、保持屏幕的亮度、调低屏幕的亮度。其中,调低屏幕亮度可以包括熄灭屏幕亮度。In an embodiment of the present application, controlling the brightness of the screen may include one of the following: increasing the brightness of the screen, maintaining the brightness of the screen, or reducing the brightness of the screen. Wherein, reducing the brightness of the screen may include turning off the brightness of the screen.
在本实施例中,当确定注视点未位于屏幕内时,则可以调低屏幕亮度,以便确定用户未关注电子设备的屏幕所显示的内容时,可以通过调低屏幕亮度的方式降低电子设备的功耗。在一些实施方式中,电子设备可以预先设置并存储有摄像头的位置,在神经网络模型输出的信息包括眼球的注视点位置时,则可以获取该注视点位置与摄像头之间的距离,并基于该注视点位置以及注视点位置以及注视点位置与摄像头之间的距离。当确定注视点未在电子设备的屏幕内时,则调低屏幕的亮度。In this embodiment, when it is determined that the point of gaze is not located on the screen, the brightness of the screen can be reduced, so that when it is determined that the user does not pay attention to the content displayed on the screen of the electronic device, the brightness of the electronic device can be reduced by reducing the brightness of the screen. power consumption. In some implementations, the electronic device can preset and store the position of the camera. When the information output by the neural network model includes the gaze point position of the eyeball, the distance between the gaze point position and the camera can be obtained, and based on the The gaze point position and the distance between the gaze point position and the camera. When it is determined that the gaze point is not within the screen of the electronic device, the brightness of the screen is lowered.
请参阅图2,图2示出了本申请实施例提供的第一种场景示意图。如图2所示,用户握持电子设备100,此时,电子设备100处于竖屏显示状态,且用户的注视点位置不在屏幕上,此时,可以降低屏幕的亮度或者控制屏幕熄屏。Please refer to FIG. 2 . FIG. 2 shows a schematic diagram of a first scenario provided by an embodiment of the present application. As shown in FIG. 2 , the user holds the electronic device 100. At this time, the electronic device 100 is in a vertical display state, and the user's gaze point is not on the screen. At this time, the brightness of the screen can be reduced or the screen can be turned off.
请参阅图3,图3示出了本申请实施例提供的第二种场景示意图。如图3所示,用户握持电子设备100,此时,电子设备100处于横屏显示状态,且用户的注视点位置不在屏幕上,此时,可以降低屏幕的亮度或者控制屏幕熄屏。Please refer to FIG. 3 . FIG. 3 shows a schematic diagram of a second scenario provided by the embodiment of the present application. As shown in FIG. 3 , the user holds the electronic device 100. At this time, the electronic device 100 is in a landscape display state, and the user's gaze point is not on the screen. At this time, the brightness of the screen can be reduced or the screen can be turned off.
本申请一实施例提供的电子设备的屏幕亮度调节方法,通过电子设备的摄像头采集人脸图像,通过神经网络模型处理人脸图像以获取人眼在屏幕上的注视点位置,基于注视点位置以及注视点位置与摄像头的距离,确定注视点是否位于屏幕内,当注视点未位于屏幕内时,调低屏幕亮度,从而通过神经网络模型进行注视点位置的判断和检测,并根据注视点位置以及注视点位置与摄像头的距离,确定注视点未位于屏幕内时调低屏幕亮度,从而降低电子设备的功耗,以及提升智能感知交互体验。The method for adjusting the screen brightness of an electronic device provided by an embodiment of the present application collects a face image through a camera of the electronic device, processes the face image through a neural network model to obtain the fixation point position of the human eye on the screen, based on the fixation point position and The distance between the gaze point position and the camera determines whether the gaze point is within the screen. When the gaze point is not within the screen, lower the brightness of the screen to judge and detect the gaze point position through the neural network model, and according to the gaze point position and The distance between the position of the gaze point and the camera is determined to reduce the brightness of the screen when the gaze point is not located on the screen, thereby reducing the power consumption of electronic devices and improving the intelligent perception interaction experience.
请参阅图4,图4示出了本申请一实施例提供的电子设备的屏幕亮度调节方法,该方法应用于上述电子设备,下面将针对图4所示的流程进行详细的阐述,所述电子设备的屏幕亮度调节方法具体可以包括以下步骤:Please refer to FIG. 4. FIG. 4 shows a method for adjusting screen brightness of an electronic device provided by an embodiment of the present application. This method is applied to the above-mentioned electronic device. The method for adjusting the screen brightness of the device may specifically include the following steps:
步骤S210:通过所述电子设备的摄像头采集人脸图像。Step S210: collecting face images through the camera of the electronic device.
步骤S220:通过神经网络模型处理所述人脸图像以获取人眼在所述屏幕上的注视点位置。Step S220: Processing the face image through a neural network model to obtain gaze points of human eyes on the screen.
步骤S230:基于所述注视点位置以及所述注视点位置与所述摄像头的距离,确定所述注视点是否位于所述屏幕内。Step S230: Based on the gaze point position and the distance between the gaze point position and the camera, determine whether the gaze point is located within the screen.
步骤S240:当所述注视点未位于所述屏幕内时,调低所述屏幕亮度。Step S240: Decrease the brightness of the screen when the gaze point is not located in the screen.
其中,步骤S210-步骤S240的具体描述请参阅步骤S110-步骤S140,在此不再赘述。Wherein, for the specific description of step S210-step S240, please refer to step S110-step S140, which will not be repeated here.
步骤S250:当所述注视点位于所述屏幕内时,保持所述屏幕的当前亮度。Step S250: When the gaze point is located in the screen, maintain the current brightness of the screen.
其中,基于注视点位置以及注视点位置与摄像头的距离,判断到该注视点位置落在屏幕内时,即确定注视点位于屏幕内,表征用户正在注视屏幕所显示的内容或者期望查看屏幕的内容,则可以增大屏幕的亮度或保持屏幕的当前亮度,从而可以满足用户的内容查看需求。Wherein, based on the gaze point position and the distance between the gaze point position and the camera, when it is determined that the gaze point position falls within the screen, it is determined that the gaze point is located within the screen, indicating that the user is watching the content displayed on the screen or expects to view the content of the screen , the brightness of the screen can be increased or the current brightness of the screen can be maintained, so as to meet the content viewing needs of the user.
请参阅图5,图5示出了本申请实施例提供的第三种场景示意图。如图5所示,用户握持电子设备100,此时,电子设备100处于竖屏显示状态,且用户的注视点位置在屏幕上,此时,可以增大屏幕的亮度或保持屏幕的亮度。Please refer to FIG. 5 , which shows a schematic diagram of a third scenario provided by the embodiment of the present application. As shown in FIG. 5 , the user holds the electronic device 100. At this time, the electronic device 100 is in a vertical display state, and the user's gaze point is on the screen. At this time, the brightness of the screen can be increased or maintained.
请参阅图6,图6示出了本申请实施例提供的第四种场景示意图。如图6所示,用户握持电子设备100,此时,电子设备100处于横屏显示状态,且用户的注视点位置在屏幕上,此时,可以增大屏幕的亮度或保持屏幕的亮度。Please refer to FIG. 6 , which shows a schematic diagram of a fourth scenario provided by the embodiment of the present application. As shown in FIG. 6 , the user holds the electronic device 100. At this time, the electronic device 100 is in a landscape display state, and the user's gaze point is on the screen. At this time, the brightness of the screen can be increased or maintained.
本申请一实施例提供的电子设备的屏幕亮度调节方法,相较于图1所示的屏幕亮度调节方法,本实施例还在注视点位于屏幕内时,保持屏幕的当前亮度,以提升用户的使用体验。Compared with the screen brightness adjustment method shown in FIG. 1 , the screen brightness adjustment method of an electronic device provided by an embodiment of the present application maintains the current brightness of the screen when the gaze point is located on the screen, so as to improve the user's brightness. Use experience.
请参阅图7,图7示出了本申请一实施例提供的电子设备的屏幕亮度调节方法,该方法应用于上述电子设备,下面将针对图7所示的流程进行详细的阐述,所述电子设备的屏幕亮度调节方法具体可以包括以下步骤:Please refer to FIG. 7. FIG. 7 shows a method for adjusting the screen brightness of an electronic device provided by an embodiment of the present application. This method is applied to the above-mentioned electronic device. The method for adjusting the screen brightness of the device may specifically include the following steps:
步骤S310:通过所述电子设备的摄像头采集人脸图像。Step S310: collecting face images through the camera of the electronic device.
步骤S320:通过神经网络模型处理所述人脸图像以获取人眼在所述屏幕上的注视点位置。Step S320: Processing the face image through a neural network model to obtain gaze points of human eyes on the screen.
步骤S330:基于所述注视点位置以及所述注视点位置与所述摄像头的距离,确定所述注视点是否位于所述屏幕内。Step S330: Based on the gaze point position and the distance between the gaze point position and the camera, determine whether the gaze point is located within the screen.
其中,步骤S310-步骤S330的具体描述请参阅步骤S110-步骤S130,在此不再赘述。Wherein, for the specific description of step S310-step S330, please refer to step S110-step S130, which will not be repeated here.
步骤S340:当所述注视点未位于所述屏幕内时,确定所述电子设备的运行模式。Step S340: When the gaze point is not located in the screen, determine the operation mode of the electronic device.
其中,电子设备的运行模式可以包括智能息屏模式或非智能息屏模式。作为一种方式,电子设备在智能息屏模式下,可以根据用户的使用需求,自动调节屏幕的亮度大小,如提高屏幕的亮度、降低屏幕的亮度等。作为一种方式,电子设备在非智能息屏模式下,可以根据用户的使用需求,自动控制屏幕熄屏或亮屏,如保持屏幕亮屏、控制屏幕熄屏等。在本实施例中,当注视点未位于屏幕内时,则可以确定电子设备的运行模式,即,可以确定电子设备的运行模式为智能息屏模式还是为非智能息屏模式。Wherein, the operation mode of the electronic device may include a smart screen-off mode or a non-smart screen-off mode. As a method, in the smart off-screen mode, the electronic device can automatically adjust the brightness of the screen according to the needs of the user, such as increasing the brightness of the screen or reducing the brightness of the screen. As a method, in the non-intelligent off-screen mode, the electronic device can automatically control the screen to turn off or turn on the screen according to the user's needs, such as keeping the screen on or controlling the screen to turn off. In this embodiment, when the gaze point is not located on the screen, the operation mode of the electronic device can be determined, that is, it can be determined whether the operation mode of the electronic device is a smart off-screen mode or a non-smart off-screen mode.
在本申请一实施例中,当电子设备的运行模式为智能息屏模式时,如果确定注视点未位于屏幕内,则可以第一方式对屏幕的亮度进行控制。当电子设备的运行模式为非智能息屏模式时,如果确定注视点未位于屏幕内,则可以第二方式对屏幕的亮度进行控制。其中,第一方式与第二方式不同。In an embodiment of the present application, when the operating mode of the electronic device is the smart screen-off mode, if it is determined that the gaze point is not located within the screen, the brightness of the screen may be controlled in a first manner. When the operation mode of the electronic device is the non-smart screen-off mode, if it is determined that the gaze point is not located in the screen, the brightness of the screen may be controlled in a second manner. Wherein, the first manner is different from the second manner.
在一些实施方式中,电子设备可以获取其运行模式。例如,电子设备可以设置有目标开关,该目标开关用于控制电子设备在智能息屏模式和非智能息屏模式之间切换。当检测到该目标开关处于开启状态时,则可以确定电子设备的运行模式为智能息屏模式,当检测到该目标开关处于关闭状态时,则可以确定电子设备的运行模式为非智能息屏模式。其中,该目标开关可以基于作用于屏幕上的触控操作处于开启状态或关闭状态。In some implementations, an electronic device can obtain its operating mode. For example, the electronic device may be provided with a target switch, and the target switch is used to control the electronic device to switch between the smart screen-off mode and the non-smart screen-off mode. When it is detected that the target switch is in the on state, it can be determined that the operation mode of the electronic device is the smart screen off mode, and when it is detected that the target switch is in the off state, it can be determined that the operation mode of the electronic device is the non-smart screen off mode . Wherein, the target switch may be in an on state or an off state based on a touch operation acting on the screen.
在一些实施方式中,电子设备可以获取其运行模式。例如,可以获取电子设备设置的自动息屏时长,当该自动息屏时长大于或等于时长阈值时,则可以确定该电子设备的运行模式为智能息屏模式,当该自动息屏时长小于时长阈值时,则可以确定该电子设备的运行模式为非智能息屏模式。例如,时长阈值为1分钟,两分钟等。其中,自动息屏时长用于表征电子设备在亮屏情况下无操作进入熄屏的时长,因此,若电子设备设置的自动息屏时长小于时长阈值,则可以认为电子设备从亮屏进入息屏的时长较短,不会造成电子设备的功耗过大,则可以设置非智能息屏模式;若电子设备设置的自动息屏时长大于或等于时长阈值,则可以认为电子设备从亮屏进入息屏的时长较长,会造成电子设备的功耗过大,则可以设置智能息屏模式。In some implementations, an electronic device can obtain its operating mode. For example, the automatic off-screen duration set by the electronic device can be obtained. When the automatic off-screen duration is greater than or equal to the duration threshold, it can be determined that the electronic device is operating in the smart off-screen mode. When the automatic off-screen duration is less than the duration threshold , it can be determined that the electronic device is operating in a non-smart screen-off mode. For example, the duration threshold is 1 minute, 2 minutes, etc. Among them, the automatic off-screen duration is used to represent the duration of the electronic device entering the off-screen without any operation when the screen is on. Therefore, if the automatic off-screen duration set by the electronic device is less than the duration threshold, it can be considered that the electronic device enters the off-screen from the bright screen. If the duration of the electronic device is short and will not cause excessive power consumption of the electronic device, you can set a non-smart off-screen mode; If the screen lasts for a long time, it will cause excessive power consumption of electronic equipment, so you can set the smart off-screen mode.
步骤S350:根据所述运行模式调低所述屏幕亮度。Step S350: Decrease the brightness of the screen according to the operation mode.
在一些实施方式中,在确定电子设备的运行模式后,可以基于该运行模式调低屏幕亮度。例如,在确定电子设备的运行模式为智能息屏模式时,则可以以第一方式调低屏幕亮度,在确定电子设备的运行模式为非智能息屏模式时,则可以以第二方向调低屏幕亮度。In some implementations, after the operation mode of the electronic device is determined, the brightness of the screen can be adjusted down based on the operation mode. For example, when it is determined that the operating mode of the electronic device is the smart screen-off mode, the brightness of the screen can be reduced in the first way; screen brightness.
请参阅图8,图8示出了本申请的图7所示的电子设备的屏幕亮度调节方法的步骤S350的流程示意图。下面将针对图8所示的流程进行详细的阐述,所述方法具体可以包括以下步骤:Please refer to FIG. 8 , which shows a schematic flowchart of step S350 of the method for adjusting screen brightness of an electronic device shown in FIG. 7 of the present application. The process shown in Figure 8 will be described in detail below, and the method may specifically include the following steps:
步骤S351:当所述运行模式为智能息屏模式时,调低所述屏幕亮度。Step S351: When the operation mode is the smart screen-off mode, reduce the brightness of the screen.
在一些实施方式中,电子设备的运行模式为非智能息屏模式。In some implementations, the electronic device operates in a non-smart screen-off mode.
在一些实施方式中,当电子设备的运行模式为智能息屏模式时,如果确定注视点未位于屏幕内,可以认为用户未注视屏幕所显示的内容或者不期望查看屏幕的内容,则可以调低屏幕亮度,以降低电子设备的功耗,同时,仍保持电子设备以低亮度显示,以避免多次开关屏幕所带来的损耗和功耗。In some implementations, when the operating mode of the electronic device is the smart off-screen mode, if it is determined that the point of gaze is not located on the screen, it can be considered that the user is not looking at the content displayed on the screen or does not expect to view the content of the screen, then the user can lower the The brightness of the screen can reduce the power consumption of the electronic device, and at the same time, keep the display of the electronic device at a low brightness, so as to avoid the loss and power consumption caused by switching the screen multiple times.
其中,在调低屏幕亮度之后,如果在预设时长内确定注视点持续不在屏幕内时,则将屏幕熄屏,如果在预设时长内确定注视点从不在屏幕内切换至在屏幕内时,则调高屏幕亮度。Wherein, after reducing the brightness of the screen, if it is determined that the gaze point is not on the screen within the preset time period, the screen will be turned off; increase the screen brightness.
在一些实施方式中,在将屏幕的亮度调低后,可以在预设时长内持续检测注视点位置,获取注视点位置以及注视点位置和摄像头的距离,并判断该注视点是否在屏幕内,其中,该预设时长表征从当前时间到设置的息屏时间之间的时长。In some implementations, after the brightness of the screen is lowered, the position of the gaze point can be continuously detected within a preset period of time, the position of the gaze point and the distance between the position of the gaze point and the camera can be obtained, and it can be judged whether the gaze point is within the screen, Wherein, the preset duration represents the duration from the current time to the set off-screen time.
其中,当在预设时长内确定注视点持续不在屏幕内时,则可以认为用户在当前时间到达所设定的息屏时间的过程中,始终没有注视屏幕所显示的内容,则可以将屏幕熄灭,以降低电子设备的功耗。Among them, when it is determined that the point of gaze is not on the screen continuously within the preset duration, it can be considered that the user has not focused on the content displayed on the screen when the current time reaches the set off-screen time, and the screen can be turned off. , to reduce the power consumption of electronic equipment.
其中,当在预设时长内确定注视点从不在屏幕内切换至在屏幕内时,则可以认为用户在当前时间达到所设定的息屏时间之前,从没有注视屏幕所显示的内容切换为注视屏幕所显示的内容,则可以调高屏幕的亮度。Wherein, when it is determined within the preset duration that the point of gaze is switched from not being on the screen to being on the screen, it can be considered that the user switches from not watching the content displayed on the screen to watching the screen before the current time reaches the set off-screen time. The content displayed on the screen can be adjusted to increase the brightness of the screen.
步骤S352:当所述运行模式为非智能息屏模式时,将所述屏幕熄灭。Step S352: When the operation mode is the non-smart off-screen mode, turn off the screen.
在一些实施方式中,当电子设备的运行模式为非智能息屏模式时,如果确定注视点未位于屏幕内,可以认为用户未注视屏幕所显示的内容或者不期望查看屏幕的内容,则可以直接将屏幕熄灭,以降低电子设备的功耗。In some implementations, when the operating mode of the electronic device is the non-smart off-screen mode, if it is determined that the point of gaze is not located on the screen, it can be considered that the user is not looking at the content displayed on the screen or does not expect to view the content of the screen, then you can directly Turn off the screen to reduce the power consumption of electronic equipment.
本申请一实施例提供的电子设备的屏幕亮度调节方法,相较于图1所示的电子设备的屏幕的亮度调节方法,本实施例还确定电子设备的运行模式,并根据该运行模式调低电子设备的屏幕亮度,从而提升屏幕亮度调节的多样性和合理性。The method for adjusting the screen brightness of an electronic device provided by an embodiment of the present application, compared with the method for adjusting the screen brightness of an electronic device shown in FIG. 1 , this embodiment also determines the operating mode of the electronic device, and adjusts the The brightness of the screen of the electronic device is improved, thereby improving the diversity and rationality of screen brightness adjustment.
请参阅图9,图9示出了本申请一实施例提供的电子设备的屏幕亮度调节方法,该方法应用于上述电子设备,在本实施例中,注视点位置包括注视点在目标坐标系下的坐标信息,目标坐标系以摄像头的中心位置为原点建立,下面将针对图9所示的流程进行详细的阐述,所述电子设备的屏幕亮度调节方法具体可以包括以下步骤:Please refer to FIG. 9. FIG. 9 shows a method for adjusting the screen brightness of an electronic device provided by an embodiment of the present application. This method is applied to the above-mentioned electronic device. In this embodiment, the gaze point position includes the gaze point in the target coordinate system The coordinate information of the target coordinate system is established with the center position of the camera as the origin. The process shown in FIG. 9 will be described in detail below. The method for adjusting the screen brightness of the electronic device may specifically include the following steps:
步骤S410:通过所述电子设备的摄像头采集人脸图像。Step S410: collecting face images through the camera of the electronic device.
步骤S420:通过神经网络模型处理所述人脸图像以获取人眼在所述屏幕上的注视点位置。Step S420: Processing the face image through a neural network model to obtain gaze points of human eyes on the screen.
其中,步骤S410-步骤S420的具体描述请参阅步骤S110-步骤S120,在此不再赘述。Wherein, for the specific description of step S410-step S420, please refer to step S110-step S120, which will not be repeated here.
步骤S430:基于所述坐标信息,获取所述注视点位置与所述摄像头的距离。Step S430: Obtain the distance between the gaze point position and the camera based on the coordinate information.
作为一种可实施的方式,电子设备可以预先以摄像头的中心为原点建立坐标系,作为目标坐标系。例 如,电子设备可以预先以摄像头的中心为原点、以电子设备的纵轴为X轴、以电子设备的横轴为Y轴建立坐标系,作为目标坐标系。又例如,电子设备可以预先以摄像头的中心为原点、以电子设备的横轴为X轴、以电子设备的纵轴为Y轴建立坐标系,作为目标坐标系。As an implementable manner, the electronic device may preliminarily establish a coordinate system with the center of the camera as the origin as the target coordinate system. For example, the electronic device may pre-establish a coordinate system with the center of the camera as the origin, with the vertical axis of the electronic device as the X axis, and with the horizontal axis of the electronic device as the Y axis, as the target coordinate system. For another example, the electronic device may pre-establish a coordinate system with the center of the camera as the origin, with the horizontal axis of the electronic device as the X axis, and with the vertical axis of the electronic device as the Y axis, as the target coordinate system.
在一些实施方式中,神经网络模型输出的注视点位置可以为注视点在目标坐标系下的坐标信息,因此,在获得神经网络模型输出的注视点位置时,则可以获取该注视点位置在该目标坐标系下的坐标信息。In some implementations, the gaze point position output by the neural network model can be the coordinate information of the gaze point in the target coordinate system. Therefore, when obtaining the gaze point position output by the neural network model, the gaze point position can be obtained at the Coordinate information in the target coordinate system.
其中,目标坐标系在建立完成后,可以确定电子设备的屏幕在目标坐标系下的坐标范围以及确定屏幕上的各个位置在目标坐标系下的坐标信息。因此,在本实施例中,在获得注视点位置在目标坐标系下的坐标信息后,可以将注视点位置在目标坐标系下的坐标信息与坐标范围进行比较,以判断该注视点位置在目标坐标系下的坐标信息是否在坐标范围内。其中,当判断到该注视点位置在目标坐标系下的坐标信息在坐标范围内时,则可以确定该注视点位置在屏幕上,则可以保持屏幕的亮度或者提高屏幕的亮度。其中,当判断到该注视点位置在目标坐标系下的坐标信息不在坐标范围内时,则可以确定该注视点位置不在屏幕上,则可以降低屏幕的亮度或者控制屏幕熄灭。Wherein, after the target coordinate system is established, the coordinate range of the screen of the electronic device under the target coordinate system may be determined and the coordinate information of each position on the screen under the target coordinate system may be determined. Therefore, in this embodiment, after obtaining the coordinate information of the gaze point position in the target coordinate system, the coordinate information of the gaze point position in the target coordinate system can be compared with the coordinate range to determine that the gaze point position is within the target coordinate system. Whether the coordinate information in the coordinate system is within the coordinate range. Wherein, when it is determined that the coordinate information of the gaze point position in the target coordinate system is within the coordinate range, it can be determined that the gaze point position is on the screen, and the brightness of the screen can be maintained or increased. Wherein, when it is determined that the coordinate information of the gaze point position in the target coordinate system is not within the coordinate range, it can be determined that the gaze point position is not on the screen, and then the brightness of the screen can be reduced or the screen can be turned off.
在一些实施方式中,由于目标坐标系是以摄像头的中心为原点建立的,所以摄像头的坐标信息可以默认为(0,0),因此,在获得注视点位置对应的坐标信息后,可以基于该坐标信息确定注视点位置与摄像头的距离。In some implementations, since the target coordinate system is established with the center of the camera as the origin, the coordinate information of the camera can be (0, 0) by default. Therefore, after obtaining the coordinate information corresponding to the gaze point position, it can be based on this The coordinate information determines the distance of the gaze point position from the camera.
步骤S440:基于所述注视点位置与所述摄像头的距离,确定所述注视点是否位于所述屏幕内。Step S440: Determine whether the gaze point is located within the screen based on the distance between the gaze point position and the camera.
在一些实施方式中,在获得注视点位置与摄像头的距离后,则可以基于该注视点位置与摄像头的距离,确定注视点是否位于屏幕内。In some implementation manners, after obtaining the distance between the gaze point position and the camera, it may be determined whether the gaze point is within the screen based on the distance between the gaze point position and the camera.
步骤S450:当所述注视点未位于所述屏幕内时,调低所述屏幕亮度。Step S450: Decrease the brightness of the screen when the gaze point is not located in the screen.
其中,步骤S450的具体描述请参阅步骤S140,在此不再赘述。Wherein, for the specific description of step S450, please refer to step S140, which will not be repeated here.
本申请一实施例提供的电子设备的屏幕亮度调节方法,相较于图1所示的电子设备的屏幕亮度的调节方法,本实施例中的注视点位置包括以摄像头的中心位置为原点建立的目标坐标系中的坐标信息,基于坐标信息,获取注视点位置与摄像头的距离,并基于注视点位置与摄像头的距离,确定注视点是否位于屏幕内,从而提升注视点位置与屏幕关系确定的准确性。In the method for adjusting the screen brightness of an electronic device provided by an embodiment of the present application, compared with the method for adjusting the screen brightness of an electronic device shown in FIG. The coordinate information in the target coordinate system, based on the coordinate information, obtains the distance between the gaze point position and the camera, and based on the distance between the gaze point position and the camera, determines whether the gaze point is within the screen, thereby improving the accuracy of determining the relationship between the gaze point position and the screen sex.
请参阅图10,图10示出了本申请一实施例提供的电子设备的屏幕亮度调节方法,该方法应用于上述电子设备,下面将针对图10所示的流程进行详细的阐述,所述电子设备的屏幕亮度调节方法具体可以包括以下步骤:Please refer to FIG. 10. FIG. 10 shows a method for adjusting screen brightness of an electronic device provided by an embodiment of the present application. This method is applied to the above-mentioned electronic device. The method for adjusting the screen brightness of the device may specifically include the following steps:
步骤S510:通过所述电子设备的摄像头采集人脸图像。Step S510: collecting face images through the camera of the electronic device.
步骤S520:通过神经网络模型处理所述人脸图像以获取人眼在所述屏幕上的注视点位置。Step S520: Processing the face image through a neural network model to obtain gaze points of human eyes on the screen.
其中,步骤S510-步骤S520的具体描述请参阅步骤S110-步骤S120,在此不再赘述。Wherein, for the specific description of step S510-step S520, please refer to step S110-step S120, which will not be repeated here.
步骤S530:基于所述注视点位置和所述摄像头的位置,获取所述注视点位置与所述摄像头的位置的相对距离和相对方向。Step S530: Based on the gaze point position and the camera position, obtain the relative distance and relative direction between the gaze point position and the camera position.
在一些实施方式中,电子设备可以预先设置并存储有摄像头的位置,在神经网络模型输出的信息包括眼球的注视点位置时,则可以基于该注视点位置和摄像头的位置,获取该注视点位置与摄像头的位置的相对距离和相对方向。作为一种方式,电子设备可以预先设置并存储有摄像头的中心的坐标信息,在神经网络模型输出的信息包括眼球的注视点位置的坐标信息时,则可以通过换算单个屏幕像素代表的真实物理距离,来计算该注视点位置到摄像头的中心的距离,作为注视点位置与摄像头的位置的相对距离。作为一种方式,电子设备可以预先设置并存储有摄像头的中心的坐标信息,在神经网络模型输出的信息包括眼球的注视点位置的坐标信息时,可以根据摄像头的中心的坐标信息和注视点位置的坐标信息,确定该注视点位置与摄像头的中心的方向,作为注视点位置与摄像头的位置的相对方向。In some implementations, the electronic device can preset and store the position of the camera. When the information output by the neural network model includes the position of the gaze point of the eyeball, the position of the gaze point can be obtained based on the position of the gaze point and the position of the camera. The relative distance and relative direction from the position of the camera. As a way, the electronic device can pre-set and store the coordinate information of the center of the camera. When the information output by the neural network model includes the coordinate information of the gaze point position of the eyeball, the real physical distance represented by a single screen pixel can be converted , to calculate the distance from the gaze point position to the center of the camera as the relative distance between the gaze point position and the camera position. As a method, the electronic device can be preset and stored with the coordinate information of the center of the camera. When the information output by the neural network model includes the coordinate information of the gaze point position of the eyeball, it can be based on the coordinate information of the camera center and the gaze point position. The coordinate information of the gaze point position and the direction of the center of the camera are determined as the relative direction between the gaze point position and the position of the camera.
步骤S540:基于所述相对距离和所述相对方向,确定所述注视点是否位于所述屏幕内。Step S540: Based on the relative distance and the relative direction, determine whether the gaze point is located within the screen.
其中,在获得注视点位置与摄像头的位置的相对距离和相对方向后,则可以基于该相对距离和相对方向,确定注视点是否位于屏幕内。Wherein, after obtaining the relative distance and relative direction between the position of the gaze point and the position of the camera, it may be determined based on the relative distance and relative direction whether the gaze point is located within the screen.
例如,摄像头设置于屏幕的顶部,当注视点位置相对摄像头的位置的相对方向为从屏幕顶部到屏幕底部的方向,且相对距离为L1时。如果电子设备的屏幕的长度为L2,且L2>L1时,则可以确定注视点位于屏幕内。如果电子设备的屏幕的长度为L3,且L1>L3时,则可以确定注视点未位于屏幕内。For example, the camera is set at the top of the screen, when the relative direction of the gaze point relative to the position of the camera is from the top of the screen to the bottom of the screen, and the relative distance is L1. If the length of the screen of the electronic device is L2, and L2>L1, it can be determined that the gaze point is located within the screen. If the length of the screen of the electronic device is L3, and L1>L3, it can be determined that the gaze point is not located within the screen.
又例如,摄像头设置于屏幕的顶部,当注视点位置相对摄像头的位置的相对方向为从屏幕底部到屏幕顶部的方向,则可以确定该注视点未位于屏幕内。For another example, the camera is set at the top of the screen, and when the relative direction of the position of the gaze point relative to the position of the camera is from the bottom of the screen to the top of the screen, it can be determined that the gaze point is not located in the screen.
步骤S550:当所述注视点未位于所述屏幕内时,调低所述屏幕亮度。Step S550: Decrease the brightness of the screen when the gaze point is not located in the screen.
其中,步骤S550的具体描述请参阅步骤S140,在此不再赘述。Wherein, for the specific description of step S550, please refer to step S140, which will not be repeated here.
本申请一实施例提供的电子设备的屏幕亮度调节方法,相较于图1所示的电子设备的屏幕亮度调节方法,本实施例还基于注视点位置和摄像头的位置,获取注视点位置与摄像头的位置的相对距离和相对方向, 基于相对距离和相对方向,确定注视点是否在屏幕内,从而提升注视点位置与屏幕关系确定的准确性。Compared with the method for adjusting the screen brightness of an electronic device shown in FIG. 1 , the method for adjusting the screen brightness of an electronic device provided by an embodiment of the present application is also based on the position of the point of gaze and the position of the camera to obtain the position of the point of gaze and the position of the camera. The relative distance and relative direction of the location, based on the relative distance and relative direction, determine whether the gaze point is within the screen, thereby improving the accuracy of determining the relationship between the gaze point position and the screen.
请参阅图11,图11示出了本申请一实施例提供的电子设备的屏幕亮度调节方法,该方法应用于上述电子设备,下面将针对图11所示的流程进行详细的阐述,所述电子设备的屏幕亮度调节方法具体可以包括以下步骤:Please refer to FIG. 11. FIG. 11 shows a method for adjusting the screen brightness of an electronic device provided by an embodiment of the present application. This method is applied to the above-mentioned electronic device. The process shown in FIG. The method for adjusting the screen brightness of the device may specifically include the following steps:
步骤S610:通过所述电子设备的摄像头采集人脸图像。Step S610: collecting face images through the camera of the electronic device.
其中,步骤S610的具体描述请参阅步骤S110,在此不再赘述。Wherein, for the specific description of step S610, please refer to step S110, which will not be repeated here.
步骤S620:当所述摄像头采集的人脸图像为多个时,将多个人脸图像中面积最大的人脸图像作为目标人脸图像。Step S620: When there are multiple facial images collected by the camera, the facial image with the largest area among the multiple facial images is used as the target facial image.
在一些实施方式中,摄像头采集的图像可能包括人脸图像,也可能不包括人脸图像。因此,在本实施例中,该神经网络模型包括人脸检测模型和注视点检测模型,以对该摄像头采集的图像是否包括人脸图像进行检测。作为一种方式,人脸检测模型的输入可以为摄像头采集的图像(以下称待检测图像),人脸检测模型的输出可以用于作为注视点检测模型的输入,注视点检测模型可以基于输入输出注视点位置。In some embodiments, the image collected by the camera may or may not include a face image. Therefore, in this embodiment, the neural network model includes a face detection model and a gaze point detection model to detect whether the image collected by the camera includes a face image. As a way, the input of the face detection model can be the image collected by the camera (hereinafter referred to as the image to be detected), the output of the face detection model can be used as the input of the gaze point detection model, and the gaze point detection model can be based on the input and output Gaze point location.
在一些实施方式中,在获得待检测图像后,可以将该待检测图像输入人脸检测模型,以通过该人脸检测模型检测该待检测图像中是否包括人脸图像,并获得该人脸检测模型输出的信息。其中,该人脸检测模型输出的信息可以包括以下一种:包括人脸图像、不包括人脸图像。作为一种方式,当该人脸检测模型输出的信息不包括人脸图像时,则可以不再调用注视点检测模型,并直接降低电子设备的屏幕的亮度或者控制屏幕熄灭。作为一种方式,当该人脸检测模型输出的信息包括人脸图像时,则可以调用注视点检测模型,并将人脸图像输入该注视点检测模型,以通过注视点检测模型进行注视点位置检测。In some embodiments, after the image to be detected is obtained, the image to be detected can be input into the face detection model, so as to detect whether the image to be detected includes a face image through the face detection model, and obtain the face detection model. information output by the model. Wherein, the information output by the face detection model may include one of the following: including a face image and not including a face image. As a way, when the information output by the face detection model does not include a face image, the gaze point detection model may not be invoked, and the brightness of the screen of the electronic device may be directly reduced or the screen may be turned off. As a way, when the information output by the face detection model includes a face image, the gaze point detection model can be called, and the face image can be input into the gaze point detection model to determine the gaze point position through the gaze point detection model. detection.
在一些实施方式中,人脸检测模型输出的信息中心包括人脸图像可以包括以下一种:包括人脸图像且人脸图像中包括眼睛图像;包括人脸图像且人脸图像中不包括眼睛图像。其中,当摄像头采集到的待检测图像为用户的正脸图像时,则人脸检测模型基于待检测图像输入的信息中可以包括人脸图像且人脸图像中包括眼睛图像。当摄像头采集到的待检测图像为用户的侧脸图像时,则人脸检测模型基于待检测图像输入的信息中可以包括人脸图像且人脸图像中不包括眼睛图像。作为一种方式,当该人脸检测模型输出的信息包括人脸图像且人脸图像中不包括眼睛图像时,则可以不再调用注视点检测模型,并直接降低电子设备的屏幕的亮度或者控制屏幕熄灭。作为一种方式,当该人脸检测模型输出的信息包括人脸图像且人脸图像中包括眼睛图像时,则可以调用注视点检测模型,并将人脸图像输入该注视点检测模型,以通过注视点检测模型进行注视点位置检测。In some implementations, the information center output by the face detection model includes a face image may include one of the following: including a face image and including an eye image in the face image; including a face image and not including an eye image in the face image . Wherein, when the image to be detected collected by the camera is the front face image of the user, the information input by the face detection model based on the image to be detected may include a face image and the face image may include an eye image. When the image to be detected collected by the camera is a side face image of the user, the information input by the face detection model based on the image to be detected may include a face image and the face image does not include an eye image. As a way, when the information output by the face detection model includes a face image and the face image does not include an eye image, the gaze point detection model can no longer be called, and the brightness of the screen of the electronic device can be directly reduced or the control The screen goes off. As a way, when the information output by the face detection model includes a face image and the face image includes an eye image, the gaze point detection model can be called, and the face image can be input into the gaze point detection model to pass The gaze detection model performs gaze location detection.
在本申请一实施例中,在获得待检测图像后,可以将该待检测图像输入人脸检测模型,人脸检测模型可以对待检测图像进行检测,检测出该待检测图像中的人脸框的位置和多个关键点的位置(如两个眼睛中心的位置、鼻子中心的位置以及两个嘴角的位置等),然后从待检测图像中抠取人脸图像和眼睛图像并生成表示人脸位置的掩膜。In an embodiment of the present application, after the image to be detected is obtained, the image to be detected can be input into the face detection model, and the face detection model can detect the image to be detected, and detect the face frame in the image to be detected position and the position of multiple key points (such as the position of the center of the two eyes, the position of the center of the nose, and the position of the two corners of the mouth, etc.), and then extract the face image and eye image from the image to be detected and generate a representation of the face position mask.
在本实施例中,当确定该人脸检测模型输出的信息包括人脸图像时,则可以将人脸图像输入注视点检测模型,获得注视点检测模型输出的信息。其中,该注视点检测模型输出的信息可以包括以下一种:检测到注视点位置、没有检测到注视点位置。作为一种方式,当该人脸检测模型输出的人脸图像为侧脸图像(不包括眼睛图像)时,则注视点检测模型基于该人脸图像输出的信息为没有检测到注视点位置,则可以直接降低电子设备的屏幕的亮度或者控制屏幕熄灭。作为一种方式,当该人脸检测模型输出的人脸图像为正脸图像(包括眼睛图像)时,则可以基于该注视点位置对屏幕的亮度进行控制。In this embodiment, when it is determined that the information output by the face detection model includes a face image, the face image may be input into the gaze point detection model to obtain information output by the gaze point detection model. Wherein, the information output by the gaze point detection model may include one of the following: a gaze point position is detected, and a gaze point position is not detected. As a way, when the face image output by the face detection model is a side face image (not including the eye image), then the gaze point detection model is based on the information output by the face image for not detecting the gaze point position, then It is possible to directly reduce the brightness of the screen of the electronic device or control the screen to turn off. As a way, when the face image output by the face detection model is a frontal face image (including an eye image), the brightness of the screen can be controlled based on the gaze point position.
在一些实施方式中,在获得人脸检测模型输出的人脸图像后,可以判断该人脸图像是否满足预设人脸条件。当判断到该人脸图像满足预设人脸条件时,则可以将人脸图像输入注视点检测模型;当判断到该人脸图像不满足预设人脸条件时,则可以不将人脸图像输入注视点检测模型,并直接降低电子设备的屏幕的亮度或者控制屏幕熄灭。作为一种方式,预设人脸条件可以为完整的人脸,即,当人脸图像中包括完整的人脸时,则可以确定该人脸图像满足预设人脸条件,当人脸图像中不包括完整的人脸时,则可以确定该人脸图像不满足预设人脸条件。In some implementations, after obtaining the face image output by the face detection model, it may be determined whether the face image satisfies a preset face condition. When judging that the face image satisfies the preset face condition, the face image can be input into the gaze point detection model; when it is judged that the face image does not meet the preset face condition, the face image can not be Input the gaze point detection model, and directly reduce the brightness of the screen of the electronic device or control the screen to turn off. As a method, the preset face condition can be a complete face, that is, when the face image includes a complete face, it can be determined that the face image meets the preset face condition, and when the face image contains If the complete face is not included, it can be determined that the face image does not satisfy the preset face condition.
在一些情况下,摄像头在进行图像采集的过程中可能同时采集到多个人脸,即,所获取的待检测图像中可能也包括多个人脸,因此,神经网络模型基于待检测图像输出的信息中可能包括多个人脸图像。In some cases, the camera may capture multiple faces at the same time during the image collection process, that is, the acquired image to be detected may also include multiple faces. Therefore, the neural network model is based on the output information of the image to be detected. May include multiple face images.
在本申请一实施例中,当神经网络模型输出的信息中仅包括一个人脸图像时,则可以直接将该一个人脸图像输入注视点检测模型。In an embodiment of the present application, when the information output by the neural network model includes only one face image, the one face image may be directly input into the gaze point detection model.
在本申请一实施例中,当神经网络模型输出的信息中包括多个人脸图像时,则可以从多个人脸图像中确定电子设备对应的用户的人脸图像作为目标人脸图像,以及将所确定的目标人脸图像输入神经网络模型。作为一种方式,当摄像头采集到的人脸图像的数量为多个时,则可以从多个人脸图像中选择面积最大的人脸图像作为目标人脸图像。作为一种方式,当摄像头采集到的人脸图像的数量为多个时,则可以从多个人脸图像中选择最靠前的人脸图像作为目标人脸图像。作为一种方式,当摄像头采集到的人脸图像的数 量为多个时,则可以从多个人脸图像中选择与预设人脸图像匹配的人脸图像作为目标人脸图像。In an embodiment of the present application, when the information output by the neural network model includes multiple face images, the face image of the user corresponding to the electronic device may be determined from the multiple face images as the target face image, and the The determined target face image is input into the neural network model. As a manner, when there are multiple face images collected by the camera, the face image with the largest area may be selected from the multiple face images as the target face image. As a manner, when there are multiple face images collected by the camera, the frontmost face image may be selected from the multiple face images as the target face image. As a method, when the number of face images collected by the camera is multiple, the face image matching the preset face image can be selected from the multiple face images as the target face image.
步骤S630:通过所述神经网络模型处理所述目标人脸图像以获取人眼在所述屏幕上的注视点位置。Step S630: Process the target face image through the neural network model to obtain the gaze point of human eyes on the screen.
在本实施例中,当确定该从多个人脸图像中选取目标人脸图像时,则通过神经网络模型处理目标人脸图像以获取人眼在屏幕上的注视点位置。In this embodiment, when it is determined that the target face image should be selected from the plurality of face images, the target face image is processed through the neural network model to obtain the fixation point position of the human eye on the screen.
步骤S640:基于所述注视点位置以及所述注视点位置与所述摄像头的距离,确定所述注视点是否位于所述屏幕内。Step S640: Based on the gaze point position and the distance between the gaze point position and the camera, determine whether the gaze point is located within the screen.
步骤S650:当所述注视点未位于所述屏幕内时,调低所述屏幕亮度。Step S650: Decrease the brightness of the screen when the gaze point is not located in the screen.
其中,步骤S640-步骤S650的具体描述请参阅步骤S130-步骤S140,在此不再赘述。Wherein, for the specific description of step S640-step S650, please refer to step S130-step S140, which will not be repeated here.
本申请一实施例提供的电子设备的屏幕亮度调节方法,相较于图1所示的电子设备的屏幕亮度调节方法,本实施例还在摄像头采集的人脸图像为多个时,将多个人脸图像中面积最大的人脸图像作为目标人脸图像,通过神经网络模型处理目标人脸图像以获取人脸在屏幕上的注视点位置,以提升人脸注视点确定的准确性。The method for adjusting the screen brightness of an electronic device provided by an embodiment of the present application is compared with the method for adjusting the screen brightness of an electronic device shown in FIG. The face image with the largest area in the face image is used as the target face image, and the target face image is processed through the neural network model to obtain the position of the fixation point of the face on the screen, so as to improve the accuracy of determining the fixation point of the face.
请参阅图12,图12示出了本申请一实施例提供的电子设备的屏幕亮度调节方法,该方法应用于上述电子设备,下面将针对图12所示的流程进行详细的阐述,所述电子设备的屏幕亮度调节方法具体可以包括以下步骤:Please refer to FIG. 12. FIG. 12 shows a method for adjusting screen brightness of an electronic device provided by an embodiment of the present application. This method is applied to the above-mentioned electronic device. The process shown in FIG. The method for adjusting the screen brightness of the device may specifically include the following steps:
步骤S710:获取训练数据集,其中,所述训练数据集包括多个训练图像以及与所述多个训练图像各自对应的注视点位置。Step S710: Obtain a training data set, wherein the training data set includes a plurality of training images and gaze point positions corresponding to the plurality of training images.
在本实施例中,可以获取训练数据集。该训练数据集包括多个训练图像和多个注视点位置,其中,多个训练图像和多个注视点位置一一对应,即,多个训练图像中的每个训练图像均对应多个注视点位置中的一个注视点位置。In this embodiment, a training data set can be obtained. The training data set includes a plurality of training images and a plurality of fixation point positions, wherein a plurality of training images and a plurality of fixation point positions correspond one-to-one, that is, each training image in the plurality of training images corresponds to a plurality of fixation points A fixation position in position.
在一些实施方式中,多个训练图像可以由电子设备的摄像头拍摄获得,可以由电子设备的本地存储获得,可以由电子设备从其他设备获得,也可以由电子设备从服务器获得等,在此不做限定。In some implementations, the multiple training images can be obtained by the camera of the electronic device, can be obtained by the local storage of the electronic device, can be obtained by the electronic device from other devices, or can be obtained by the electronic device from a server. Do limited.
其中,多个注视点位置可以由用户在训练图像上手动进行标注,也可以由电子设备在训练图像上自动进行标注,在此不做限定。Wherein, the multiple gaze point positions may be manually marked on the training image by the user, or automatically marked on the training image by the electronic device, which is not limited here.
作为一种方式,可以在训练图像中加入用于标识注视点位置的标注框形成带有标注框的标注图像,也可以以xml格式文件的形式标注训练图像,在此不做限定。As a method, a label frame for identifying the position of the gaze point can be added to the training image to form a label image with a label frame, or the training image can be marked in the form of an xml format file, which is not limited here.
步骤S720:基于所述多个训练图像和与所述多个训练图像各自对应的注视点位置,对预设模型进行训练获得神经网络模型。Step S720: Based on the plurality of training images and gaze point positions corresponding to the plurality of training images, train a preset model to obtain a neural network model.
在本实施例中,在获取训练数据集后,可以基于该训练数据集,对预设模型就行训练获得注视点检测模型。作为一种方式,在获取多个训练图像和与多个训练图像各自对应的注视点位置后,可以基于该多个训练图像与多个训练图像各自对应的注视点位置,对预设模型进行训练获得注视点检测模型。例如,在获取一一对应的多个训练图像和多个注视点位置后,可以将多个训练图像作为输入参数,将多个注视点位置作为输出参数,对预设模型进行训练获得神经网络模型。In this embodiment, after the training data set is acquired, the preset model can be trained to obtain the gaze point detection model based on the training data set. As a method, after acquiring multiple training images and respective gaze point positions corresponding to the multiple training images, the preset model can be trained based on the multiple training images and the respective gaze point positions corresponding to the multiple training images Get the gaze detection model. For example, after obtaining multiple training images and multiple gaze point positions in one-to-one correspondence, multiple training images can be used as input parameters, and multiple gaze point positions can be used as output parameters to train the preset model to obtain a neural network model .
另外,在训练获得神经网络模型后,还可以对该神经网络模型的准确性进行验证,并判断该神经网络模型基于输入数据的输出信息是否满足预设要求,当该神经网络模型基于输入数据的输出信息不满足预设要求时,可以重新采集训练数据集对预设模型进行训练,或者再获取多个训练数据集对已训练的神经网络模型进行校正,使得误差尽量接近0。作为一种方式,该预设模型可以为卷积神经网络。In addition, after training the neural network model, you can also verify the accuracy of the neural network model, and judge whether the output information of the neural network model based on the input data meets the preset requirements. When the neural network model based on the input data When the output information does not meet the preset requirements, you can re-collect the training data set to train the preset model, or obtain multiple training data sets to correct the trained neural network model, so that the error is as close to 0 as possible. As a manner, the preset model may be a convolutional neural network.
步骤S730:通过所述电子设备的摄像头采集人脸图像。Step S730: collecting face images through the camera of the electronic device.
步骤S740:通过神经网络模型处理所述人脸图像以获取人眼在所述屏幕上的注视点位置。Step S740: Processing the face image through a neural network model to obtain gaze points of human eyes on the screen.
步骤S750:基于所述注视点位置以及所述注视点位置与所述摄像头的距离,确定所述注视点是否位于所述屏幕内。Step S750: Determine whether the gaze point is located within the screen based on the gaze point position and the distance between the gaze point position and the camera.
步骤S760:当所述注视点未位于所述屏幕内时,调低所述屏幕亮度。Step S760: Decrease the brightness of the screen when the gaze point is not located in the screen.
其中,步骤S730-步骤S760的具体描述请参阅步骤S110-步骤S140,在此不再赘述。Wherein, for the specific description of step S730-step S760, please refer to step S110-step S140, which will not be repeated here.
本申请一实施例提供的电子设备的屏幕亮度调节方法,相较于图1所示的电子设备的屏幕亮度调节方法,本实施例还获取训练数据集,基于训练数据集中的多个训练图像和多个训练图像各自对应的注视点位置,对预设模型进行训练获得神经网络模型,以提升模型识别的准确性。Compared with the method for adjusting the screen brightness of an electronic device shown in FIG. 1 , the method for adjusting the screen brightness of an electronic device provided by an embodiment of the present application also acquires a training data set based on multiple training images and The gaze point positions corresponding to multiple training images are used to train the preset model to obtain a neural network model to improve the accuracy of model recognition.
请参阅图13,图13示出了本申请是死了提供的电子设备的屏幕亮度调节装置。该电子设备的屏幕亮度调节装置200包括:人脸图像采集模块210、注视点位置获取模块220、注视点确定模块230以及屏幕亮度调低模块240,其中:Please refer to FIG. 13 . FIG. 13 shows a device for adjusting screen brightness of an electronic device provided by the present application. The screen brightness adjustment device 200 of the electronic equipment includes: a human face image acquisition module 210, a fixation point position acquisition module 220, a fixation point determination module 230 and a screen brightness reduction module 240, wherein:
人脸图像采集模块210,用于通过所述电子设备的摄像头采集人脸图像。The facial image acquisition module 210 is configured to acquire facial images through the camera of the electronic device.
注视点位置获取模块220,用于通过神经网络模型处理所述人脸图像以获取人眼在所述屏幕上的注视点位置。The gaze point position obtaining module 220 is configured to process the face image through a neural network model to obtain the gaze point position of human eyes on the screen.
进一步地,所述注视点位置获取模块220包括:目标人脸图像确定子模块和注视点位置获取子模块,其中:Further, the gaze point position acquisition module 220 includes: a target face image determination submodule and a gaze point position acquisition submodule, wherein:
目标人脸图像确定子模块,用于当所述摄像头采集的人脸图像为多个时,将多个人脸图像中面积最大的人脸图像作为目标人脸图像。The target human face image determination sub-module is used for taking the human face image with the largest area among the multiple human face images as the target human face image when there are multiple human face images collected by the camera.
注视点位置获取子模块,用于通过所述神经网络模型处理所述目标人脸图像以获取人眼在所述屏幕上的注视点位置。The gaze point position obtaining submodule is used to process the target face image through the neural network model to obtain the gaze point position of human eyes on the screen.
注视点确定模块230,用于基于所述注视点位置以及所述注视点位置与所述摄像头的距离,确定所述注视点是否位于所述屏幕内。The gaze point determination module 230 is configured to determine whether the gaze point is located within the screen based on the gaze point position and the distance between the gaze point position and the camera.
进一步地,所述注视点位置包括所述注视点在目标坐标系下的坐标信息,所述目标坐标系以所述摄像头的中心位置为原点建立,所述注视点确定模块230包括:距离获取子模块和第一注视点确定子模块,其中:Further, the gaze point position includes coordinate information of the gaze point in a target coordinate system, and the target coordinate system is established with the center position of the camera as the origin, and the gaze point determination module 230 includes: a distance acquisition sub- module and the first fixation point determination submodule, wherein:
距离获取子模块,用于基于所述坐标信息,获取所述注视点位置与所述摄像头的距离。The distance acquisition submodule is configured to acquire the distance between the gaze point position and the camera based on the coordinate information.
第一注视点确定子模块,用于基于所述注视点位置与所述摄像头的距离,确定所述注视点是否位于所述屏幕内。The first gaze point determining submodule is configured to determine whether the gaze point is located within the screen based on the distance between the gaze point position and the camera.
进一步地,所述注视点确定模块230包括:相对关系获取子模块和第二注视点确定子模块,其中:Further, the gaze point determination module 230 includes: a relative relationship acquisition submodule and a second gaze point determination submodule, wherein:
相对关系获取子模块,用于基于所述注视点位置和所述摄像头的位置,获取所述注视点位置与所述摄像头的位置的相对距离和相对方向。The relative relationship acquisition submodule is configured to acquire the relative distance and direction between the gaze point position and the camera position based on the gaze point position and the camera position.
第二注视点确定子模块,用于基于所述相对距离和所述相对方向,确定所述注视点是否位于所述屏幕内。The second gaze point determination submodule is configured to determine whether the gaze point is located within the screen based on the relative distance and the relative direction.
屏幕亮度调低模块240,用于当所述注视点未位于所述屏幕内时,调低所述屏幕亮度。The screen brightness reduction module 240 is configured to reduce the screen brightness when the gaze point is not located in the screen.
进一步地,所述屏幕亮度调低模块240包括:运行模式确定子模块和屏幕亮度调低子模块,其中:Further, the screen brightness reduction module 240 includes: an operating mode determination sub-module and a screen brightness reduction sub-module, wherein:
运行模式确定子模块,用于确定所述电子设备的运行模式。The operation mode determination submodule is used to determine the operation mode of the electronic device.
屏幕亮度调低子模块,用于根据所述运行模式调低所述屏幕亮度。The screen brightness reduction sub-module is used for reducing the screen brightness according to the operation mode.
进一步地,所述屏幕亮度调低子模块包括:屏幕亮度调低单元和屏幕熄灭单元,其中:Further, the screen brightness reduction sub-module includes: a screen brightness reduction unit and a screen extinguishing unit, wherein:
屏幕亮度调低单元,用于当所述运行模式为智能息屏模式时,调低所述屏幕亮度。The screen brightness reduction unit is configured to reduce the screen brightness when the operation mode is the smart off-screen mode.
屏幕熄灭单元,用于当所述运行模式为非智能息屏模式时,将所述屏幕熄灭。A screen extinguishing unit, configured to extinguish the screen when the operating mode is a non-intelligent off-screen mode.
进一步地,所述屏幕亮度调低子模块包括:自动息屏时长获取单元、智能息屏模式确定单元以及非智能息屏模式确定单元,其中:Further, the screen brightness reduction sub-module includes: an automatic off-screen duration acquisition unit, an intelligent off-screen mode determination unit, and a non-intelligent off-screen mode determination unit, wherein:
自动息屏时长获取单元,用于获取所述电子设备设置的自动息屏时长。The automatic off-screen duration acquisition unit is configured to acquire the automatic off-screen duration set by the electronic device.
智能息屏模式确定单元,用于当所述自动息屏时长大于或等于时长阈值时,确定所述电子设备的运行模式为所述智能息屏模式。The smart screen-off mode determination unit is configured to determine that the electronic device's operating mode is the smart screen-off mode when the automatic screen-off duration is greater than or equal to a duration threshold.
非智能息屏模式确定单元,用于当所述自动息屏时长小于所述时长阈值时,确定所述电子设备的运行模式为所述非智能息屏模式。The non-smart screen-off mode determination unit is configured to determine that the electronic device is in the non-smart screen-off mode when the automatic screen-off duration is less than the duration threshold.
进一步地,所述电子设备的屏幕亮度调节装置200还包括:屏幕亮度保持模块,其中:Further, the screen brightness adjusting device 200 of the electronic device also includes: a screen brightness maintaining module, wherein:
屏幕亮度保持模块,用于当所述注视点位于所述屏幕内时,保持所述屏幕的当前亮度。The screen brightness maintaining module is used for maintaining the current brightness of the screen when the gaze point is located in the screen.
进一步地,所述电子设备的屏幕亮度调节装置200还包括:屏幕熄灭模块和屏幕亮度调高模块,其中:Further, the screen brightness adjusting device 200 of the electronic device also includes: a screen extinguishing module and a screen brightness increasing module, wherein:
屏幕熄灭模块,用于当在预设时长内确定所述注视点持续不在所述屏幕内时,将所述屏幕熄灭。A screen extinguishing module, configured to extinguish the screen when it is determined that the gaze point is not within the screen for a predetermined period of time.
屏幕亮度调高模块,用于当在所述预设时长内确定所述注视点从不在所述屏幕内切换至在所述屏幕内时,调高所述屏幕亮度。A screen brightness increasing module, configured to increase the screen brightness when it is determined within the preset duration that the gaze point is switched from not being in the screen to being in the screen.
进一步地,所述电子设备的屏幕亮度调节装置200还包括:训练数据集获取模块和模型训练模块,其中:Further, the screen brightness adjustment device 200 of the electronic device also includes: a training data set acquisition module and a model training module, wherein:
训练数据集获取模块,用于获取训练数据集,其中,所述训练数据集包括多个训练图像以及与所述多个训练图像各自对应的注视点位置。The training data set acquisition module is configured to acquire a training data set, wherein the training data set includes a plurality of training images and gaze point positions corresponding to the plurality of training images.
模型训练模块,用于基于所述多个训练图像和与所述多个训练图像各自对应的注视点位置,对预设模型进行训练获得神经网络模型。A model training module, configured to train a preset model to obtain a neural network model based on the plurality of training images and gaze point positions corresponding to the plurality of training images.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述装置和模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the devices and modules described above can refer to the corresponding process in the foregoing method embodiments, which will not be repeated here.
在本申请所提供的几个实施例中,模块相互之间的耦合可以是电性,机械或其它形式的耦合。In several embodiments provided in the present application, the coupling between the modules may be electrical, mechanical or other forms of coupling.
另外,在本申请各个实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。In addition, each functional module in each embodiment of the present application may be integrated into one processing module, each module may exist separately physically, or two or more modules may be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware or in the form of software function modules.
请参阅图14,其示出了本申请实施例提供的一种电子设备100的结构框图。该电子设备100 可以是智能手机、平板电脑、电子书等能够运行应用程序的电子设备。本申请中的电子设备100可以包括一个或多个如下部件:处理器110、存储器120以及一个或多个应用程序,其中一个或多个应用程序可以被存储在存储器120中并被配置为由一个或多个处理器110执行,一个或多个程序配置用于执行如前述方法实施例所描述的方法。Please refer to FIG. 14 , which shows a structural block diagram of an electronic device 100 provided by an embodiment of the present application. The electronic device 100 may be an electronic device capable of running application programs, such as a smart phone, a tablet computer, and an e-book. The electronic device 100 in this application may include one or more of the following components: a processor 110, a memory 120, and one or more application programs, wherein one or more application programs may be stored in the memory 120 and configured to be executed by a or a plurality of processors 110, and one or more programs are configured to execute the methods described in the foregoing method embodiments.
其中,处理器110可以包括一个或者多个处理核。处理器110利用各种接口和线路连接整个电子设备100内的各个部分,通过运行或执行存储在存储器120内的指令、程序、代码集或指令集,以及调用存储在存储器120内的数据,执行电子设备100的各种功能和处理数据。可选地,处理器110可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(Programmable Logic Array,PLA)中的至少一种硬件形式来实现。处理器110可集成中央处理器(Central Processing Unit,CPU)、图形处理器(Graphics Processing Unit,GPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作系统、用户界面和应用程序等;GPU用于负责待显示内容的渲染和绘制;调制解调器用于处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器110中,单独通过一块通信芯片进行实现。Wherein, the processor 110 may include one or more processing cores. The processor 110 uses various interfaces and lines to connect various parts of the entire electronic device 100, and executes or executes instructions, programs, code sets or instruction sets stored in the memory 120, and calls data stored in the memory 120 to execute Various functions of the electronic device 100 and processing data. Optionally, the processor 110 may adopt at least one of Digital Signal Processing (Digital Signal Processing, DSP), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), and Programmable Logic Array (Programmable Logic Array, PLA). implemented in the form of hardware. The processor 110 may integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU), a modem, and the like. Among them, the CPU mainly handles the operating system, user interface and application programs, etc.; the GPU is used to render and draw the content to be displayed; the modem is used to handle wireless communication. It can be understood that, the above-mentioned modem may not be integrated into the processor 110, but may be realized by a communication chip alone.
存储器120可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory)。存储器120可用于存储指令、程序、代码、代码集或指令集。存储器120可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作系统的指令、用于实现至少一个功能的指令(比如触控功能、声音播放功能、图像播放功能等)、用于实现下述各个方法实施例的指令等。存储数据区还可以存储电子设备100在使用中所创建的数据(比如电话本、音视频数据、聊天记录数据)等。The memory 120 may include random access memory (Random Access Memory, RAM), and may also include read-only memory (Read-Only Memory). The memory 120 may be used to store instructions, programs, codes, sets of codes, or sets of instructions. The memory 120 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system and instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.) , instructions for implementing the following method embodiments, and the like. The storage data area can also store data created during use of the electronic device 100 (such as phonebook, audio and video data, chat record data) and the like.
请参阅图15,其示出了本申请实施例提供的一种计算机可读存储介质的结构框图。该计算机可读介质300中存储有程序代码,所述程序代码可被处理器调用执行上述方法实施例中所描述的方法。Please refer to FIG. 15 , which shows a structural block diagram of a computer-readable storage medium provided by an embodiment of the present application. Program codes are stored in the computer-readable medium 300, and the program codes can be invoked by a processor to execute the methods described in the foregoing method embodiments.
计算机可读存储介质300可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。可选地,计算机可读存储介质300包括非易失性计算机可读介质(non-transitory computer-readable storage medium)。计算机可读存储介质300具有执行上述方法中的任何方法步骤的程序代码310的存储空间。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。程序代码310可以例如以适当形式进行压缩。The computer readable storage medium 300 may be an electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read Only Memory), EPROM, hard disk, or ROM. Optionally, the computer-readable storage medium 300 includes a non-transitory computer-readable storage medium (non-transitory computer-readable storage medium). The computer-readable storage medium 300 has a storage space for program code 310 for executing any method steps in the above methods. These program codes can be read from or written into one or more computer program products. Program code 310 may, for example, be compressed in a suitable form.
综上所述,本申请实施例提供的电子设备的屏幕亮度调节方法、装置以及电子设备,通过电子设备的摄像头采集人脸图像,通过神经网络模型处理人脸图像以获取人眼在屏幕上的注视点位置,基于注视点位置以及注视点位置与摄像头的距离,确定注视点是否位于屏幕内,当注视点未位于屏幕内时,调低屏幕亮度,从而通过神经网络模型进行注视点位置的判断和检测,并根据注视点位置以及注视点位置与摄像头的距离,确定注视点未位于屏幕内时调低屏幕亮度,从而降低电子设备的功耗,以及提升智能感知交互体验。To sum up, the method and device for adjusting the screen brightness of an electronic device and the electronic device provided by the embodiments of the present application collect face images through the camera of the electronic device, and process the face images through a neural network model to obtain the brightness of the human eyes on the screen. The gaze point position, based on the gaze point position and the distance between the gaze point position and the camera, determines whether the gaze point is located on the screen. When the gaze point is not located on the screen, lower the brightness of the screen, so as to judge the gaze point position through the neural network model And detection, and according to the gaze point position and the distance between the gaze point position and the camera, it is determined that the gaze point is not located in the screen and the screen brightness is reduced, thereby reducing the power consumption of electronic devices and improving the intelligent perception interaction experience.
最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不驱使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, but not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still Modifications are made to the technical solutions described in the foregoing embodiments, or equivalent replacements are made to some of the technical features; and these modifications or replacements do not drive the essence of the corresponding technical solutions away from the spirit and scope of the technical solutions of the various embodiments of the present application.

Claims (20)

  1. 一种电子设备的屏幕亮度调节方法,其特征在于,应用于电子设备,所述方法包括:A method for adjusting screen brightness of an electronic device is characterized in that it is applied to an electronic device, and the method includes:
    通过所述电子设备的摄像头采集人脸图像;collecting face images through the camera of the electronic device;
    通过神经网络模型处理所述人脸图像以获取人眼在所述屏幕上的注视点位置;Processing the face image through a neural network model to obtain the gaze point position of the human eye on the screen;
    基于所述注视点位置以及所述注视点位置与所述摄像头的距离,确定所述注视点是否位于所述屏幕内;Determine whether the gaze point is located within the screen based on the gaze point position and the distance between the gaze point position and the camera;
    当所述注视点未位于所述屏幕内时,调低所述屏幕亮度。When the gaze point is not located in the screen, reduce the brightness of the screen.
  2. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method according to claim 1, further comprising:
    当所述注视点位于所述屏幕内时,保持所述屏幕的当前亮度。When the gaze point is located within the screen, the current brightness of the screen is maintained.
  3. 根据权利要求1所述的方法,其特征在于,所述调低所述屏幕亮度,包括:The method according to claim 1, wherein the reducing the brightness of the screen comprises:
    确定所述电子设备的运行模式;以及determining an operating mode of the electronic device; and
    根据所述运行模式调低所述屏幕亮度。Adjust the brightness of the screen according to the mode of operation.
  4. 根据权利要求1所述的方法,其特征在于,在所述调低所述屏幕亮度之后,还包括:The method according to claim 1, further comprising: after said reducing the screen brightness,
    当在预设时长内确定所述注视点持续不在所述屏幕内时,将所述屏幕熄灭;或When it is determined that the gaze point is not on the screen for a predetermined period of time, turn off the screen; or
    当在所述预设时长内确定所述注视点从不在所述屏幕内切换至在所述屏幕内时,调高所述屏幕亮度。When it is determined within the preset duration that the gaze point is switched from not being in the screen to being in the screen, increasing the brightness of the screen.
  5. 根据权利要求3所述的方法,其特征在于,所述根据所述运行模式调低所述屏幕亮度,包括:The method according to claim 3, wherein the reducing the brightness of the screen according to the operating mode comprises:
    当所述运行模式为智能息屏模式时,调低所述屏幕亮度;或者When the operating mode is the smart off-screen mode, reduce the brightness of the screen; or
    当所述运行模式为非智能息屏模式时,将所述屏幕熄灭。When the operating mode is a non-smart off-screen mode, the screen is turned off.
  6. 根据权利要求5所述的方法,其特征在于,所述方法还包括:The method according to claim 5, wherein the method further comprises:
    获取所述电子设备设置的自动息屏时长;Obtain the automatic off-screen duration set by the electronic device;
    当所述自动息屏时长大于或等于时长阈值时,确定所述电子设备的运行模式为所述智能息屏模式;或When the automatic off-screen duration is greater than or equal to a duration threshold, determine that the operation mode of the electronic device is the smart off-screen mode; or
    当所述自动息屏时长小于所述时长阈值时,确定所述电子设备的运行模式为所述非智能息屏模式。When the automatic off-screen duration is less than the duration threshold, it is determined that the operation mode of the electronic device is the non-smart off-screen mode.
  7. 根据权利要求1-6任一项所述的方法,其特征在于,所述注视点位置包括所述注视点在目标坐标系下的坐标信息,所述目标坐标系以所述摄像头的中心位置为原点建立,所述基于所述注视点位置以及所述注视点位置与所述摄像头的距离,确定所述注视点是否位于所述屏幕内,包括:The method according to any one of claims 1-6, wherein the gaze point position comprises coordinate information of the gaze point in a target coordinate system, and the target coordinate system is based on the central position of the camera as Establishing the origin, determining whether the gaze point is located in the screen based on the gaze point position and the distance between the gaze point position and the camera, including:
    基于所述坐标信息,获取所述注视点位置与所述摄像头的距离;Obtaining the distance between the gaze point position and the camera based on the coordinate information;
    基于所述注视点位置与所述摄像头的距离,确定所述注视点是否位于所述屏幕内。Based on the distance between the gaze point position and the camera, determine whether the gaze point is located within the screen.
  8. 根据权利要求1-6任一项所述的方法,其特征在于,所述基于所述注视点位置以及所述注视点位置与所述摄像头的距离,确定所述注视点是否位于所述屏幕内,包括:The method according to any one of claims 1-6, wherein, based on the position of the point of gaze and the distance between the position of the point of gaze and the camera, it is determined whether the point of gaze is located within the screen ,include:
    基于所述注视点位置和所述摄像头的位置,获取所述注视点位置与所述摄像头的位置的相对距离和相对方向;Based on the position of the gaze point and the position of the camera, obtain the relative distance and the relative direction between the position of the gaze point and the position of the camera;
    基于所述相对距离和所述相对方向,确定所述注视点是否位于所述屏幕内。Based on the relative distance and the relative direction, it is determined whether the gaze point is located within the screen.
  9. 根据权利要求1-6任一项所述的方法,其特征在于,所述通过神经网络模型处理所述人脸图像以获取人眼在所述屏幕上的注视点位置,包括:The method according to any one of claims 1-6, wherein the processing the face image through a neural network model to obtain the gaze point position of the human eye on the screen comprises:
    当所述摄像头采集的人脸图像为多个时,将多个人脸图像中面积最大的人脸图像作为目标人脸图像;When there are multiple facial images collected by the camera, the facial image with the largest area among the multiple facial images is used as the target facial image;
    通过所述神经网络模型处理所述目标人脸图像以获取人眼在所述屏幕上的注视点位置。The target human face image is processed by the neural network model to obtain the gaze point position of human eyes on the screen.
  10. 根据权利要求1-6任一项所述的方法,其特征在于,所述通过神经网络模型处理所述人脸图像以获取人眼在所述屏幕上的注视点位置,包括:The method according to any one of claims 1-6, wherein the processing the face image through a neural network model to obtain the gaze point position of the human eye on the screen comprises:
    当所述摄像头采集的人脸图像为多个时,将多个人脸图像中最靠前的人脸图像作为目标人脸图像;When there are multiple human face images collected by the camera, the frontmost human face image in the multiple human face images is used as the target human face image;
    通过所述神经网络模型处理所述目标人脸图像以获取人眼在所述屏幕上的注视点位置。The target human face image is processed by the neural network model to obtain the gaze point position of human eyes on the screen.
  11. 根据权利要求1-6任一项所述的方法,其特征在于,所述通过神经网络模型处理所述人脸图像以获取人眼在所述屏幕上的注视点位置,包括:The method according to any one of claims 1-6, wherein the processing the face image through a neural network model to obtain the gaze point position of the human eye on the screen comprises:
    当所述摄像头采集的人脸图像为多个时,将多个人脸图像中与预设人脸图像匹配的人脸图像作为目标人脸图像;When there are multiple facial images collected by the camera, the facial image matching the preset facial image among the multiple facial images is used as the target facial image;
    通过所述神经网络模型处理所述目标人脸图像以获取人眼在所述屏幕上的注视点位置。The target human face image is processed by the neural network model to obtain the gaze point position of human eyes on the screen.
  12. 根据权利要求1-6任一项所述的方法,其特征在于,在通过神经网络模型处理所述人脸图像以获取人眼在所述屏幕上的注视点位置之前,还包括:The method according to any one of claims 1-6, wherein, before processing the face image through a neural network model to obtain the gaze point position of the human eye on the screen, further comprising:
    获取训练数据集,其中,所述训练数据集包括多个训练图像以及与所述多个训练图像各自对应的注视点位置;Obtain a training data set, wherein the training data set includes a plurality of training images and gaze point positions corresponding to each of the plurality of training images;
    基于所述多个训练图像和与所述多个训练图像各自对应的注视点位置,对预设模型进行训练获得神经网络模型。Based on the plurality of training images and gaze point positions corresponding to the plurality of training images, the preset model is trained to obtain a neural network model.
  13. 根据权利要求1-6任一项所述的方法,其特征在于,所述神经网络模型包括人脸检测模型和注视点检测模型,所述通过神经网络模型处理所述人脸图像以获取人眼在所述屏幕上的注视点位置,包括:The method according to any one of claims 1-6, wherein the neural network model includes a human face detection model and a gaze point detection model, and the neural network model is used to process the human face image to obtain human eyes The gaze point position on the screen, including:
    获取待检测图像;Obtain the image to be detected;
    将所述待检测图像输入所述人脸检测模型,获得所述人脸检测模型输出的信息;Inputting the image to be detected into the face detection model to obtain information output by the face detection model;
    当所述人脸检测模型输出的信息包括人脸图像时,将所述人脸图像输入所述注视点检测模型,获得所述注视点检测模型输出的人眼在所述屏幕上的注视点位置。When the information output by the human face detection model includes a human face image, the human face image is input into the gaze point detection model to obtain the gaze point position of the human eyes output by the gaze point detection model on the screen .
  14. 根据权利要求13所述的方法,其特征在于,所述方法还包括:The method according to claim 13, further comprising:
    当所述人脸检测模型输出的信息不包括人脸图像时,调低所述屏幕亮度或者控制所述屏幕熄灭。When the information output by the face detection model does not include a face image, reduce the brightness of the screen or control the screen to turn off.
  15. 根据权利要求13所述的方法,其特征在于,所述当所述人脸检测模型输出的信息包括人脸图像时,将所述人脸图像输入所述注视点检测模型,获得所述注视点检测模型输出的人眼在所述屏幕上的注视点位置,包括:The method according to claim 13, wherein when the information output by the human face detection model includes a human face image, inputting the human face image into the gaze point detection model to obtain the gaze point The gaze point position of human eyes on the screen output by the detection model includes:
    当所述人脸检测模型输出的信息包括人脸图像时,判断所述人脸图像是否满足预设人脸条件;When the information output by the face detection model includes a face image, it is judged whether the face image satisfies a preset face condition;
    当所述人脸图像满足所述预设人脸条件时,将所述人脸图像输入所述注视点检测模型,获得所述注视点检测模型输出的人眼在所述屏幕上的注视点位置。When the human face image satisfies the preset human face condition, the human face image is input into the gaze point detection model, and the gaze point position of the human eye on the screen output by the gaze point detection model is obtained .
  16. 根据权利要求13所述的方法,其特征在于,所述当所述人脸检测模型输出的信息包括人脸图像时,将所述人脸图像输入所述注视点检测模型,获得所述注视点检测模型输出的人眼在所述屏幕上的注视点位置,包括:The method according to claim 13, wherein when the information output by the human face detection model includes a human face image, inputting the human face image into the gaze point detection model to obtain the gaze point The gaze point position of human eyes on the screen output by the detection model includes:
    当所述人脸检测模型输出的信息包括人脸图像且所述人脸图像中包括眼睛图像时,将所述人脸图像输入所述注视点检测模型,获得所述注视点检测模型输出的人眼在所述屏幕上的注视点位置。When the information output by the human face detection model includes a human face image and when the human face image includes an eye image, the human face image is input into the gaze point detection model, and the person output by the gaze point detection model is obtained. The gaze point position of the eye on the screen.
  17. 根据权利要求16所述的方法,其特征在于,所述方法还包括:The method according to claim 16, further comprising:
    当所述人脸检测模型输出的信息包括人脸图像且所述人脸图像中不包括眼睛图像时,调低所述屏幕亮度或者控制所述屏幕熄灭。When the information output by the face detection model includes a face image and the face image does not include an eye image, reduce the brightness of the screen or control the screen to turn off.
  18. 一种电子设备的屏幕亮度调节装置,其特征在于,应用于电子设备,所述装置包括:A screen brightness adjustment device for electronic equipment, characterized in that it is applied to electronic equipment, and the device includes:
    人脸图像采集模块,用于通过所述电子设备的摄像头采集人脸图像;A face image acquisition module, configured to collect a face image through the camera of the electronic device;
    注视点位置获取模块,用于通过神经网络模型处理所述人脸图像以获取人眼在所述屏幕上的注视点位置;The gaze point position acquisition module is used to process the face image through a neural network model to obtain the gaze point position of the human eye on the screen;
    注视点确定模块,用于基于所述注视点位置以及所述注视点位置与所述摄像头的距离,确定所述注视点是否位于所述屏幕内;A gaze point determination module, configured to determine whether the gaze point is located within the screen based on the gaze point position and the distance between the gaze point position and the camera;
    屏幕亮度调低模块,用于当所述注视点未位于所述屏幕内时,调低所述屏幕亮度。The screen brightness reduction module is used to reduce the screen brightness when the gaze point is not located in the screen.
  19. 一种电子设备,其特征在于,包括存储器和处理器,所述存储器耦接到所述处理器,所述存储器存储指令,当所述指令由所述处理器执行时所述处理器执行如权利要求1-17任一项所述的方法。An electronic device, characterized in that it includes a memory and a processor, the memory is coupled to the processor, the memory stores instructions, and when the instructions are executed by the processor, the processor performs The method described in any one of claims 1-17.
  20. 一种计算机可读取存储介质,其特征在于,所述计算机可读取存储介质中存储有程序代码,所述程序代码可被处理器调用执行如权利要求1-17任一项所述的方法。A computer-readable storage medium, characterized in that the computer-readable storage medium stores program codes, and the program codes can be invoked by a processor to execute the method according to any one of claims 1-17 .
PCT/CN2022/116557 2021-10-19 2022-09-01 Screen brightness adjustment method and apparatus for electronic device, and electronic device WO2023065849A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111217558.1 2021-10-19
CN202111217558.1A CN113903317B (en) 2021-10-19 2021-10-19 Screen brightness adjusting method and device of electronic equipment and electronic equipment

Publications (1)

Publication Number Publication Date
WO2023065849A1 true WO2023065849A1 (en) 2023-04-27

Family

ID=79193070

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/116557 WO2023065849A1 (en) 2021-10-19 2022-09-01 Screen brightness adjustment method and apparatus for electronic device, and electronic device

Country Status (2)

Country Link
CN (1) CN113903317B (en)
WO (1) WO2023065849A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113903317B (en) * 2021-10-19 2023-06-27 Oppo广东移动通信有限公司 Screen brightness adjusting method and device of electronic equipment and electronic equipment
CN114816065A (en) * 2022-04-28 2022-07-29 歌尔股份有限公司 Screen backlight adjusting method, virtual reality device and readable storage medium
CN116027887B (en) * 2022-05-20 2024-03-29 荣耀终端有限公司 Display method and electronic equipment
CN116052235B (en) * 2022-05-31 2023-10-20 荣耀终端有限公司 Gaze point estimation method and electronic equipment

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150116207A1 (en) * 2013-10-31 2015-04-30 Pegatron Corporation Electronic device and control method for screen thereof
CN108549802A (en) * 2018-03-13 2018-09-18 维沃移动通信有限公司 A kind of unlocking method, device and mobile terminal based on recognition of face
CN110191234A (en) * 2019-06-21 2019-08-30 中山大学 It is a kind of based on the intelligent terminal unlocking method for watching point analysis attentively
CN110534073A (en) * 2019-07-30 2019-12-03 华为技术有限公司 A kind of screen luminance adjustment method and device
CN110826374A (en) * 2018-08-10 2020-02-21 Oppo广东移动通信有限公司 Method and device for monitoring human eye fixation time, storage medium and electronic equipment
CN111880640A (en) * 2020-07-31 2020-11-03 Oppo广东移动通信有限公司 Screen control method and device, electronic equipment and storage medium
CN113204281A (en) * 2021-03-22 2021-08-03 闻泰通讯股份有限公司 Method and device for dynamically adjusting terminal screen brightness, electronic equipment and storage medium
CN113362775A (en) * 2021-06-24 2021-09-07 东莞市小精灵教育软件有限公司 Display screen control method and device, electronic equipment and storage medium
WO2021204449A1 (en) * 2020-04-09 2021-10-14 Irisbond Crowdbonding, S.L. Method for eye gaze tracking
CN113885708A (en) * 2021-10-22 2022-01-04 Oppo广东移动通信有限公司 Screen control method and device of electronic equipment, electronic equipment and storage medium
CN113903317A (en) * 2021-10-19 2022-01-07 Oppo广东移动通信有限公司 Screen brightness adjusting method and device of electronic equipment and electronic equipment

Family Cites Families (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009095843A1 (en) * 2008-01-28 2009-08-06 Nxp B.V. Method and apparatus for controlling the brightness of a display unit
CN108519809B (en) * 2011-11-28 2021-05-18 联想(北京)有限公司 Display method and electronic device
CN102903336B (en) * 2012-09-04 2016-08-03 百度在线网络技术(北京)有限公司 Mobile terminal and screen highlight control method thereof
KR102439245B1 (en) * 2016-01-29 2022-09-01 삼성전자주식회사 Electronic device and controlling method thereof
CN107305481B (en) * 2016-04-25 2021-05-04 中兴通讯股份有限公司 Method and device for improving display effect of terminal
CN105933550A (en) * 2016-07-08 2016-09-07 深圳市万普拉斯科技有限公司 Brightness adjustment method, brightness adjustment device and mobile terminal
CN108008804A (en) * 2016-10-28 2018-05-08 腾讯科技(深圳)有限公司 The screen control method and device of smart machine
CN106598205A (en) * 2016-12-23 2017-04-26 信利光电股份有限公司 Iris recognition module-comprising terminal equipment and power-saving control method therefor
CN107767839B (en) * 2017-10-20 2020-01-31 Oppo广东移动通信有限公司 Brightness adjusting method and related product
CN108646907A (en) * 2018-04-18 2018-10-12 Oppo广东移动通信有限公司 Back light brightness regulating method and Related product
CN108829242A (en) * 2018-05-22 2018-11-16 深圳奥比中光科技有限公司 Intelligent terminal and its non-touch operating method
CN109068378A (en) * 2018-07-13 2018-12-21 奇酷互联网络科技(深圳)有限公司 The method, apparatus of mobile terminal and control mobile terminal breath screen
CN109167877B (en) * 2018-08-01 2021-05-18 Oppo(重庆)智能科技有限公司 Terminal screen control method and device, terminal equipment and storage medium
KR20210117643A (en) * 2020-03-19 2021-09-29 삼성전자주식회사 Electronic device for providing execution screen of application and method for operating thereof

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150116207A1 (en) * 2013-10-31 2015-04-30 Pegatron Corporation Electronic device and control method for screen thereof
CN108549802A (en) * 2018-03-13 2018-09-18 维沃移动通信有限公司 A kind of unlocking method, device and mobile terminal based on recognition of face
CN110826374A (en) * 2018-08-10 2020-02-21 Oppo广东移动通信有限公司 Method and device for monitoring human eye fixation time, storage medium and electronic equipment
CN110191234A (en) * 2019-06-21 2019-08-30 中山大学 It is a kind of based on the intelligent terminal unlocking method for watching point analysis attentively
CN110534073A (en) * 2019-07-30 2019-12-03 华为技术有限公司 A kind of screen luminance adjustment method and device
WO2021204449A1 (en) * 2020-04-09 2021-10-14 Irisbond Crowdbonding, S.L. Method for eye gaze tracking
CN111880640A (en) * 2020-07-31 2020-11-03 Oppo广东移动通信有限公司 Screen control method and device, electronic equipment and storage medium
CN113204281A (en) * 2021-03-22 2021-08-03 闻泰通讯股份有限公司 Method and device for dynamically adjusting terminal screen brightness, electronic equipment and storage medium
CN113362775A (en) * 2021-06-24 2021-09-07 东莞市小精灵教育软件有限公司 Display screen control method and device, electronic equipment and storage medium
CN113903317A (en) * 2021-10-19 2022-01-07 Oppo广东移动通信有限公司 Screen brightness adjusting method and device of electronic equipment and electronic equipment
CN113885708A (en) * 2021-10-22 2022-01-04 Oppo广东移动通信有限公司 Screen control method and device of electronic equipment, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN113903317B (en) 2023-06-27
CN113903317A (en) 2022-01-07

Similar Documents

Publication Publication Date Title
WO2023065849A1 (en) Screen brightness adjustment method and apparatus for electronic device, and electronic device
US20220342475A1 (en) Terminal control method and terminal
CN106303029B (en) A kind of method of controlling rotation of picture, device and mobile terminal
CN107767333B (en) Method and equipment for beautifying and photographing and computer storage medium
CN109670427B (en) Image information processing method and device and storage medium
CN108076290B (en) Image processing method and mobile terminal
WO2019080797A1 (en) Living body detection method, terminal, and storage medium
WO2020078027A1 (en) Image processing method, apparatus and device
JP4384240B2 (en) Image processing apparatus, image processing method, and image processing program
WO2020078026A1 (en) Image processing method and apparatus, and device
CN108712603B (en) Image processing method and mobile terminal
TWI729983B (en) Electronic device, system and method for adjusting display device
US20180368074A1 (en) Terminal device, network device, frame format configuration method, and system
CN110825220B (en) Eyeball tracking control method, device, intelligent projector and storage medium
CN111447497A (en) Intelligent playing device and energy-saving control method thereof
WO2021185142A1 (en) Image processing method, electronic device and storage medium
CN109639981B (en) Image shooting method and mobile terminal
CN105979154A (en) AR shooting method and device as well as intelligent terminal
WO2023011103A1 (en) Parameter control method and apparatus, head-mounted display device, and storage medium
CN115862081A (en) Image acquisition method, device, equipment and computer readable storage medium
CN111432154B (en) Video playing method, video processing method and electronic equipment
CN109819331B (en) Video call method, device and mobile terminal
CN113038232A (en) Video playing method, device, equipment, server and storage medium
JP2010040052A (en) Image processor, image processing method, and image processing program
CN114253451A (en) Screenshot method and device, electronic equipment and storage medium

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: 22882465

Country of ref document: EP

Kind code of ref document: A1