CN107742072B - Face recognition method and mobile terminal - Google Patents

Face recognition method and mobile terminal Download PDF

Info

Publication number
CN107742072B
CN107742072B CN201710861684.8A CN201710861684A CN107742072B CN 107742072 B CN107742072 B CN 107742072B CN 201710861684 A CN201710861684 A CN 201710861684A CN 107742072 B CN107742072 B CN 107742072B
Authority
CN
China
Prior art keywords
expression
mobile terminal
user
face image
functional
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
CN201710861684.8A
Other languages
Chinese (zh)
Other versions
CN107742072A (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 CN201710861684.8A priority Critical patent/CN107742072B/en
Publication of CN107742072A publication Critical patent/CN107742072A/en
Application granted granted Critical
Publication of CN107742072B publication Critical patent/CN107742072B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • G06F21/32User authentication using biometric data, e.g. fingerprints, iris scans or voiceprints

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (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 face recognition, wherein the method comprises the following steps: after a screen locking interface is displayed, acquiring a human face image; matching the expression indicated by the face image with a preset functional expression; and when the expression indicated by the face image is successfully matched with the functional expression, executing the functional operation corresponding to the functional expression. By matching the acquired expression with the preset functional expression and executing the functional operation corresponding to the functional expression when the matching is successful, the situation that the mobile terminal immediately acquires a face image to unlock the mobile terminal after a screen locking interface is displayed by the mobile terminal is avoided, a user can control the mobile terminal to execute the face recognition operation of the mobile terminal according to the input expression, the flexibility of face recognition is improved, and the user experience is improved.

Description

Face recognition method and mobile terminal
Technical Field
The embodiment of the invention relates to the technical field of face recognition, in particular to a face recognition method and a mobile terminal.
Background
With the continuous development of the mobile terminal, the mobile terminal can be unlocked in a manual unlocking mode, and can also be unlocked in a face recognition mode.
In the related art, after the mobile terminal detects an operation triggered by a user and displays a screen locking interface, the mobile terminal may acquire facial information of the user through a camera, extract corresponding facial features from the facial information, and match the facial features with facial features stored in advance. And when the matching is successful, the mobile terminal can be unlocked, and the mobile terminal is unlocked in a face recognition mode.
However, when the user does not need to unlock the mobile terminal but wants to check time or push a message, the mobile terminal may also unlock the mobile terminal through face recognition, which causes inconvenience for the user and poor user experience.
Disclosure of Invention
The invention provides a face recognition method and a mobile terminal, and aims to solve the problem that when a user does not need to unlock the mobile terminal, the mobile terminal can be unlocked through face recognition, so that the user cannot conveniently unlock the mobile terminal through face recognition.
In order to solve the technical problem, the invention is realized as follows: a method of face recognition, the method comprising:
after a screen locking interface is displayed, acquiring a human face image;
matching the expression indicated by the face image with a preset functional expression;
and when the expression indicated by the face image is successfully matched with the functional expression, executing the functional operation corresponding to the functional expression.
In a first aspect, an embodiment of the present invention further provides a mobile terminal, where the mobile terminal includes:
the first acquisition module is used for acquiring a face image after a screen locking interface is displayed;
the first matching module is used for matching the expression indicated by the face image with a preset functional expression;
and the function execution module is used for executing the function operation corresponding to the function expression when the expression indicated by the face image is successfully matched with the function expression.
In a second aspect, an embodiment of the present invention provides a mobile terminal, including a processor, a memory, and a computer program stored on the memory and executable on the processor, where the computer program, when executed by the processor, implements the steps of the face recognition method according to any one of the above face recognition methods.
In the embodiment of the invention, the collected expression is matched with the preset functional expression, and the functional operation corresponding to the functional expression is executed when the matching is successful, so that the condition that the mobile terminal unlocks the mobile terminal by immediately collecting the face image after a screen locking interface is displayed by the mobile terminal is avoided, a user can control the mobile terminal to execute the face recognition operation of the mobile terminal according to the input expression, the flexibility of face recognition is improved, and the user experience is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive labor.
Fig. 1 is a flowchart illustrating steps of a face recognition method according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating steps of a face recognition method according to an embodiment of the present invention;
fig. 3 is a block diagram of a mobile terminal according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a hardware structure of a mobile terminal according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The face recognition method provided by the embodiment of the invention is applied to a mobile terminal, and the mobile terminal can be a smart phone, a computer, a multimedia player, an electronic reader, a wearable device and the like. The mobile terminal can support a three-dimensional Touch technology (Force-Touch), the Force Touch technology is a process of realizing the change of electrical data by sensing the generation and the change of pressure, generating an instruction by the electrical data, and finally achieving the pressure to indirectly realize the instruction, and the mobile terminal can sense the Force of light pressure and heavy pressure of a user on a Touch screen and call different corresponding functions by the Force Touch technology.
The face recognition method and the mobile terminal provided by the invention are described in detail by taking a few specific embodiments.
Example one
Referring to fig. 1, a flowchart illustrating steps of a face recognition method according to an embodiment of the present invention is shown, which may specifically include the following steps:
step 101, after a screen locking interface is displayed, a human face image is collected.
In the locked state, the screen of the mobile terminal does not display any interface, but when the operation triggered by the user is detected, the mobile terminal can display a screen locking interface so that the user can view the current time or view information pushed by the application program.
Moreover, after the mobile terminal displays the screen locking interface, the mobile terminal can also start the front camera, and the face image of the current user is collected through the front camera, so that corresponding operation can be executed in the subsequent steps according to the collected face image.
Specifically, a user triggers an operation of displaying a screen locking interface, the mobile terminal displays the screen locking interface in response to the operation triggered by the user, and after the screen locking interface is detected to be displayed, a front camera of the mobile terminal can be started, and scanning is performed through the front camera, so that a face image of the user is obtained.
It should be noted that the facial image collected by the mobile terminal may correspond to different expressions, so that in the subsequent steps, the mobile terminal may execute different function operations according to different expressions, thereby avoiding the situation that the mobile terminal is unlocked immediately after collecting the facial image.
And 102, matching the expression indicated by the face image with a preset functional expression.
Because the facial images can correspond to different expressions, after the mobile terminal collects the facial images, the expressions indicated by the facial images can be matched with preset functional expressions, and whether the expressions indicated by the facial images are consistent with the functional expressions or not is determined.
If the expression indicated by the face image is consistent with the functional expression, the matching is successful, and in the subsequent steps, the mobile terminal can execute corresponding operation according to the functional operation corresponding to the functional expression. However, if the expression indicated by the face image is not consistent with the functional expression, the matching is failed, and in the subsequent steps, the face image can be identified according to the process of unlocking the mobile terminal by face identification, so that the unlocking of the mobile terminal is completed.
It should be noted that, in practical applications, a plurality of functional expressions may be stored in advance in the mobile terminal, but the embodiment of the present invention is described by taking only one functional expression as an example, and the number of the functional expressions is not limited.
Also, the functional expressions may include static expressions and dynamic expressions, which are stored in different storage spaces, respectively. Correspondingly, the face image collected by the mobile terminal may also include a static expression and a dynamic expression, which is not limited in the embodiment of the present invention.
For example, the static expression may include expressions such as smiling face, Dudu mouth, eye closing, white eye, tooth exposing, and tongue opening, and the dynamic expression may include gestures such as head deviation, head nodding, face covering, hand waving, V-shaped gestures, and pistol gestures, and the embodiments of the present invention do not limit the expressions corresponding to the static expression and the dynamic expression.
And 103, when the expression indicated by the face image is successfully matched with the functional expression, executing a functional operation corresponding to the functional expression.
When the expression indicated by the face image is successfully matched with the preset functional expression, the fact that the user does not want to unlock the mobile terminal but wants the mobile terminal to be capable of executing the functional operation corresponding to the functional expression is indicated. For example, the face recognition unlocking is stopped, the face recognition unlocking is delayed, the failure recognition is performed, and the like, which is not limited in the embodiment of the present invention.
In summary, according to the face recognition method provided by the embodiment of the invention, the collected expression is matched with the preset functional expression, and the functional operation corresponding to the functional expression is executed when the matching is successful, so that the situation that the mobile terminal immediately collects the face image to unlock the mobile terminal after the screen locking interface is displayed by the mobile terminal is avoided, the user can control the mobile terminal to execute the face recognition operation of the mobile terminal according to the input expression, the flexibility of face recognition is improved, and the user experience is improved.
Example two
Referring to fig. 2, a flowchart illustrating steps of a face recognition method according to an embodiment of the present invention is shown, which may specifically include the following steps:
step 201, establishing a corresponding relation between the expressions and the function operations.
In order to match the collected user expression, the mobile terminal needs to enter the expression of the user in advance, and establish a corresponding relationship between the entered expression and the function operation, so that in the subsequent step, the mobile terminal can execute corresponding operation according to the corresponding relationship.
Optionally, the mobile terminal may collect an expression previously entered by the user, acquire a function operation preset by the user, and finally establish a correspondence between the expression and the function operation. The expression input by the user may be a static expression or a dynamic expression, which is not limited in the embodiments of the present invention.
Specifically, after detecting an entry operation triggered by a user, the mobile terminal can display an expression library to the user, so that the user can enter a corresponding expression according to the expression provided in the expression library. After the expression is input, the mobile terminal can show the function operation which can be executed by the expression to the user so that the user can select the function operation. After the user finishes selecting, the corresponding relation between the expression and the function operation can be established according to the function operation selected by the user.
In addition, when a user enters a functional expression, the mobile terminal needs to detect the eyeball gaze direction of the user in order to clearly obtain the expression of the user. Therefore, the mobile terminal can acquire the eyeball watching direction of the user, and when the included angle between the eyeball watching direction and the screen perpendicular line of the mobile terminal is larger than the preset included angle, the expression can be collected.
It should be noted that when the mobile terminal enters the expression, the face image of the user can be continuously acquired, and the situation that the expression is incomplete when the user enters the dynamic expression is avoided. Moreover, the function operation corresponding to the expression input by the user may include: stopping recognition, delaying recognition or failing recognition, wherein the stopping recognition is stopping face recognition, and the mobile terminal is not unlocked according to the face recognition; delaying recognition to delay face recognition so as to unlock the mobile terminal; the failure recognition is the failure of the consciousness, and prevents the user from being forced to perform face recognition under the emergency.
In addition, the function operation corresponding to the expression entered by the user may be applied to other aspects besides the aspect of unlocking the mobile terminal, for example, playing audio data, turning on or off a flashlight function, turning on a camera function, unlocking the mobile terminal and turning on an application program, and the like.
Step 202, after the screen locking interface is displayed, a human face image is collected.
This step 202 is similar to step 101 and will not be described herein again.
And step 203, matching the expression indicated by the face image with a preset functional expression.
After the face image is obtained, the face image which is continuously obtained can be analyzed to determine whether the obtained face image changes, so that the expression which is input by the user is determined to be a static expression or a dynamic expression. After the expression of the user is determined, matching can be performed in a corresponding static expression library or a corresponding dynamic expression library, so that whether the expression indicated by the input face image is matched with the functional expression in the expression library or not is determined.
Step 204 may be performed when the matching of the expression indicated by the face image with the preset functional expression is successful, but step 205 needs to be performed if the matching of the expression indicated by the face image with the preset functional expression fails.
And step 204, when the expression indicated by the face image is successfully matched with the functional expression, executing functional operation corresponding to the functional expression.
When the expression indicated by the face image is successfully matched with the functional expression, the mobile terminal can acquire the target function operation corresponding to the functional expression according to the corresponding relationship between the expression and the functional operation, which is established in advance, and execute the target function operation.
And step 205, when the matching of the expression indicated by the face image and the functional expression fails, unlocking the mobile terminal.
When the matching of the expression indicated by the face image and the functional expression fails, the face image can be matched with a preset unlocking image, and when the matching of the face image and the unlocking image succeeds, the mobile terminal is unlocked.
The unlocking image is an image which is input by a user and used for unlocking the mobile terminal.
In summary, according to the face recognition method provided by the embodiment of the invention, the collected expression is matched with the preset functional expression, and the functional operation corresponding to the functional expression is executed when the matching is successful, so that the situation that the mobile terminal immediately collects the face image to unlock the mobile terminal after the screen locking interface is displayed by the mobile terminal is avoided, the user can control the mobile terminal to execute the face recognition operation of the mobile terminal according to the input expression, the flexibility of face recognition is improved, and the user experience is improved.
Furthermore, by acquiring the eyeball watching direction of the user, when the included angle between the eyeball watching direction and the screen perpendicular line meets a certain condition, the expression input by the user is acquired, so that the error of the input expression caused by different angles can be avoided, and the accuracy of the input expression by the user is improved.
EXAMPLE III
Referring to fig. 3, a block diagram of a mobile terminal according to an embodiment of the present invention is shown, which may specifically include:
the first acquisition module 301 is configured to acquire a face image after displaying a screen locking interface;
a first matching module 302, configured to match an expression indicated by the face image with a preset functional expression;
and the function executing module 303 is configured to, when the expression indicated by the face image is successfully matched with the functional expression, execute a functional operation corresponding to the functional expression.
Optionally, the mobile terminal further includes:
the second acquisition module is used for acquiring expressions which are input by a user in advance;
the acquisition module is used for acquiring the function operation preset by a user;
and the corresponding relation establishing module is used for establishing the corresponding relation between the expression and the function operation.
Optionally, the second acquisition module includes:
the obtaining sub-module is used for obtaining the eyeball watching direction of the user;
and the acquisition submodule is used for acquiring the expression when the included angle between the eyeball watching direction and the screen perpendicular line of the mobile terminal is larger than a preset included angle.
Optionally, the mobile terminal further includes:
the second matching module is used for matching the facial image with a preset unlocking image when the facial image indicated expression fails to be matched with the functional expression;
and the unlocking module is used for unlocking the mobile terminal when the face image is successfully matched with the unlocking image.
Optionally, the function operation corresponding to the functional expression includes: stop identification, delay identification, or fail identification.
The mobile terminal provided in the embodiment of the present invention can implement each process implemented by the mobile terminal in the method embodiments of fig. 1 to fig. 2, and is not described herein again to avoid repetition.
In summary, according to the mobile terminal provided by the embodiment of the invention, the collected expression is matched with the preset functional expression, and the functional operation corresponding to the functional expression is executed when the matching is successful, so that the situation that the mobile terminal immediately collects a face image to unlock the mobile terminal after a screen locking interface is displayed by the mobile terminal is avoided, a user can control the mobile terminal to execute the face recognition operation of the mobile terminal according to the input expression, the flexibility of face recognition is improved, and the user experience is improved.
Fig. 4 is a schematic diagram of a hardware structure of a mobile terminal for implementing various embodiments of the present invention, where the mobile terminal 400 includes, but is not limited to: radio frequency unit 401, network module 402, audio output unit 403, input unit 404, sensor 405, display unit 406, user input unit 407, interface unit 408, memory 409, processor 410, and power supply 411. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 4 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 input unit 404 is configured to acquire a face image after displaying a screen locking interface;
a processor 410, configured to match an expression indicated by the face image with a preset functional expression;
the processor 410 is further configured to, when the facial expression indicated by the facial image is successfully matched with the functional expression, execute a functional operation corresponding to the functional expression.
In summary, according to the mobile terminal provided by the embodiment of the invention, the collected expression is matched with the preset functional expression, and the functional operation corresponding to the functional expression is executed when the matching is successful, so that the situation that the mobile terminal immediately collects a face image to unlock the mobile terminal after a screen locking interface is displayed by the mobile terminal is avoided, a user can control the mobile terminal to execute the face recognition operation of the mobile terminal according to the input expression, the flexibility of face recognition is improved, and the user experience is improved.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 401 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 410; in addition, the uplink data is transmitted to the base station. Typically, radio unit 401 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 unit 401 can 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 402, such as helping the user send and receive e-mails, browse web pages, and access streaming media.
The audio output unit 403 may convert audio data received by the radio frequency unit 401 or the network module 402 or stored in the memory 409 into an audio signal and output as sound. Also, the audio output unit 403 may also provide audio output related to a specific function performed by the mobile terminal 400 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 403 includes a speaker, a buzzer, a receiver, and the like.
The input unit 404 is used to receive audio or video signals. The input Unit 404 may include a Graphics Processing Unit (GPU) 4041 and a microphone 4042, and the Graphics processor 4041 processes image data of a still picture or video obtained by an image capturing apparatus (such as a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 406. The image frames processed by the graphic processor 4041 may be stored in the memory 409 (or other storage medium) or transmitted via the radio frequency unit 401 or the network module 402. The microphone 4042 may receive sound, and may be capable of processing such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 401 in case of the phone call mode.
The mobile terminal 400 also includes at least one sensor 405, 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 4061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 4061 and/or the backlight when the mobile terminal 400 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 405 may also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., which will not be described in detail herein.
The display unit 406 is used to display information input by the user or information provided to the user. The Display unit 406 may include a Display panel 4061, and the Display panel 4061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 407 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 407 includes a touch panel 4071 and other input devices 4072. Touch panel 4071, 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 4071 using a finger, a stylus, or any suitable object or attachment). The touch panel 4071 may include two parts, 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 410, receives a command from the processor 410, and executes the command. In addition, the touch panel 4071 can be implemented by using various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 4071, the user input unit 407 may include other input devices 4072. Specifically, the other input devices 4072 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 4071 can be overlaid on the display panel 4061, and when the touch panel 4071 detects a touch operation thereon or nearby, the touch operation is transmitted to the processor 410 to determine the type of the touch event, and then the processor 410 provides a corresponding visual output on the display panel 4061 according to the type of the touch event. Although in fig. 4, the touch panel 4071 and the display panel 4061 are two separate components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 4071 and the display panel 4061 may be integrated to implement the input and output functions of the mobile terminal, which is not limited herein.
The interface unit 408 is an interface through which an external device is connected to the mobile terminal 400. 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 408 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 400 or may be used to transmit data between the mobile terminal 400 and external devices.
The memory 409 may be used to store software programs as well as various data. The memory 409 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 409 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 410 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 409 and calling data stored in the memory 409, thereby integrally monitoring the mobile terminal. Processor 410 may include one or more processing units; preferably, the processor 410 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 410.
The mobile terminal 400 may further include a power supply 411 (e.g., a battery) for supplying power to various components, and preferably, the power supply 411 may be logically connected to the processor 410 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system.
In addition, the mobile terminal 400 includes some functional modules that are not shown, and thus, are not described in detail herein.
Preferably, an embodiment of the present invention further provides a mobile terminal, which includes a processor 410, a memory 409, and a computer program that is stored in the memory 409 and can be run on the processor 410, and when being executed by the processor 410, 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 described here again.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements 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. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (9)

1. A face recognition method is applied to a mobile terminal, and is characterized by comprising the following steps:
after a screen locking interface is displayed, acquiring a human face image;
matching the expression indicated by the face image with a preset functional expression;
when the expression indicated by the face image is successfully matched with the functional expression, executing functional operation corresponding to the functional expression;
wherein the method further comprises:
when the matching of the facial expression indicated by the facial image and the functional expression fails, matching the facial image with a preset unlocking image;
and when the face image is successfully matched with the unlocking image, unlocking the mobile terminal.
2. The method of claim 1, wherein prior to said acquiring a face image, the method further comprises:
collecting expressions input by a user in advance;
acquiring function operation preset by a user;
and establishing a corresponding relation between the expression and the function operation.
3. The method of claim 2, wherein the capturing of the expression previously entered by the user comprises:
acquiring the eyeball watching direction of a user;
and when the included angle between the eyeball watching direction and the screen perpendicular line of the mobile terminal is larger than a preset included angle, acquiring the expression.
4. The method according to any one of claims 1 to 3, wherein the function operation corresponding to the function expression comprises: stop identification, delay identification, or fail identification.
5. A mobile terminal, characterized in that the mobile terminal comprises:
the first acquisition module is used for acquiring a face image after a screen locking interface is displayed;
the first matching module is used for matching the expression indicated by the face image with a preset functional expression;
the function execution module is used for executing the function operation corresponding to the function expression when the expression indicated by the face image is successfully matched with the function expression;
wherein the mobile terminal further comprises:
the second matching module is used for matching the facial image with a preset unlocking image when the facial image indicated expression fails to be matched with the functional expression;
and the unlocking module is used for unlocking the mobile terminal when the face image is successfully matched with the unlocking image.
6. The mobile terminal of claim 5, wherein the mobile terminal further comprises:
the second acquisition module is used for acquiring expressions which are input by a user in advance;
the acquisition module is used for acquiring the function operation preset by a user;
and the corresponding relation establishing module is used for establishing the corresponding relation between the expression and the function operation.
7. The mobile terminal of claim 6, wherein the second acquisition module comprises:
the obtaining sub-module is used for obtaining the eyeball watching direction of the user;
and the collection submodule is used for collecting the expression when the included angle between the eyeball watching direction and the screen perpendicular line of the mobile terminal is larger than a preset included angle.
8. The mobile terminal according to any one of claims 5 to 7, wherein the function operation corresponding to the function expression comprises: stop identification, delay identification, or fail identification.
9. 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 4.
CN201710861684.8A 2017-09-20 2017-09-20 Face recognition method and mobile terminal Active CN107742072B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710861684.8A CN107742072B (en) 2017-09-20 2017-09-20 Face recognition method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710861684.8A CN107742072B (en) 2017-09-20 2017-09-20 Face recognition method and mobile terminal

Publications (2)

Publication Number Publication Date
CN107742072A CN107742072A (en) 2018-02-27
CN107742072B true CN107742072B (en) 2021-06-25

Family

ID=61236128

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710861684.8A Active CN107742072B (en) 2017-09-20 2017-09-20 Face recognition method and mobile terminal

Country Status (1)

Country Link
CN (1) CN107742072B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108830062B (en) * 2018-05-29 2022-10-04 浙江水科文化集团有限公司 Face recognition method, mobile terminal and computer readable storage medium
CN112929469B (en) * 2018-06-12 2023-09-01 Oppo广东移动通信有限公司 Sliding mechanism control method, sliding mechanism control device, electronic equipment and storage medium
CN109086095A (en) * 2018-06-20 2018-12-25 宇龙计算机通信科技(深圳)有限公司 The quick open method of application program, device, terminal and storage medium
CN109151180B (en) 2018-07-27 2020-09-01 维沃移动通信有限公司 Object identification method and mobile terminal
CN110867000A (en) * 2018-08-17 2020-03-06 深圳市艾维普思科技有限公司 Electronic cigarette unlocking method and system based on face recognition
CN111507143B (en) * 2019-01-31 2023-06-02 北京字节跳动网络技术有限公司 Expression image effect generation method and device and electronic equipment
CN110866465A (en) * 2019-10-29 2020-03-06 维沃移动通信有限公司 Control method of electronic equipment and electronic equipment
CN113852721B (en) * 2020-06-10 2023-01-10 Oppo广东移动通信有限公司 Device control method, device, storage medium and electronic device
CN112672053A (en) * 2020-12-23 2021-04-16 深圳创维-Rgb电子有限公司 Photographing method, photographing device, terminal equipment and computer-readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102509053A (en) * 2011-11-23 2012-06-20 唐辉 Authentication and authorization method, processor, equipment and mobile terminal
CN102946481A (en) * 2012-11-13 2013-02-27 广东欧珀移动通信有限公司 Method and system for unlocking human face expression
CN103116404A (en) * 2013-02-25 2013-05-22 广东欧珀移动通信有限公司 Face recognition unlocking method and mobile smart terminal
CN104636734A (en) * 2015-02-28 2015-05-20 深圳市中兴移动通信有限公司 Terminal face recognition method and device
CN105825112A (en) * 2016-03-18 2016-08-03 北京奇虎科技有限公司 Mobile terminal unlocking method and device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9164609B2 (en) * 2013-03-13 2015-10-20 Amazon Technologies, Inc. Managing sensory information of a user device
CN106648386A (en) * 2016-10-09 2017-05-10 广东小天才科技有限公司 Intelligent terminal operation method and device
CN106708559A (en) * 2016-11-15 2017-05-24 珠海格力电器股份有限公司 Terminal desktop application starting method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102509053A (en) * 2011-11-23 2012-06-20 唐辉 Authentication and authorization method, processor, equipment and mobile terminal
CN102946481A (en) * 2012-11-13 2013-02-27 广东欧珀移动通信有限公司 Method and system for unlocking human face expression
CN103116404A (en) * 2013-02-25 2013-05-22 广东欧珀移动通信有限公司 Face recognition unlocking method and mobile smart terminal
CN104636734A (en) * 2015-02-28 2015-05-20 深圳市中兴移动通信有限公司 Terminal face recognition method and device
CN105825112A (en) * 2016-03-18 2016-08-03 北京奇虎科技有限公司 Mobile terminal unlocking method and device

Also Published As

Publication number Publication date
CN107742072A (en) 2018-02-27

Similar Documents

Publication Publication Date Title
CN107742072B (en) Face recognition method and mobile terminal
CN109078319B (en) Game interface display method and terminal
CN109246360B (en) Prompting method and mobile terminal
CN109240577B (en) Screen capturing method and terminal
CN107835286B (en) Method for preventing mistaken unlocking and mobile terminal
CN107870674B (en) Program starting method and mobile terminal
CN109343788B (en) Operation control method of mobile terminal and mobile terminal
CN108256308B (en) Face recognition unlocking control method and mobile terminal
CN109739429B (en) Screen switching processing method and mobile terminal equipment
CN109523253B (en) Payment method and device
CN108376096B (en) Message display method and mobile terminal
CN109145731B (en) Fingerprint identification method and device and mobile terminal
CN108650408B (en) Screen unlocking method and mobile terminal
CN107609363B (en) Unlocking method and mobile terminal
CN109544172B (en) Display method and terminal equipment
CN109144393B (en) Image display method and mobile terminal
CN108664818B (en) Unlocking control method and device
WO2019223493A1 (en) Object recognition method and mobile terminal
CN111078002A (en) Suspended gesture recognition method and terminal equipment
CN107809515B (en) Display control method and mobile terminal
CN109166164B (en) Expression picture generation method and terminal
CN108345780B (en) Unlocking control method and mobile terminal
CN110519443B (en) Screen lightening method and mobile terminal
CN108196663B (en) Face recognition method and mobile terminal
CN107895108B (en) Operation management method and mobile terminal

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