CN108810276B - Face recognition method and mobile terminal - Google Patents

Face recognition method and mobile terminal Download PDF

Info

Publication number
CN108810276B
CN108810276B CN201810586130.6A CN201810586130A CN108810276B CN 108810276 B CN108810276 B CN 108810276B CN 201810586130 A CN201810586130 A CN 201810586130A CN 108810276 B CN108810276 B CN 108810276B
Authority
CN
China
Prior art keywords
mobile terminal
face recognition
target
detected
motion state
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
CN201810586130.6A
Other languages
Chinese (zh)
Other versions
CN108810276A (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 Shenzhen Co Ltd
Original Assignee
Vivo Mobile Communication Shenzhen 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 Shenzhen Co Ltd filed Critical Vivo Mobile Communication Shenzhen Co Ltd
Priority to CN201810586130.6A priority Critical patent/CN108810276B/en
Publication of CN108810276A publication Critical patent/CN108810276A/en
Application granted granted Critical
Publication of CN108810276B publication Critical patent/CN108810276B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/12Details of telephonic subscriber devices including a sensor for measuring a physical value, e.g. temperature or motion

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Computer Hardware Design (AREA)
  • Environmental & Geological Engineering (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the invention provides a face recognition method and a mobile terminal, wherein the method comprises the following steps: and in the process of carrying out face recognition on the mobile terminal, if the mobile terminal is detected to be in a target motion state, canceling the face recognition, and if not, continuing to carry out the face recognition. By the method, the mobile terminal can cancel or continue facial recognition according to different requirements of the user in the process of facial recognition, so that the facial recognition can be cancelled in time when the facial recognition is triggered by mistake, the requirement of sudden and temporary facial recognition cancellation of the user can be met, the mobile terminal is more convenient and rapid, 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 mobile terminals, in particular to a face recognition method and a mobile terminal.
Background
Along with the development of mobile terminals, more and more mobile terminals support the function of facial recognition, and only a user needs to align a face to a front camera of a mobile phone, whether the facial features are consistent with those recorded in advance can be identified, so that the user can use some functions of the mobile terminal, such as: the unlocking, payment and other authorities are verified, the operation is simple, and the response is quick. Different from fingerprint identification, the process of face identification is non-contact, and a finger does not need to be contacted with a fixed identification position like fingerprint identification, so that the face identification is difficult to have an explicit trigger mode, and is easy to cause false trigger or influence the normal use of other functions.
For example: in the prior art, when a mobile terminal in a screen lock state is unlocked, facial recognition is usually started after a user lights up a display screen of the mobile terminal (or an operation of triggering the lighting of the display screen is performed). However, before the mobile terminal does not add the face recognition function, the display screen is usually lighted up to present a screen locking interface, so that the user can check time and notice on the screen locking interface, enjoy wallpaper of the user and even control the playing and pausing of music. After the mobile terminal added the facial recognition function, just started facial recognition after lighting up the display screen, the mobile terminal unblock gets into standby state, does not stay at the lock screen interface, and at this moment, the user can't use the function that the lock screen interface provided, if: when a user wants to pause music, the user immediately starts facial recognition after lighting the display screen and enters an unlocked interface, so that the user cannot pause the music in playing in the screen locking interface, and inconvenience is brought to the user.
Therefore, how to cancel face recognition in the process of face recognition by a mobile terminal is a technical problem to be solved urgently at present.
Disclosure of Invention
The embodiment of the invention provides a face recognition method and a mobile terminal, and aims to solve the problem of canceling face recognition in the face recognition process of the mobile terminal.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a method for face recognition, which is applied to a mobile terminal, and includes:
and in the process of carrying out face recognition on the mobile terminal, if the mobile terminal is detected to be in a target motion state, canceling the face recognition, and if not, continuing to carry out the face recognition.
In a second aspect, an embodiment of the present invention provides a mobile terminal, including:
and the face recognition module is used for canceling the face recognition if the mobile terminal is detected to be in a target motion state in the face recognition process of the mobile terminal, and otherwise, continuing the face recognition.
In a third 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 operable on the processor, where the computer program, when executed by the processor, implements the steps of the method for face recognition as described above.
In a fourth aspect, the present invention provides a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the steps of the face recognition method as described above.
In the embodiment of the invention, the face recognition can be cancelled or continued according to different requirements of the user in the process of carrying out the face recognition by the mobile terminal, so that the face recognition can be cancelled in time when the face recognition is triggered by mistake, the requirement of the user for suddenly and temporarily cancelling the face recognition can be met, the method and the device are more convenient and faster, and the user experience is improved.
Drawings
Fig. 1 is a flowchart illustrating a method of face recognition according to a first embodiment of the present invention;
FIG. 2 is a diagram illustrating a mobile terminal flipping towards a target direction in a face recognition method according to some preferred embodiments of the invention;
FIG. 3 is a flow chart illustrating a specific application scenario in the face recognition method according to some preferred embodiments of the present invention;
fig. 4 is a schematic structural diagram of a mobile terminal according to a second embodiment of the present invention;
FIG. 5 is a block diagram of a mobile terminal in accordance with some preferred embodiments of the present invention;
fig. 6 is a schematic structural diagram of a mobile terminal according to a third embodiment of the present invention;
fig. 7 is a schematic hardware structure diagram of a mobile terminal implementing 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.
Referring to fig. 1, fig. 1 is a flowchart illustrating a method for face recognition according to a first embodiment of the present invention, where the method is applied to a mobile terminal, and includes:
step S11: and in the process of carrying out face recognition on the mobile terminal, if the mobile terminal is detected to be in a target motion state, canceling the face recognition, and if not, continuing to carry out the face recognition.
The process of the mobile terminal for face recognition comprises the following stages: the method comprises a starting stage, a face collecting stage, a matching analysis stage and a result outputting stage. At any stage of the mobile terminal in the process of face recognition, the motion state of the mobile terminal can be detected in real time through devices such as an acceleration sensor, a gravity sensor or a gyroscope in the mobile terminal, for example: direction, angle, speed, etc. of the mobile terminal motion. And according to the motion state of the mobile terminal detected in real time and the target motion state set according to actual requirements, taking the target motion state as a standard for judging whether the facial recognition needs to be cancelled or not, so as to cancel the facial recognition or continue the facial recognition.
The embodiment of the invention can cancel or continue facial recognition according to different requirements of users in the process of facial recognition of the mobile terminal, not only can timely cancel facial recognition when facial recognition is triggered by mistake, but also can meet the requirement of sudden and temporary facial recognition cancellation of users, is more convenient and faster, and improves user experience.
In some preferred embodiments of the present invention, the target motion state is a turning toward a target direction, and a turning angle is greater than or equal to a target angle.
Optionally, when it is detected that the mobile terminal is turned towards a target direction, obtaining an angle at which the mobile terminal is turned towards the target direction; canceling facial recognition when the turned angle is greater than or equal to the target angle; and when the turning angle is smaller than the target angle, continuing to perform face recognition.
In the face acquisition stage, when the mobile terminal is detected to turn over towards the target direction and the turning angle is larger than or equal to the target angle, the front camera of the mobile terminal cannot detect the complete face of the user, so that the fact that the user needs to cancel face recognition and further cancel face recognition is indicated.
The target direction can be a direction forming an angle with a plane where the mobile terminal is located, or any other set direction, and the target angle can be set according to actual requirements. The mobile terminal can be turned around a target axis (for example, one edge of the mobile terminal) when turned.
For example, referring to fig. 2, the mobile terminal 21 is located right in front of the face 22 of the user, the target direction is the direction indicated by the arrow in fig. 2, the target angle is 30 °, when the mobile terminal is detected to turn around the axis in the direction indicated by the arrow, the turning angle of the mobile terminal is obtained, when the turning angle is greater than or equal to 30 °, the front camera of the mobile terminal cannot detect the complete face of the user, the face recognition is cancelled, and when the turning angle is less than 30 °, the face recognition is continued.
Optionally, the target angle is 180 °.
When the mobile terminal is turned over by 180 degrees, the face of the user faces the face opposite to the display screen of the mobile terminal, the face of the user cannot be detected by the front camera of the mobile terminal, face recognition is cancelled, and otherwise, face recognition is continued.
In the starting stage, the matching analysis stage or the result output stage, when the mobile terminal is detected to turn towards the target direction and the turning angle is larger than or equal to the target angle, the face recognition can be cancelled.
In other preferred embodiments of the present invention, the target motion state is a shake state. That is, when it is detected that the mobile terminal is shaken, the face recognition is cancelled, otherwise, the face recognition is continued.
In the face acquisition stage, when the mobile terminal is detected to be shaken, the front camera of the mobile terminal cannot clearly detect the complete face of the user, which indicates that the user needs to cancel face recognition, and further cancel face recognition. In the starting stage, the matching analysis stage or the result output stage, when the mobile terminal is detected to be shaken, the face recognition can be cancelled.
In some preferred embodiments of the present invention, before step S11, the method further comprises: and in the case that the condition that the triggering condition for triggering the mobile terminal to start the face recognition is met is detected, the face recognition is started.
Optionally, the trigger condition is that a target physical key (e.g., a power key and/or a volume key) of the mobile terminal is pressed.
Optionally, the trigger condition is that a target function of the target application is detected to be triggered.
The target application can be a financing application and a shopping application installed on the mobile terminal, and the target function can be a login and payment function. Such as: a user transfers accounts to friends by using a mobile phone banking application, and when the fact that a transfer confirmation key is clicked is detected, facial recognition is started, so that the authority of the user can be conveniently and quickly verified. For another example: a user confirms receipt using a shopping application and initiates facial recognition when a "confirm receipt" button is detected. Of course, the target application and the target function can be specifically set according to actual requirements, and the method is more flexible and convenient.
Although the user has psychological expectation of triggering face recognition when triggering a target function of a target application, and is not easy to cause unexpected false triggering, after the face recognition is started, when the user suddenly wants to cancel the face recognition, the face recognition method in the embodiment of the invention can more conveniently cancel the face recognition, and further improves the user experience.
Optionally, the triggering condition is that when the mobile terminal is in a screen locking state, an operation for lighting a display screen of the mobile terminal is detected, and a target touch operation is not detected.
Wherein the detected operation for lighting up the display screen of the mobile terminal may be at least one of: the method comprises the following steps of carrying out wrist-lifting unlocking operation, pressing a screen locking/unlocking key, pressing a power key and carrying out touch operation of double-clicking a display screen. The wrist-lifting unlocking operation is an operation of lifting the wrist of the mobile terminal by a user, and whether the wrist-lifting unlocking operation exists or not can be judged by detecting the inclined angle of the mobile terminal.
The target touch operation may be set according to actual requirements, for example: the target touch operation may be a pressing operation of pressing a display area on the display screen, or a sliding operation of drawing a target pattern on the display screen, or a clicking operation of clicking a target key displayed on the display screen.
The target key may be a cancel key for indicating that facial recognition is not performed, or a key for triggering a target function of the target application, such as: and a pause key displayed on the screen locking interface and used for triggering the music player to pause playing music.
Referring to fig. 3, in a specific application scenario, a mobile terminal is in a screen lock state, and when an operation for lighting a display screen of the mobile terminal is detected, the display screen is lighted; when the target touch operation is detected, the screen locking state is kept, and the face recognition is not started, so that the requirement that a user only wants to light the display screen without starting the face recognition to unlock is met, and the user can conveniently check time or push messages on a screen locking interface; otherwise, facial recognition is initiated. Assuming that the time required by the mobile terminal for the face recognition process is 3s, within the 3s, if the mobile terminal is detected to turn towards the target direction, acquiring the turning angle of the mobile terminal towards the target direction; when the turning angle is larger than or equal to the target angle, the face recognition is cancelled; and when the turning angle is smaller than the target angle, continuing to perform facial recognition so as to unlock the mobile terminal.
In the first of the three common unlocking modes in the prior art, after a display screen is lightened, facial recognition is started, the mobile terminal is unlocked and enters a standby state without being left on a screen locking interface, and a user cannot use the function of the screen locking interface, so that inconvenience is brought to the user; secondly, when the mobile terminal in the screen locking state is unlocked, the face recognition is not carried out on the screen locking interface, and the face recognition is started in other modes (such as sliding upwards on a display screen), so that the operation is complicated; thirdly, when the display screen is lighted up, the face recognition is started to unlock, but the operation still stays in the screen locking interface, the real unlocking can be realized only by operating one step, and the operation is very complicated. The embodiment of the invention not only provides various ways for triggering the face recognition operation, but also cancels the face recognition after the face recognition is started, thereby meeting different requirements of users, such as: only the display screen is desired to be lit without initiating facial recognition for unlocking; lightening a display screen and unlocking the mobile terminal; after the facial recognition is started, the facial recognition needs to be cancelled, and the like, so that the operation is simple, convenient and fast.
In the embodiment of the present invention, the time required for the mobile terminal to perform the face recognition process may be set as required, for example, 3s or 5 s. The time required for the face recognition process is the time required from the start of face recognition to the end of face recognition, namely the time required for starting face recognition, and is added with the time for collecting the facial features of the user, the time for comparing the facial features with the stored facial features and the time for outputting the comparison result. In the process of the face recognition, the face recognition can be cancelled according to needs so as to meet different requirements of users.
Based on the same inventive concept as the above-mentioned face recognition method, the present invention further provides a mobile terminal, referring to fig. 4, where fig. 4 is a schematic structural diagram of a mobile terminal 40 according to a second embodiment of the present invention, including:
the face recognition module 41 is configured to, in a process of performing face recognition on the mobile terminal, cancel face recognition if it is detected that the mobile terminal is in a target motion state, and otherwise, continue performing face recognition.
The mobile terminal provided by the embodiment of the invention can cancel or continue facial recognition according to different requirements of the user in the facial recognition process, not only can cancel the facial recognition in time when the facial recognition is triggered by mistake, but also can meet the requirement of the user for suddenly and temporarily canceling the facial recognition, is more convenient and faster, and improves the user experience.
Preferably, the target motion state is a state of turning towards a target direction, and the turning angle is greater than or equal to a target angle; or the target motion state is a shaking state.
Preferably, referring to fig. 5, the mobile terminal 40 further includes:
an initiating module 42, configured to initiate face recognition if it is detected that a trigger condition that triggers the mobile terminal to initiate face recognition is met.
Preferably, the trigger condition is that when the mobile terminal is in a screen locking state, an operation for lighting a display screen of the mobile terminal is detected, and a target touch operation is not detected; or, the triggering condition is that a target function of the target application is detected to be triggered; or, the triggering condition is that a target physical key of the mobile terminal is pressed.
Preferably, the target touch operation is a pressing operation of pressing a display area on the display screen, or a sliding operation of drawing a target pattern on the display screen, or a clicking operation of clicking a target key displayed on the display screen.
Based on the same inventive concept as the method for face recognition, the present invention further provides a mobile terminal, referring to fig. 6, fig. 6 is a schematic structural diagram of a mobile terminal 60 according to a third embodiment of the present invention, and includes a processor 61, a memory 62, and a computer program stored in the memory 62 and operable on the processor 61, where the processor 61 implements the following steps when executing the program:
and in the process of carrying out face recognition on the mobile terminal, if the mobile terminal is detected to be in a target motion state, canceling the face recognition, and if not, continuing to carry out the face recognition.
The processor provided by the embodiment of the invention can cancel or continue facial recognition according to different requirements of a user in the process of facial recognition of the mobile terminal, not only can timely cancel facial recognition when facial recognition is triggered by mistake, but also can meet the requirement of sudden and temporary facial recognition cancellation of the user, is more convenient and faster, and improves user experience.
Preferably, the target motion state is a state of turning towards a target direction, and the turning angle is greater than or equal to a target angle; or the target motion state is a shaking state.
Preferably, the computer program when executed by the processor 61 further realizes the steps of:
in the process of performing face recognition by the mobile terminal, if the mobile terminal is detected to be in a target motion state, canceling the face recognition, otherwise, before the step of continuing the face recognition, the method further comprises:
and in the case that the condition that the triggering condition for triggering the mobile terminal to start the face recognition is met is detected, the face recognition is started.
Preferably, the trigger condition is that when the mobile terminal is in a screen locking state, an operation for lighting a display screen of the mobile terminal is detected, and a target touch operation is not detected; or, the triggering condition is that a target function of the target application is detected to be triggered; or, the triggering condition is that a target physical key of the mobile terminal is pressed.
Preferably, the target touch operation is a pressing operation of pressing a display area on the display screen, or a sliding operation of drawing a target pattern on the display screen, or a clicking operation of clicking a target key displayed on the display screen.
Referring to fig. 7, fig. 7 is a schematic diagram of a hardware structure of a terminal for implementing various embodiments of the present invention.
The mobile terminal 100 includes, but is not limited to: radio frequency unit 101, network module 102, audio output unit 103, input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 7 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 110 is configured to, in a process of performing facial recognition on the mobile terminal, cancel the facial recognition if it is detected that the mobile terminal is in a target motion state, and otherwise, continue the facial recognition.
The processor provided by the embodiment of the invention can cancel or continue facial recognition according to different requirements of a user in the process of facial recognition of the mobile terminal, not only can timely cancel facial recognition when facial recognition is triggered by mistake, but also can meet the requirement of sudden and temporary facial recognition cancellation of the user, is more convenient and faster, and improves user experience.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 101 may be used for receiving and sending signals during a message transmission or call process, and specifically, after receiving downlink data from a base station, the downlink data is processed by the processor 110; in addition, the uplink data is transmitted to the base station. Typically, radio frequency unit 101 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. In addition, the radio frequency unit 101 can also communicate with a network and other devices through a wireless communication system.
The mobile terminal provides wireless broadband internet access to the user through the network module 102, such as helping the user send and receive e-mails, browse webpages, access streaming media, and the like.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the network module 102 or stored in the memory 109 into an audio signal and output as sound. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the mobile terminal 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 includes a speaker, a buzzer, a receiver, and the like.
The input unit 104 is used to receive an audio or video signal. The input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, and the Graphics processor 1041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the network module 102. The microphone 1042 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 101 in case of a phone call mode.
The mobile terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 1061 and/or a backlight when the mobile terminal 100 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 105 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 106 is used to display information input by a user or information provided to the user. The Display unit 106 may include a Display panel 1061, and the Display panel 1061 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 107 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 107 includes a touch panel 1071 and other input devices 1072. Touch panel 1071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 1071 (e.g., operations by a user on or near touch panel 1071 using a finger, stylus, or any suitable object or attachment). The touch panel 1071 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 110, and receives and executes commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. Specifically, other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 1071 may be overlaid on the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although in fig. 7, the touch panel 1071 and the display panel 1061 are two independent components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the mobile terminal, and is not limited herein.
The interface unit 108 is an interface through which an external device is connected to the mobile terminal 100. 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 108 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 100 or may be used to transmit data between the mobile terminal 100 and external devices.
The memory 109 may be used to store software programs as well as various data. The memory 109 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 109 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 110 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 109 and calling data stored in the memory 109, thereby performing overall monitoring of the mobile terminal. Processor 110 may include one or more processing units; preferably, the processor 110 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 110.
The mobile terminal 100 may further include a power supply 111 (e.g., a battery) for supplying power to various components, and preferably, the power supply 111 may be logically connected to the processor 110 via a power management system, so as to manage charging, discharging, and power consumption management functions via the power management system.
In addition, the mobile terminal 100 includes some functional modules that are not shown, and thus, the detailed description thereof is omitted.
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 method for face recognition, and can achieve the same technical effect, and in order to avoid repetition, the 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 (7)

1. A face recognition method is applied to a mobile terminal and is characterized by comprising the following steps:
in the process of carrying out face recognition on the mobile terminal, if the mobile terminal is detected to be in a target motion state, the face recognition is cancelled, otherwise, the face recognition is continued;
in the process of performing face recognition on the mobile terminal, if it is detected that the mobile terminal is in a target motion state, canceling the face recognition, otherwise, continuing to perform face recognition, specifically including:
detecting the motion state of the mobile terminal at any stage in the process of carrying out face recognition on the mobile terminal, judging whether the mobile terminal is in the target motion state, if so, cancelling the face recognition, otherwise, continuing to carry out the face recognition;
wherein, the stage of the mobile terminal in the process of face recognition comprises: the method comprises a starting stage, a face acquisition stage, a matching analysis stage and a result output stage;
in the process of performing face recognition by the mobile terminal, if the mobile terminal is detected to be in a target motion state, canceling the face recognition, otherwise, before the step of continuing the face recognition, the method further comprises:
under the condition that the trigger condition that the mobile terminal starts face recognition is detected to be met, the face recognition is started;
the triggering condition is that when the mobile terminal is in a screen locking state, an operation for lightening a display screen of the mobile terminal is detected, and a target touch operation is not detected; or
The triggering condition is that a target function of the target application is detected to be triggered; or
The triggering condition is that a target physical key of the mobile terminal is pressed.
2. The method of face recognition according to claim 1,
the target motion state is that the target is turned towards a target direction, and the turning angle is larger than or equal to a target angle; or
The target motion state is a shaking state.
3. The method of face recognition according to claim 1,
the target touch operation is a pressing operation of pressing a display area on a display screen of the mobile terminal, or a sliding operation of drawing a target pattern on the display screen of the mobile terminal, or a clicking operation of clicking a target key displayed on the display screen of the mobile terminal.
4. A mobile terminal, comprising:
the face recognition module is used for canceling the face recognition if the mobile terminal is detected to be in a target motion state in the face recognition process of the mobile terminal, and otherwise, continuing the face recognition;
in the process of performing face recognition on the mobile terminal, if it is detected that the mobile terminal is in a target motion state, canceling the face recognition, otherwise, continuing to perform face recognition, specifically including:
detecting the motion state of the mobile terminal at any stage in the process of carrying out face recognition on the mobile terminal, judging whether the mobile terminal is in the target motion state, if so, cancelling the face recognition, otherwise, continuing to carry out the face recognition;
wherein, the stage of the mobile terminal in the process of face recognition comprises: the method comprises a starting stage, a face acquisition stage, a matching analysis stage and a result output stage;
the mobile terminal further includes:
the starting module is used for starting facial recognition under the condition that the triggering condition for triggering the mobile terminal to start the facial recognition is detected to be met;
the triggering condition is that when the mobile terminal is in a screen locking state, an operation for lightening a display screen of the mobile terminal is detected, and a target touch operation is not detected; or
The triggering condition is that a target function of the target application is detected to be triggered; or
The triggering condition is that a target physical key of the mobile terminal is pressed.
5. The mobile terminal of claim 4,
the target motion state is that the target is turned towards a target direction, and the turning angle is larger than or equal to a target angle; or
The target motion state is a shaking state.
6. The mobile terminal of claim 4,
the target touch operation is a pressing operation of pressing a display area on a display screen of the mobile terminal, or a sliding operation of drawing a target pattern on the display screen of the mobile terminal, or a clicking operation of clicking a target key displayed on the display screen of the mobile terminal.
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, carries out the steps of the method of facial recognition according to any one of claims 1 to 3.
CN201810586130.6A 2018-06-08 2018-06-08 Face recognition method and mobile terminal Active CN108810276B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810586130.6A CN108810276B (en) 2018-06-08 2018-06-08 Face recognition method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810586130.6A CN108810276B (en) 2018-06-08 2018-06-08 Face recognition method and mobile terminal

Publications (2)

Publication Number Publication Date
CN108810276A CN108810276A (en) 2018-11-13
CN108810276B true CN108810276B (en) 2021-03-30

Family

ID=64087873

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810586130.6A Active CN108810276B (en) 2018-06-08 2018-06-08 Face recognition method and mobile terminal

Country Status (1)

Country Link
CN (1) CN108810276B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113055524A (en) * 2021-03-09 2021-06-29 北京有竹居网络技术有限公司 Terminal control method and device, terminal and storage medium
CN113687899A (en) * 2021-08-25 2021-11-23 读书郎教育科技有限公司 Method and device for solving conflict between viewing notification and face unlocking

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107589968A (en) * 2017-08-28 2018-01-16 广东欧珀移动通信有限公司 Put out screen unlocks method and apparatus
CN107613550B (en) * 2017-09-27 2020-12-29 Oppo广东移动通信有限公司 Unlocking control method and related product
CN107992733B (en) * 2017-12-13 2021-04-02 广西邕城云科技有限公司 Intelligent terminal and safety unlocking method thereof
CN108010170A (en) * 2017-12-25 2018-05-08 维沃移动通信有限公司 A kind of control method and device of face recognition unlocking function

Also Published As

Publication number Publication date
CN108810276A (en) 2018-11-13

Similar Documents

Publication Publication Date Title
CN109078319B (en) Game interface display method and terminal
CN108920926B (en) Shortcut operation method and mobile terminal
CN107835286B (en) Method for preventing mistaken unlocking and mobile terminal
CN108279948B (en) Application program starting method and mobile terminal
CN110213440B (en) Image sharing method and terminal
CN109241775B (en) Privacy protection method and terminal
CN110830363B (en) Information sharing method and electronic equipment
CN108256308B (en) Face recognition unlocking control method and mobile terminal
CN109412932B (en) Screen capturing method and terminal
CN107609363B (en) Unlocking method and mobile terminal
CN107704182B (en) Code scanning method and mobile terminal
CN109343788B (en) Operation control method of mobile terminal and mobile terminal
CN108388459B (en) Message display processing method and mobile terminal
CN110837328A (en) Display method and electronic equipment
CN108810276B (en) Face recognition method and mobile terminal
CN108196663B (en) Face recognition method and mobile terminal
CN107809515B (en) Display control method and mobile terminal
CN111310165B (en) Account switching or registering method and electronic equipment
CN110795746B (en) Information processing method and electronic equipment
CN110225040B (en) Information processing method and terminal equipment
CN109714462B (en) Method for marking telephone number and mobile terminal thereof
CN109451143B (en) Call method and mobile terminal
CN109164951B (en) Mobile terminal operation method and mobile terminal
CN107491685B (en) Face recognition method and mobile terminal
CN110908562A (en) Icon display method and device, electronic equipment and 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