CN107491685B - Face recognition method and mobile terminal - Google Patents

Face recognition method and mobile terminal Download PDF

Info

Publication number
CN107491685B
CN107491685B CN201710891136.XA CN201710891136A CN107491685B CN 107491685 B CN107491685 B CN 107491685B CN 201710891136 A CN201710891136 A CN 201710891136A CN 107491685 B CN107491685 B CN 107491685B
Authority
CN
China
Prior art keywords
face
information
mobile terminal
feature information
database
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
CN201710891136.XA
Other languages
Chinese (zh)
Other versions
CN107491685A (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 CN201710891136.XA priority Critical patent/CN107491685B/en
Publication of CN107491685A publication Critical patent/CN107491685A/en
Application granted granted Critical
Publication of CN107491685B publication Critical patent/CN107491685B/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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • G06V40/172Classification, e.g. identification
    • 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/72463User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions to restrict the functionality of the device

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Oral & Maxillofacial Surgery (AREA)
  • Computer Hardware Design (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)

Abstract

The invention provides a face recognition method and a mobile terminal, wherein the method comprises the following steps: collecting first face information and second face information; judging whether the second face information is matched with the feature information in the face database; and if the second face information is matched with the feature information in the face database, adding the first face information serving as the feature information into the face database. According to the method and the device, when the collected second face information is matched with the feature information in the face database, the first face information is added to the face database as the feature information, so that the risk of privacy disclosure can be effectively reduced, the face recognition function is more complete, and the safety of the mobile terminal is improved.

Description

Face recognition method and mobile terminal
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a face recognition method and a mobile terminal.
Background
At present, in order to prevent privacy information from being leaked, when a mobile terminal is unlocked, the mobile terminal needs to be successfully unlocked through identity authentication. The authentication mode can be fingerprint information authentication, digital password authentication, pattern password authentication, face recognition authentication and the like.
For the face recognition verification mode, the user can input own face feature information in advance. When the screen is unlocked every time, if the facial feature information collected by the mobile terminal is matched with the facial feature information stored in advance, the unlocking can be successful. However, when the user borrows the mobile terminal to another person for use in the unlocked state, the other person can also input the facial feature information of the user, so that the authority of unlocking the screen is obtained, and the owner of the mobile terminal is not informed of the authority. The person who obtains the screen unlocking authority can unlock the mobile terminal under the condition that the owner of the mobile terminal does not pay attention to the unlocking authority, so that the content in the mobile terminal can be snooped, and the risk of privacy disclosure exists. Therefore, in the prior art, the face recognition function is not perfect, so that the mobile terminal has safety risk.
Disclosure of Invention
The embodiment of the invention provides a face recognition method and a mobile terminal, aiming at solving the problem of safety risk of the mobile terminal caused by incomplete face recognition function.
In order to solve the technical problem, the invention is realized as follows: a face recognition method, comprising:
collecting first face information and second face information;
judging whether the second face information is matched with the feature information in the face database;
and if the second face information is matched with the feature information in the face database, adding the first face information serving as the feature information into the face database.
In a first aspect, an embodiment of the present invention provides a face recognition method, including:
collecting first face information and second face information;
judging whether the second face information is matched with the feature information in the face database;
and if the second face information is matched with the feature information in the face database, adding the first face information serving as the feature information into the face database.
In a second aspect, an embodiment of the present invention further provides a mobile terminal, including:
the acquisition module is used for acquiring first face information and second face information;
the judging module is used for judging whether the second face information is matched with the characteristic information in the face database;
and the adding module is used for adding the first face information serving as the feature information into the face database if the second face information is matched with the feature information in the face database.
In a third aspect, an embodiment of the present invention further provides a mobile terminal, including a processor, a memory, and a computer program stored on the memory and capable of running on the processor, where the computer program, when executed by the processor, implements the steps of the above-mentioned face recognition method.
In a fourth aspect, an 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 steps of the above-mentioned face recognition method are implemented.
According to the embodiment of the invention, when the collected second face information is matched with the feature information in the face database, the first face information is added to the face database as the feature information, so that the risk of privacy disclosure can be effectively reduced, the face recognition function is more complete, and the safety of the mobile terminal 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 exercise.
Fig. 1 is a flowchart of a face recognition method according to an embodiment of the present invention;
FIG. 2 is a flow chart of another face recognition method provided by the embodiment of the invention;
FIG. 3 is a flow chart of another face recognition method provided by the embodiment of the invention;
FIG. 4 is a schematic diagram of a prompt box provided by an embodiment of the invention;
fig. 5 is a block diagram of a mobile terminal according to an embodiment of the present invention;
fig. 6 is a block diagram of another mobile terminal according to an embodiment of the present invention;
fig. 7 is a block diagram of another mobile terminal according to an embodiment of the present invention;
fig. 8 is a block diagram of another mobile terminal according to an embodiment of the present invention;
fig. 9 is a block diagram of another 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.
Referring to fig. 1, fig. 1 is a flowchart of a face recognition method provided in an embodiment of the present invention, and is applied to a mobile terminal. As shown in fig. 1, the method comprises the following steps:
step 101, collecting first face information and second face information.
In step 101, when an owner of a mobile terminal borrows the mobile terminal in an unlocked state for use by others, if the others want to obtain a face recognition unlocking authority, the mobile terminal can acquire face feature information of a user to be added through a front-facing camera, that is, the mobile terminal can acquire first face information through the front-facing camera; and second face information is acquired through the rear camera. The first face information is face feature information of a user who wants to obtain face recognition unlocking authority.
And 102, judging whether the second face information is matched with the characteristic information in the face database.
In step 102, the mobile terminal may determine whether the second face information matches the feature information in the face database. The feature information in the face database is face feature information of a master user, the master user is the first user who obtains face recognition unlocking authority, and the master user is the owner of the mobile terminal under normal conditions.
And 103, if the second face information is matched with the feature information in the face database, adding the first face information serving as the feature information into the face database.
In step 103, if the second face information matches with the feature information in the face database, that is, if the second face information matches with the facial feature information of the master user, that is, if the second face information matches with the facial feature information of the master of the mobile terminal, the first face information may be added to the face database as the feature information. That is, the first face information may be set as the feature information having the unlocking authority. That is, if the mobile terminal is in the screen locking state at this time, the user to be added, whose facial feature information is set as the feature information having the unlocking authority, can immediately perform face recognition and unlock the screen.
It should be noted that the user to be added, whose facial feature information is set as feature information having an unlocking right, may be referred to as a guest user. The visitor user is a user except the master user and has the face recognition unlocking authority, namely the visitor user is a user except the master of the mobile terminal and has the face recognition unlocking authority. There may be multiple guest users.
If the second face information is not matched with the feature information in the face database, that is, if the second face information is not matched with the face feature information of the master user, that is, if the second face information is not matched with the face feature information of the master of the mobile terminal, it can be determined that the first face information is the feature information without the unlocking authority, and at this moment, the mobile terminal can store the face feature information of the user to be added, that is, the mobile terminal can store the first face information.
It should be noted that although the mobile terminal stores the facial feature information of the user to be added, that is, although the mobile terminal stores the first face information, since the facial feature information of the user to be added is determined to be the feature information without the unlocking authority, that is, since the first face information is determined to be the feature information without the unlocking authority, if the mobile terminal is in the screen locking state at this time, the user to be added whose facial feature information is determined to be the feature information without the unlocking authority cannot immediately unlock the screen through the face recognition.
In an embodiment of the present invention, the Mobile terminal may be a Mobile phone, a Tablet personal Computer (Tablet personal Computer), a Laptop Computer (Laptop Computer), a Personal Digital Assistant (PDA), a Mobile Internet Device (MID), a Wearable Device (Wearable Device), or the like.
The face recognition method provided by the embodiment of the invention is applied to the mobile terminal, and when the collected second face information is matched with the feature information in the face database, the first face information is added to the face database as the feature information, so that the risk of privacy disclosure can be effectively reduced, the face recognition function is more complete, and the safety of the mobile terminal is improved.
Referring to fig. 2, fig. 2 is a flowchart of another face recognition method provided in the embodiment of the present invention, and is applied to a mobile terminal. The main difference between the present embodiment and the previous embodiment is that after the first face information is added as feature information to the face database, when the authority release operation is detected, the first face information may also be deleted from the face database. At this time, the first face information becomes the feature information having no unlocking authority. As shown in fig. 2, the method comprises the following steps:
step 201, the mobile terminal is provided with a front camera and a rear camera; and acquiring the first face information through the front camera, and acquiring the second face information through the rear camera.
In step 201, the mobile terminal has a front camera and a rear camera. When the owner of the mobile terminal borrows the mobile terminal in an unlocking state for other people to use, if the other people want to obtain the face recognition unlocking authority, the mobile terminal can acquire the face characteristic information of a user to be added through the front-facing camera, namely the mobile terminal can acquire first face information through the front-facing camera; meanwhile, second face information can be acquired through the rear camera. The first face information is face feature information of a user who wants to obtain face recognition unlocking authority.
Step 202, judging whether the second face information is matched with the characteristic information in the face database.
In step 202, the mobile terminal may determine whether the second face information matches the feature information in the face database. The feature information in the face database is face feature information of a master user, the master user is the first user who obtains face recognition unlocking authority, and the master user is the owner of the mobile terminal under normal conditions.
And 203, if the second face information is matched with the feature information in the face database, adding the first face information serving as the feature information into the face database.
In step 203, if the second face information matches with the feature information in the face database, that is, if the second face information matches with the facial feature information of the master user, that is, if the second face information matches with the facial feature information of the master of the mobile terminal, the first face information may be added to the face database as the feature information. That is, the first face information may be set as the feature information having the unlocking authority. That is, if the mobile terminal is in the screen locking state at this time, the user to be added, whose facial feature information is set as the feature information having the unlocking authority, can immediately perform face recognition and unlock the screen.
It should be noted that the user to be added, whose facial feature information is set as feature information having an unlocking right, may be referred to as a guest user. The visitor user is a user except the master user and has the face recognition unlocking authority, namely the visitor user is a user except the master of the mobile terminal and has the face recognition unlocking authority. There may be multiple guest users.
And 204, deleting the first face information from the face database when the permission removing operation is detected.
In step 204, the guest user may be managed. For example, the master user may release the face recognition unlocking authority of a certain guest user according to own will.
It should be noted that, when the visitor user wants to be managed, the face feature information is collected by the front camera of the mobile terminal, and the mobile terminal determines whether the collected face feature information matches with the face feature information of the master user. When the mobile terminal judges that the acquired facial feature information is matched with the facial feature information of the master user, namely the master user is determined to be present, the visitor user is allowed to be managed. Therefore, the visitor user can be effectively prevented from privately managing other visitor users under the condition that the master user does not pay attention.
For example, when a master user wants to release the face recognition unlocking right of a certain visitor user, the master user may acquire face feature information of the master user by using a front-facing camera of the mobile terminal. And then the mobile terminal can compare the collected facial feature information with the facial feature information of the master user, which is stored in advance.
At the moment, the mobile terminal can judge that the collected facial feature information is matched with the facial feature information of the pre-stored main user, namely the main user can be determined to be present, and then the mobile terminal can detect the permission releasing operation.
When the mobile terminal detects the permission release operation, the first face information can be deleted from the face database. That is, when the mobile terminal detects the permission removing operation, the unlocking permission of the first face information can be removed, that is, when the mobile terminal detects the permission removing operation, the face recognition unlocking permission of a certain visitor user can be removed. Thus, the visitor user who is relieved of the face recognition unlocking authority cannot unlock the screen of the mobile terminal through the face recognition.
The face recognition method of the embodiment of the invention is applied to the mobile terminal. And only when the collected second face information is matched with the characteristic information in the face database, the first face information is added into the face database as the characteristic information. Further, after the first face information is added to the face database as the feature information, when the permission release operation is detected, the first face information may be deleted from the face database. At this time, the first face information becomes the feature information having no unlocking authority. The risk of privacy disclosure can be effectively reduced, and the face recognition function is more perfect.
Referring to fig. 3, fig. 3 is a flowchart of another face recognition method provided in the embodiment of the present invention, and is applied to a mobile terminal. The main difference between this embodiment and the previous embodiment is that after determining that the first facial information is the feature information without the unlocking authority, the master user may further determine whether to reset the first facial information to the feature information with the unlocking authority according to the will of the master user. As shown in fig. 3, the method comprises the following steps:
step 301, first face information is collected, and then second face information is collected.
In step 301, when the owner of the mobile terminal borrows the mobile terminal in the unlocked state for use by another person, if the other person wants to obtain the face recognition unlocking authority, the mobile terminal may collect the facial feature information of the user to be added through the front-facing camera first, that is, the mobile terminal may collect the first facial information through the front-facing camera first. If the main user is not present, namely if the owner of the mobile terminal is not present, the mobile terminal cannot acquire the facial feature information of the main user. At this time, the mobile terminal may save the facial feature information of the user to be added, that is, the mobile terminal may save the first facial information.
Although the mobile terminal stores the facial feature information of the user to be added, that is, although the mobile terminal stores the first face information, the stored first face information is determined as feature information that does not have the unlocking authority. Therefore, if the mobile terminal is in a screen locking state at this time, the user to be added, whose facial feature information is determined to be feature information without unlocking authority, cannot immediately unlock the screen through face recognition.
When the mobile terminal returns to the hand of the master user again, if the mobile terminal is in the screen locking state, the master user can acquire face feature information of the master user by using the front camera of the mobile terminal, namely the mobile terminal can acquire second face information.
Step 302, judging whether the second face information is matched with the feature information in the face database.
In step 302, the mobile terminal may determine whether the second face information matches the feature information in the face database. The feature information in the face database is face feature information of a master user, the master user is the first user who obtains face recognition unlocking authority, and the master user is the owner of the mobile terminal under normal conditions.
And 303, if the second face information is matched with the feature information in the face database, displaying the first face information.
In step 303, at this time, the mobile terminal may determine that the collected second face information matches with the feature information in the face database, so that the screen of the mobile terminal is unlocked, and it may be determined that the user currently operating the mobile terminal is the master user.
Next, the mobile terminal may display the first face information, for example, after the screen is unlocked, a prompt box may pop up, the first face information is displayed in the prompt box, and the first face information may be prompted by a character: "the user requests to obtain face recognition unlocking authority". An "effect button" and a "delete button" may also be displayed in the prompt box. Fig. 4 is a schematic diagram of a prompt box.
And 304, if the second face information is matched with the feature information in the face database and the authority adding operation is detected, adding the first face information serving as the feature information into the face database.
In step 304, if the master user agrees that the user to be added obtains the face recognition unlocking authority, the "validation button" in the prompt box may be clicked, and the mobile terminal may detect the authority addition operation.
And then the mobile terminal can add the first face information as feature information to the face database according to the detected authority adding operation. Namely, the mobile terminal can set the first face information as the feature information with the unlocking authority according to the detected authority adding operation. That is, the mobile terminal may determine the user to be added, whose facial feature information is determined to be feature information without unlocking authority, as a visitor user with face recognition unlocking authority according to the detected authority adding operation.
And 305, deleting the first face information when the information deleting operation is detected.
In step 305, if the master user does not agree that the user to be added obtains the face recognition unlocking authority, the "delete button" in the prompt box may be clicked, and the mobile terminal may detect the delete information operation. And the mobile terminal can delete the first face information according to the detected deletion information operation.
The face recognition method of the embodiment of the invention is applied to the mobile terminal. And only when the collected second face information is matched with the characteristic information in the face database, the first face information is added into the face database as the characteristic information. Further, after the first face information is determined to be the feature information without the unlocking authority, the master user can also determine whether to reset the first face information to be the feature information with the unlocking authority according to the own will. The risk of privacy disclosure can be effectively reduced, and the face recognition function is more perfect.
Referring to fig. 5, fig. 5 is a structural diagram of a mobile terminal according to an embodiment of the present invention, and as shown in fig. 5, the mobile terminal 500 includes an acquisition module 501, a determination module 502, and an adding module 503, where:
the acquisition module 501 is configured to acquire first face information and second face information;
a judging module 502, configured to judge whether the second face information matches with feature information in a face database;
an adding module 503, configured to add the first face information as feature information to the face database if the second face information matches with the feature information in the face database.
Optionally, the mobile terminal has a front camera and a rear camera;
the acquisition module 501 is specifically configured to:
and acquiring the first face information through the front camera, and acquiring the second face information through the rear camera.
Optionally, as shown in fig. 6, the acquisition module 501 is specifically configured to:
first face information is collected, and then second face information is collected;
the mobile terminal further includes:
a display module 504, configured to display the first face information if the second face information matches the feature information in the face database;
the adding module 503 is specifically configured to:
and if the second face information is matched with the feature information in the face database and the authority adding operation is detected, adding the first face information serving as the feature information into the face database.
Optionally, as shown in fig. 7, the mobile terminal further includes:
a first deleting module 505, configured to delete the first face information when the information deleting operation is detected.
Optionally, as shown in fig. 8, the mobile terminal further includes:
a second deleting module 506, configured to delete the first face information from the face database when an authority release operation is detected.
The mobile terminal 500 can implement each process implemented by the mobile terminal in the method embodiments of fig. 1, fig. 2, and fig. 3, and is not described herein again to avoid repetition. When the collected second face information is matched with the feature information in the face database, the mobile terminal 500 adds the first face information as the feature information into the face database, so that the risk of privacy disclosure can be effectively reduced, the face recognition function is more perfect, and the safety of the mobile terminal is improved.
Fig. 9 is a schematic diagram of a hardware structure of a mobile terminal implementing various embodiments of the present invention.
The mobile terminal 900 includes, but is not limited to: a radio frequency unit 901, a network module 902, an audio output unit 903, an input unit 904, a sensor 905, a display unit 906, a user input unit 907, an interface unit 908, a memory 909, a processor 910, and a power supply 911. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 9 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.
A processor 910, configured to acquire first face information and second face information; judging whether the second face information is matched with the feature information in the face database; and if the second face information is matched with the feature information in the face database, adding the first face information serving as the feature information into the face database.
And only when the collected second face information is matched with the characteristic information in the face database, the first face information is added into the face database as the characteristic information. The risk of privacy disclosure can be effectively reduced, and the face recognition function is more perfect.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 901 may be used for receiving and sending signals during a message transmission and reception process or a call process, and specifically, after receiving downlink data from a base station, the downlink data is processed by the processor 910; in addition, the uplink data is transmitted to the base station. Generally, the radio frequency unit 901 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 901 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 via the network module 902, such as helping the user send and receive e-mails, browse web pages, and access streaming media.
The audio output unit 903 may convert audio data received by the radio frequency unit 901 or the network module 902 or stored in the memory 909 into an audio signal and output as sound. Also, the audio output unit 903 may also provide audio output related to a specific function performed by the mobile terminal 900 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 903 includes a speaker, a buzzer, a receiver, and the like.
The input unit 904 is used to receive audio or video signals. The input Unit 904 may include a Graphics Processing Unit (GPU) 9041 and a microphone 9042, and the Graphics processor 9041 processes image data of a still picture or video obtained by an image capturing device (such as a camera) in a video capture mode or an image capture mode. The processed image frames may be displayed on the display unit 906. The image frames processed by the graphic processor 9041 may be stored in the memory 909 (or other storage medium) or transmitted via the radio frequency unit 901 or the network module 902. The microphone 9042 can receive sounds and can process such sounds 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 901 in case of the phone call mode.
The mobile terminal 900 also includes at least one sensor 905, 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 9061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 9061 and/or backlight when the mobile terminal 900 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 905 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 are not described in detail herein.
The display unit 906 is used to display information input by the user or information provided to the user. The Display unit 906 may include a Display panel 9061, and the Display panel 9061 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 907 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 907 includes a touch panel 9071 and other input devices 9072. The touch panel 9071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 9071 (e.g., operations by a user on or near the touch panel 9071 using a finger, a stylus, or any other suitable object or accessory). The touch panel 9071 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 910, receives a command from the processor 910, and executes the command. In addition, the touch panel 9071 may be implemented by using various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The user input unit 907 may include other input devices 9072 in addition to the touch panel 9071. Specifically, the other input devices 9072 may include, but are not limited to, a physical keyboard, function keys (such as a volume control key, a switch key, and the like), a track ball, a mouse, and a joystick, which are not described herein again.
Further, the touch panel 9071 may be overlaid on the display panel 9061, and when the touch panel 9071 detects a touch operation on or near the touch panel 9071, the touch panel is transmitted to the processor 910 to determine the type of the touch event, and then the processor 910 provides a corresponding visual output on the display panel 9061 according to the type of the touch event. Although in fig. 9, the touch panel 9071 and the display panel 9061 are two independent components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 9071 and the display panel 9061 may be integrated to implement the input and output functions of the mobile terminal, which is not limited herein.
The interface unit 908 is an interface through which an external device is connected to the mobile terminal 900. 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 908 may be used to receive input from external devices (e.g., data information, power, etc.) and transmit the received input to one or more elements within the mobile terminal 900 or may be used to transmit data between the mobile terminal 900 and external devices.
The memory 909 may be used to store software programs as well as various data. The memory 909 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 for 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 909 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 910 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 running or executing software programs and/or modules stored in the memory 909 and calling data stored in the memory 909, thereby performing overall monitoring of the mobile terminal. Processor 910 may include one or more processing units; preferably, the processor 910 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 is to be appreciated that the modem processor described above may not be integrated into processor 910.
The mobile terminal 900 may also include a power supply 911 (e.g., a battery) for powering the various components, and preferably, the power supply 911 is logically connected to the processor 910 through a power management system that provides power management functions to manage charging, discharging, and power consumption.
In addition, the mobile terminal 900 includes some functional modules that are not shown, and thus will not be described in detail herein.
Optionally, the mobile terminal has a front camera and a rear camera, and the processor 910 is further configured to:
and acquiring the first face information through the front camera, and acquiring the second face information through the rear camera.
Optionally, the processor 910 is further configured to:
first face information is collected, and then second face information is collected;
if the second face information is matched with the feature information in the face database, displaying the first face information;
and if the second face information is matched with the feature information in the face database and the authority adding operation is detected, adding the first face information serving as the feature information into the face database.
Optionally, the processor 910 is further configured to:
and when the information deleting operation is detected, deleting the first face information.
Optionally, the processor 910 is further configured to:
and when the permission releasing operation is detected, deleting the first face information from the face database.
The mobile terminal 900 can implement the processes implemented by the mobile terminal in the foregoing embodiments, and in order to avoid repetition, the details are not described here. When the collected second face information is matched with the feature information in the face database, the mobile terminal 900 adds the first face information as the feature information into the face database, so that the risk of privacy disclosure can be effectively reduced, the face recognition function is more perfect, and the safety of the mobile terminal is improved.
Preferably, an embodiment of the present invention further provides a mobile terminal, which includes a processor 910, a memory 909, and a computer program that is stored in the memory 909 and can be run on the processor 910, and when the computer program is executed by the processor 910, the processes of the above-mentioned embodiment of the face recognition method are implemented, and the same technical effect can be achieved, 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 (8)

1. A face recognition method is applied to the execution of a mobile terminal in an unlocked state by a host of the mobile terminal when the host borrows the mobile terminal to other people for use, and is characterized by comprising the following steps:
collecting first face information and second face information; the acquiring of the first face information and the second face information comprises acquiring the first face information and then acquiring the second face information;
the first face information is face feature information of a user who wants to obtain face recognition unlocking authority;
judging whether the second face information is matched with the feature information in the face database; the feature information in the face database is face feature information of a master user, the master user is the first user who obtains face recognition unlocking authority, and the master user is the owner of the mobile terminal;
if the second face information is matched with the feature information in the face database, adding the first face information serving as the feature information into the face database;
after the step of judging whether the second face information is matched with the feature information in the face database, the method further comprises the following steps:
if the second face information is matched with the feature information in the face database, displaying the first face information;
if the second face information is matched with the feature information in the face database, adding the first face information as the feature information into the face database, including:
and if the second face information is matched with the feature information in the face database and the authority adding operation is detected, adding the first face information serving as the feature information into the face database.
2. The method of claim 1, wherein after the step of presenting the first facial information, the method further comprises:
and when the information deleting operation is detected, deleting the first face information.
3. A method as recited in claim 1, wherein after the step of adding the first face information as feature information to the face database, the method further comprises:
and when the permission releasing operation is detected, deleting the first face information from the face database.
4. A mobile terminal applied to a case where a host of the mobile terminal lends the mobile terminal in an unlocked state to another person for use, comprising:
the acquisition module is used for acquiring first face information and second face information; firstly, collecting first face information, and then collecting second face information;
the first face information is face feature information of a user who wants to obtain face recognition unlocking authority;
the judging module is used for judging whether the second face information is matched with the characteristic information in the face database; the feature information in the face database is face feature information of a master user, the master user is the first user who obtains face recognition unlocking authority, and the master user is the owner of the mobile terminal;
the adding module is used for adding the first face information serving as feature information into the face database if the second face information is matched with the feature information in the face database;
the mobile terminal further includes:
the display module is used for displaying the first face information if the second face information is matched with the feature information in the face database;
the adding module is specifically configured to:
and if the second face information is matched with the feature information in the face database and the authority adding operation is detected, adding the first face information serving as the feature information into the face database.
5. The mobile terminal of claim 4, wherein the mobile terminal further comprises:
and the first deleting module is used for deleting the first face information when detecting the information deleting operation.
6. The mobile terminal of claim 4, wherein the mobile terminal further comprises:
and the second deleting module is used for deleting the first face information from the face database when the permission removing operation is detected.
7. A mobile terminal, characterized in that it comprises a processor, a memory and a computer program stored on the memory and executable on the processor, which computer program, when executed by the processor, implements the steps of the face recognition method according to any one of claims 1 to 3.
8. A computer-readable storage medium, in which a computer program is stored, which, when being executed by a processor, carries out the steps of the face recognition method according to any one of claims 1 to 3.
CN201710891136.XA 2017-09-27 2017-09-27 Face recognition method and mobile terminal Active CN107491685B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710891136.XA CN107491685B (en) 2017-09-27 2017-09-27 Face recognition method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710891136.XA CN107491685B (en) 2017-09-27 2017-09-27 Face recognition method and mobile terminal

Publications (2)

Publication Number Publication Date
CN107491685A CN107491685A (en) 2017-12-19
CN107491685B true CN107491685B (en) 2020-06-26

Family

ID=60653322

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710891136.XA Active CN107491685B (en) 2017-09-27 2017-09-27 Face recognition method and mobile terminal

Country Status (1)

Country Link
CN (1) CN107491685B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108875654B (en) * 2018-06-25 2021-03-05 深圳云天励飞技术有限公司 Face feature acquisition method and device
CN109993539A (en) * 2019-04-09 2019-07-09 佛山单常科技有限公司 A kind of face identification method and mobile terminal

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7131132B1 (en) * 2001-06-11 2006-10-31 Lucent Technologies Inc. Automatic access denial
CN101925915A (en) * 2007-11-21 2010-12-22 格斯图尔泰克股份有限公司 Device access control
CN103795919A (en) * 2014-01-13 2014-05-14 宇龙计算机通信科技(深圳)有限公司 Image processing method and shooting terminal
CN104850771A (en) * 2015-04-30 2015-08-19 广东欧珀移动通信有限公司 Identity verification method and related equipment
CN104980719A (en) * 2014-04-03 2015-10-14 索尼公司 Image processing method, image processing apparatus and electronic equipment
CN106445328A (en) * 2016-08-31 2017-02-22 维沃移动通信有限公司 Unlocking method of mobile terminal screen, and mobile terminal
CN106713764A (en) * 2017-01-24 2017-05-24 维沃移动通信有限公司 Photographic method and mobile terminal

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105787400A (en) * 2016-02-25 2016-07-20 上海斐讯数据通信技术有限公司 Safety protection method and system based on mobile terminal
CN107085718B (en) * 2017-05-25 2019-10-25 Oppo广东移动通信有限公司 Method for detecting human face and device, computer equipment, computer readable storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7131132B1 (en) * 2001-06-11 2006-10-31 Lucent Technologies Inc. Automatic access denial
CN101925915A (en) * 2007-11-21 2010-12-22 格斯图尔泰克股份有限公司 Device access control
CN103795919A (en) * 2014-01-13 2014-05-14 宇龙计算机通信科技(深圳)有限公司 Image processing method and shooting terminal
CN104980719A (en) * 2014-04-03 2015-10-14 索尼公司 Image processing method, image processing apparatus and electronic equipment
CN104850771A (en) * 2015-04-30 2015-08-19 广东欧珀移动通信有限公司 Identity verification method and related equipment
CN106445328A (en) * 2016-08-31 2017-02-22 维沃移动通信有限公司 Unlocking method of mobile terminal screen, and mobile terminal
CN106713764A (en) * 2017-01-24 2017-05-24 维沃移动通信有限公司 Photographic method and mobile terminal

Also Published As

Publication number Publication date
CN107491685A (en) 2017-12-19

Similar Documents

Publication Publication Date Title
CN109078319B (en) Game interface display method and terminal
CN109194818B (en) Information processing method and terminal
CN109241775B (en) Privacy protection method and terminal
CN108256308B (en) Face recognition unlocking control method and mobile terminal
CN107835286B (en) Method for preventing mistaken unlocking and mobile terminal
CN107861669B (en) Switching method of user system and mobile terminal
CN107609363B (en) Unlocking method and mobile terminal
CN107977563B (en) Message processing method and device and mobile terminal
CN108108111B (en) Method and device for checking lock screen picture information and mobile terminal
CN109544172B (en) Display method and terminal equipment
CN108710806B (en) Terminal unlocking method and mobile terminal
CN108491713B (en) Safety reminding method and electronic equipment
CN111597540B (en) Login method of application program, electronic device and readable storage medium
CN108038360B (en) Operation mode switching method and mobile terminal
CN108600492B (en) Screen unlocking method and terminal
CN107809515B (en) Display control method and mobile terminal
CN107895108B (en) Operation management method and mobile terminal
CN108109188B (en) Image processing method and mobile terminal
CN107491685B (en) Face recognition method and mobile terminal
CN111124537B (en) Application starting method and electronic equipment
CN110795746B (en) Information processing method and electronic equipment
CN109547330B (en) Information sharing method and device
CN108810276B (en) Face recognition method and mobile terminal
CN111460537A (en) Method for hiding page content and electronic equipment
CN110032861B (en) Password setting method and terminal equipment

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