CN108197450B - Face recognition method, face recognition device, storage medium and electronic equipment - Google Patents

Face recognition method, face recognition device, storage medium and electronic equipment Download PDF

Info

Publication number
CN108197450B
CN108197450B CN201711464306.2A CN201711464306A CN108197450B CN 108197450 B CN108197450 B CN 108197450B CN 201711464306 A CN201711464306 A CN 201711464306A CN 108197450 B CN108197450 B CN 108197450B
Authority
CN
China
Prior art keywords
image information
face image
preset
face
face recognition
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
CN201711464306.2A
Other languages
Chinese (zh)
Other versions
CN108197450A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201711464306.2A priority Critical patent/CN108197450B/en
Publication of CN108197450A publication Critical patent/CN108197450A/en
Application granted granted Critical
Publication of CN108197450B publication Critical patent/CN108197450B/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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Health & Medical Sciences (AREA)
  • Multimedia (AREA)
  • Oral & Maxillofacial Surgery (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Collating Specific Patterns (AREA)
  • Telephone Function (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the application discloses a face recognition method, a face recognition device, a storage medium and an electronic device. The face recognition method comprises the following steps: carrying out first face recognition according to the first face image information, and judging whether the first face image information is matched with first preset face image information or not; if the first face image information is matched with the second face image information, acquiring second face image information; if second face image information is acquired, performing second face recognition according to the second face image information, and judging whether the second face image information is matched with second preset face image information or not, wherein the second face image information is different from the first face image information; if the second face image information is matched with the second preset face image information, unlocking the electronic equipment; and if the second face image information is not matched with the second preset face image information, controlling the electronic equipment to be in a screen locking state and starting a preset application. The embodiment of the application can improve the safety of face recognition unlocking.

Description

Face recognition method, face recognition device, storage medium and electronic equipment
Technical Field
The present application belongs to the field of communication technologies, and in particular, relates to a face recognition method, a face recognition apparatus, a storage medium, and an electronic device.
Background
With the development of electronic technology, electronic devices such as smart phones are becoming more and more popular. In the using process of the electronic equipment, the camera can be used for face recognition so as to realize unlocking.
Disclosure of Invention
The application provides a face recognition method, a face recognition device, a storage medium and an electronic device, which can improve the safety of face unlocking.
In a first aspect, an embodiment of the present application provides a face recognition method, which is applied to an electronic device, and includes:
carrying out first face recognition according to the first face image information, and judging whether the first face image information is matched with first preset face image information or not;
if the first face image information is matched with the first preset face image information, acquiring second face image information;
if the second face image information is acquired, performing second face recognition according to the second face image information, and judging whether the second face image information is matched with second preset face image information or not, wherein the second face image information is different from the first face image information;
if the second face image information is matched with second preset face image information, unlocking the electronic equipment;
and if the second face image information is not matched with the second preset face image information, controlling the electronic equipment to be in a screen locking state, and starting a preset application of the electronic equipment.
In a second aspect, an embodiment of the present application provides a face recognition apparatus, which is applied to an electronic device, and includes:
the first face recognition module is used for carrying out first face recognition according to the first face image information and judging whether the first face image information is matched with first preset face image information or not;
the second acquisition module is used for acquiring second face image information if the first face image information is matched with the first preset face image information;
the second face recognition module is used for carrying out second face recognition according to the second face image information if the second face image information is acquired, and judging whether the second face image information is matched with second preset face image information or not, wherein the second face image information is different from the first face image information;
the control module is used for unlocking the electronic equipment if the second face image information is matched with second preset face image information;
and the control module is further used for controlling the electronic equipment to be in a screen locking state and starting a preset application of the electronic equipment if the second face image information is not matched with the second preset face image information.
In a third aspect, an embodiment of the present application provides a storage medium, where the storage medium includes a computer program, and when the computer program runs on a computer, the computer is caused to execute the above-mentioned face recognition method.
In a fourth aspect, an embodiment of the present application provides an electronic device, including a processor and a memory, which are electrically connected to each other, where the memory stores a computer program, and the processor is configured to execute the above-mentioned face recognition method by calling the computer program.
According to the face recognition method, the face recognition device, the storage medium and the electronic equipment, face recognition unlocking is performed twice, and safety of face recognition unlocking is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the description of the embodiments will be briefly introduced below. It is obvious that the drawings in the following description are only some embodiments of the application, and that for a person skilled in the art, other drawings can be derived from them without inventive effort.
Fig. 1 is a schematic view of an application scenario of a face recognition method according to an embodiment of the present application.
Fig. 2 is a schematic flow chart of a face recognition method according to an embodiment of the present application.
Fig. 3 is a state diagram of an electronic device according to an embodiment of the present application.
Fig. 4 is another state diagram of an electronic device according to an embodiment of the present application.
Fig. 5 is another state diagram of an electronic device according to an embodiment of the present application.
Fig. 6 is another state diagram of an electronic device according to an embodiment of the present application.
Fig. 7 is another schematic flow chart of the face recognition method according to the embodiment of the present application.
Fig. 8 is a schematic structural diagram of a face recognition device according to an embodiment of the present application.
Fig. 9 is another schematic structural diagram of a face recognition apparatus according to an embodiment of the present application.
Fig. 10 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Fig. 11 is another schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Referring to the drawings, wherein like reference numbers refer to like elements, the principles of the present application are illustrated as being implemented in a suitable computing environment. The following description is based on illustrated embodiments of the application and should not be taken as limiting the application with respect to other embodiments that are not detailed herein.
In the description that follows, specific embodiments of the present application will be described with reference to steps and symbols executed by one or more computers, unless otherwise indicated. Accordingly, these steps and operations will be referred to, several times, as being performed by a computer, the computer performing operations involving a processing unit of the computer in electronic signals representing data in a structured form. This operation transforms the data or maintains it at locations in the computer's memory system, which may be reconfigured or otherwise altered in a manner well known to those skilled in the art. The data maintains a data structure that is a physical location of the memory that has particular characteristics defined by the data format. However, while the principles of the application have been described in language specific to above, it is not intended to be limited to the specific form set forth herein, and it will be recognized by those of ordinary skill in the art that various of the steps and operations described below may be implemented in hardware.
The term module, as used herein, may be considered a software object executing on the computing system. The various components, modules, engines, and services described herein may be viewed as objects implemented on the computing system. The apparatus and method described herein may be implemented in software, but may also be implemented in hardware, and are within the scope of the present application.
The terms "first", "second", and "third", etc. in this application are used to distinguish between different objects and not to describe a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or modules is not limited to only those steps or modules listed, but rather, some embodiments may include other steps or modules not listed or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
The embodiment of the application provides a face recognition method, a face recognition device, a storage medium and an electronic device.
Referring to fig. 1, fig. 1 is a schematic view of an application scenario of a face recognition method according to an embodiment of the present application. The scene may include an electronic device 1, where the electronic device may be a smart phone, a tablet computer, a desktop computer, a notebook computer, or a palm computer, and the electronic device 1 has a storage unit and is equipped with a microprocessor to have an operation capability. The electronic device 1 may also be a device having an image capturing function, such as an entrance guard or a console. The electronic device 1 is exemplified by a mobile phone, and the mobile phone 1 may have a front camera 11, and the front camera 11 may take a picture and may take a video. The front-facing camera 11 can acquire an external image and determine face image information according to the image information, and the mobile phone 1 can perform one or more times of face recognition according to the face image information acquired by the front-facing camera 11.
The front-facing camera 11 can monitor the external image in real time in the process of acquiring the external image, that is, the front-facing camera 11 automatically detects and acquires the external image until the face image is acquired, and the face image includes face image information. It should be noted that the front-facing camera 11 may also obtain a face image after determining that face recognition is needed, for example: through the mode of voice calling, the user sends out the voice information of face recognition, and the electronic equipment 1 starts the front camera 11 to acquire the face image after receiving the voice information of face recognition sent out by the user. For another example: through a key touch mode, a user triggers a designated physical key of the electronic device 1, and the electronic device 1 receives a user trigger signal to control the camera 11 to acquire a face image.
In order to increase the unlocking security of the mobile phone 1, the following describes in detail the mobile phone 1 performs face recognition twice to realize unlocking.
In some embodiments, the mobile phone 1 may acquire and determine the first face image through the front camera 11 thereof, and the first face image has the first face image information. The information with the first face image may include feature elements of the face image, such as: eyes, nose, mouth, teeth, ears, wrinkles, etc. In some embodiments, the first facial image information may include eyes, nose, mouth, ears, etc., and may not include teeth.
After the electronic device 1 acquires the first face image information, the first face image information may be matched with first preset face image information one by one, or compared with the first preset face image information. The first preset face image information may be obtained from an image feature element library, which may be obtained through a pre-learning training. Wherein the first preset facial image information may include eyes, nose, mouth, ears, etc.
In some embodiments, if the first face image information matches the first preset face image information, the first face recognition is completed, and the second face recognition may be entered. And if the first face image information is not matched with the first preset face image information, the first face recognition is failed, the face recognition is finished, and the electronic equipment 1 is kept in a screen locking state.
In some embodiments, after the electronic device 1 completes the first face recognition, the electronic device 1 enters the second face recognition, and in the process of performing the second face recognition, the electronic device 1 acquires a second face image through the front camera 11, where the second face image may include second face image information. The second facial image information may include a plurality of facial feature elements. In some embodiments, the second facial image information is different from the first facial image information. For example, the first face image information does not include teeth, and the second face image information includes teeth.
In some embodiments, if the electronic device 1 acquires the second face image within the preset time period, the electronic device 1 may perform the second face recognition according to the acquired second face image information. Specifically, the electronic device 1 may match or compare the second face image information with second preset face image information. The second preset face image information may be obtained from an image feature element library, which may be obtained through a pre-learning training. Wherein the second preset facial image information may include eyes, nose, mouth, ears, teeth, etc.
In some embodiments, if the second face image information matches with the second preset face image information, the second face recognition is completed, and the electronic device 1 may be unlocked and enter the interface. If the second face image information is not matched with the second preset face image information, the second face recognition fails, the electronic device 1 can be controlled to be in the screen locking state, and meanwhile, a preset application of the electronic device 1, such as a camera of the electronic device 1, can be started. It can be understood that when the second face recognition fails, the camera of the electronic device 1 may be controlled to start, and the camera may be the front camera 11 or the rear camera. When the face recognition fails for the second time, other applications of the electronic device 1, such as a clock application or other preset applications, may also be started. Wherein the preset application can be set according to user habits.
It can be understood that, in the embodiment of the application, different image information is adopted for face recognition twice, so that the safety of face unlocking can be improved. Meanwhile, when the user uses the face recognition electronic device, the face of the user is often aligned with the front camera 11, but the user does not unlock the electronic device, for example: only to facilitate viewing time and to facilitate taking pictures. Therefore, the user can quickly enter the designated application, so that the user can operate the electronic device without entering the main interface of the electronic device 1, and the user experience is improved.
The details will be described below.
In the embodiment of the present application, the description will be made from the perspective of a face recognition device, which may be specifically integrated in an electronic device having an arithmetic capability, such as a tablet, a PC, a mobile phone, and the like, which has a storage unit and is equipped with a microprocessor.
A face recognition method is applied to electronic equipment and comprises the following steps: carrying out first face recognition according to the first face image information, and judging whether the first face image information is matched with first preset face image information or not; if the first face image information is matched with the first preset face image information, acquiring second face image information; if the second face image information is acquired, performing second face recognition according to the second face image information, and judging whether the second face image information is matched with second preset face image information or not, wherein the second face image information is different from the first face image information; if the second face image information is matched with second preset face image information, unlocking the electronic equipment; and if the second face image information is not matched with the second preset face image information, controlling the electronic equipment to be in a screen locking state, and starting a preset application of the electronic equipment.
Referring to fig. 2, fig. 2 is a schematic flow chart of a face recognition method according to an embodiment of the present application. The face recognition method may include:
in step 101, a first face recognition is performed according to the first face image information, and it is determined whether the first face image information matches with first preset face image information.
In some embodiments, the electronic device 1 may acquire an image by using a front-facing camera, the electronic device 1 determines a face image according to the acquired image, and extracts face image information according to the determined face image, where the face image information may include face feature elements such as eyes, mouth, nose, and ears, and details thereof are not repeated herein. After the electronic device 1 determines the first face image information, the first face image information is matched with the first preset face image information. The first preset facial image information may include human face feature elements such as eyes, mouth, nose, ears, and the like, which may be referred to above specifically, and will not be described herein again.
In step 102, if the first face image information matches with the first preset face image information, second face image information is collected.
In some embodiments, if the first face image information matches the first preset face image information, the first face recognition is completed. The electronic device may acquire the second face image information in a preset time period, for example, the electronic device 1 may acquire the second face image information within 5 seconds after the first face recognition is completed to perform the second face recognition. In the second face recognition process, a second face image is firstly acquired. The electronic device 1 may acquire an image by using a front-facing camera, determine a face image, and then acquire second face image information from the determined face image, where the second face image information may include face feature elements such as eyes, a mouth, a nose, ears, and teeth, and the above contents may be specifically referred to, and are not described herein again.
Note that the preset time period may be 3 seconds, 6 seconds, 7 seconds, 10 seconds, or the like. The preset time period may be a time interval between the first face recognition and the second face recognition.
In step 103, if second face image information is acquired, performing second face recognition according to the second face image information, and determining whether the second face image information matches with second preset face image information, where the second face image information is different from the first face image information.
In some embodiments, if the front-facing camera of the electronic device acquires the second face image within a preset time period, acquiring second face image information from the second face image, and performing face recognition for the second time. And in the process of secondary face recognition, matching and comparing the second face image information with second preset face image information. The second preset facial image information may include human facial feature elements such as eyes, mouth, nose, ears, teeth, and the like, which may be referred to above specifically, and is not described herein again.
It should be noted that the second face image information is different from the first face image information, for example, the second face image information includes teeth, and the first face image information does not include teeth. For another example: the first image information includes a front face contour and the second image information includes a side face contour. Or in the first face recognition process, the first face image is in the first state, and the second face image is in the second state. The first state and the second state are two different states.
In step 104, if the second face image information matches with the second preset face image information, the electronic device is unlocked.
In some embodiments, please refer to fig. 3, and fig. 3 is a state diagram of an electronic device according to an embodiment of the present disclosure. The electronic device has a front camera 11, and the front camera 11 can refer to the above contents, which are not described herein again. The electronic device 1 has a lock screen interface 12, i.e. an interface in which the electronic device 1 is in a lock screen state.
Referring to fig. 4, fig. 4 is another state diagram of an electronic device according to an embodiment of the present disclosure. The electronic device has a front camera 11, and the front camera 11 can refer to the above contents, which are not described herein again. The electronic device 1 has a main interface 13. The electronic device 1 can be unlocked in the screen locking interface 12 by a face recognition unlocking mode and enter the main interface 13.
Therefore, the unlocking is realized through two different face characteristic elements, and the face recognition safety can be improved.
In step 105, if the second face image information does not match the second preset face image information, the electronic device is controlled to be in a screen locking state, and a preset application of the electronic device is started.
The preset application can be a front camera, a rear camera, a clock application and the like. The preset application can be preset or can be set according to the use habits of users. When the camera of the electronic device is started, the camera or the photographing interface may be entered, specifically, refer to fig. 5, where fig. 5 is another state diagram of the electronic device provided in the embodiment of the present application, and the electronic device 1 has a photographing interface 14, and can photograph and photograph on the photographing interface. When the clock application of the electronic device is started, the electronic device may be controlled to display the current time, specifically, referring to fig. 6, where fig. 6 is another state diagram of the electronic device provided in the embodiment of the present application, the electronic device has a clock interface 15, and the clock interface 15 displays the current time.
Therefore, the electronic equipment can be prevented from being unlocked by mistake in face recognition, and the electronic equipment can quickly enter the preset application in a screen locking state through the features of the face recognition, so that the electronic equipment is more convenient for a user to use.
Referring to fig. 7, fig. 7 is another schematic flow chart of a face recognition method according to an embodiment of the present application. The face recognition method comprises the following steps:
in step 201, a first face image is captured, the first face image having first face image information. The first face image information may refer to the above contents, and is not described herein again.
In step 202, first face recognition is performed based on the first face image information. Specifically, whether the first face image information is matched with the first preset face image information is judged. The first preset facial image information may refer to the above contents, and is not described herein again.
In step 203, if the first face image information matches the first preset face image information, a second face image is collected, where the second face image has second face image information. The second face image may be obtained within a preset time period, which may be referred to above specifically, and is not described herein again.
In step 204, if the first face image information does not match the first preset face image information, the electronic device is kept in a screen locking state.
In step 205, it is determined whether a second facial image is acquired. Specifically, whether a second face image is acquired within a preset time period is judged. The preset time period may refer to the above contents, and is not described herein again.
In step 206, if a second face image is acquired, a second face recognition is performed, and it is determined whether second face image information is matched with second preset face image information, where the second face image information is different from the first face image information. Specifically, refer to step 103, which is not described herein again. If the second face image information does not match the second preset face image information, the process proceeds to step 207.
In step 207, if the second face image is not acquired, that is, if the second face image is not acquired within a preset time period, the electronic device is controlled to be in the screen locking state, and a preset application of the electronic device is started. For details, reference may be made to the above contents, which are not described herein again.
In step 208, if the second face image information matches the second preset face image information, the electronic device is unlocked. Specifically, refer to step 104, which is not described herein again.
Therefore, the safety of face recognition unlocking is improved by adopting face recognition unlocking twice, whether the user needs to unlock the mobile terminal is judged according to the interval time of the face recognition twice, for the user, the preset application can be quickly started in a screen locking state without carrying out face recognition for the second time, and the mobile terminal can quickly enter a preset application interface, such as a camera interface, a clock interface and the like. The user experience is improved, and the use of the user is facilitated.
In the embodiment of the application, in the process of secondary face recognition, the electronic device is controlled to make different responses according to whether the second face image can be acquired or not. The second face image may be acquired as described further below.
In some embodiments, the face recognition method may further include: determining a first time point of first face recognition; determining a second time point for acquiring the second face image recognition; judging whether the time interval between the second time point and the first time is greater than a preset time length or not; if the time interval is less than the preset time length, performing secondary face recognition; and if the time interval is longer than the preset time, the electronic equipment is kept in a screen locking state, and the preset application is started.
In some embodiments, the face recognition method may further include: and if the frequency of carrying out secondary face recognition according to the second face image information is greater than the preset frequency, sending prompt information to prompt the distinguishing characteristics of the second preset face image information and the first preset face image information. It can be understood that, for some users, secondary face recognition unlocking is required, and if the number of times of use is small or the user forgets the features of the secondary face recognition due to other reasons, in this way, the electronic device may send a prompt message to prompt the user about which important features are to be exposed. Such as: the second preset facial image information is different from the first preset facial image information in teeth. If the user makes an error for a plurality of times or continuously for a plurality of times, for example, three times, the electronic device 1 automatically sends out a prompt message "teeth are exposed". The user can realize face recognition for the second time by exposing the teeth, and the aim of unlocking is fulfilled.
In order to better implement the face recognition method provided by the embodiment of the application, the embodiment of the application also provides a face recognition device. The meaning of the noun is the same as that of the face recognition method, and specific implementation details can refer to the description in the method embodiment.
Referring to fig. 8, fig. 8 is a schematic structural diagram of a face recognition device according to an embodiment of the present application. The face recognition apparatus 10 is applied to an electronic device, and the face recognition apparatus 10 may include a first face recognition module 110, a second acquisition module 120, a second face recognition module 130, and a control module 140.
The first face recognition module 110 is configured to perform first face recognition according to the first face image information, and determine whether the first face image information matches with first preset face image information. For details, reference may be made to the above contents, which are not described herein again.
The second collecting module 120 is configured to collect second face image information if the first face image information matches the first preset face image information. For details, reference may be made to the above contents, which are not described herein again. It should be noted that the second capturing module 120 may be integrated into the camera.
The second face recognition module 130 is configured to, if second face image information is acquired, perform second face recognition according to the second face image information, and determine whether the second face image information matches second preset face image information, where the second face image information is different from the first face image information. For details, reference may be made to the above contents, which are not described herein again. In some embodiments, the second face recognition module 130 may be integrated with the first face recognition module 110 in the same face recognition module, or may be separate.
The control module 140 is configured to unlock the electronic device if the second face image information matches the second preset face image information. For details, reference may be made to the above contents, which are not described herein again.
Therefore, the unlocking is realized through two different face characteristic elements, and the face recognition safety can be improved.
The control module 140 is further configured to control the electronic device to be in a screen locking state and start a preset application of the electronic device if the second face image information is not matched with the second preset face image information. For details, reference may be made to the above contents, which are not described herein again.
Therefore, the electronic equipment can be prevented from being unlocked by mistake in face recognition, and the electronic equipment can quickly enter the preset application in a screen locking state through the features of the face recognition, so that the electronic equipment is more convenient for a user to use.
Referring to fig. 9, fig. 9 is another schematic structural diagram of a face recognition device according to an embodiment of the present application. The face recognition apparatus 10 may further include a first acquisition module 150, a first determination module 160, a second determination module 170, and a prompt module 180.
The first collecting module 150 is configured to collect a first face image, where the first face image has first face image information. The first face image information may refer to the above contents, and is not described herein again. It should be noted that the first collecting module 150 may be integrated on the camera. In some embodiments, the first acquisition module 150 and the second acquisition module 120 may be integrated on the same camera. Or can be respectively and separately integrated on different cameras.
The first determining module 160 is configured to determine a first time point of the first face recognition.
The second determining module 170 is configured to determine a second time point for acquiring the second face image recognition.
The control module 140 is further configured to perform a second face recognition according to the second face image information if the time interval is less than the preset time length, and determine whether the second face image information matches with the second preset face image information.
The control module 140 is further configured to control the electronic device to be in a screen locking state and start a preset application of the electronic device if the time interval is greater than the preset duration. For details, reference may be made to the above contents, which are not described herein again.
The prompting module 180 is configured to send a prompting message to prompt a distinguishing feature between the second preset face image information and the first preset face image information if the number of times of performing the second face recognition according to the second face image information is greater than a preset number of times. For details, reference may be made to the above contents, which are not described herein again.
The embodiment of the application also provides the electronic equipment. Referring to fig. 10, an electronic device 500 includes a processor 501 and a memory 502. The processor 501 is electrically connected to the memory 502.
The processor 500 is a control center of the electronic device 500, connects various parts of the whole electronic device by using various interfaces and lines, and executes various functions of the electronic device 500 and processes data by running or loading a computer program stored in the memory 502 and calling data stored in the memory 502, thereby performing overall monitoring of the electronic device 500.
The memory 502 may be used to store software programs and modules, and the processor 501 executes various functional applications and data processing by operating the computer programs and modules stored in the memory 502. The memory 502 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, a computer 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 created according to use of the electronic device, and the like. Further, the memory 502 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. Accordingly, the memory 502 may also include a memory controller to provide the processor 501 with access to the memory 502.
In some embodiments, the processor 501 in the electronic device 500 may load instructions corresponding to one or more processes of the computer program into the memory 502, and the processor 501 executes the computer program stored in the memory 502, so as to implement the following steps:
carrying out first face recognition according to first face image information, and judging whether the first face image information is matched with first preset face image information or not;
if the first face image information is matched with the first preset face image information, acquiring second face image information;
if the second face image information is acquired, performing second face recognition according to the second face image information, and judging whether the second face image information is matched with second preset face image information or not, wherein the second face image information is different from the first face image information;
if the second face image information is matched with second preset face image information, unlocking the electronic equipment;
and if the second face image information is not matched with the second preset face image information, controlling the electronic equipment to be in a screen locking state, and starting a preset application of the electronic equipment.
In some embodiments, processor 501 is further configured to perform the following steps:
and if the second face image information is not acquired, controlling the electronic equipment to be in a screen locking state, and starting the preset application of the electronic equipment.
In some embodiments, processor 501 is further configured to perform the following steps:
determining a first time point of the first face recognition;
determining a second time point for acquiring the second face image recognition;
judging whether the time interval between the second time point and the first time point is greater than a preset time length or not;
if the time interval is less than the preset time length, performing secondary face recognition according to the second face image information, and judging whether the second face image information is matched with second preset face image information;
and if the time interval is greater than the preset duration, controlling the electronic equipment to be in a screen locking state, and starting a preset application of the electronic equipment.
In some embodiments, processor 501 is further configured to perform the following steps:
and if the frequency of carrying out secondary face recognition according to the second face image information is greater than the preset frequency, sending prompt information to prompt the distinguishing characteristics of the second preset face image information and the first preset face image information.
In some embodiments, processor 501 is further configured to perform the following steps:
starting a camera application of the electronic equipment, and controlling the electronic equipment to enter a camera interface; or
And starting a clock of the electronic equipment, and controlling the electronic equipment to display the current time.
Therefore, the safety of face recognition unlocking is improved by adopting face recognition unlocking twice, whether the user needs to unlock the mobile terminal is judged according to the interval time of the face recognition twice, for the user, the preset application can be quickly started in a screen locking state without carrying out face recognition for the second time, and the mobile terminal can quickly enter a preset application interface, such as a camera interface, a clock interface and the like. The user experience is improved, and the use of the user is facilitated.
Referring to fig. 11, in some embodiments, the electronic device 500 may further include: a display 503, radio frequency circuitry 504, audio circuitry 505, and a power supply 506. The display 503, the radio frequency circuit 504, the audio circuit 505, and the power source 506 are electrically connected to the processor 501.
The display 503 may be used to display information input by or provided to the user, as well as various graphical user interfaces, which may be made up of graphics, text, icons, video, and any combination thereof. The Display 503 may include a Display panel, and in some embodiments, the Display panel may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The rf circuit 504 may be configured to transmit and receive rf signals, so as to establish wireless communication with a network device or other electronic devices through wireless communication, and transmit and receive signals with the network device or other electronic devices.
The audio circuit 505 may be used to provide an audio interface between a user and an electronic device through a speaker or microphone, among other things.
The power source 506 may be used to power various components of the electronic device 500. In some embodiments, the power source 506 may be regularly coupled to the processor 401 through a power management system, so that functions of managing charging, discharging, and power consumption are implemented through the power management system.
Although not shown in fig. 11, the electronic device 500 may further include a camera, a bluetooth module, and the like, which are not described in detail herein.
An embodiment of the present application further provides a storage medium, where the storage medium stores a computer program, and when the computer program runs on a computer, the computer is caused to execute the face recognition method in any one of the above embodiments, for example: carrying out first face recognition according to first face image information, and judging whether the first face image information is matched with first preset face image information or not; if the first face image information is matched with the first preset face image information, acquiring second face image information; if the second face image information is acquired, performing second face recognition according to the second face image information, and judging whether the second face image information is matched with second preset face image information or not, wherein the second face image information is different from the first face image information; if the second face image information is matched with second preset face image information, unlocking the electronic equipment; and if the second face image information is not matched with the second preset face image information, controlling the electronic equipment to be in a screen locking state, and starting a preset application of the electronic equipment.
In some embodiments, the storage medium may be a magnetic disk, an optical disk, a Read Only Memory (ROM), a Random Access Memory (RAM), or the like.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
It should be noted that, for the face recognition method in the embodiment of the present application, it can be understood by a person skilled in the art that all or part of the process for implementing the face recognition method in the embodiment of the present application can be completed by controlling the relevant hardware through a computer program, where the computer program can be stored in a computer-readable storage medium, such as a memory of an electronic device, and executed by at least one processor in the electronic device, and the process of executing the process can include the process of the embodiment of the face recognition method.
For the face recognition device in the embodiment of the present application, each functional module may be integrated in one processing chip, or each module may exist alone physically, or two or more modules are integrated in one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium, such as a read-only memory, a magnetic or optical disk, or the like.
The face recognition method, the face recognition device, the storage medium and the electronic device provided by the embodiment of the application are introduced in detail, a specific example is applied in the description to explain the principle and the implementation of the application, and the description of the embodiment is only used for helping to understand the method and the core idea of the application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. A face recognition method is applied to electronic equipment, and is characterized by comprising the following steps:
carrying out first face recognition according to first face image information, and judging whether the first face image information is matched with first preset face image information or not;
if the first face image information is matched with the first preset face image information, acquiring second face image information;
if the second face image information is acquired, performing second face recognition according to the second face image information, and judging whether the second face image information is matched with second preset face image information or not, wherein the second face image information is different from the first face image information;
if the second face image information is matched with second preset face image information, unlocking the electronic equipment; the first preset face image information and the second preset face image information are face image information of the same user;
if the second face image information is not matched with the second preset face image information, controlling the electronic equipment to be in a screen locking state, and starting a preset application of the electronic equipment;
and if the second face image information is not acquired, controlling the electronic equipment to be in a screen locking state, and starting the preset application of the electronic equipment.
2. The method according to claim 1, wherein if the second face image information is collected, performing a second face recognition according to the second face image information, and determining whether the second face image information matches with the second preset face image information specifically includes:
determining a first time point of the first face recognition;
determining a second time point for acquiring the second face image recognition;
judging whether the time interval between the second time point and the first time point is greater than a preset time length or not;
if the time interval is less than the preset time length, performing secondary face recognition according to the second face image information, and judging whether the second face image information is matched with second preset face image information;
and if the time interval is greater than the preset duration, controlling the electronic equipment to be in a screen locking state, and starting a preset application of the electronic equipment.
3. The face recognition method according to claim 1, wherein if the second face image information is collected, performing a second face recognition according to the second face image information, and after determining whether the second face image information matches with the second preset face image information, the face recognition method further comprises:
and if the frequency of carrying out secondary face recognition according to the second face image information is greater than the preset frequency, sending prompt information to prompt the distinguishing characteristics of the second preset face image information and the first preset face image information.
4. The face recognition method according to claim 1 or 2, wherein the starting of the preset application of the electronic device specifically includes:
starting a camera application of the electronic equipment, and controlling the electronic equipment to enter a camera interface; or
And starting a clock of the electronic equipment, and controlling the electronic equipment to display the current time.
5. A face recognition device applied to electronic equipment is characterized by comprising:
the first face recognition module is used for carrying out first face recognition according to the first face image information and judging whether the first face image information is matched with first preset face image information or not;
the second acquisition module is used for acquiring second face image information if the first face image information is matched with the first preset face image information;
the second face recognition module is used for carrying out second face recognition according to the second face image information if the second face image information is acquired, and judging whether the second face image information is matched with second preset face image information or not, wherein the second face image information is different from the first face image information, and the second face image information and the first face image information are image information of the same face;
the control module is used for unlocking the electronic equipment if the second face image information is matched with second preset face image information; the first preset face image information and the second preset face image information are face image information of the same user;
the control module is further configured to control the electronic device to be in a screen locking state and start a preset application of the electronic device if the second face image information is not matched with the second preset face image information;
and the control module is also used for controlling the electronic equipment to be in a screen locking state and starting the preset application of the electronic equipment if the second face image information is not acquired.
6. The face recognition apparatus according to claim 5, wherein the face recognition apparatus further comprises a first determination module and a second determination module;
the first determining module is configured to determine a first time point of the first face recognition;
the second determining module is configured to determine a second time point at which the second face image recognition is acquired;
the second face recognition module is configured to perform face recognition for the second time according to the second face image information if the time interval is less than the preset duration, and determine whether the second face image information matches with the second preset face image information;
and the control module is used for controlling the electronic equipment to be in a screen locking state and starting a preset application of the electronic equipment if the time interval is greater than the preset duration.
7. The face recognition apparatus of claim 5, further comprising:
and the prompting device is used for sending out prompting information to prompt the distinguishing characteristics of the second preset face image information and the first preset face image information if the frequency of carrying out the second face recognition according to the second face image information is greater than the preset frequency.
8. The face recognition apparatus according to claim 5 or 6, wherein the control device is configured to start a camera application of an electronic device, and control the electronic device to enter a camera interface;
the control device is used for starting a clock of the electronic equipment and controlling the electronic equipment to display the current time.
9. A storage medium characterized in that it comprises a computer program which, when run on a computer, causes the computer to execute the face recognition method according to any one of claims 1 to 4.
10. An electronic device, comprising a processor and a memory electrically connected to each other, wherein the memory stores a computer program, and the processor is configured to execute the face recognition method according to any one of claims 1 to 4 by calling the computer program.
CN201711464306.2A 2017-12-28 2017-12-28 Face recognition method, face recognition device, storage medium and electronic equipment Active CN108197450B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711464306.2A CN108197450B (en) 2017-12-28 2017-12-28 Face recognition method, face recognition device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711464306.2A CN108197450B (en) 2017-12-28 2017-12-28 Face recognition method, face recognition device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN108197450A CN108197450A (en) 2018-06-22
CN108197450B true CN108197450B (en) 2021-08-27

Family

ID=62585233

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711464306.2A Active CN108197450B (en) 2017-12-28 2017-12-28 Face recognition method, face recognition device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN108197450B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108919949A (en) * 2018-06-25 2018-11-30 联想(北京)有限公司 A kind of state switching method and device
CN108875989B (en) * 2018-06-29 2022-12-27 北京金山安全软件有限公司 Reservation method and device based on face recognition, computer equipment and storage medium
CN109703571A (en) * 2018-12-24 2019-05-03 北京长城华冠汽车技术开发有限公司 A kind of vehicle entertainment system login system and login method based on recognition of face
CN110458034A (en) * 2019-07-17 2019-11-15 江西拓世智能科技有限公司 A kind of identity control methods based on face and iris recognition
CN110910556B (en) * 2019-11-08 2022-02-18 泰康保险集团股份有限公司 Gate control method and device, readable storage medium and electronic equipment
CN111291645A (en) * 2020-01-20 2020-06-16 支付宝实验室(新加坡)有限公司 Identity recognition method and device
CN111711762B (en) * 2020-06-30 2021-06-29 云从科技集团股份有限公司 Camera lens module shielding control method and device based on target detection and camera
CN112539784A (en) * 2020-12-08 2021-03-23 四川天邑康和通信股份有限公司 PON/micro base station power supply lightning protection device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103077339A (en) * 2012-12-28 2013-05-01 广东欧珀移动通信有限公司 Data protection method and device
CN103605459A (en) * 2013-11-27 2014-02-26 福州瑞芯微电子有限公司 Fast application launching method and fast application launching terminal
CN104636734A (en) * 2015-02-28 2015-05-20 深圳市中兴移动通信有限公司 Terminal face recognition method and device
CN107465871A (en) * 2017-08-03 2017-12-12 深圳天珑无线科技有限公司 The method, apparatus and storage medium taken pictures based on mobile terminal automatic sensing

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103077339A (en) * 2012-12-28 2013-05-01 广东欧珀移动通信有限公司 Data protection method and device
CN103605459A (en) * 2013-11-27 2014-02-26 福州瑞芯微电子有限公司 Fast application launching method and fast application launching terminal
CN104636734A (en) * 2015-02-28 2015-05-20 深圳市中兴移动通信有限公司 Terminal face recognition method and device
CN107465871A (en) * 2017-08-03 2017-12-12 深圳天珑无线科技有限公司 The method, apparatus and storage medium taken pictures based on mobile terminal automatic sensing

Also Published As

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

Similar Documents

Publication Publication Date Title
CN108197450B (en) Face recognition method, face recognition device, storage medium and electronic equipment
US10721196B2 (en) Method and device for message reading
US9904774B2 (en) Method and device for locking file
US10610152B2 (en) Sleep state detection method, apparatus and system
US20160028741A1 (en) Methods and devices for verification using verification code
CN107742072B (en) Face recognition method and mobile terminal
US20200160078A1 (en) Identification method and apparatus and computer-readable storage medium
US9924090B2 (en) Method and device for acquiring iris image
CN109151044B (en) Information pushing method and device, electronic equipment and storage medium
CN110096865B (en) Method, device and equipment for issuing verification mode and storage medium
WO2017036018A1 (en) Fingerprint identification method and apparatus, and mobile terminal
US11386586B2 (en) Method and electronic device for adding virtual item
CN112532885B (en) Anti-shake method and device and electronic equipment
CN111596760A (en) Operation control method and device, electronic equipment and readable storage medium
CN106778169B (en) Fingerprint unlocking method and device
CN109218169B (en) Instant messaging method, device and storage medium
KR20130082980A (en) User personalized recommendation system based on face-recognition
CN111061369B (en) Interaction method, device, equipment and storage medium
CN111986700A (en) Method, device, equipment and storage medium for triggering non-contact operation
CN107133551B (en) Fingerprint verification method and device
CN112764600A (en) Resource processing method, device, storage medium and computer equipment
CN114724312B (en) Cabinet opening method, device and equipment of storage cabinet and computer readable storage medium
CN116418771A (en) Message display method, message processing method, device and electronic equipment
CN113763932B (en) Speech processing method, device, computer equipment and storage medium
CN114724311A (en) Cabinet opening method, device and equipment of storage cabinet and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant