Method and apparatus for turning on screen, mobile terminal and storage medium
AssigneeGuangdong Oppo Mobile Telecommunications Corp., Ltd.
InventorsHaitao Zhou, Fangfang Hui, Ziqing Guo, Xiao Tan
Life of this patent
Estimating the term…
Abstract
Provided are a method and apparatus for turning on a screen, a mobile terminal and a storage medium. The method comprises that: when a change in a moving state of a mobile terminal meets a preset unlocking condition, a structured light image sensor is activated for imaging; a depth map obtained by the imaging of the structured light image sensor is acquired; a face depth model is constructed according to the depth map; a position of pupils is identified from the face depth model; and when the position of the pupils is within a specified region of eyes, the screen of the mobile terminal is controlled to turn on.
Claims16
A method for turning on a screen, comprising:
- activating, when a change in a moving state of a mobile terminal meets a preset unlocking condition, a structured light image sensor for imaging;
- acquiring a depth map obtained by the imaging of the structured light image sensor;
- simultaneously activating, when the structured light image sensor is activated for imaging, a visible light image sensor for imaging;
- acquiring a visible light image obtained by the imaging of the visible light image sensor;
- performing face identification on the visible light image and determining a position of a face in the visible light image;
- constructing a face depth model according to the depth map when the face is within a specified region of the visible light image;
- identifying a position of pupils from the face depth model;
- and
- controlling, when the position of the pupils is within a specified region of eyes, the screen of the mobile terminal to turn on,
- wherein the operation of constructing the face depth model when the face is within a specified region of the visible light image comprises:
- determining a first central position of the face;
- extracting a second central position in the specified region of the visible light image;
- acquiring a second offset of the first central position relative to the second central position;
- and
- determining, when the second offset is within a preset second offset range, that the face is within the specified region of the visible light image.
A mobile terminal, comprising:
- an imaging sensor, a memory, a Microcontroller Unit (MCU), a processor, and a trusted application stored on the memory and capable of running under a Trusted Execution Environment (TEE) of the processor, wherein
- the MCU is a dedicated hardware of the TEE and connected with the imaging sensor and the processor, and the MCU is configured to activate the imaging sensor for imaging and send imaging data to the processor;
- and
- wherein the processor executes the trusted application to implement the following operations for turning on a screen:
- activating, when a change in a moving state of a mobile terminal meets a preset unlocking condition, a structured light image sensor for imaging;
- acquiring a depth map of obtained by the imaging of the structured light image sensor;
- simultaneously activating, when the structured light image sensor is activated for imaging, a visible light image sensor for imaging;
- acquiring a visible light image obtained by the imaging of the visible light image sensor;
- performing face identification on the visible light image and determining a position of a face in the visible light image;
- constructing a face depth model according to the depth map when the face is within a specified region of the visible light image;
- identifying a position of pupils from the face depth model;
- and
- controlling, when the position of the pupils is within a specified region of eyes, the screen of the mobile terminal to turn on,
- wherein the processor executes the trusted application to implement the following operations:
- determining a first central position of the face;
- extracting a second central position in the specified region of the visible light image;
- acquiring a second offset of the first central position relative to the second central position;
- and
- determining, when the second offset is within a second set offset range, that the face is within the specified region of the visible light image.
A non-transitory computer readable storage medium, having a computer program stored thereon, wherein the computer program, when being executed by a processor, implements the operations of:
- activating, when a change in a moving state of a mobile terminal meets a preset unlocking condition, a structured light image sensor for imaging;
- acquiring a depth map obtained by the imaging of the structured light image sensor;
- simultaneously activating, when the structured light image sensor is activated for imaging, a visible light image sensor for imaging;
- acquiring a visible light image obtained by the imaging of the visible light image sensor;
- performing face identification on the visible light image and determining a position of a face in the visible light image;
- constructing a face depth model according to the depth map when the face is within a specified region of the visible light image;
- identifying a position of pupils from the face depth model;
- and
- controlling, when the position of the pupils is within a specified region of eyes, the screen of the mobile terminal to turn on,
- wherein the operation of constructing the face depth model when the face is within a specified region of the visible light image comprises:
- determining a first central position of the face;
- extracting a second central position in the specified region of the visible light image;
- acquiring a second offset of the first central position relative to the second central position;
- and
- determining, when the second offset is within a preset second offset range, that the face is within the specified region of the visible light image.
Dependencies are inferred from the claim text.