CN109241832A - A kind of method and terminal device of face In vivo detection - Google Patents

A kind of method and terminal device of face In vivo detection Download PDF

Info

Publication number
CN109241832A
CN109241832A CN201810835236.5A CN201810835236A CN109241832A CN 109241832 A CN109241832 A CN 109241832A CN 201810835236 A CN201810835236 A CN 201810835236A CN 109241832 A CN109241832 A CN 109241832A
Authority
CN
China
Prior art keywords
image
height
face
terminal device
living body
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.)
Granted
Application number
CN201810835236.5A
Other languages
Chinese (zh)
Other versions
CN109241832B (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 CN201810835236.5A priority Critical patent/CN109241832B/en
Publication of CN109241832A publication Critical patent/CN109241832A/en
Application granted granted Critical
Publication of CN109241832B publication Critical patent/CN109241832B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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/161Detection; Localisation; Normalisation
    • G06V40/166Detection; Localisation; Normalisation using acquisition arrangements
    • 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
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/40Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
    • G06Q20/401Transaction verification
    • G06Q20/4014Identity check for transactions
    • G06Q20/40145Biometric identity checks
    • 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/40Spoof detection, e.g. liveness detection
    • G06V40/45Detection of the body part being alive
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/66Substation equipment, e.g. for use by subscribers with means for preventing unauthorised or fraudulent calling
    • H04M1/667Preventing unauthorised calls from a telephone set
    • H04M1/67Preventing unauthorised calls from a telephone set by electronic means

Abstract

The embodiment of the present invention provides the method and terminal device of a kind of face In vivo detection, is related to field of communication technology, to solve existing terminal when carrying out recognition of face using single camera, the low problem of the recognition accuracy of recognition of face.This method is applied to terminal device, which includes height-adjustable camera.The described method includes: obtaining the first image and the second image acquired in the second height and position that camera acquire in the first height and position;Wherein, the first image and the second image include the facial image of target face object;Obtain the parallax information between the first image and the second image;According to the parallax information, determine whether target face object is living body.

Description

A kind of method and terminal device of face In vivo detection
Technical field
The present embodiments relate to the methods and terminal of field of communication technology more particularly to a kind of face In vivo detection to set It is standby.
Background technique
With the continuous development of terminal technology, the frequency of user's using terminal equipment (for example, smart phone, tablet computer etc.) Rate is higher and higher, and people also enhance the dependence of terminal device therewith.It takes the mobile phone as an example, just due to face unlock bring Benefit, many mobile phones have been provided with face unlocking function at present, so as to carry out recognition of face using mobile phone front camera, And the automatic unlocking mobile phone when identifying that current user is mobile phone owner.
Since the cost of depth camera is relatively high, the front camera of current most mobile phone is still single Camera.However, mobile phone does not identify out user true man and user picture when using single camera to carry out recognition of face Difference between (for example, image that photograph print or display equipment are shown) is low so as to cause the recognition accuracy of recognition of face The problem of.
Summary of the invention
The embodiment of the present invention provides the method and terminal device of a kind of face In vivo detection, makes to solve existing terminal When carrying out recognition of face with single camera, the low problem of the recognition accuracy of recognition of face.
In order to solve the above-mentioned technical problem, the embodiments of the present invention are implemented as follows:
In a first aspect, providing a kind of method of face In vivo detection, it is applied to terminal device, the terminal device includes height Spend adjustable camera, which comprises
Obtain the first image that the camera is acquired in the first height and position and the of the acquisition of the second height and position Two images;Wherein, the first image and second image include the facial image of target face object;
Obtain the parallax information between the first image and second image;
According to the parallax information, determine whether the target face object is living body.
Second aspect, the embodiment of the invention also provides a kind of terminal devices, comprising:
Obtain module, the first image for acquire in the first height and position for obtaining the camera and second highly Second image of station acquisition;Wherein, the first image and second image include the face figure of target face object Picture;
The acquisition module is also used to obtain the parallax information between the first image and second image;
Determining module, the parallax information for being obtained according to the acquisition module, determines the target face object It whether is living body.
The third aspect the embodiment of the invention provides a kind of terminal device, including processor, memory and is stored in this and deposits On reservoir and the computer program that can run on the processor, such as first is realized when which is executed by the processor Described in aspect the step of the method for face In vivo detection.
Fourth aspect, the embodiment of the invention provides a kind of computer readable storage medium, the computer-readable storage mediums Computer program is stored in matter, and face In vivo detection as described in relation to the first aspect is realized when which is executed by processor Method the step of.
It is in embodiments of the present invention, height-adjustable due to the camera in the embodiment of the present invention, the present invention is real Example is applied by the parallax existing between the image of different height station acquisition by camera, using camera in different height Parallax information between the image of station acquisition carries out In vivo detection to the corresponding target face object of facial image in image, To accurately distinguish whether identified face object is true man, the accuracy of recognition of face is improved, and then improve The reliability and safety of face unlock.
Detailed description of the invention
Fig. 1 is a kind of configuration diagram of possible Android operation system provided in an embodiment of the present invention;
Fig. 2 is pair applied by a kind of method of face In vivo detection provided in an embodiment of the present invention between depth and parallax Answer one of relation schematic diagram;
Fig. 3 is pair applied by a kind of method of face In vivo detection provided in an embodiment of the present invention between depth and parallax Answer the two of relation schematic diagram;
Fig. 4 is a kind of method flow diagram of the method for face In vivo detection provided in an embodiment of the present invention;
Fig. 5 is a kind of one of structural schematic diagram of terminal device provided in an embodiment of the present invention;
Fig. 6 is a kind of second structural representation of terminal device provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, shall fall within the protection scope of the present invention.
It should be noted that " multiple " refer to two or more in the embodiment of the present invention.
It should be noted that in the embodiment of the present application, " illustrative " or " such as " etc. words make example, example for indicating Card or explanation.Be described as in the embodiment of the present application " illustrative " or " such as " any embodiment or design scheme do not answer It is interpreted than other embodiments or design scheme more preferably or more advantage.Specifically, " illustrative " or " example are used Such as " word is intended to that related notion is presented in specific ways.In the embodiment of the present application, " (English: of) ", " corresponding (English: Corresponding, relevant) " it sometimes can be mixed with " corresponding (English: corresponding) ", it should be pointed out that It is that, when not emphasizing its difference, meaning to be expressed is consistent.
It should be noted that in the embodiment of the present invention, for the ease of clearly describing the technical solution of the embodiment of the present application, In embodiments herein, the printed words such as " first ", " second " identical entry or similar essentially identical to function or effect is used Item distinguishes, it will be appreciated by those skilled in the art that the printed words such as " first ", " second " do not carry out quantity and execution order It limits.
Terminal device in the embodiment of the present invention can be mobile terminal device, or immobile terminal equipment.It moves Dynamic terminal device can be mobile phone, tablet computer, laptop, palm PC, vehicle-mounted terminal equipment, wearable device, surpass Grade mobile personal computer (ultra-mobile personal computer, UMPC), net book or personal digital assistant (personal digital assistant, PDA) etc.;Immobile terminal equipment can be personal computer (personal Computer, PC), television set (television, TV), automatic teller machine or self-service machine etc.;The embodiment of the present invention does not limit specifically It is fixed.
Terminal device includes height-adjustable camera in the embodiment of the present invention, and such terminal device can utilize camera shooting The image that acquires on different height position of head, cause differential seat angle to simulate human eye, reaches three-dimensional imaging or detection with this The effect of the depth of field.Wherein, the video camera in the application can be common monocular-camera.It is noted that the embodiment of the present invention In camera only varying height positions section, horizontal position is constant, for example, camera can be popped up, which is usually arranged On the top of terminal device, when use, can pop up from the top of terminal device.
The executing subject of the method for face In vivo detection provided in an embodiment of the present invention can be above-mentioned terminal device (packet Include mobile terminal device and immobile terminal equipment), or it can be realized the face In vivo detection in the terminal device The functional module and/or functional entity of method can specifically determine that the embodiment of the present invention is not limited according to actual use demand It is fixed.Below by taking terminal device as an example, the method for face In vivo detection provided in an embodiment of the present invention is illustratively illustrated.
Parallax information as mentioned in the embodiments of the present invention includes parallax value, which refers to video camera in different height position When setting to being shot with target face object, for the difference of two abscissas of same pixel in obtained two images Value, the as parallax value of the pixel, corresponding, the parallax value of all pixels point forms disparity map in this two images.
Terminal in the embodiment of the present invention can be the terminal with operating system.The operating system can be Android (Android) operating system can be ios operating system, can also be other possible operating systems, the embodiment of the present invention is not Make specific limit.
Below by taking Android operation system as an example, the method institute of face In vivo detection provided in an embodiment of the present invention is introduced The software environment of application.
As shown in Figure 1, being a kind of configuration diagram of possible Android operation system provided in an embodiment of the present invention.Scheming In 1, the framework of Android operation system includes 4 layers, be respectively as follows: application layer, application framework layer, system Runtime Library layer and Inner nuclear layer (is specifically as follows Linux inner core).
Wherein, application layer includes each application program (including system application and in Android operation system Tripartite's application program).
Application framework layer is the frame of application program, and developer can be in the exploitation for the frame for abiding by application program In the case where principle, some application programs are developed based on application framework layer.
System Runtime Library layer includes library (also referred to as system library) and Android operation system running environment.Library is mainly Android behaviour As system it is provided needed for all kinds of resources.Android operation system running environment is used to provide software loop for Android operation system Border.
Inner nuclear layer is the operating system layer of Android operation system, belongs to the bottom of Android operation system software level.It is interior Stratum nucleare provides core system service and hardware-related driver based on linux kernel for Android operation system.
By taking Android operation system as an example, in the embodiment of the present invention, developer can be based on above-mentioned Android as shown in Figure 1 The software program of the method for face In vivo detection provided in an embodiment of the present invention is realized in the system architecture of operating system, exploitation, from And the method for the face In vivo detection is run based on Android operation system as shown in Figure 1.That is processor or end End equipment can realize that face living body provided in an embodiment of the present invention is examined by running the software program in Android operation system The method of survey.
Below with reference to the method flow diagram of face In vivo detection shown in Fig. 4 to the face In vivo detection of the embodiment of the present invention Method be illustrated, as shown in figure 4, a kind of method of face In vivo detection provided in an embodiment of the present invention, including step 201 To step 203:
Step 201: terminal device obtain the first image that camera acquire in the first height and position and second highly Second image of station acquisition.
Wherein, the first above-mentioned image and the second above-mentioned image include the facial image of target face object.
In embodiments of the present invention, terminal device will control camera in the first height after receiving the first input The first image of station acquisition, and the second image is acquired in the second height and position.Illustratively, by taking Pop-up camera as an example, when When terminal device triggers recognition of face, Pop-up camera is gradually bounced, during the camera bounces, camera acquisition the One image, and when camera is bounced to certain height, control camera acquires the second image again.
In embodiments of the present invention, terminal device is receiving the inspection that face In vivo detection is carried out for triggering terminal equipment When surveying request, camera can be controlled in the first height and position and acquire the first image, and acquire the second image in the second height and position. Illustratively, above-mentioned detection request specifically can be what following operation was triggered, such as: user is unlocked unlock interface When triggering recognition of face operation (for example, terminal device cease shield in the state of trigger recognition of face operation), user starting The operation of recognition of face is triggered when a certain application program (for example, the recognition of face that user triggers when payment interface is paid Operation) etc..
Optionally, in embodiments of the present invention, the height between the first above-mentioned height and position and the second above-mentioned height and position Degree difference is greater than or equal to object height.It should be noted that difference in height is bigger, detection accuracy is higher.
Step 202: terminal device obtains the parallax information between the first image and the second image.
Optionally, in embodiments of the present invention, above-mentioned parallax information can be the parallax of the first image and the second image The image information of figure.
Optionally, in embodiments of the present invention, terminal device can be three-dimensional by carrying out to the first image and the second image Matching, to obtain the parallax information between the first image and the second image.Illustratively, above-mentioned terminal device obtains the first image Parallax information between the second image specifically includes: terminal device carries out Stereo matching to the first image and the second image, obtains The parallax value of each pixel in two images.
It should be noted that terminal device can before terminal device carries out Stereo matching to the first image and the second image To reduce the size of the first image and the second image, calculation amount when Stereo matching is carried out to image to reduce.For example, original image Size be 6M, 2M can be contracted to, alternatively, carrying out whole diminution to the size of image.
In embodiments of the present invention, there are cameras and target person for the image captured in moving process due to camera Relative movement between face object, therefore, camera is in moving process for true man (when i.e. target face object is living body) There are the parallax relationships of specific face depth between captured image, and camera is directed to image captured by photo not There are the parallax relationships of such face depth.Therefore, the embodiment of the present invention is by obtaining camera in different height position needle Between the parallax information the image of target face object acquisition, to carry out face In vivo detection.
Referring to correspondence diagram between Fig. 2, parallax shown in Fig. 3 and depth it is found that if O1 is that camera is high first Position where when degree position, O2 are the position for having camera where in the second height and position, and f is for indicating the camera Focal length, B indicates the difference in height between the first height and position and the second height and position, specific:
For example, it is assumed that same pixel P of the camera in the first height and position and the second height and position viewing space object (xc,yc,zc), zcGenerally it can be thought that being the depth of the pixel, for indicating the pixel and the first height and position and second The distance of interplanar locating for height and position, camera obtain pixel P on the first height and position and the second height and position respectively Image (i.e. the first image and the second image), wherein subpoint of the pixel P on the first image and the second image be P1 (X1, Y1) and P2(X2, Y2), since camera does not become horizontal position during acquiring the first image and the second image Change, therefore, the Y coordinate and image coordinate P of pixel P1And P2Y coordinate it is identical, the parallax value of pixel P is X1-X2
Referring to Fig. 2 and Fig. 3 it is found that the parallax value and depth of pixel are in inverse relation, therefore, the embodiment of the present invention can be with The depth information between the first image and the second image is determined by obtaining the parallax information between the first image and the second image.
It should be noted that since the video camera in the application is to simulate human eye by adjusting the shooting height of camera Image is acquired, therefore, the horizontal position of the video camera in the application and to change, i.e., camera is in different height position The horizontal position for setting the image of acquisition is identical, and in same vertical line, and there are a fixed spacings, therefore, mentioned by the application Parallax refer mainly to vertical parallax.
Optionally, in embodiments of the present invention, above-mentioned steps 202 specifically comprise the following steps:
Step 202a: the first image and the second image are carried out Stereo matching by terminal device, obtain the first image and second Disparity map between image.
Wherein, the parallax information in above-mentioned steps 202 is disparity map.
Step 203: terminal device determines whether target face object is living body according to the parallax information.
In embodiments of the present invention, terminal device is getting camera in different height position for target face object After parallax information between the image of acquisition, it is corresponding can to obtain the parallax information according to the corresponding relationship between parallax and depth Depth information, and according to the depth information to target face object carry out In vivo detection, identified to accurately distinguish Face object whether be true man.
Further, since the first image and the second image of acquisition of the embodiment of the present invention are that same camera acquires, therefore, Without carrying out dual camera calibration, without additional image effect adjustment.
In embodiments of the present invention, when detecting the target face object is live subject, terminal device is by the first figure Picture and/or the second image are sent in the recognition of face program in terminal device, are carried out to first image and/or the second image Recognition of face, thus identify the target face object whether be the terminal device the owner.
Optionally, in embodiments of the present invention, in the disparity map that above-mentioned parallax information is the first image and the second image Image information in the case where, terminal device determines target face object according to the disparity map of first image and the second image It whether is living body.
Optionally, in embodiments of the present invention, above-mentioned step 203 specifically comprises the following steps:
Step 203a: terminal device obtains the corresponding depth information of parallax information.
Illustratively, above-mentioned parallax information can disparity map between the first image and the second image, corresponding depth Information is the corresponding depth map of the disparity map, or the parallax value of each pixel in the first image and the second image, Corresponding depth information is the depth value of each pixel.
Step 203b1: in the case where the depth information of the depth information and default face living body matches, terminal device Determine that the target face object is living body.
Step 203b2: in the unmatched situation of depth information of the depth information and default face living body, terminal device Determine that the target face object is non-living body.
In embodiments of the present invention, the depth information of above-mentioned default face living body is to store at least in depth information library One of them in the depth information of one default face living body.Further, the depth information of above-mentioned default face living body It can be the depth information of the face of the owner of the terminal device, it is therefore, living in above-mentioned depth information and the default face The case where depth information of body is consistent, and the face pattern in the first image or the second image is consistent with default face pattern Under, it can directly carry out face unlock.
Optionally, in embodiments of the present invention, based on above-mentioned step 202a, above-mentioned step 203 specifically includes as follows Step:
Step 203c1: terminal device obtains human face region correspondence image in the disparity map between the first image and the second image Depth map.
Step 203c2: terminal device determines whether target face object is living body according to above-mentioned depth map.
Illustratively, terminal device, can be to the parallax after getting the disparity map between the first image and the second image Figure carries out contour detecting, determines target face region in the disparity map, then, according to the corresponding pass between parallax and depth System, obtains the depth map of the target face region correspondence image, to determine corresponding target face according to the depth map Face whether there is depth difference, i.e., determine whether corresponding target face three-dimensional according to the depth map, to determine the target person Whether face object is live subject.
In addition, it should be noted that, the terminal device in the embodiment of the present invention is when carrying out face In vivo detection, the terminal Camera in equipment can continue to carry out height adjustment, thus lasting acquisition parallax information, and then reach lasting progress The purpose of face In vivo detection.Repeat the process of above-mentioned step 201 to step 203.
The method of face In vivo detection provided in an embodiment of the present invention, by by height-adjustable camera in difference Existing parallax between the image of height and position acquisition, is believed using parallax of the camera between the image of different height station acquisition Breath carries out In vivo detection to the corresponding target face object of facial image in image, is identified to accurately distinguish Whether face object is true man, improves the accuracy of recognition of face, and then improves the reliability and safety of face unlock.
A kind of possible structural schematic diagram of Fig. 5 terminal device that embodiment provides to realize the present invention, as shown in figure 5, Terminal device 300 includes obtaining module 301 and determining module 302, in which:
Obtain module 301, the first image for acquire in the first height and position for obtaining camera and second highly Second image of station acquisition;Wherein, the first image and the second image include the facial image of target face object.
Module 301 is obtained, is also used to obtain the parallax information between the first image and the second image.
Determining module 302, for according to the obtained parallax information of module 301 is obtained, determine target face object whether be Living body.
Optionally, it obtains module 301 to be specifically used for: the first image and the second image being subjected to Stereo matching, obtain first Disparity map between image and the second image;Wherein, above-mentioned parallax information is the disparity map.
Optionally, it obtains module 301 to be specifically used for: obtaining the depth map of human face region correspondence image in disparity map;According to The depth map determines whether target face object is living body.
Optionally, determining module 302 is specifically used for: obtaining the corresponding depth information of above-mentioned parallax information;Believe in depth In the case that the depth information of breath and default face living body matches, determine that target face object is living body;Depth information with In the unmatched situation of depth information of default face living body, determine that target face object is non-living body.
Optionally, the difference in height between the first above-mentioned height and position and the second above-mentioned height and position is greater than or equal to target Highly.
Terminal device provided in an embodiment of the present invention, by by camera height-adjustable in terminal device in difference Existing parallax between the image of height and position acquisition, is believed using parallax of the camera between the image of different height station acquisition Breath carries out In vivo detection to the corresponding target face object of facial image in image, is identified to accurately distinguish Whether face object is true man, improves the accuracy of recognition of face, and then improves the reliability and safety of face unlock.
Terminal device provided in an embodiment of the present invention can be realized terminal device in above method embodiment realize it is each Process, to avoid repeating, which is not described herein again.
A kind of hardware structural diagram of Fig. 6 terminal device of each embodiment to realize the present invention, the terminal device 100 Including but not limited to: radio frequency unit 101, audio output unit 103, input unit 104, sensor 105, is shown network module 102 Show the components such as unit 106, user input unit 107, interface unit 108, memory 109, processor 110 and power supply 111. It will be understood by those skilled in the art that the structure of terminal device 100 shown in Fig. 6 does not constitute the restriction to terminal device, Terminal device 100 may include perhaps combining certain components or different component cloth than illustrating more or fewer components It sets.In embodiments of the present invention, terminal device 100 include but is not limited to mobile phone, tablet computer, laptop, palm PC, Car-mounted terminal, wearable device and pedometer etc..
Wherein, processor 110, the first image acquired in the first height and position for obtaining camera and high second Spend the second image of station acquisition;Wherein, the first image and the second image include the facial image of target face object, are also used Parallax information between the first image of acquisition and the second image, and for determining that target face object is according to parallax information No is living body.
Terminal device provided in an embodiment of the present invention, by by camera height-adjustable in terminal device in difference Existing parallax between the image of height and position acquisition, is believed using parallax of the camera between the image of different height station acquisition Breath carries out In vivo detection to the corresponding target face object of facial image in image, is identified to accurately distinguish Whether face object is true man, improves the accuracy of recognition of face, and then improves the reliability and safety of face unlock.
It should be understood that the embodiment of the present invention in, radio frequency unit 101 can be used for receiving and sending messages or communication process in, signal Send and receive, specifically, by from base station downlink data receive after, to processor 110 handle;In addition, by uplink Data are sent to base station.In general, radio frequency unit 101 includes but is not limited to antenna, at least one amplifier, transceiver, coupling Device, low-noise amplifier, duplexer etc..In addition, radio frequency unit 101 can also by wireless communication system and network and other set Standby communication.
Terminal device 100 provides wireless broadband internet by network module 102 for user and accesses, and such as helps user It sends and receive e-mail, browse webpage and access streaming video etc..
Audio output unit 103 can be received by radio frequency unit 101 or network module 102 or in memory 109 The audio data of storage is converted into audio signal and exports to be sound.Moreover, audio output unit 103 can also provide and end The relevant audio output of specific function that end equipment 100 executes is (for example, call signal receives sound, message sink sound etc. Deng).Audio output unit 103 includes loudspeaker, buzzer and receiver etc..
Input unit 104 is for receiving audio or video signal.Input unit 104 may include graphics processor (Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode Or the image data of the static images or video obtained in image capture mode by image capture apparatus (such as camera) carries out Reason.Treated, and picture frame may be displayed on display unit 106.Through graphics processor 1041, treated that picture frame can be deposited Storage is sent in memory 109 (or other storage mediums) or via radio frequency unit 101 or network module 102.Mike Wind 1042 can receive sound, and can be audio data by such acoustic processing.Treated audio data can be The format output that mobile communication base station can be sent to via radio frequency unit 101 is converted in the case where telephone calling model.
Terminal device 100 further includes at least one sensor 105, such as optical sensor, motion sensor and other biographies Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 1061, and proximity sensor can close when terminal device 100 is moved in one's ear Display panel 1061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (general For three axis) size of acceleration, it can detect that size and the direction of gravity when static, it is (such as horizontal to can be used to identify terminal posture Vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;Sensor 105 can also include fingerprint sensor, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, humidity Meter, thermometer, infrared sensor etc., details are not described herein.
Display unit 106 is for showing information input by user or being supplied to the information of user.Display unit 106 can wrap Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 1061.
User input unit 107 can be used for receiving the number or character information of input, and generate and terminal device 100 User setting and the related key signals input of function control.Specifically, user input unit 107 include touch panel 1071 with And other input equipments 1072.Touch panel 1071, also referred to as touch screen collect the touch operation of user on it or nearby (for example user uses any suitable objects or attachment such as finger, stylus on touch panel 1071 or in touch panel 1071 Neighbouring operation).Touch panel 1071 may include both touch detecting apparatus and touch controller.Wherein, touch detection Device detects the touch orientation of user, and detects touch operation bring signal, transmits a signal to touch controller;Touch control Device processed receives touch information from touch detecting apparatus, and is converted into contact coordinate, then gives processor 110, receiving area It manages the order that device 110 is sent and is executed.Furthermore, it is possible to more using resistance-type, condenser type, infrared ray and surface acoustic wave etc. Seed type realizes touch panel 1071.In addition to touch panel 1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can include but is not limited to physical keyboard, function key (such as volume control button, Switch key etc.), trace ball, mouse, operating stick, details are not described herein.
Further, touch panel 1071 can be covered on display panel 1061, when touch panel 1071 is detected at it On or near touch operation after, send processor 110 to determine the type of touch event, be followed by subsequent processing device 110 according to touching The type for touching event provides corresponding visual output on display panel 1061.Although in Fig. 6, touch panel 1071 and display Panel 1061 is the function that outputs and inputs of realizing terminal device 100 as two independent components, but in certain implementations In example, touch panel 1071 and display panel 1061 can be integrated and be realized the function that outputs and inputs of terminal device 100, tool Body is herein without limitation.
Interface unit 108 is the interface that external device (ED) is connect with terminal device 100.For example, external device (ED) may include having Line or wireless head-band earphone port, external power supply (or battery charger) port, wired or wireless data port, storage card end Mouth, port, the port audio input/output (I/O), video i/o port, earphone end for connecting the device with identification module Mouthful etc..Interface unit 108 can be used for receiving the input (for example, data information, electric power etc.) from external device (ED) and By one or more elements that the input received is transferred in terminal device 100 or can be used in 100 He of terminal device Data are transmitted between external device (ED).
Memory 109 can be used for storing software program and various data.Memory 109 can mainly include storing program area The storage data area and, wherein storing program area can (such as the sound of application program needed for storage program area, at least one function Sound playing function, image player function etc.) etc.;Storage data area can store according to mobile phone use created data (such as Audio data, phone directory etc.) etc..In addition, memory 109 may include high-speed random access memory, it can also include non-easy The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of terminal device 100, utilizes various interfaces and the entire terminal device of connection 100 various pieces, by running or executing the software program and/or module that are stored in memory 109, and calling storage Data in memory 109 execute the various functions and processing data of terminal device 100, to carry out to terminal device 100 Integral monitoring.Processor 110 may include one or more processing units;Optionally, processor 110 can integrate application processor and Modem processor, wherein the main processing operation system of application processor, user interface and application program etc., modulation /demodulation Processor mainly handles wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110 In.
Terminal device 100 can also include the power supply 111 (such as battery) powered to all parts, optionally, power supply 111 Can be logically contiguous by power-supply management system and processor 110, to realize management charging by power-supply management system, put The functions such as electricity and power managed.
In addition, terminal device 100 includes some unshowned functional modules, details are not described herein.
Optionally, the embodiment of the present invention also provides a kind of terminal device, including processor, and memory is stored in memory Computer program that is upper and can running on the processor 110, the computer program realize above-mentioned people when being executed by processor Each process of the embodiment of the method for face In vivo detection, and identical technical effect can be reached, it is no longer superfluous here to avoid repeating It states.
The embodiment of the present invention also provides a kind of computer readable storage medium, and meter is stored on computer readable storage medium Calculation machine program, the computer program realize each mistake of the embodiment of the method for above-mentioned face In vivo detection when being executed by processor Journey, and identical technical effect can be reached, to avoid repeating, which is not described herein again.Wherein, the computer-readable storage medium Matter, such as read-only memory (Read-Only Memory, abbreviation ROM), random access memory (Random Access Memory, abbreviation RAM), magnetic or disk etc..
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or device.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, computer, clothes Business device, air conditioner or the network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited to above-mentioned specific Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much Form belongs within protection of the invention.

Claims (12)

1. a kind of method of face In vivo detection, which is characterized in that be applied to terminal device, the terminal device includes height can The camera of adjusting, which comprises
Obtain the first image that the camera is acquired in the first height and position and the second figure in the acquisition of the second height and position Picture;Wherein, the first image and second image include the facial image of target face object;
Obtain the parallax information between the first image and second image;
According to the parallax information, determine whether the target face object is living body.
2. the method according to claim 1, wherein between the acquisition the first image and second image Parallax information, comprising:
The first image and second image are subjected to Stereo matching, obtained between the first image and second image Disparity map;
Wherein, the parallax information is the disparity map.
3. according to the method described in claim 2, determining the target person it is characterized in that, described according to the parallax information Whether face object is living body, comprising:
Obtain the depth map of human face region correspondence image in the disparity map;
According to the depth map, determine whether the target face object is living body.
4. determining the target person the method according to claim 1, wherein described according to the parallax information Whether face object is living body, comprising:
Obtain the corresponding depth information of the parallax information;
In the case where the depth information of the depth information and default face living body matches, the target face object is determined For living body;
In the unmatched situation of depth information of the depth information and default face living body, the target face object is determined For non-living body.
5. method according to any one of claims 1 to 4, which is characterized in that first height and position and described second Difference in height between height and position is greater than or equal to object height.
6. a kind of terminal device characterized by comprising
Module is obtained, the first image for acquire in the first height and position for obtaining camera and in the acquisition of the second height and position The second image;Wherein, the first image and second image include the facial image of target face object;
The acquisition module is also used to obtain the parallax information between the first image and second image;
Whether determining module, the parallax information for being obtained according to the acquisition module, determine the target face object For living body.
7. terminal device according to claim 6, which is characterized in that the acquisition module is specifically used for:
The first image and second image are subjected to Stereo matching, obtained between the first image and second image Disparity map;Wherein, the parallax information is the disparity map.
8. terminal device according to claim 7, which is characterized in that the acquisition module is specifically used for:
Obtain the depth map of human face region correspondence image in the disparity map;
According to the depth map, determine whether the target face object is living body.
9. terminal device according to claim 6, which is characterized in that the determining module is specifically used for:
Obtain the corresponding depth information of the parallax information;
In the case where the depth information of the depth information and default face living body matches, the target face object is determined For living body;
In the unmatched situation of depth information of the depth information and default face living body, the target face object is determined For non-living body.
10. according to the described in any item terminal devices of claim 6 to 9, which is characterized in that first height and position with it is described Difference in height between second height and position is greater than or equal to object height.
11. a kind of terminal device, which is characterized in that including processor, memory and be stored on the memory and can be in institute The computer program run on processor is stated, such as claim 1 to 5 is realized when the computer program is executed by the processor Any one of described in face In vivo detection method the step of.
12. a kind of computer readable storage medium, which is characterized in that store computer journey on the computer readable storage medium Sequence, the face In vivo detection as described in any one of claims 1 to 5 is realized when the computer program is executed by processor The step of method.
CN201810835236.5A 2018-07-26 2018-07-26 Face living body detection method and terminal equipment Active CN109241832B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810835236.5A CN109241832B (en) 2018-07-26 2018-07-26 Face living body detection method and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810835236.5A CN109241832B (en) 2018-07-26 2018-07-26 Face living body detection method and terminal equipment

Publications (2)

Publication Number Publication Date
CN109241832A true CN109241832A (en) 2019-01-18
CN109241832B CN109241832B (en) 2021-03-30

Family

ID=65072534

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810835236.5A Active CN109241832B (en) 2018-07-26 2018-07-26 Face living body detection method and terminal equipment

Country Status (1)

Country Link
CN (1) CN109241832B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110175522A (en) * 2019-04-24 2019-08-27 深圳智慧林网络科技有限公司 Work attendance method, system and Related product
CN110728204A (en) * 2019-09-23 2020-01-24 维沃移动通信(杭州)有限公司 Face recognition method and terminal equipment
CN111723626A (en) * 2019-03-22 2020-09-29 北京地平线机器人技术研发有限公司 Method, device and electronic equipment for living body detection
CN112926464A (en) * 2021-03-01 2021-06-08 创新奇智(重庆)科技有限公司 Face living body detection method and device
CN113128258A (en) * 2019-12-30 2021-07-16 杭州海康威视数字技术股份有限公司 Living body detection method, living body detection device, electronic apparatus, and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140254872A1 (en) * 2013-03-06 2014-09-11 Ricoh Company, Ltd. Object detection apparatus, vehicle-mounted device control system and storage medium of program of object detection
CN105023010A (en) * 2015-08-17 2015-11-04 中国科学院半导体研究所 Face living body detection method and system
CN105205458A (en) * 2015-09-16 2015-12-30 北京邮电大学 Human face living detection method, device and system
CN105512637A (en) * 2015-12-22 2016-04-20 联想(北京)有限公司 Image processing method and electric device
CN106599826A (en) * 2016-12-09 2017-04-26 杭州宇泛智能科技有限公司 Face 3D reconstruction method based on near-infrared light
CN107480500A (en) * 2017-08-11 2017-12-15 维沃移动通信有限公司 The method and mobile terminal of a kind of face verification
CN107590430A (en) * 2017-07-26 2018-01-16 百度在线网络技术(北京)有限公司 Biopsy method, device, equipment and storage medium
US20180039843A1 (en) * 2014-09-30 2018-02-08 International Business Machines Corporation Detecting device, detecting method, and program
CN108259727A (en) * 2018-03-21 2018-07-06 维沃移动通信有限公司 A kind of depth image generation method and mobile terminal

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140254872A1 (en) * 2013-03-06 2014-09-11 Ricoh Company, Ltd. Object detection apparatus, vehicle-mounted device control system and storage medium of program of object detection
US20180039843A1 (en) * 2014-09-30 2018-02-08 International Business Machines Corporation Detecting device, detecting method, and program
CN105023010A (en) * 2015-08-17 2015-11-04 中国科学院半导体研究所 Face living body detection method and system
CN105205458A (en) * 2015-09-16 2015-12-30 北京邮电大学 Human face living detection method, device and system
CN105512637A (en) * 2015-12-22 2016-04-20 联想(北京)有限公司 Image processing method and electric device
CN106599826A (en) * 2016-12-09 2017-04-26 杭州宇泛智能科技有限公司 Face 3D reconstruction method based on near-infrared light
CN107590430A (en) * 2017-07-26 2018-01-16 百度在线网络技术(北京)有限公司 Biopsy method, device, equipment and storage medium
CN107480500A (en) * 2017-08-11 2017-12-15 维沃移动通信有限公司 The method and mobile terminal of a kind of face verification
CN108259727A (en) * 2018-03-21 2018-07-06 维沃移动通信有限公司 A kind of depth image generation method and mobile terminal

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
王铮等: "基于双目视觉的AGV障碍物检测与避障", 《计算机集成制造系统》 *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111723626A (en) * 2019-03-22 2020-09-29 北京地平线机器人技术研发有限公司 Method, device and electronic equipment for living body detection
CN110175522A (en) * 2019-04-24 2019-08-27 深圳智慧林网络科技有限公司 Work attendance method, system and Related product
CN110728204A (en) * 2019-09-23 2020-01-24 维沃移动通信(杭州)有限公司 Face recognition method and terminal equipment
CN110728204B (en) * 2019-09-23 2024-01-02 维沃移动通信(杭州)有限公司 Face recognition method and terminal equipment
CN113128258A (en) * 2019-12-30 2021-07-16 杭州海康威视数字技术股份有限公司 Living body detection method, living body detection device, electronic apparatus, and storage medium
CN113128258B (en) * 2019-12-30 2022-10-04 杭州海康威视数字技术股份有限公司 Living body detection method, living body detection device, electronic apparatus, and storage medium
CN112926464A (en) * 2021-03-01 2021-06-08 创新奇智(重庆)科技有限公司 Face living body detection method and device
CN112926464B (en) * 2021-03-01 2023-08-29 创新奇智(重庆)科技有限公司 Face living body detection method and device

Also Published As

Publication number Publication date
CN109241832B (en) 2021-03-30

Similar Documents

Publication Publication Date Title
CN109241832A (en) A kind of method and terminal device of face In vivo detection
CN107864336B (en) A kind of image processing method, mobile terminal
CN108989678A (en) A kind of image processing method, mobile terminal
CN109743498A (en) A kind of shooting parameter adjustment method and terminal device
CN107566749A (en) Image pickup method and mobile terminal
CN109474786A (en) A kind of preview image generation method and terminal
CN109510940A (en) A kind of image display method and terminal device
CN109461124A (en) A kind of image processing method and terminal device
CN108462826A (en) A kind of method and mobile terminal of auxiliary photo-taking
CN108965728A (en) A kind of brightness adjusting method and terminal
CN110213485A (en) A kind of image processing method and terminal
CN109743506A (en) A kind of image capturing method and terminal device
CN109614182A (en) A kind of display methods and terminal device
CN109005314A (en) A kind of image processing method and terminal
CN109005355A (en) A kind of image pickup method and mobile terminal
CN108833791A (en) A kind of image pickup method and device
CN109639981A (en) A kind of image capturing method and mobile terminal
CN112818733B (en) Information processing method, device, storage medium and terminal
CN109274957A (en) A kind of depth image image pickup method and mobile terminal
CN109443261A (en) The acquisition methods and mobile terminal of Folding screen mobile terminal folding angles
CN108898000A (en) A kind of method and terminal solving lock screen
CN109359460A (en) A kind of face recognition method and terminal device
CN110148167A (en) A kind of distance measurement method and terminal device
CN109614184A (en) A kind of image display method and terminal device
CN109831627A (en) A kind of photographic method and terminal device

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