CN108196663B - Face recognition method and mobile terminal - Google Patents

Face recognition method and mobile terminal Download PDF

Info

Publication number
CN108196663B
CN108196663B CN201810047316.4A CN201810047316A CN108196663B CN 108196663 B CN108196663 B CN 108196663B CN 201810047316 A CN201810047316 A CN 201810047316A CN 108196663 B CN108196663 B CN 108196663B
Authority
CN
China
Prior art keywords
mobile terminal
target
distance
face
determining
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810047316.4A
Other languages
Chinese (zh)
Other versions
CN108196663A (en
Inventor
李决定
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201810047316.4A priority Critical patent/CN108196663B/en
Publication of CN108196663A publication Critical patent/CN108196663A/en
Application granted granted Critical
Publication of CN108196663B publication Critical patent/CN108196663B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3206Monitoring of events, devices or parameters that trigger a change in power modality
    • G06F1/3231Monitoring the presence, absence or movement of users

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)

Abstract

The invention provides a face recognition method and a mobile terminal, and relates to the technical field of biological recognition. Wherein the method comprises the following steps: when a screen of the mobile terminal is lightened, determining a target distance between a face of a target object and the mobile terminal, and determining a target duration corresponding to the mobile terminal from a first space posture to a second space posture; and when the target distance is within a preset distance range and the target duration is greater than the preset duration, carrying out face recognition. In the embodiment of the invention, when the screen is lightened, the mobile terminal can determine whether the user has a face recognition requirement by detecting the target distance and the target time length, and when the face recognition requirement of the user is determined, the system resources are called to carry out face recognition instead of immediately calling the system resources to carry out face recognition after the screen is lightened, so that the electric quantity and the system resources of the mobile terminal can be saved.

Description

Face recognition method and mobile terminal
Technical Field
The invention relates to the technical field of biological recognition, in particular to a face recognition method and a mobile terminal.
Background
With the rapid development of mobile terminal technology, the function of the mobile terminal for performing biometric identification is also continuously improved, and many mobile terminals can perform identity identification through biometric identification technology, such as face identification unlocking, face identification payment, face identification encryption and the like.
At present, a mobile terminal generally combines a biometric identification technology with an unlocking and screen-lighting technology, that is, when a user triggers the mobile terminal to light a screen, the mobile terminal can immediately start a front camera to perform face identification, so that when identification and verification pass, unlocking operation can be performed.
However, the mobile terminal immediately performs face recognition after the screen is turned on, and then triggers the mobile terminal to unlock, and when the user triggers the mobile terminal to turn on the screen, the user may only want to check time or application preview information of the screen locking interface, and the like, but does not want to unlock the screen, but the mobile terminal still performs face recognition when the user does not need to unlock, so that the electric quantity and system resources of the mobile terminal are wasted.
Disclosure of Invention
The invention provides a face recognition method and a mobile terminal, and aims to solve the problem that electric quantity and system resources are wasted because face recognition can be immediately carried out after the mobile terminal is on the screen.
In order to solve the technical problem, the invention is realized as follows: a face recognition method is applied to a mobile terminal and comprises the following steps:
when a screen of the mobile terminal is lightened, determining a target distance between a face of a target object and the mobile terminal, and determining a target duration corresponding to the mobile terminal from a first space posture to a second space posture;
and when the target distance is within a preset distance range and the target duration is greater than the preset duration, carrying out face recognition.
An embodiment of the present invention further provides a mobile terminal, where the mobile terminal includes:
the first determining module is used for determining a target distance between a face of a target object and the mobile terminal when a screen of the mobile terminal is lightened, and determining a target time length corresponding to the mobile terminal from a first space posture to a second space posture;
and the recognition module is used for carrying out face recognition when the target distance is within a preset distance range and the target duration is greater than the preset duration.
The embodiment of the invention also provides a mobile terminal, which comprises a processor, a memory and a computer program which is stored on the memory and can run on the processor, wherein the computer program realizes the steps of the face recognition method when being executed by the processor.
The embodiment of the invention also provides a computer readable storage medium, wherein a computer program is stored on the computer readable storage medium, and the steps of the face recognition method are realized when the computer program is executed by a processor.
In the embodiment of the invention, when the screen is lightened, the mobile terminal can determine the target distance between the face of the target object and the mobile terminal and determine the target time length corresponding to the mobile terminal from the first space posture to the second space posture, and then when the target distance is within the preset distance range and the target time length is greater than the preset time length, the face recognition is carried out, namely the mobile terminal can call the system resources to carry out the face recognition when the face recognition requirement of the user is determined, instead of calling the system resources to carry out the face recognition immediately after the screen is lightened, so that the electric quantity and the system resources of the mobile terminal can be saved.
Drawings
Fig. 1 shows a flow chart of a face recognition method in a first embodiment of the invention;
fig. 2 shows a flowchart of a face recognition method in the second embodiment of the present invention;
FIG. 3 is a schematic diagram illustrating a wrist-raising action performed by a user according to a second embodiment of the present invention;
fig. 4 is a block diagram illustrating a mobile terminal according to a third embodiment of the present invention;
fig. 5 is a block diagram illustrating a mobile terminal according to a fourth embodiment of the present invention;
fig. 6 is a diagram illustrating a hardware structure of a mobile terminal according to various embodiments of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example one
Referring to fig. 1, a flowchart of a face recognition method according to a first embodiment of the present invention is shown, which may specifically include the following steps:
s101, when a screen of the mobile terminal is lighted, determining a target distance between a face of a target object and the mobile terminal, and determining a target duration corresponding to the mobile terminal from a first space posture to a second space posture.
In the embodiment of the invention, the screen can be lightened by the wrist-lifting action when the user holds the mobile terminal, namely, the screen can be lightened when the mobile terminal detects the wrist-lifting action through the built-in gyroscope. In the process of the wrist lifting of the user, the space posture of the mobile terminal is changed along with the wrist lifting track, the mobile terminal is in the first space posture at the initial position of the wrist lifting track, and the mobile terminal is in the second space posture at the final position of the wrist lifting track after the wrist lifting action is completed. Certainly, in practical application, the user may also light the screen by superimposing the wrist-lifting motion and other operations, that is, the mobile terminal may light the screen when detecting the screen-lighting operation based on the wrist-lifting motion, which is not specifically limited in this embodiment of the present invention.
When the mobile terminal performs face recognition, if the user is too close to the mobile terminal, the mobile terminal cannot acquire a complete image of the face, and further face recognition cannot be performed, or a recognition error occurs, and if the user is too far away from the mobile terminal, the mobile terminal cannot accurately acquire details of the face, and further face recognition cannot be performed, or a recognition error occurs. Accordingly, when a user needs to unlock the screen through face recognition, in order to enable the mobile terminal to perform recognition quickly and accurately, the user usually faces the mobile terminal to the face, and keeps a proper distance from the mobile terminal, but does not get too close to or too far away from the mobile terminal.
In addition, when the user lights the screen through the wrist-lifting action, the distance between the user and the mobile terminal can be adjusted while the user lifts the wrist in order to adjust the distance between the user and the mobile terminal after the user lifts the wrist. Correspondingly, the mobile terminal can determine the target time length corresponding to the second space posture from the first space posture of the mobile terminal, namely, the time length of the target object for completing the wrist-lifting action, when the target time length is short, it can be determined that the user does not perform adjustment when the wrist is lifted, namely, it can be determined that the user does not need to perform face recognition at the moment, and when the target time length is long, it can be determined that the user performs adjustment when the wrist is lifted at the moment.
When the target distance is moderate and the target duration is long, it can be determined that the distance between the user and the mobile terminal is adjusted in the wrist lifting process in order to match with face recognition, that is, it can be determined that the user needs to perform face recognition at the moment. In addition, when the target distance is moderate, the mobile terminal can acquire a complete face image and can recognize details of each part of the face, so that the accuracy of face recognition can be improved by performing face recognition at the moment.
It should be noted that, the mobile terminal may determine the target distance first and then determine the target time length, may also determine the target time length first and then determine the target distance, and may also determine the target distance and the target time length at the same time.
For example, when the mobile terminal detects a wrist-lifting action through a built-in gyroscope, the screen may be lit, and then when the screen of the mobile terminal is lit, the target distance between the face of the target object and the mobile terminal may be determined to be 30 centimeters, and the target duration corresponding to the time from the first spatial posture to the second spatial posture of the mobile terminal may be determined to be 1 second.
And S102, when the target distance is within the preset distance range and the target duration is longer than the preset duration, carrying out face recognition.
In the embodiment of the invention, when the target distance between the face of the target object and the mobile terminal is within the preset distance range, and the target time length corresponding to the mobile terminal from the first space posture to the second space posture is longer than the preset time length, the distance between the user and the mobile terminal can be adjusted to match with the face recognition, at the moment, the mobile terminal can call the front camera to shoot the face image, and then call other system resources to recognize the face in the face image. After the face recognition verification is passed, the mobile terminal can unlock the screen, and further receive other operations of the user.
In addition, when the target distance is not within the preset distance range, it can be determined that the user does not need to perform face recognition at the moment, and then the mobile terminal can end the operation without continuously consuming electric quantity and calling system resources. When the target distance is within the preset distance range but the target duration is less than or equal to the preset duration, it can also be determined that the user does not need to perform face recognition at this time, and then the mobile terminal can end the operation without continuously consuming electric quantity or calling system resources.
For example, the mobile terminal may determine that the target distance is 30 centimeters within a preset distance range of 15 centimeters to 35 centimeters, and may determine that the target time duration 1 second is longer than the preset time duration 0.5 second, and then the mobile terminal may start the front-facing camera to perform face recognition.
In the embodiment of the invention, when the screen is lightened, the mobile terminal can determine the target distance between the face of the target object and the mobile terminal and determine the target time length corresponding to the mobile terminal from the first space posture to the second space posture, and then when the target distance is within the preset distance range and the target time length is greater than the preset time length, the face recognition is carried out, namely the mobile terminal can call the system resources to carry out the face recognition when the face recognition requirement of the user is determined, instead of calling the system resources to carry out the face recognition immediately after the screen is lightened, so that the electric quantity and the system resources of the mobile terminal can be saved.
Example two
Referring to fig. 2, a flowchart of a face recognition method according to a second embodiment of the present invention is shown, which may specifically include the following steps:
s201, when a screen of the mobile terminal is lighted, determining a target distance between the face of the target object and the mobile terminal, and determining a target duration corresponding to the mobile terminal from the first space posture to the second space posture.
In the embodiment of the present invention, the mobile terminal may determine the target distance between the face of the target object and the mobile terminal through two ways, including:
the first determination method: when a screen of the mobile terminal is lightened, determining the face area of a target object through a front camera; and determining the target distance between the face of the target object and the mobile terminal according to the face area.
In a first determination manner, the mobile terminal may obtain at least one sample face area and at least one sample distance in advance before leaving a factory, where the at least one sample face area corresponds to the at least one sample distance one to one, and then the mobile terminal may determine a corresponding relationship between the face area and the distance according to the at least one sample face area and the at least one sample distance, that is, may determine a conversion formula between the face area and the distance, and store the conversion formula, and then, after leaving the factory, when the screen is lit, the mobile terminal may determine the face area of the target object through the front camera, and then may determine the target distance corresponding to the face area according to the face area and the stored corresponding relationship between the face area and the distance. In the correspondence between the face area and the distance, the larger the face area is, the smaller the distance between the face and the mobile terminal is, and the smaller the face area is, the larger the distance between the face and the mobile terminal is.
The second determination method is as follows: when the screen of the mobile terminal is lighted, the target distance between the face of the target object and the mobile terminal is determined through the distance sensor.
In a second determination mode, the distance sensor in the mobile terminal may emit infrared rays outwards, the infrared rays may be reflected by the face when the infrared rays irradiate the face, then the distance sensor may receive the reflected infrared rays, and then the distance sensor may determine the target distance between the face of the target object and the mobile terminal according to the time of emitting the infrared rays, the time of receiving the infrared rays, and the propagation speed of the infrared rays.
In addition, fig. 3 shows a schematic diagram of a user performing a wrist-lifting action, referring to fig. 3, when the user starts to lift the wrist, the mobile terminal is located at a position a, at this time, the mobile terminal is in a first spatial posture, the mobile terminal may determine a start time of the wrist-lifting action through a gyroscope, when the user finishes lifting the wrist, the mobile terminal is located at a position B, at this time, the mobile terminal is in a second spatial posture, during the wrist-lifting process of the user, the wrist-lifting trajectory from the position a to the position B, which is indicated by a dotted arrow S in fig. 3, is formed, at this time, the mobile terminal may determine an end time of the wrist-lifting action through the gyroscope, and then the mobile terminal may determine that a target duration corresponding to the mobile terminal from the first spatial posture to the second spatial posture is a time interval between the end time and.
For example, when the mobile terminal detects a wrist-lifting action through a built-in gyroscope, the screen may be lit, and when the screen of the mobile terminal is lit, it may be determined that a target distance between a face of the target object and the mobile terminal is 27 centimeters through the distance sensor, and it may be determined that a target duration corresponding to the mobile terminal from the first spatial posture to the second spatial posture is 1.2 seconds.
S202, determining the current time and the current target position of the target object.
In the embodiment of the invention, when a user is located in a certain specific place at a specific time, the user is inconvenient to use the mobile terminal, and further when the user is located in the place at the specific time, the user does not have the requirement of face recognition, but the user may have the requirement of watching time or screen locking information, for example, the user needs to go to a queen to carry out family education at 14 to 16 am every Wednesday in Xiaoliu, and when the user is at the queen at the time, the user is inconvenient to use a mobile phone but needs to watch time, so that the mobile terminal can determine the current time and can determine the current target position of the target object through positioning to determine whether the user has the requirement of face recognition currently.
It should be noted that, the mobile terminal may determine the target distance first, then determine the current time and the target position, or determine the current time and the target position first, then determine the target distance, and also determine the target distance, the current time, and the target position at the same time.
For example, the mobile terminal may determine that the current time is 12 pm on a sunday, and may determine that the target location where the target object is currently located is liu.
S203, when the target distance is within the preset distance range, the target time length is greater than the preset time length, the current time is not within the preset time range, and the target position is not within the preset area range, carrying out face recognition.
In the embodiment of the invention, when the target distance is within the preset distance range, the target time length is greater than the preset time length, the current time is not within the preset time range, and the target position is not within the preset area range, it can be determined that the distance between the user and the mobile terminal is adjusted in the wrist-lifting process for matching with face recognition, and the user is not in the time and place where the user is inconvenient to use the mobile terminal, at this time, the mobile terminal can call the front camera to shoot the face image, and then call other system resources to recognize the face in the face image. After the face recognition verification is passed, the mobile terminal can unlock the screen, and further receive other operations of the user.
In addition, when the target distance is not within the preset distance range, it can be determined that the user does not need to perform face recognition at this time, and the mobile terminal can end the operation. When the target distance is within the preset distance range but the target duration is less than or equal to the preset duration, it can also be determined that the user does not need face recognition at this time, and the mobile terminal can end the operation. When the target distance is within the preset distance range, the target duration is greater than the preset duration, but the current time is within the preset time range, and the target position is within the preset area range, it can also be determined that the user does not need to perform face recognition at this time, and then the mobile terminal can end the operation. When the target distance is within the preset distance range, the target duration is greater than the preset duration, the target position is within the preset area range, and the current time is not within the preset time range, the mobile terminal can perform face recognition. When the target distance is within the preset distance range, the target time length is greater than the preset time length, but the target position is not within the preset area range, the mobile terminal can perform face recognition.
It should be noted that, in practical application, in addition to the three parameters representing the user behavior, namely the target distance, the target duration, and the target position at the target time, the mobile terminal may also detect other parameters representing the user behavior, which is not specifically limited in this embodiment of the present invention.
In addition, the preset distance range, the preset duration, the preset time range and the preset area range may all be modified by the user in the setting items of the mobile terminal, and in practical applications, the user may further set which user behavior parameters the mobile terminal needs to determine, for example, the user may set only the target distance from the target distance, the target duration and the target position where the target time is located, and then the mobile terminal may detect only the target distance after the mobile terminal is turned on, which is not specifically limited in the embodiment of the present invention.
For example, the mobile terminal may determine that the target distance is 27 centimeters within a preset distance range of 15 centimeters to 35 centimeters, may determine that the target time duration is 1.2 seconds longer than a preset time duration of 0.5 seconds, may determine that 12 pm on the sunday of the current time is not within 14 pm to 16 pm on the wednesday of the preset time range, and may determine that the target location xiaolu is not within a preset area range of "an area 5 kilometers from the xiaolu, at which time the mobile terminal may start the front camera to perform face recognition.
In the embodiment of the invention, when the screen is lighted up, the mobile terminal can determine the target distance between the face of the target object and the mobile terminal, determine the target time length corresponding to the mobile terminal from the first space posture to the second space posture, and determine the current time and the target position where the target object is currently located, and further when the target distance is within the preset distance range, the target time length is greater than the preset time length, the current time is not within the preset time range, and the target position is not within the preset area range, the face recognition is performed, that is, when the mobile terminal determines that the face recognition requirement exists in the user, the system resources are called again to perform the face recognition instead of immediately calling the system resources to perform the face recognition after the screen is lighted up, so that the electric quantity and the system resources of the mobile terminal can be saved.
EXAMPLE III
Referring to fig. 4, a block diagram of a mobile terminal 400 according to a third embodiment of the present invention is shown, which may specifically include:
a first determining module 401, configured to determine, when a screen of the mobile terminal is lit, a target distance between a face of a target object and the mobile terminal, and determine a target duration corresponding to a time period from a first spatial posture to a second spatial posture of the mobile terminal;
an identifying module 402, configured to perform face identification when the target distance is within a preset distance range and the target duration is greater than a preset duration.
The mobile terminal provided by the embodiment of the present invention can implement each process implemented by the mobile terminal in the method embodiment of fig. 1, and is not described herein again in order to avoid repetition.
In the embodiment of the invention, when the screen is lighted, the mobile terminal can determine the target distance between the face of the target object and the mobile terminal through the first determining module and determine the target time length corresponding to the mobile terminal from the first space posture to the second space posture, and then when the target distance is within the preset distance range and the target time length is longer than the preset time length, the face recognition is carried out through the recognition module, namely the mobile terminal can call the system resources to carry out the face recognition when the face recognition requirement of the user is determined, instead of calling the system resources to carry out the face recognition immediately after the screen is lighted, so that the electric quantity and the system resources of the mobile terminal can be saved.
Example four
Referring to fig. 5, a block diagram of a mobile terminal 500 according to a fourth embodiment of the present invention is shown, which may specifically include:
a first determining module 501, configured to determine, when a screen of the mobile terminal is lit, a target distance between a face of a target object and the mobile terminal, and determine a target duration corresponding to a time period from a first spatial posture to a second spatial posture of the mobile terminal;
the recognizing module 502 is configured to perform face recognition when the target distance is within a preset distance range and the target duration is greater than a preset duration.
Referring to fig. 5, the mobile terminal further includes:
a second determining module 503, configured to determine a current time and a target position where the target object is currently located;
accordingly, the identification module 502 includes:
an identifier module 5021, configured to perform face recognition when the target distance is within a preset distance range, the target duration is greater than a preset duration, the current time is not within a preset time range, and the target position is not within a preset area range.
Referring to fig. 5, the first determining module 501 includes:
the first determining submodule 5011 is used for determining the face area of a target object through a front camera when a screen of the mobile terminal is lightened;
the second determining submodule 5012 is configured to determine a target distance between the face of the target object and the mobile terminal according to the face area.
Referring to fig. 5, the first determining module 501 includes:
the third determining sub-module 5013 is configured to determine, when the screen of the mobile terminal is lit, a target distance between the face of the target object and the mobile terminal through the distance sensor.
The mobile terminal provided in the embodiment of the present invention can implement each process implemented by the mobile terminal in the method embodiment of fig. 2, and is not described here again in order to avoid repetition.
In the embodiment of the invention, when the screen is lighted, the mobile terminal can determine the target distance between the face of the target object and the mobile terminal through the first determining module, and determining a target time length corresponding to the mobile terminal from the first space posture to the second space posture, and determining the current time and the current target position of the target object through a second determination module, when the target distance is within the preset distance range, the target time length is longer than the preset time length, and the current time is not within the preset time range, when the target position is not in the preset area range, the face recognition is carried out through the recognition module, namely the mobile terminal can call the system resource to carry out the face recognition when the face recognition requirement of the user is determined, instead of calling system resources immediately after the screen is lightened, the face recognition is carried out, so that the electric quantity and the system resources of the mobile terminal are saved.
EXAMPLE five
Figure 6 is a schematic diagram of a hardware configuration of a mobile terminal implementing various embodiments of the present invention,
the mobile terminal 600 includes, but is not limited to: a radio frequency unit 601, a network module 602, an audio output unit 603, an input unit 604, a sensor 605, a display unit 606, a user input unit 607, an interface unit 608, a memory 609, a processor 610, and a power supply 611. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 6 is not intended to be limiting of mobile terminals, and that a mobile terminal may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the mobile terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
The processor 610 is configured to determine a target distance between a face of a target object and the mobile terminal when a screen of the mobile terminal is lit, and determine a target duration corresponding to a time period from a first spatial posture to a second spatial posture of the mobile terminal; and when the target distance is within a preset distance range and the target duration is greater than the preset duration, carrying out face recognition.
In the embodiment of the invention, when the screen is lightened, the mobile terminal can determine the target distance between the face of the target object and the mobile terminal and determine the target time length corresponding to the mobile terminal from the first space posture to the second space posture, and then when the target distance is within the preset distance range and the target time length is greater than the preset time length, the face recognition is carried out, namely the mobile terminal can call the system resources to carry out the face recognition when the face recognition requirement of the user is determined, instead of calling the system resources to carry out the face recognition immediately after the screen is lightened, so that the electric quantity and the system resources of the mobile terminal can be saved.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 601 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 610; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 601 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. Further, the radio frequency unit 601 may also communicate with a network and other devices through a wireless communication system.
The mobile terminal provides the user with wireless broadband internet access through the network module 602, such as helping the user send and receive e-mails, browse webpages, access streaming media, and the like.
The audio output unit 603 may convert audio data received by the radio frequency unit 601 or the network module 602 or stored in the memory 609 into an audio signal and output as sound. Also, the audio output unit 603 may also provide audio output related to a specific function performed by the mobile terminal 600 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 603 includes a speaker, a buzzer, a receiver, and the like.
The input unit 604 is used to receive audio or video signals. The input Unit 604 may include a Graphics Processing Unit (GPU) 6041 and a microphone 6042, and the Graphics processor 6041 processes image data of a still picture or video obtained by an image capturing apparatus (such as a camera) in a video capture mode or an image capture mode. The processed image frames may be displayed on the display unit 606. The image frames processed by the graphic processor 6041 may be stored in the memory 609 (or other storage medium) or transmitted via the radio frequency unit 601 or the network module 602. The microphone 6042 can receive sound, and can process such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 601 in case of the phone call mode.
The mobile terminal 600 also includes at least one sensor 605, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 6061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 6061 and/or the backlight when the mobile terminal 600 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of the mobile terminal (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 605 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 606 is used to display information input by the user or information provided to the user. The Display unit 606 may include a Display panel 6061, and the Display panel 6061 may be configured by a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 607 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 607 includes a touch panel 6071 and other input devices 6072. Touch panel 6071, also referred to as a touch screen, may collect touch operations by a user on or near it (e.g., operations by a user on or near touch panel 6071 using a finger, stylus, or any suitable object or accessory). The touch panel 6071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 610, receives a command from the processor 610, and executes the command. In addition, the touch panel 6071 can be implemented by various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The user input unit 607 may include other input devices 6072 in addition to the touch panel 6071. Specifically, the other input devices 6072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a track ball, a mouse, and a joystick, which are not described herein again.
Further, the touch panel 6071 can be overlaid on the display panel 6061, and when the touch panel 6071 detects a touch operation on or near the touch panel 6071, the touch operation is transmitted to the processor 610 to determine the type of the touch event, and then the processor 610 provides a corresponding visual output on the display panel 6061 according to the type of the touch event. Although the touch panel 6071 and the display panel 6061 are shown in fig. 6 as two separate components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 6071 and the display panel 6061 may be integrated to implement the input and output functions of the mobile terminal, and is not limited herein.
The interface unit 608 is an interface through which an external device is connected to the mobile terminal 600. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 608 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 600 or may be used to transmit data between the mobile terminal 600 and external devices.
The memory 609 may be used to store software programs as well as various data. The memory 609 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 609 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 610 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 609 and calling data stored in the memory 609, thereby integrally monitoring the mobile terminal. Processor 610 may include one or more processing units; preferably, the processor 610 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 610.
The mobile terminal 600 may further include a power supply 611 (e.g., a battery) for supplying power to the various components, and preferably, the power supply 611 is logically connected to the processor 610 via a power management system, so that functions of managing charging, discharging, and power consumption are performed via the power management system.
In addition, the mobile terminal 600 includes some functional modules that are not shown, and are not described in detail herein.
EXAMPLE six
Preferably, an embodiment of the present invention further provides a mobile terminal, which includes a processor 610, a memory 609, and a computer program stored in the memory 609 and capable of running on the processor 610, where the computer program is executed by the processor 610 to implement each process of the above-mentioned embodiment of the face recognition method, and can achieve the same technical effect, and in order to avoid repetition, details are not described here again.
EXAMPLE seven
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the above-mentioned embodiment of the face recognition method, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. The term "comprising" is used to specify the presence of stated features, integers, steps, operations, elements, components, operations.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (8)

1. A face recognition method is applied to a mobile terminal, and is characterized by comprising the following steps:
when a screen of the mobile terminal is lightened, determining a target distance between a face of a target object and the mobile terminal, and determining a target duration corresponding to the mobile terminal from a first space posture to a second space posture;
when the target distance is within a preset distance range and the target duration is longer than a preset duration, carrying out face recognition;
wherein, when the target distance is within a preset distance range and the target duration is greater than the preset duration, the method further comprises the following steps before the step of face recognition:
determining the current time and the current target position of the target object;
correspondingly, when the target distance is within a preset distance range and the target duration is greater than the preset duration, the step of face recognition is performed, and includes:
and when the target distance is within a preset distance range, the target time length is greater than a preset time length, the current time is not within a preset time range, and the target position is not within a preset area range, carrying out face recognition so as to carry out verification.
2. The method of claim 1, wherein the step of determining the target distance between the face of the target object and the mobile terminal comprises:
when the screen of the mobile terminal is lightened, determining the face area of a target object through a front camera;
and determining the target distance between the face of the target object and the mobile terminal according to the face area.
3. The method of claim 1, wherein the step of determining the target distance between the face of the target object and the mobile terminal comprises:
and when the screen of the mobile terminal is lightened, determining a target distance between the face of the target object and the mobile terminal through a distance sensor.
4. A mobile terminal, characterized in that the mobile terminal comprises:
the first determining module is used for determining a target distance between a face of a target object and the mobile terminal when a screen of the mobile terminal is lightened, and determining a target time length corresponding to the mobile terminal from a first space posture to a second space posture;
the recognition module is used for carrying out face recognition when the target distance is within a preset distance range and the target duration is longer than a preset duration;
further comprising:
the second determination module is used for determining the current time and the current target position of the target object;
correspondingly, the identification module comprises:
and the identification submodule is used for carrying out face identification to carry out verification when the target distance is within a preset distance range, the target time length is greater than the preset time length, the current time is not within a preset time range, and the target position is not within a preset area range.
5. The mobile terminal of claim 4, wherein the first determining module comprises:
the first determining submodule is used for determining the face area of a target object through a front camera when a screen of the mobile terminal is lightened;
and the second determining submodule is used for determining the target distance between the face of the target object and the mobile terminal according to the face area.
6. The mobile terminal of claim 4, wherein the first determining module comprises:
and the third determining submodule is used for determining the target distance between the face of the target object and the mobile terminal through the distance sensor when the screen of the mobile terminal is lightened.
7. A mobile terminal, characterized in that it comprises a processor, a memory and a computer program stored on the memory and executable on the processor, which computer program, when executed by the processor, implements the steps of the face recognition method according to any one of claims 1 to 3.
8. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the face recognition method according to any one of claims 1 to 3.
CN201810047316.4A 2018-01-16 2018-01-16 Face recognition method and mobile terminal Active CN108196663B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810047316.4A CN108196663B (en) 2018-01-16 2018-01-16 Face recognition method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810047316.4A CN108196663B (en) 2018-01-16 2018-01-16 Face recognition method and mobile terminal

Publications (2)

Publication Number Publication Date
CN108196663A CN108196663A (en) 2018-06-22
CN108196663B true CN108196663B (en) 2020-04-17

Family

ID=62589534

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810047316.4A Active CN108196663B (en) 2018-01-16 2018-01-16 Face recognition method and mobile terminal

Country Status (1)

Country Link
CN (1) CN108196663B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109543564A (en) * 2018-11-02 2019-03-29 北京小米移动软件有限公司 Based reminding method and device
CN111371945B (en) * 2018-12-25 2021-05-18 Tcl科技集团股份有限公司 Network switching method based on face recognition, mobile terminal and storage medium
CN111368670A (en) * 2020-02-26 2020-07-03 上海依图信息技术有限公司 Face recognition method and device, readable medium and system thereof

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AU2012253292B2 (en) * 2011-05-12 2015-10-29 Apple Inc. Presence sensing
CN103488525A (en) * 2012-06-08 2014-01-01 诺基亚公司 Determination of user preference relevant to scene
CN103677267A (en) * 2013-12-09 2014-03-26 惠州Tcl移动通信有限公司 Mobile terminal and awakening method and device thereof
CN106020667A (en) * 2016-05-17 2016-10-12 安徽华米信息科技有限公司 Control method and device for screen status switching, and intelligent electronic equipment
CN106231178B (en) * 2016-07-22 2019-07-26 维沃移动通信有限公司 A kind of self-timer method and mobile terminal
CN107454250A (en) * 2017-07-07 2017-12-08 广东小天才科技有限公司 Use eye care method during mobile terminal, device, mobile terminal and storage medium

Also Published As

Publication number Publication date
CN108196663A (en) 2018-06-22

Similar Documents

Publication Publication Date Title
CN108427876B (en) Fingerprint identification method and mobile terminal
CN108279948B (en) Application program starting method and mobile terminal
CN110113528B (en) Parameter obtaining method and terminal equipment
CN107835286B (en) Method for preventing mistaken unlocking and mobile terminal
CN111130989B (en) Information display and sending method and electronic equipment
CN109257505B (en) Screen control method and mobile terminal
CN109523253B (en) Payment method and device
CN107734170B (en) Notification message processing method, mobile terminal and wearable device
CN109343788B (en) Operation control method of mobile terminal and mobile terminal
CN107704182B (en) Code scanning method and mobile terminal
CN107682359B (en) Application registration method and mobile terminal
CN110096203B (en) Screenshot method and mobile terminal
CN109544172B (en) Display method and terminal equipment
CN108551525B (en) State determination method of movement track and mobile terminal
CN111246061B (en) Mobile terminal, method for detecting shooting mode and storage medium
CN108196663B (en) Face recognition method and mobile terminal
CN107832067B (en) Application updating method, mobile terminal and computer readable storage medium
CN109257489B (en) Display method and mobile terminal
KR20210013127A (en) Target recognition method and mobile terminal
CN111427644B (en) Target behavior identification method and electronic equipment
CN110929238B (en) Information processing method and device
CN109753776B (en) Information processing method and device and mobile terminal
CN109491572B (en) Screen capturing method of mobile terminal and mobile terminal
CN109164951B (en) Mobile terminal operation method and mobile terminal
CN108259807B (en) Communication method, mobile terminal and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant