CN107480500B - Face verification method and mobile terminal - Google Patents

Face verification method and mobile terminal Download PDF

Info

Publication number
CN107480500B
CN107480500B CN201710684616.9A CN201710684616A CN107480500B CN 107480500 B CN107480500 B CN 107480500B CN 201710684616 A CN201710684616 A CN 201710684616A CN 107480500 B CN107480500 B CN 107480500B
Authority
CN
China
Prior art keywords
face
features
target
image
face image
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
CN201710684616.9A
Other languages
Chinese (zh)
Other versions
CN107480500A (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 CN201710684616.9A priority Critical patent/CN107480500B/en
Publication of CN107480500A publication Critical patent/CN107480500A/en
Application granted granted Critical
Publication of CN107480500B publication Critical patent/CN107480500B/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/168Feature extraction; Face representation

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • Oral & Maxillofacial Surgery (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • Multimedia (AREA)
  • Telephone Function (AREA)
  • Studio Devices (AREA)

Abstract

The invention provides a face verification method and a mobile terminal, and solves the problem that the features of a 3D face cannot be identified and verified through a single camera of the mobile terminal at present. The method for verifying the human face comprises the following steps: controlling the camera to shoot the target face according to different shooting focal lengths to obtain at least one face image; determining face 3D features and face 2D features of the target face according to the at least one face image; and carrying out face verification on the target face according to the face 3D features and the face 2D features of the target face. The invention can verify whether the target face is the 3D face according to the 3D features of the face and verify the features of the target face through the 2D features of the face, thereby achieving the purpose of identifying and verifying the 3D face through a single camera of the mobile terminal.

Description

Face verification method and mobile terminal
Technical Field
The invention relates to the technical field of communication, in particular to a face verification method and a mobile terminal.
Background
At present, when a face of a mobile terminal is verified, according to an existing face detection algorithm, only the features of a 2D face can be verified through a single camera of the mobile terminal, and a 3D face cannot be identified and verified, so that a security hole exists during face verification, and therefore a new face verification method is needed to verify the 3D face through the single camera of the mobile terminal.
Disclosure of Invention
The embodiment of the invention provides a face verification method and a mobile terminal, and aims to solve the problem that the features of a 3D face cannot be identified and verified through a single camera of the mobile terminal at present.
In a first aspect, an embodiment of the present invention provides a method for face verification, which is applied to a mobile terminal including a camera, and includes:
controlling the camera to shoot the target face according to different shooting focal lengths to obtain at least one face image;
determining face 3D features and face 2D features of the target face according to the at least one face image;
and carrying out face verification on the target face according to the face 3D features and the face 2D features of the target face.
In a second aspect, an embodiment of the present invention further provides a mobile terminal, including:
the control module is used for controlling the camera to shoot the target face according to different shooting focal lengths to obtain at least one face image;
the determining module is used for determining the facial 3D features and the facial 2D features of the target face according to the at least one face image;
and the verification module is used for performing face verification on the target face according to the face 3D characteristics and the face 2D characteristics of the target face.
In a third aspect, an embodiment of the present invention further provides a mobile terminal, including: a memory, a processor and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the method of face verification as described above.
In a fourth aspect, the embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the method for face verification as described above.
In this way, according to the technical scheme of the embodiment of the invention, the camera is controlled to shoot the target face according to different shooting focal lengths to obtain at least one face image; determining face 3D features and face 2D features of the target face according to the at least one face image; and carrying out face verification on the target face according to the face 3D features and the face 2D features of the target face. The embodiment of the invention can verify whether the target face is the 3D face according to the 3D features of the face and verify the features of the target face through the 2D features of the face, thereby achieving the purpose of identifying and verifying the 3D face through a single camera of the mobile terminal.
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 method for face verification according to an embodiment of the present invention;
FIG. 2 is a second flowchart of a face verification method according to an embodiment of the present invention;
fig. 3 is a block diagram of a mobile terminal according to an embodiment of the present invention;
fig. 4 is a second block diagram of a mobile terminal according to the embodiment of the present invention;
fig. 5 is a block diagram of a mobile terminal according to an embodiment of the present invention;
fig. 6 is a second block diagram of the mobile terminal according to the embodiment of the invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be described clearly and completely with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. 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.
As shown in fig. 1, an embodiment of the present invention provides a method for face verification, which is applied to a mobile terminal including a camera, and the method includes:
step 101: and controlling the camera to shoot the target face according to different shooting focal lengths to obtain at least one face image.
The camera may be a front camera of the mobile terminal, and the camera has an auto-focusing function, and preferably, the front camera has a larger aperture.
The face verification method provided by the embodiment of the invention can be particularly applied to screen unlocking of the mobile terminal. At this time, the step 101 specifically includes: and when a screen unlocking instruction is received, controlling a camera of the mobile terminal to shoot the target face according to different shooting focal lengths to obtain a plurality of face images. Each face image corresponds to one shooting focal length, and the shooting focal lengths corresponding to the face images are different.
Step 102: and determining the facial 3D features and the facial 2D features of the target face according to the at least one face image.
The method comprises the steps of identifying whether a target face is a 3D face or not by obtaining facial 3D features of the target face, and verifying the target face through facial 2D features, so that the purpose of identifying and verifying the 3D face is achieved.
Step 103: and carrying out face verification on the target face according to the face 3D features and the face 2D features of the target face.
Here, the identification and verification of the 3D face is realized according to the facial 3D features and the facial 2D features of the target face, so that the purpose of identifying and verifying the 3D face through a single camera of the mobile terminal is achieved.
Further, the step 102 of determining the 2D feature of the target face according to the at least one face image includes:
selecting one face image from the at least one face image as a target face image; and extracting 2D features of the face in the target face image.
Specifically, according to a preset optimal image selection algorithm, one face image is selected from at least one face image as the target face image, and the 2D features of the face in the target face image are extracted, so that the 2D features of the face can be verified subsequently.
The preset optimal image selection algorithm compares at least one index of the indexes of definition, illumination uniformity, contrast, saturation, brightness, detail richness, whether overexposure or over darkness, whether color blocks exist, whether color cast exists, whether supercooling and whether overheating exists among a plurality of face images, and the like to obtain the target face image.
As an optional implementation, the step of selecting one face image from the at least one face image as a target face image includes:
and selecting one face image with a focus point positioned in a face center area from the at least one face image as the target face image.
The face center area may be set according to the actual needs of the user, and is not specifically limited herein.
Further, the step 102 of determining the 3D facial features of the target face according to the at least one face image includes:
acquiring focusing FV values of at least two preset human face parts in each human face image;
wherein the facial 3D feature is the focused FV value.
For example, FV values for the nose and ears in each face image may be obtained. Different locations (e.g., nose, ear) may have different FV values due to 3D faces having different depths. When the in-focus position of the lens is moved from the nose to the ear, the nose FV value becomes smaller from large, and the ear FV value becomes larger from small. On the contrary, in the case of a 2D face, the values of the nose and ear positions FV become larger or smaller together.
Here, focus FV values of at least two preset face parts in each face image are acquired, so that whether the target face is a 3D face is determined through the acquired FV values.
In this case, the step 103 includes:
verifying whether the target face meets a preset condition or not according to the facial 3D features and the facial 2D features of the target face; and if the FV values of at least two preset face parts in each face image are not increased or decreased simultaneously along with the change of the shooting focal length, and the 2D features of the face are matched with the preset face features, determining that the target face meets the preset condition.
Wherein the preset conditions include: whether the focusing FV values of at least two preset human face parts in each human face image are increased or decreased simultaneously along with the change of the shooting focal length, and whether the 2D characteristics of the face are matched with the preset human face characteristics.
Here, the preset facial features are specifically facial features that are stored in the mobile terminal in advance. The embodiment of the invention can detect whether the 2D characteristics of the face are matched with the preset face characteristics by using the existing face detection algorithm.
In the embodiment of the invention, the focusing FV values of at least two preset face parts in each face image are simultaneously increased or decreased along with the change of the shooting focal length, which indicates that the target face is a 3D face, and the 2D features of the face are matched with the preset face features, the target face is determined to be successfully verified, so that the aim of identifying and verifying the 3D face by a single camera of the mobile terminal is fulfilled, and the cost of the mobile terminal is reduced.
Further, the method for face verification according to the embodiment of the present invention may be applied to screen unlocking, and at this time, as shown in fig. 2, the method for face verification according to the embodiment of the present invention further includes:
step 104: and if the target face meets the preset condition, unlocking the screen of the mobile terminal.
Specifically, if the facial 3D features indicate that the target face is a 3D face (a face with depth), and the facial 2D features are matched with the preset face features, it is determined that the target face is successfully verified, and the screen of the mobile terminal is unlocked.
In the embodiment of the invention, the 3D face is identified and verified, and the screen of the mobile terminal is unlocked after the verification is successful, so that the safety of the mobile terminal is improved, and the privacy information of a user can be more effectively protected.
The method for verifying the face of the embodiment of the invention comprises the steps of controlling the camera to shoot a target face according to different shooting focal lengths to obtain at least one face image; determining face 3D features and face 2D features of the target face according to the at least one face image; and carrying out face verification on the target face according to the face 3D features and the face 2D features of the target face. The embodiment of the invention can verify whether the target face is the 3D face according to the 3D features of the face and verify the features of the target face through the 2D features of the face, thereby achieving the purpose of identifying and verifying the 3D face through a single camera of the mobile terminal.
As shown in fig. 3, an embodiment of the present invention further provides a mobile terminal 300, including:
the control module 301 is configured to control the camera to shoot a target face according to different shooting focal lengths, so as to obtain at least one face image;
a determining module 302, configured to determine, according to the at least one face image, a facial 3D feature and a facial 2D feature of the target face;
and the verification module 303 is configured to perform face verification on the target face according to the facial 3D features and the facial 2D features of the target face.
In the mobile terminal of the embodiment of the present invention, the determining module 302 includes:
a selecting submodule 3021 configured to select one face image from the at least one face image as a target face image;
an extraction sub-module 3022, configured to extract a 2D feature of the face in the target face image.
In the mobile terminal according to the embodiment of the present invention, the selecting submodule 3021 is configured to select, as the target face image, one face image whose focus point is located in a face center area from the at least one face image.
In the mobile terminal according to the embodiment of the present invention, the determining module 302 is configured to obtain focus FV values of at least two preset face portions in each face image;
wherein the facial 3D feature is the focused FV value.
In the mobile terminal of the embodiment of the present invention, the verification module 303 includes:
the verification submodule 3031 is configured to verify whether the target face meets a preset condition according to the facial 3D features and the facial 2D features of the target face;
a determining submodule 3032, configured to determine that the target face meets a preset condition if FV values of at least two preset face portions in each of the face images do not increase or decrease simultaneously with a change of a shooting focal length, and the 2D facial features match preset face features;
wherein the preset conditions include: whether the focusing FV values of at least two preset human face parts in each human face image are increased or decreased simultaneously along with the change of the shooting focal length, and whether the 2D characteristics of the face are matched with the preset human face characteristics.
The mobile terminal of the embodiment of the invention also comprises:
and the unlocking module 304 is used for unlocking the screen of the mobile terminal.
It should be noted that the mobile terminal is a mobile terminal corresponding to the above method embodiment, and all implementation manners in the above method embodiment are applicable to the embodiment of the mobile terminal, and the same technical effect can be achieved.
The mobile terminal of the embodiment of the invention controls the camera to shoot the target face according to different shooting focal lengths to obtain at least one face image; determining face 3D features and face 2D features of the target face according to the at least one face image; and carrying out face verification on the target face according to the face 3D features and the face 2D features of the target face. The embodiment of the invention can verify whether the target face is the 3D face according to the 3D features of the face and verify the features of the target face through the 2D features of the face, thereby achieving the purpose of identifying and verifying the 3D face through a single camera of the mobile terminal.
An embodiment of the present invention further provides a mobile terminal, including: the computer program is executed by the processor to implement each process in the above-mentioned embodiment of the face verification method, and can achieve the same technical effect, and is not described herein again to avoid repetition.
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 in the above-mentioned method for face verification, 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.
As shown in fig. 5, an embodiment of the present invention further provides a mobile terminal, where the mobile terminal 500 shown in fig. 5 includes: at least one processor 501, memory 502, at least one network interface 504, sensors 506 of the camera, and other user interfaces 503. The processor 501 includes an image control center 5011 and an image processor 5012. The various components in the mobile terminal 500 are coupled together by a bus system 505. It is understood that the bus system 505 is used to enable connection communications between these components. The bus system 505 includes a power bus, a control bus, and a status signal bus in addition to a data bus. For clarity of illustration, however, the various buses are labeled as bus system 505 in FIG. 5.
The user interface 503 may include, among other things, a display, a keyboard, or a pointing device (e.g., a mouse, trackball, touch pad, or touch screen, among others.
It is to be understood that the memory 502 in embodiments of the present invention may be either volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. The non-volatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable PROM (EEPROM), or a flash Memory. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of illustration and not limitation, many forms of RAM are available, such as Static random access memory (Static RAM, SRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic random access memory (Synchronous DRAM, SDRAM), Double Data Rate Synchronous Dynamic random access memory (ddr Data Rate SDRAM, ddr SDRAM), Enhanced Synchronous SDRAM (ESDRAM), Synchlink DRAM (SLDRAM), and Direct Rambus RAM (DRRAM). The memory 502 of the systems and methods described herein is intended to comprise, without being limited to, these and any other suitable types of memory.
In some embodiments, memory 502 stores elements, executable modules or data structures, or a subset thereof, or an expanded set thereof as follows: an operating system 5021 and application programs 5022.
The operating system 5021 includes various system programs, such as a framework layer, a core library layer, a driver layer, and the like, and is used for implementing various basic services and processing hardware-based tasks. The application 5022 includes various applications, such as a Media Player (Media Player), a Browser (Browser), and the like, for implementing various application services. The program for implementing the method according to the embodiment of the present invention may be included in the application program 5022.
In an embodiment of the present invention, by calling a program or an instruction stored in the memory 502, specifically a program or an instruction stored in the application 5022, when the computer program is executed by the processor 501, the following steps are implemented:
controlling the camera to shoot the target face according to different shooting focal lengths to obtain at least one face image;
determining face 3D features and face 2D features of the target face according to the at least one face image;
and carrying out face verification on the target face according to the face 3D features and the face 2D features of the target face.
Optionally, the computer program when executed by the processor 501 implements the following steps:
selecting one face image from the at least one face image as a target face image;
and extracting 2D features of the face in the target face image.
Optionally, the computer program when executed by the processor 501 implements the following steps:
and selecting one face image with a focus point positioned in a face center area from the at least one face image as the target face image.
Optionally, the computer program when executed by the processor 501 implements the following steps:
acquiring focusing FV values of at least two preset human face parts in each human face image;
wherein the facial 3D feature is the focused FV value.
Optionally, the computer program when executed by the processor 501 implements the following steps:
verifying whether the target face meets a preset condition or not according to the facial 3D features and the facial 2D features of the target face;
if FV values of at least two preset face parts in each face image are not increased or decreased simultaneously along with the change of the shooting focal length, and the 2D features of the face are matched with the preset face features, determining that the target face meets the preset condition;
wherein the preset conditions include: whether the focusing FV values of at least two preset human face parts in each human face image are increased or decreased simultaneously along with the change of the shooting focal length, and whether the 2D characteristics of the face are matched with the preset human face characteristics.
Optionally, the computer program when executed by the processor 501 implements the following steps:
and unlocking the screen of the mobile terminal.
In the mobile terminal 500 of the embodiment of the present invention, the processor 501 is configured to control the camera to shoot a target face according to different shooting focal lengths, so as to obtain at least one face image; determining face 3D features and face 2D features of the target face according to the at least one face image; and carrying out face verification on the target face according to the face 3D features and the face 2D features of the target face. The embodiment of the invention can verify whether the target face is the 3D face according to the 3D features of the face and verify the features of the target face through the 2D features of the face, thereby achieving the purpose of identifying and verifying the 3D face through a single camera of the mobile terminal.
The mobile terminal of the present invention may be a mobile phone, a tablet computer, a Personal Digital Assistant (PDA), or a vehicle-mounted computer.
The mobile terminal 500 can implement the processes implemented by the terminal in the foregoing embodiments, and further description is omitted here to avoid repetition.
The methods disclosed in the embodiments of the present invention may be applied to the processor 501, or implemented by the processor 501. The processor 501 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 501. The Processor 501 may be a general-purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, or discrete hardware components. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in the memory 502, and the processor 501 reads the information in the memory 502 and completes the steps of the method in combination with the hardware.
It is to be understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or any combination thereof. For a hardware implementation, the Processing units may be implemented within one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), general purpose processors, controllers, micro-controllers, microprocessors, other electronic units configured to perform the functions described herein, or a combination thereof.
For a software implementation, the techniques described herein may be implemented with modules (e.g., procedures, functions, and so on) that perform the functions described herein. The software codes may be stored in a memory and executed by a processor. The memory may be implemented within the processor or external to the processor.
As shown in fig. 6, an embodiment of the present invention further provides a mobile terminal. The mobile terminal 600 shown in fig. 6 includes a Radio Frequency (RF) circuit 610, a memory 620, an input unit 630, a display unit 640, a sensor 650 of a camera, a processor 660, an audio circuit 670, a wifi (wireless fidelity) module 680, and a power supply 690. Processor 660 includes an image control center and an image processor.
The input unit 630 may be used, among other things, to receive numeric or character information input by a user and to generate signal inputs related to user settings and function control of the mobile terminal 600. Specifically, in the embodiment of the present invention, the input unit 630 may include a touch panel 631. The touch panel 631, also referred to as a touch screen, may collect touch operations of a user (e.g., operations of the user on the touch panel 631 by using a finger, a stylus, or any other suitable object or accessory) thereon or nearby, and drive the corresponding connection device according to a preset program. Alternatively, the touch panel 631 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 660, and can receive and execute commands sent by the processor 660. In addition, the touch panel 631 may be implemented using various types, such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 631, the input unit 630 may also include other input devices 632, and the other input devices 632 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
Among other things, the display unit 640 may be used to display information input by a user or information provided to the user and various menu interfaces of the mobile terminal 600. The display unit 640 may include a display panel 641, and optionally, the display panel 641 may be configured in the form of an LCD or an Organic Light-Emitting Diode (OLED).
It should be noted that the touch panel 631 may cover the display panel 641 to form a touch display screen, and when the touch display screen detects a touch operation thereon or nearby, the touch display screen is transmitted to the processor 660 to determine the type of the touch event, and then the processor 660 provides a corresponding visual output on the touch display screen according to the type of the touch event.
The touch display screen comprises an application program interface display area and a common control display area. The arrangement modes of the application program interface display area and the common control display area are not limited, and can be an arrangement mode which can distinguish two display areas, such as vertical arrangement, left-right arrangement and the like. The application interface display area may be used to display an interface of an application. Each interface may contain at least one interface element such as an icon and/or widget desktop control for an application. The application interface display area may also be an empty interface that does not contain any content. The common control display area is used for displaying controls with high utilization rate, such as application icons like setting buttons, interface numbers, scroll bars, phone book icons and the like.
The processor 660 is a control center of the mobile terminal 600, connects various parts of the entire mobile phone by using various interfaces and lines, and performs various functions of the mobile terminal 600 and processes data by operating or executing software programs and/or modules stored in the first memory 621 and calling data stored in the second memory 622, thereby integrally monitoring the mobile terminal 600. Optionally, processor 660 may include one or more processing units.
In an embodiment of the present invention, by calling the software programs and/or modules stored in the first memory 621 and/or the data in the second memory 622, the computer program when executed by the processor 660 implements the following steps:
controlling the camera to shoot the target face according to different shooting focal lengths to obtain at least one face image;
determining face 3D features and face 2D features of the target face according to the at least one face image;
and carrying out face verification on the target face according to the face 3D features and the face 2D features of the target face.
Optionally, the computer program when executed by the processor 660 implements the steps of:
selecting one face image from the at least one face image as a target face image;
and extracting 2D features of the face in the target face image.
Optionally, the computer program when executed by the processor 660 implements the steps of:
and selecting one face image with a focus point positioned in a face center area from the at least one face image as the target face image.
Optionally, the computer program when executed by the processor 660 implements the steps of:
acquiring focusing FV values of at least two preset human face parts in each human face image;
wherein the facial 3D feature is the focused FV value.
Optionally, the computer program when executed by the processor 660 implements the steps of:
verifying whether the target face meets a preset condition or not according to the facial 3D features and the facial 2D features of the target face;
if FV values of at least two preset face parts in each face image are not increased or decreased simultaneously along with the change of the shooting focal length, and the 2D features of the face are matched with the preset face features, determining that the target face meets the preset condition;
wherein the preset conditions include: whether the focusing FV values of at least two preset human face parts in each human face image are increased or decreased simultaneously along with the change of the shooting focal length, and whether the 2D characteristics of the face are matched with the preset human face characteristics.
Optionally, the computer program when executed by the processor 660 implements the steps of:
and unlocking the screen of the mobile terminal.
The mobile terminal of the present invention may be a mobile phone, a tablet computer, a Personal Digital Assistant (PDA), or a vehicle-mounted computer.
The mobile terminal 600 can implement each process implemented by the terminal in the foregoing embodiments, and is not described here again to avoid repetition.
In the mobile terminal 600 of the embodiment of the present invention, the processor 660 is configured to control the camera to shoot a target face according to different shooting focal lengths, so as to obtain at least one face image; determining face 3D features and face 2D features of the target face according to the at least one face image; and carrying out face verification on the target face according to the face 3D features and the face 2D features of the target face. The embodiment of the invention can verify whether the target face is the 3D face according to the 3D features of the face and verify the features of the target face through the 2D features of the face, thereby achieving the purpose of identifying and verifying the 3D face through a single camera of the mobile terminal.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by controlling the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when executed, the program can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (10)

1. A face verification method is applied to a mobile terminal comprising a camera, and is characterized by comprising the following steps:
controlling the camera to shoot the target face according to different shooting focal lengths to obtain at least one face image;
determining face 3D features and face 2D features of the target face according to the at least one face image;
performing face verification on the target face according to the face 3D features and the face 2D features of the target face;
determining the facial 3D characteristics of the target face according to the at least one face image, wherein the step comprises the following steps:
acquiring focusing FV values of at least two preset human face parts in each human face image; wherein the facial 3D feature is the focused FV value;
the step of performing face verification of the target face according to the face 3D features and the face 2D features of the target face comprises the following steps:
verifying whether the target face meets a preset condition or not according to the facial 3D features and the facial 2D features of the target face;
if FV values of at least two preset face parts in each face image are not increased or decreased simultaneously along with the change of the shooting focal length, and the 2D features of the face are matched with the preset face features, determining that the target face meets the preset condition;
wherein the preset conditions include: whether the focusing FV values of at least two preset human face parts in each human face image are increased or decreased simultaneously along with the change of the shooting focal length, and whether the 2D characteristics of the face are matched with the preset human face characteristics.
2. The method of claim 1, wherein the step of determining 2D facial features of the target face from the at least one face image comprises:
selecting one face image from the at least one face image as a target face image;
and extracting 2D features of the face in the target face image.
3. The method of claim 2, wherein the step of selecting one of the at least one face image as the target face image comprises:
and selecting one face image with a focus point positioned in a face center area from the at least one face image as the target face image.
4. The method of face verification according to claim 1, further comprising:
and if the target face meets the preset condition, unlocking the screen of the mobile terminal.
5. A mobile terminal, comprising:
the control module is used for controlling the camera to shoot the target face according to different shooting focal lengths to obtain at least one face image;
the determining module is used for determining the facial 3D features and the facial 2D features of the target face according to the at least one face image;
the verification module is used for performing face verification on the target face according to the face 3D characteristics and the face 2D characteristics of the target face;
the determining module is used for acquiring focusing FV values of at least two preset face parts in each face image; wherein the facial 3D feature is the focused FV value;
the authentication module includes:
the verification sub-module is used for verifying whether the target face meets a preset condition or not according to the facial 3D characteristics and the facial 2D characteristics of the target face;
the determining submodule is used for determining that the target face meets a preset condition if FV values of at least two preset face parts in each face image do not increase or decrease simultaneously with the change of the shooting focal length and the 2D features of the face are matched with preset face features;
wherein the preset conditions include: whether the focusing FV values of at least two preset human face parts in each human face image are increased or decreased simultaneously along with the change of the shooting focal length, and whether the 2D characteristics of the face are matched with the preset human face characteristics.
6. The mobile terminal of claim 5, wherein the determining module comprises:
the selecting submodule is used for selecting one face image from the at least one face image as a target face image;
and the extraction submodule is used for extracting the 2D characteristics of the face in the target face image.
7. The mobile terminal of claim 6, wherein the selecting sub-module is configured to select, as the target facial image, one of the at least one facial image whose focus point is located in a central area of a face.
8. The mobile terminal of claim 5, further comprising:
and the unlocking module is used for unlocking the screen of the mobile terminal if the target face meets the preset condition.
9. A mobile terminal, comprising: memory, processor and computer program stored on the memory and executable on the processor, which when executed by the processor implements the steps of the method of face authentication according to any one of claims 1 to 4.
10. A computer-readable storage medium, characterized in that a computer program is stored thereon, which computer program, when being executed by a processor, carries out the steps of the method of face verification according to any one of claims 1 to 4.
CN201710684616.9A 2017-08-11 2017-08-11 Face verification method and mobile terminal Active CN107480500B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710684616.9A CN107480500B (en) 2017-08-11 2017-08-11 Face verification method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710684616.9A CN107480500B (en) 2017-08-11 2017-08-11 Face verification method and mobile terminal

Publications (2)

Publication Number Publication Date
CN107480500A CN107480500A (en) 2017-12-15
CN107480500B true CN107480500B (en) 2021-04-27

Family

ID=60599341

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710684616.9A Active CN107480500B (en) 2017-08-11 2017-08-11 Face verification method and mobile terminal

Country Status (1)

Country Link
CN (1) CN107480500B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108108686A (en) * 2017-12-18 2018-06-01 信利光电股份有限公司 A kind of unlocking screen method, apparatus, equipment and computer readable storage medium
CN109241832B (en) * 2018-07-26 2021-03-30 维沃移动通信有限公司 Face living body detection method and terminal equipment
CN109409328A (en) * 2018-11-12 2019-03-01 华南师范大学 A kind of method of 3D Face datection
US10853631B2 (en) 2019-07-24 2020-12-01 Advanced New Technologies Co., Ltd. Face verification method and apparatus, server and readable storage medium
CN110532746B (en) * 2019-07-24 2021-07-23 创新先进技术有限公司 Face checking method, device, server and readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103959299A (en) * 2011-09-28 2014-07-30 谷歌公司 Login to a computing device based on facial recognition
CN104935438A (en) * 2015-05-28 2015-09-23 北京旷视科技有限公司 Method and apparatus for identity verification
CN105389491A (en) * 2014-08-28 2016-03-09 凯文·艾伦·杜西 Facial recognition authentication system including path parameters
CN105809111A (en) * 2016-02-25 2016-07-27 曹宇 Identity authentication method, apparatus, device and system
CN105912912A (en) * 2016-05-11 2016-08-31 青岛海信电器股份有限公司 Method and system for user to log in terminal by virtue of identity information

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106446851A (en) * 2016-09-30 2017-02-22 厦门大图智能科技有限公司 Visible light based human face optimal selection method and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103959299A (en) * 2011-09-28 2014-07-30 谷歌公司 Login to a computing device based on facial recognition
CN105389491A (en) * 2014-08-28 2016-03-09 凯文·艾伦·杜西 Facial recognition authentication system including path parameters
CN104935438A (en) * 2015-05-28 2015-09-23 北京旷视科技有限公司 Method and apparatus for identity verification
CN105809111A (en) * 2016-02-25 2016-07-27 曹宇 Identity authentication method, apparatus, device and system
CN105912912A (en) * 2016-05-11 2016-08-31 青岛海信电器股份有限公司 Method and system for user to log in terminal by virtue of identity information

Also Published As

Publication number Publication date
CN107480500A (en) 2017-12-15

Similar Documents

Publication Publication Date Title
CN107480500B (en) Face verification method and mobile terminal
EP3232299B1 (en) Physical key component, terminal, and touch response method and device
CN106126077B (en) Display control method of application program icons and mobile terminal
US10719689B2 (en) Electronic device and fingerprint recognition method
EP3188414B1 (en) Method and apparatus for controlling smart device
KR102187833B1 (en) Method for executing a function and Electronic device using the same
CN107509030B (en) focusing method and mobile terminal
CN106095295B (en) Processing method based on fingerprint identification and mobile terminal
CN107678644B (en) Image processing method and mobile terminal
RU2639648C1 (en) Method and device for recognizing fingerprints
EP3133528A1 (en) Method and apparatus for fingerprint identification
CN104869304B (en) Method for displaying focusing and electronic equipment applying same
CN106383638B (en) Payment mode display method and mobile terminal
CN107959789B (en) Image processing method and mobile terminal
US20120127179A1 (en) Method, apparatus and computer program product for user interface
CN107659722B (en) Image selection method and mobile terminal
CN106454086B (en) Image processing method and mobile terminal
CN107592458B (en) Shooting method and mobile terminal
CN107665434B (en) Payment method and mobile terminal
CN107172347B (en) Photographing method and terminal
KR20210042952A (en) Image processing method and device, electronic device and storage medium
CN103927466A (en) Method and device for controlling mobile terminal
CN107360375B (en) Shooting method and mobile terminal
EP3447666B1 (en) Processing fingerprint information
KR20150029463A (en) Method, apparatus and recovering medium for controlling user interface using a input image

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