Nothing Special   »   [go: up one dir, main page]

CN108875473A - Living body verification method, device and system and storage medium - Google Patents

Living body verification method, device and system and storage medium Download PDF

Info

Publication number
CN108875473A
CN108875473A CN201710518028.8A CN201710518028A CN108875473A CN 108875473 A CN108875473 A CN 108875473A CN 201710518028 A CN201710518028 A CN 201710518028A CN 108875473 A CN108875473 A CN 108875473A
Authority
CN
China
Prior art keywords
face
verified
image acquisition
living body
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.)
Pending
Application number
CN201710518028.8A
Other languages
Chinese (zh)
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.)
Beijing Megvii Technology Co Ltd
Beijing Maigewei Technology Co Ltd
Original Assignee
Beijing Megvii Technology Co Ltd
Beijing Maigewei Technology 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 Beijing Megvii Technology Co Ltd, Beijing Maigewei Technology Co Ltd filed Critical Beijing Megvii Technology Co Ltd
Priority to CN201710518028.8A priority Critical patent/CN108875473A/en
Priority to US15/840,863 priority patent/US10796178B2/en
Publication of CN108875473A publication Critical patent/CN108875473A/en
Pending legal-status Critical Current

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
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Oral & Maxillofacial Surgery (AREA)
  • Image Analysis (AREA)

Abstract

The embodiment provides a kind of living body verification method, device and system and storage mediums.Living body verification method includes:Step S210:Judge whether Image Acquisition condition of the face to be verified in the image of image acquisition device face to be verified meets preset requirement, wherein, Image Acquisition condition includes that face to be verified is one or more in position, posture and the size in the image of image acquisition device;Step S220:In the case where the Image Acquisition condition of face to be verified meets preset requirement, the facial image of image acquisition device face to be verified is obtained;And step S230:Judge face to be verified whether by living body verifying based on facial image.According to the method for the embodiment of the present invention, device and system and storage medium, acquire for judge whether be living body facial image before, guarantee that the Image Acquisition condition of face to be verified meets preset requirement, the accuracy of living body verification result can be improved in this way.

Description

Living body verification method, device and system and storage medium
Technical field
The present invention relates to field of face identification, relate more specifically to a kind of living body verification method, device and system and storage Medium.
Background technique
In recognition of face problem, living body verifying, i.e., difference identified person be normal users or attack prosthese (screen, Photo etc.) it is a major issue.When carrying out living body verifying in the equipment of such as mobile terminal, need to acquire comprising to be verified The image of face identifies that face to be verified is real human face (i.e. living body) or false face from the image of acquisition.It can manage Solution, in living body verification process, if collected face location is undesirable, such as range image center is distant, then may It will affect final living body verification result, lead to not the authenticity of accurate judgement face.
Summary of the invention
The present invention is proposed in view of the above problem.The present invention provides a kind of living body verification methods, device and system And storage medium.
According to an aspect of the present invention, a kind of living body verification method is provided.This method includes:Step S210:Judge to be tested Whether Image Acquisition condition of witness's face in the image of image acquisition device face to be verified meets preset requirement, In, Image Acquisition condition includes face to be verified in position, posture and the size in the image of image acquisition device It is one or more;Step S220:In the case where the Image Acquisition condition of face to be verified meets preset requirement, obtains image and adopt Acquisition means acquire the facial image of face to be verified;And step S230:Judge whether face to be verified leads to based on facial image Experience of making a living is demonstrate,proved.
Illustratively, step S210 includes:Obtain the realtime graphic of image acquisition device face to be verified;It is aobvious in real time Show a face preview area, and shows the figure of realtime graphic Yu face preview area position consistency in face preview area in real time As part;According to Image Acquisition condition of the face to be verified in realtime graphic, real-time display text prompt information, text prompt Information is for prompting face adjustment Image Acquisition condition to be verified so that Image Acquisition condition meets preset requirement;And at least Face preview area limited range whether is fallen into according to position of the face to be verified in realtime graphic, determines witness to be tested Whether the Image Acquisition condition of face meets preset requirement.
Illustratively, the Image Acquisition condition according to face to be verified in realtime graphic, real-time display text prompt letter The step of breath includes one or more in following item:When face to be verified does not appear in realtime graphic, output character is mentioned Show information, to prompt face movement to be verified so that face to be verified appears in realtime graphic;When face to be verified is real-time When position in image shifts relative to face preview area, output character prompt information, with prompt face to be verified to The direction opposite with offset direction is mobile.
Illustratively, Image Acquisition condition further includes face to be verified in the fog-level and realtime graphic of realtime graphic The occlusion state at face position, according to Image Acquisition condition of the face to be verified in realtime graphic, real-time display text prompt The step of information includes one or more in following item:When the fog-level of realtime graphic is more than preset Fuzzy Threshold, Output character prompt information, to prompt user to wipe image collecting device;When posture of the face to be verified in realtime graphic is When raising up, output character prompt information, to prompt face to be verified to bow;When posture of the face to be verified in realtime graphic is When sagging, output character prompt information, to prompt face to be verified to come back;When posture of the face to be verified in realtime graphic is To the left or to the right when inclination, output character prompt information, to prompt face to be verified to face front;When face to be verified is real-time When size in image is less than first threshold, output character prompt information, to prompt face to be verified close to image collecting device; When size of the face to be verified in realtime graphic is greater than second threshold, output character prompt information, to prompt witness to be tested Face is far from image collecting device;When on the Given Face position of face to be verified in realtime graphic there are when shelter, output Text prompt information, to prompt face exposure to be verified Given Face position.
Illustratively, text prompt information is shown above face preview area.
Illustratively, step S210 includes:Obtain the realtime graphic of image acquisition device face to be verified;It is aobvious in real time Show a target site region, and exports the image section in realtime graphic where face to be verified in real time for showing;And sentence Whether break position of the Given Face position in realtime graphic of face to be verified falls into target site region, if it is, really The Image Acquisition condition of fixed face to be verified meets preset requirement, otherwise determines that the Image Acquisition condition of face to be verified is unsatisfactory for Preset requirement.
Illustratively, step S210 includes:Obtain the realtime graphic of image acquisition device face to be verified;According to The simulation human face region that Image Acquisition condition real-time display of the face in realtime graphic follows face variation to be verified is verified, In, face to be verified is shown in simulation human face region;Real-time display is used to indicate the target face area of face alignment to be verified Domain;And judge to simulate human face region whether with target face region alignment, if it is, determining that the image of face to be verified is adopted Collection condition meets preset requirement, otherwise determines that the Image Acquisition condition of face to be verified is unsatisfactory for preset requirement.
Illustratively, judge to simulate human face region whether with target face region alignment include:If simulating human face region In target human face region and simulate human face region in realtime graphic proportion be greater than the first preset ratio, it is determined that Simulate human face region and target face region alignment;If simulation human face region is not in target human face region or simulation Human face region in realtime graphic proportion be not more than the first preset ratio, it is determined that simulation human face region not with target face Region alignment.
Illustratively, method further includes:If it is pre- no more than first to simulate human face region proportion in realtime graphic If ratio, then output first acquires prompt information in real time, to prompt face to be verified and image collecting device close.
Illustratively, judge to simulate human face region whether with target face region alignment include:If simulating human face region In target human face region and simulate human face region in target human face region proportion be greater than the second preset ratio, then Determine simulation human face region and target face region alignment;If simulation human face region be not in target human face region or Simulate human face region in target human face region proportion be not more than the second preset ratio, it is determined that simulation human face region not with Target face region alignment.
Illustratively, method further includes:If simulate human face region in target human face region proportion no more than the Two preset ratios, then output second acquires prompt information in real time, to prompt face to be verified and image collecting device close.
Illustratively, method further includes:Real-time judge simulates the relative position between human face region and target human face region Relationship;And exported in real time based on relative positional relationship third acquisition prompt information, with prompt change relative positional relationship so that Human face region must be simulated and target human face region is close.
Illustratively, during image acquisition device facial image, method further includes:Output brightness control refers to It enables, the brightness that brightness control instruction is used to control for showing the display screen of face to be verified is one of lower list:Greater than pre- If luminance threshold, reach maximum value and the Strength Changes based on environment light.
Illustratively, facial image includes one that image collecting device acquires face to be verified under the irradiation of detection light Or multiple light images, step S230 include:Step S332:Based on face to be verified in one or more light images institute's table Existing reflective character determines whether face to be verified belongs to living body, to obtain illumination living body verification result;And step S334: At least determine face to be verified whether by living body verifying based on illumination living body verification result.
Illustratively, step S220 includes:If Image Acquisition condition of the face to be verified in present image meets pre- If emitting detection light it is required that then exporting detection light control instruction to object to be verified for controlling light source, obtaining in present image The image acquired later is to obtain one or more light images.
Illustratively, step S220 includes:If obtain the image that acquires after present image with obtain one or During multiple light images, it is more than allowed band that mobile and moving distance, which occurs, for face to be verified, then return step S210.
Illustratively, before step S334, method further includes:Step S440:Output action instruction, wherein movement refers to Order is used to indicate face to be verified and executes corresponding movement;Step S450:Obtain image acquisition device face to be verified Motion images, wherein facial image further includes motion images;Step S460:Face to be verified is detected based on motion images to be held Capable movement;And step S470:Determine whether face to be verified belongs to living body according to motion detection result and action command, with Obtain action live body verification result;Step S334 includes:It is determined based on illumination living body verification result and action live body verification result Whether face to be verified is verified by living body.
Illustratively, step S470 includes:If based on collected dynamic within the period no more than the first preset time The movement kept strokes indicated by executed as face to be verified and action command is detected as image, it is determined that be verified Face belongs to living body, is executed if be not detected based on motion images collected in the first preset time by face to be verified , with the movement kept strokes indicated by action command, it is determined that face to be verified is not belonging to living body.
Illustratively, simultaneously with step S440, method further includes:First time prompt information is exported, is mentioned at the first time Show that information includes count down information corresponding with the first preset time.
Illustratively, before step S332 or during executing step S332 and step S334, living body authentication Method further includes:Export the second time prompting information, wherein the second time prompting information is for prompting face to be verified pre- second If being remained stationary in the time.
Illustratively, the second time prompting information includes count down information corresponding with the second preset time.
Illustratively, before step S210, method further includes:Export the 4th acquisition prompt information, wherein the 4th acquisition Prompt information is for prompting face face image collecting device to be verified and close to image collecting device.
Illustratively, the 4th acquisition prompt information of output includes:By in speech form, image format and written form One or more the 4th acquisition prompt informations of output.
According to a further aspect of the invention, it provides a kind of living body verifying system, including image collecting device, processor and deposits Reservoir, wherein image collecting device is used to acquire image for face to be verified, is stored with computer program in memory and refers to It enables, for executing following steps when computer program instructions are run by processor:Step S210:Judge face to be verified in image Acquisition device acquires whether the Image Acquisition condition in the image of face to be verified meets preset requirement, wherein Image Acquisition item Part includes that face to be verified is one or more in position, posture and the size in the image of image acquisition device;Step Rapid S220:In the case where the Image Acquisition condition of face to be verified meets preset requirement, obtains image acquisition device and wait for Verify the facial image of face;And step S230:Judge face to be verified whether by living body verifying based on facial image.
Illustratively, the step S210 of used execution when computer program instructions are run by processor includes:Obtain figure As acquisition device acquires the realtime graphic of face to be verified;One face preview area of real-time display, and in real time in face preview region The image section of realtime graphic Yu face preview area position consistency is shown in domain;According to face to be verified in realtime graphic Image Acquisition condition, real-time display text prompt information, text prompt information is for prompting face adjustment Image Acquisition to be verified Condition is so that Image Acquisition condition meets preset requirement;And it is according at least to position of the face to be verified in realtime graphic It is no to fall into face preview area limited range, determine whether the Image Acquisition condition of face to be verified meets preset requirement.
Illustratively, when computer program instructions are run by processor used execution according to face to be verified real-time The step of Image Acquisition condition in image, real-time display text prompt information includes one or more in following item:When to When verifying face is not appeared in realtime graphic, output character prompt information, to prompt face movement to be verified so as to be verified Face appears in realtime graphic;When position of the face to be verified in realtime graphic shifts relative to face preview area When, output character prompt information, to prompt face to be verified mobile to the direction opposite with offset direction.
Illustratively, Image Acquisition condition further includes face to be verified in the fog-level and realtime graphic of realtime graphic The occlusion state at face position, when computer program instructions are run by processor used execution according to face to be verified in reality When image in Image Acquisition condition, the step of real-time display text prompt information includes one or more in following item:When When the fog-level of realtime graphic is more than preset Fuzzy Threshold, output character prompt information is adopted with prompting user to wipe image Acquisition means;When posture of the face to be verified in realtime graphic is to raise up, output character prompt information, to prompt witness to be tested Face is bowed;When posture of the face to be verified in realtime graphic is sagging, output character prompt information, to prompt witness to be tested Face comes back;When posture of the face to be verified in realtime graphic is inclination to the left or to the right, output character prompt information, to mention Show that face to be verified faces front;When size of the face to be verified in realtime graphic is less than first threshold, output character is mentioned Show information, to prompt face to be verified close to image collecting device;When size of the face to be verified in realtime graphic is greater than the When two threshold values, output character prompt information, to prompt face to be verified far from image collecting device;When to be tested in realtime graphic There are when shelter on the Given Face position of witness's face, output character prompt information is specific to prompt face to be verified to expose Face position.
Illustratively, text prompt information is shown above face preview area.
Illustratively, the step S210 of used execution when computer program instructions are run by processor includes:Obtain figure As acquisition device acquires the realtime graphic of face to be verified;One target site region of real-time display, and realtime graphic is exported in real time In image section where face to be verified for showing;And judge the Given Face position of face to be verified in realtime graphic In position whether fall into target site region, if it is, determining that the Image Acquisition condition of face to be verified meets default want It asks, otherwise determines that the Image Acquisition condition of face to be verified is unsatisfactory for preset requirement.
Illustratively, the step S210 of used execution when computer program instructions are run by processor includes:Obtain figure As acquisition device acquires the realtime graphic of face to be verified;It is real according to Image Acquisition condition of the face to be verified in realtime graphic When display follow the simulation human face region of face to be verified variation, wherein face to be verified is shown in simulation human face region;It is real When display be used to indicate the target human face region of face to be verified alignment;And judge simulate human face region whether with target face Otherwise region alignment determines face to be verified if it is, determining that the Image Acquisition condition of face to be verified meets preset requirement Image Acquisition condition be unsatisfactory for preset requirement.
Illustratively, used execution judges whether simulate human face region when computer program instructions are run by processor Include with the step of target face region alignment:If simulation human face region is located in target human face region and simulates face area Domain proportion in realtime graphic is greater than the first preset ratio, it is determined that simulation human face region and target face region alignment; If simulation human face region be not in target human face region or simulation human face region proportion is not in realtime graphic Greater than the first preset ratio, it is determined that simulation human face region not with target face region alignment.
Illustratively, it is also used to execute when computer program instructions are run by processor:If simulating human face region in reality When image in proportion be not more than the first preset ratio, then in real time output first acquisition prompt information, to prompt witness to be tested Face is close with image collecting device.
Illustratively, used execution judges whether simulate human face region when computer program instructions are run by processor Include with the step of target face region alignment:If simulation human face region is located in target human face region and simulates face area Domain proportion in target human face region is greater than the second preset ratio, it is determined that simulation human face region and target human face region pair Together;If simulation human face region is not in target human face region or simulation human face region is shared in target human face region Ratio be not more than the second preset ratio, it is determined that simulation human face region not with target face region alignment.
Illustratively, it is also used to execute when computer program instructions are run by processor:If simulating human face region in mesh It marks proportion in human face region and is not more than the second preset ratio, then the second acquisition of output in real time prompt information, to be tested to prompt Witness's face and image collecting device are close.
Illustratively, it is also used to execute when computer program instructions are run by processor:Real-time judge simulates human face region With the relative positional relationship between target human face region;And export third acquisition prompt letter in real time based on relative positional relationship Breath changes relative positional relationship with prompt so that simulation human face region and target human face region are close.
Illustratively, during image acquisition device facial image, computer program instructions are transported by processor It is also used to execute when row:Brightness control instruction is exported, brightness control instruction is used to control the display for showing face to be verified The brightness of screen is one of lower list:Greater than preset luminance threshold, reach maximum value and Strength Changes based on environment light.
Illustratively, facial image includes one that image collecting device acquires face to be verified under the irradiation of detection light Or multiple light images, the step S230 of used execution when computer program instructions are run by processor include:Step S332: Determine whether face to be verified belongs to based on the reflective character that face to be verified is showed in one or more light images Living body, to obtain illumination living body verification result;And step S334:Witness to be tested is at least determined based on illumination living body verification result Whether face is verified by living body.
Illustratively, the step S220 of used execution when computer program instructions are run by processor includes:If to It verifies Image Acquisition condition of the face in present image and meets preset requirement, then detection light control instruction is exported, for controlling Light source emits detection light to object to be verified, obtains the image acquired after present image to obtain one or more illumination patterns Picture.
Illustratively, the step S220 of used execution when computer program instructions are run by processor includes:If It obtains during the image acquired after present image is to obtain one or more light images, face to be verified moves Dynamic and moving distance is more than allowed band, then return step S210.
Illustratively, it when computer program instructions are run by processor before the step S334 of used execution, calculates Machine program instruction is also used to execute when being run by processor:Step S440:Output action instruction, wherein action command is for referring to Show that face to be verified executes corresponding movement;Step S450:The motion images of image acquisition device face to be verified are obtained, Wherein, facial image further includes motion images;Step S460:Movement performed by face to be verified is detected based on motion images; And step S470:Determine whether face to be verified belongs to living body according to motion detection result and action command, to be acted Living body verification result;The step S334 of used execution when computer program instructions are run by processor includes:It is living based on illumination Body verification result and action live body verification result determine whether face to be verified is verified by living body.
Illustratively, the step S470 of used execution when computer program instructions are run by processor includes:If base Executed by face to be verified and movement is detected in motion images collected within the period no more than the first preset time The indicated movement kept strokes of instruction, it is determined that face to be verified belongs to living body, if based in the first preset time The movement kept strokes indicated by executed as face to be verified and action command is not detected in motion images collected, Then determine that face to be verified is not belonging to living body.
Illustratively, simultaneously with step S440, it is also used to execute when computer program instructions are run by processor:Output First time prompt information, first time prompt information include count down information corresponding with the first preset time.
Illustratively, it before the step S332 of used execution or is being counted when computer program instructions are run by processor When being run by processor during the step S332 and step S334 of used execution, computer program refers to calculation machine program instruction Order is also used to execute when being run by processor:Export the second time prompting information, wherein the second time prompting information is for prompting Face to be verified remains stationary in the second preset time.
Illustratively, the second time prompting information includes count down information corresponding with the second preset time.
Illustratively, it when computer program instructions are run by processor before the step S210 of used execution, calculates Machine program instruction is also used to execute when being run by processor:Export the 4th acquisition prompt information, wherein the 4th acquisition prompt information For prompting face face image collecting device to be verified and close to image collecting device.
Illustratively, the output the 4th of used execution when computer program instructions are run by processor acquires prompt information The step of include:Pass through one of speech form, image format and written form or the 4th acquisition prompt information of a variety of outputs.
According to a further aspect of the invention, a kind of storage medium is provided, stores program instruction, program on a storage medium Instruction is at runtime for executing following steps:Step S210:Judge that face to be verified is to be verified in image acquisition device Whether the Image Acquisition condition in the image of face meets preset requirement, wherein Image Acquisition condition includes that face to be verified exists Position, posture in the image of image acquisition device and one or more in size;Step S220:In face to be verified Image Acquisition condition meet preset requirement in the case where, obtain image acquisition device face to be verified facial image; And step S230:Judge face to be verified whether by living body verifying based on facial image.
Illustratively, the used step S210 executed includes program instruction at runtime:Image collecting device is obtained to adopt Collect the realtime graphic of face to be verified;One face preview area of real-time display, and shown in face preview area in real time real-time The image section of image and face preview area position consistency;According to Image Acquisition item of the face to be verified in realtime graphic Part, real-time display text prompt information, text prompt information for prompting face to be verified adjustment Image Acquisition condition so that Image Acquisition condition meets preset requirement;And whether face is fallen into according at least to position of the face to be verified in realtime graphic Preview area limited range, determines whether the Image Acquisition condition of face to be verified meets preset requirement.
Illustratively, the program instruction used image according to face to be verified in realtime graphic executed at runtime The step of acquisition condition, real-time display text prompt information includes one or more in following item:When face to be verified does not go out When in present realtime graphic, output character prompt information, to prompt face movement to be verified so that face to be verified appears in reality When image in;When position of the face to be verified in realtime graphic shifts relative to face preview area, output character Prompt information, to prompt face to be verified mobile to the direction opposite with offset direction.
Illustratively, Image Acquisition condition further includes face to be verified in the fog-level and realtime graphic of realtime graphic The occlusion state at face position, the program instruction used figure according to face to be verified in realtime graphic executed at runtime The step of picture acquisition condition, real-time display text prompt information includes one or more in following item:When the mould of realtime graphic When paste degree is more than preset Fuzzy Threshold, output character prompt information, to prompt user to wipe image collecting device;When to be tested Posture of witness's face in realtime graphic is output character prompt information, to prompt face to be verified to bow when raising up;When to be tested When posture of witness's face in realtime graphic is sagging, output character prompt information, to prompt face to be verified to come back;When to be tested When posture of witness's face in realtime graphic is inclination to the left or to the right, output character prompt information, to prompt face to be verified Face front;When size of the face to be verified in realtime graphic is less than first threshold, output character prompt information, with prompt Face to be verified is close to image collecting device;When size of the face to be verified in realtime graphic is greater than second threshold, output Text prompt information, to prompt face to be verified far from image collecting device;It is specific when face to be verified in realtime graphic There are when shelter on face position, output character prompt information, to prompt face exposure to be verified Given Face position.
Illustratively, text prompt information is shown above face preview area.
Illustratively, the used step S210 executed includes program instruction at runtime:Image collecting device is obtained to adopt Collect the realtime graphic of face to be verified;One target site region of real-time display, and face to be verified in realtime graphic is exported in real time The image section at place is for showing;And whether judge position of the Given Face position of face to be verified in realtime graphic Fall into target site region, if it is, determine that the Image Acquisition condition of face to be verified meets preset requirement, otherwise determine to The Image Acquisition condition of verifying face is unsatisfactory for preset requirement.
Illustratively, the used step S210 executed includes program instruction at runtime:Image collecting device is obtained to adopt Collect the realtime graphic of face to be verified;According to Image Acquisition condition real-time display of the face to be verified in realtime graphic follow to Verify the simulation human face region of face variation, wherein face to be verified is shown in simulation human face region;Real-time display is for referring to Show the target human face region of face alignment to be verified;And judge simulate human face region whether with target face region alignment, such as Fruit is, it is determined that the Image Acquisition condition of face to be verified meets preset requirement, otherwise determines the Image Acquisition of face to be verified Condition is unsatisfactory for preset requirement.
Illustratively, program instruction at runtime it is used execute judge to simulate human face region whether with target face area Domain be aligned the step of include:If simulation human face region is located in target human face region and simulates human face region in realtime graphic Middle proportion is greater than the first preset ratio, it is determined that simulation human face region and target face region alignment;If simulating face Region is not in target human face region or simulation human face region proportion in realtime graphic is default no more than first Ratio, it is determined that simulation human face region not with target face region alignment.
Illustratively, program instruction is also used to execute at runtime:If it is shared in realtime graphic to simulate human face region Ratio is not more than the first preset ratio, then the first acquisition of output in real time prompt information, to prompt face to be verified and Image Acquisition Device is close.
Illustratively, program instruction at runtime it is used execute judge to simulate human face region whether with target face area Domain be aligned the step of include:If simulation human face region is located in target human face region and simulates human face region in target face Proportion is greater than the second preset ratio in region, it is determined that simulation human face region and target face region alignment;If simulation Human face region is not in target human face region or simulation human face region proportion in target human face region is not more than Second preset ratio, it is determined that simulation human face region not with target face region alignment.
Illustratively, program instruction is also used to execute at runtime:If simulating human face region in target human face region Proportion is not more than the second preset ratio, then the second acquisition of output in real time prompt information, to prompt face and image to be verified Acquisition device is close.
Illustratively, program instruction is also used to execute at runtime:Real-time judge simulates human face region and target face area Relative positional relationship between domain;And export third acquisition prompt information in real time based on relative positional relationship, to prompt to change Relative positional relationship is so that simulation human face region and target human face region are close.
Illustratively, during image acquisition device facial image, program instruction is also used to hold at runtime Row:Brightness control instruction is exported, the brightness that brightness control instruction is used to control for showing the display screen of face to be verified is One of lower list:Greater than preset luminance threshold, reach maximum value and Strength Changes based on environment light.
Illustratively, facial image includes one that image collecting device acquires face to be verified under the irradiation of detection light Or multiple light images, the used step S230 executed includes program instruction at runtime:Step S332:Based on witness to be tested The reflective character that face is showed in one or more light images determines whether face to be verified belongs to living body, to obtain light According to living body verification result;And step S334:At least determine whether face to be verified passes through work based on illumination living body verification result Experience card.
Illustratively, the used step S220 executed includes program instruction at runtime:If face to be verified is being worked as Image Acquisition condition in preceding image meets preset requirement, then exports detection light control instruction, for controlling light source to be verified Object emits detection light, obtains the image acquired after present image to obtain one or more light images.
Illustratively, the used step S220 executed includes program instruction at runtime:If schemed obtaining currently During the image acquired as after is to obtain one or more light images, mobile and moving distance occurs for face to be verified More than allowed band, then return step S210.
Illustratively, before the program instruction at runtime used step S334 executed, program instruction is at runtime It is also used to execute:Step S440:Output action instruction, wherein action command is used to indicate face to be verified and executes corresponding move Make;Step S450:Obtain the motion images of image acquisition device face to be verified, wherein facial image further includes movement Image;Step S460:Movement performed by face to be verified is detected based on motion images;And step S470:It is examined according to movement It surveys result and action command determines whether face to be verified belongs to living body, to obtain action live body verification result;Computer program Instruction when being run by processor the step S334 of used execution include:Based on illumination living body verification result and action live experience card As a result determine whether face to be verified is verified by living body.
Illustratively, the used step S470 executed includes program instruction at runtime:If based on no more than the In the period of one preset time motion images collected detect it is being executed as face to be verified, with indicated by action command The movement kept strokes, it is determined that face to be verified belongs to living body, if being based on the movement collected in the first preset time The movement kept strokes indicated by executed as face to be verified and action command is not detected in image, it is determined that be verified Face is not belonging to living body.
Illustratively, simultaneously with step S440, program instruction is also used to execute at runtime:Output prompts at the first time Information, first time prompt information include count down information corresponding with the first preset time.
Illustratively, it is being run before the program instruction at runtime used step S332 executed or in program instruction When used execution step S332 and step S334 during, program instruction is also used to execute at runtime:Output second Time prompting information, wherein the second time prompting information is for prompting face to be verified to remain stationary in the second preset time.
Illustratively, the second time prompting information includes count down information corresponding with the second preset time.
Illustratively, before the program instruction at runtime used step S210 executed, program instruction is at runtime It is also used to execute:Export the 4th acquisition prompt information, wherein the 4th acquisition prompt information is for prompting face face figure to be verified As acquisition device and close to image collecting device.
Illustratively, program instruction includes the step of the used output the 4th executed acquires prompt information at runtime: Pass through one of speech form, image format and written form or the 4th acquisition prompt information of a variety of outputs.
According to a further aspect of the invention, a kind of living body verifying device is provided, including:Condition judgment module, for judge to Verify whether Image Acquisition condition of the face in the image of image acquisition device face to be verified meets preset requirement, In, Image Acquisition condition includes face to be verified in position, posture and the size in the image of image acquisition device It is one or more;Facial image obtains module, for the case where the Image Acquisition condition of face to be verified meets preset requirement Under, obtain the facial image of image acquisition device face to be verified;And living body is verified determining module, for being based on Facial image judges whether face to be verified is verified by living body.
Illustratively, condition judgment module includes:First realtime graphic acquisition submodule, for obtaining image collecting device Acquire the realtime graphic of face to be verified;First area display sub-module is used for one face preview area of real-time display, and in real time The image section of realtime graphic Yu face preview area position consistency is shown in face preview area;First prompt display submodule Block, for the Image Acquisition condition according to face to be verified in realtime graphic, real-time display text prompt information, text prompt Information is for prompting face adjustment Image Acquisition condition to be verified so that Image Acquisition condition meets preset requirement;And first Condition determines submodule, for whether falling into face preview area institute according at least to position of the face to be verified in realtime graphic The range of restriction, determines whether the Image Acquisition condition of face to be verified meets preset requirement.
Illustratively, the first prompt display sub-module includes one or more in following item:First prompt output unit, For when face to be verified does not appear in realtime graphic, output character prompt information to be made with prompting face to be verified to move Face to be verified is obtained to appear in realtime graphic;Second prompt output unit, for when face to be verified is in realtime graphic When position shifts relative to face preview area, output character prompt information, with prompt face to be verified to offset side It moves in the opposite direction.
Illustratively, Image Acquisition condition further includes face to be verified in the fog-level and realtime graphic of realtime graphic The occlusion state at face position, the first prompt display sub-module further includes one or more in following item:Third prompt output Unit, for when the fog-level of realtime graphic be more than preset Fuzzy Threshold when, output character prompt information, to prompt user Wipe image collecting device;4th prompt output unit, for when posture of the face to be verified in realtime graphic is to raise up, Output character prompt information, to prompt face to be verified to bow;5th prompt output unit, for when face to be verified is real-time When posture in image is sagging, output character prompt information, to prompt face to be verified to come back;6th prompt output unit, For when posture of the face to be verified in realtime graphic is inclination to the left or to the right, output character prompt information, with prompt Face to be verified faces front;7th prompt output unit, for when size of the face to be verified in realtime graphic is less than the When one threshold value, output character prompt information, to prompt face to be verified close to image collecting device;8th prompt output unit, For when size of the face to be verified in realtime graphic is greater than second threshold, output character prompt information to be to be tested to prompt Witness's face is far from image collecting device;9th prompt output unit, for the particular person when face to be verified in realtime graphic There are when shelter on face position, output character prompt information, to prompt face exposure to be verified Given Face position.
Illustratively, text prompt information is shown above face preview area.
Illustratively, condition judgment module includes:Second realtime graphic acquisition submodule, for obtaining image collecting device Acquire the realtime graphic of face to be verified;Second area display sub-module is used for one target site region of real-time display, and in real time Image section in output realtime graphic where face to be verified is for showing;And second condition determines submodule, for sentencing Whether break position of the Given Face position in realtime graphic of face to be verified falls into target site region, if it is, really The Image Acquisition condition of fixed face to be verified meets preset requirement, otherwise determines that the Image Acquisition condition of face to be verified is unsatisfactory for Preset requirement.
Illustratively, condition judgment module includes:Third realtime graphic acquisition submodule, for obtaining image collecting device Acquire the realtime graphic of face to be verified;Third region display sub-module, for according to face to be verified in realtime graphic Image Acquisition condition real-time display follows the simulation human face region of face variation to be verified, wherein face to be verified is in simulation people Face is shown in region;The fourth region display sub-module is used to indicate the target face of face alignment to be verified for real-time display Region;And third condition determines submodule, for judge simulation human face region whether with target face region alignment, if It is, it is determined that the Image Acquisition condition of face to be verified meets preset requirement, otherwise determines the Image Acquisition item of face to be verified Part is unsatisfactory for preset requirement.
Illustratively, third condition determines that submodule includes:First alignment determination unit, is located at for simulating human face region It in target human face region and simulates human face region proportion in realtime graphic and is greater than the first preset ratio, it is determined that simulation Human face region and target face region alignment;Second alignment determination unit, if being not at target for simulating human face region In human face region or simulation human face region proportion in realtime graphic is not more than the first preset ratio, it is determined that simulation people Face region not with target face region alignment.
Illustratively, living body verifying device further includes:First prompt output module, if for simulating human face region in reality When image in proportion be not more than the first preset ratio, then in real time output first acquisition prompt information, to prompt witness to be tested Face is close with image collecting device.
Illustratively, third condition determines that submodule includes:Third is aligned determination unit, if for simulating human face region In target human face region and simulate human face region in target human face region proportion be greater than the second preset ratio, then Determine simulation human face region and target face region alignment;4th alignment determination unit, if do not had for simulating human face region In target human face region or simulation human face region proportion in target human face region is not more than the second preset ratio, Then determine simulation human face region not with target face region alignment.
Illustratively, living body verifying device further includes:Second prompt output module, if for simulating human face region in mesh It marks proportion in human face region and is not more than the second preset ratio, then the second acquisition of output in real time prompt information, to be tested to prompt Witness's face and image collecting device are close.
Illustratively, living body verifying device further includes:Positional relationship judgment module simulates human face region for real-time judge With the relative positional relationship between target human face region;And third prompts output module, for real based on relative positional relationship When output third acquire prompt information, relative positional relationship is changed with prompt so that simulation human face region and target human face region It is close.
Illustratively, living body verifying device further includes:Brightness control module, in image acquisition device face figure As during, brightness control instruction is exported, brightness control instruction is used to control the display screen for showing face to be verified Brightness be one of lower list:Greater than preset luminance threshold, reach maximum value and Strength Changes based on environment light.
Illustratively, facial image includes one that image collecting device acquires face to be verified under the irradiation of detection light Or multiple light images, living body are verified determining module and include:Illumination living body verifies submodule, for being based on face to be verified The reflective character showed in one or more light images determines whether face to be verified belongs to living body, to obtain illumination Living body verification result;And living body is verified determining submodule, is determined at least based on illumination living body verification result to be tested Whether witness's face is verified by living body.
Illustratively, facial image acquisition module includes:Control instruction output sub-module, if existed for face to be verified Image Acquisition condition in present image meets preset requirement, then exports detection light control instruction, for controlling light source to be tested It demonstrate,proves object and emits detection light, obtain the image acquired after present image to obtain one or more light images.
Illustratively, facial image acquisition module includes:Promoter module, if for obtaining after present image During the image of acquisition is to obtain one or more light images, it is more than to permit that mobile and moving distance, which occurs, for face to be verified Perhaps range, then entry condition judgment module.
Illustratively, living body verifying device further includes:Action command output module is instructed for output action, wherein dynamic Make instruction and is used to indicate the corresponding movement of face execution to be verified;Motion images obtain module, for obtaining image collecting device Acquire the motion images of face to be verified, wherein facial image further includes motion images;Motion detection module, for based on dynamic Make movement performed by image detection face to be verified;And movement verification result obtains module, for according to motion detection knot Fruit and action command determine whether face to be verified belongs to living body, to obtain action live body verification result;Living body is verified really Stator modules include:Living body is verified determination unit, for being based on illumination living body verification result and action live body verification result Determine whether face to be verified is verified by living body.
Illustratively, movement verification result acquisition module includes:It acts verification result and obtains submodule, if for being based on Within the period no more than the first preset time motion images collected detect it is being executed by face to be verified, refer to movement Enable the indicated movement kept strokes, it is determined that face to be verified belongs to living body, if based on the institute in the first preset time The movement kept strokes indicated by executed as face to be verified and action command is not detected in the motion images of acquisition, then Determine that face to be verified is not belonging to living body.
Illustratively, living body verifying device further includes:4th prompt output module, for defeated with action command output module Action command simultaneously, exports first time prompt information, first time prompt information includes opposite with the first preset time out The count down information answered.
Illustratively, living body verifying device further includes:5th prompt output module, for verifying submodule in illumination living body Determine whether face to be verified belongs to based on the reflective character that face to be verified is showed in one or more light images The light showed in one or more light images before living body or in illumination living body verifying submodule based on face to be verified Reflection characteristic determines whether face to be verified belongs to living body and living body is verified determining submodule and is at least based on illumination living body During verification result determines whether face to be verified is verified by living body, the second time prompting information is exported, wherein second Time prompting information is for prompting face to be verified to remain stationary in the second preset time.
Illustratively, the second time prompting information includes count down information corresponding with the second preset time.
Illustratively, living body verifying device further includes:6th prompt output module, for condition judgment module judge to It is default whether verifying face meets in the Image Acquisition condition that image collecting device is directed in face acquired image to be verified Before it is required that, the 4th acquisition prompt information of output, wherein the 4th acquisition prompt information is for prompting face face image to be verified Acquisition device and close image collecting device.
Illustratively, the 6th prompt output module includes:Second prompt output sub-module, for passing through speech form, figure As one of form and written form or the 4th acquisition prompt information of a variety of outputs.
According to the method for the embodiment of the present invention, device and system and storage medium, in acquisition for judging whether it is living body Facial image before, guarantee the Image Acquisition condition (such as its position, posture, size etc. in the picture) of face to be verified Meet preset requirement, the accuracy of living body verification result can be improved in this way.
Detailed description of the invention
The embodiment of the present invention is described in more detail in conjunction with the accompanying drawings, the above and other purposes of the present invention, Feature and advantage will be apparent.Attached drawing is used to provide to further understand the embodiment of the present invention, and constitutes explanation A part of book, is used to explain the present invention together with the embodiment of the present invention, is not construed as limiting the invention.In the accompanying drawings, Identical reference label typically represents same parts or step.
Fig. 1 shows for realizing the exemplary electronic device of living body verification method and device according to an embodiment of the invention Schematic block diagram;
Fig. 2 shows the schematic flow charts of living body verification method according to an embodiment of the invention;
Fig. 3 shows the schematic flow chart of living body verification method in accordance with another embodiment of the present invention;
Fig. 4 shows the schematic flow chart of living body verification method in accordance with another embodiment of the present invention;
Fig. 5 show it is according to an embodiment of the invention, in the living body verification method implementation process on the display screen Show the schematic diagram of content;
Fig. 6 show it is in accordance with another embodiment of the present invention, in living body verification method implementation process on the display screen Display content schematic diagram;
Fig. 7 show it is in accordance with another embodiment of the present invention, in living body verification method implementation process on the display screen Display content schematic diagram;
Fig. 8 describes a kind of implementation process of living body verification method according to an embodiment of the present invention;
Fig. 9 shows the schematic block diagram of living body verifying device according to an embodiment of the invention;And
Figure 10 shows the schematic block diagram of living body verifying system according to an embodiment of the invention.
Specific embodiment
In order to enable the object, technical solutions and advantages of the present invention become apparent, root is described in detail below with reference to accompanying drawings According to example embodiments of the present invention.Obviously, described embodiment is only a part of the embodiments of the present invention, rather than this hair Bright whole embodiments, it should be appreciated that the present invention is not limited by example embodiment described herein.Based on described in the present invention The embodiment of the present invention, those skilled in the art's obtained all other embodiment in the case where not making the creative labor It should all fall under the scope of the present invention.
In order to solve problem as described above, the embodiment of the present invention provide a kind of living body verification method, device and system and Storage medium.The living body verification method, device and system acquire for judge whether be living body facial image before, first Judge Image Acquisition condition (such as position of the facial image to be verified in the image of image acquisition device of face to be verified Set, posture, size etc.) whether meet preset requirement, only meet default want in the Image Acquisition condition of face to be verified Subsequent living body verification step is just carried out in the case where asking.This living body verification method, device and system can be adapted for various Field of identity authentication and similar field, for example, it is suitable for e-commerce, mobile payment, the technical fields such as open a bank account.
Firstly, describing referring to Fig.1 for realizing living body verification method according to an embodiment of the invention and device Exemplary electronic device 100.
As shown in Figure 1, electronic equipment 100 include one or more processors 102, it is one or more storage device 104, defeated Enter device 106, output device 108, image collecting device 110 and light source 112, these components by bus system 114 and/or its Bindiny mechanism's (not shown) of its form interconnects.It should be noted that the component and structure of electronic equipment 100 shown in FIG. 1 only show Example property, and not restrictive, as needed, the electronic equipment also can have other assemblies and structure.
The processor 102 can be central processing unit (CPU) or have data-handling capacity and/or instruction execution The processing unit of the other forms of ability, and the other components that can control in the electronic equipment 100 are desired to execute Function.
The storage device 104 may include one or more computer program products, and the computer program product can To include various forms of computer readable storage mediums, such as volatile memory and/or nonvolatile memory.It is described easy The property lost memory for example may include random access memory (RAM) and/or cache memory (cache) etc..It is described non- Volatile memory for example may include read-only memory (ROM), hard disk, flash memory etc..In the computer readable storage medium On can store one or more computer program instructions, processor 102 can run described program instruction, to realize hereafter institute The client functionality (realized by processor) in the embodiment of the present invention stated and/or other desired functions.In the meter Can also store various application programs and various data in calculation machine readable storage medium storing program for executing, for example, the application program use and/or The various data etc. generated.
The input unit 106 can be the device that user is used to input instruction, and may include keyboard, mouse, wheat One or more of gram wind and touch screen etc..
The output device 108 can export various information (such as image and/or sound) to external (such as user), and It and may include one or more of display, loudspeaker etc..
Described image acquisition device 110 can acquire various images, such as facial image (including video), and will be adopted The image of collection is stored in the storage device 104 for the use of other components.Image collecting device 110 can be camera. It should be appreciated that image collecting device 110 is only example, electronic equipment 100 can not include image collecting device 110.This In the case of, it can use other image acquisition device images, and the image of acquisition is sent to electronic equipment 100.
Light source 112 can be the device that can be shone, and may include the special light sources such as light emitting diode, also may include Show the unconventional light sources such as screen.Situation in the mobile terminal that living body verification method and device are implemented in such as smart phone Under, input unit 106, output device 108 and light source 112 can be same display screen.Do not implementing based on reflective character Living body verification step in the case where, electronic equipment 100 can not include light source 112.
Illustratively, the exemplary electronic device for realizing living body verification method according to an embodiment of the present invention and device can To be realized in the equipment of personal computer or remote server etc..
In the following, living body verification method according to an embodiment of the present invention will be described with reference to Fig. 2.Fig. 2 shows according to the present invention one The schematic flow chart of the living body verification method 200 of a embodiment.As shown in Fig. 2, living body verification method 200 includes following step Suddenly.
In step S210, judge that image of the face to be verified in the image of image acquisition device face to be verified is adopted Whether collection condition meets preset requirement, wherein Image Acquisition condition includes figure of the face to be verified in image acquisition device It is one or more in position, posture and size as in.
Face to be verified can be real human face, be also possible to the void such as the face on photo, the face on screen or mask Dummy's face.
Illustratively, the realtime graphic of face to be verified can be acquired, and judges face to be verified in realtime graphic Position.Determining that position of the face to be verified in realtime graphic is suitable position (such as near central point of realtime graphic) When, the image then acquired can be used for subsequent living body as facial image as described herein and verified.
Position of the face to be verified in the image of image acquisition device can refer to the central point (example of face to be verified Point as where nose) coordinate in whole image.
Illustratively, the Image Acquisition condition of face to be verified can also include that face to be verified is adopted in image collecting device Posture and/or size in the image of collection.For example, human face modeling that is various existing or being likely to occur in the future can be passed through Algorithm estimates the posture of face to be verified.The posture of face can indicate with face in three kinds of angles of three-dimensional space, this Three kinds of angles are pitch angle (pitch), yaw angle (yaw) and roll angle (roll), respectively represent spin upside down, left and right is overturn and The angle planar rotated.
It is appreciated that size of the face to be verified in the image of image acquisition device and face to be verified and image The distance of acquisition device is related.For example, face range image acquisition device to be verified is remoter, face to be verified is in the picture Size it is smaller.
In step S220, in the case where the Image Acquisition condition of face to be verified meets preset requirement, obtains image and adopt Acquisition means acquire the facial image of face to be verified.
In step S230, judge face to be verified whether by living body verifying based on facial image.
Mode according to living body verifying is different, and the type of the facial image of acquisition is different.For example, be described below based on In the embodiment of the living body verification mode of reflective character, the light image of the face to be verified under detection light irradiation is acquired, In the embodiment of the living body verification mode based on movement, the motion images of face to be verified are acquired.Acquire the side of facial image Formula and judge that the mode of living body can be with reference to being described below based on facial image.
Acquire for judge whether be living body facial image before, guarantee the Image Acquisition condition of face to be verified (such as its position, posture, size etc. in the picture) meets preset requirement, for example, connecing the position of face to be verified as far as possible The posture of nearly picture centre, face to be verified is ajusted as far as possible, not excessive or how small (the face distance map i.e. to be verified of face to be verified Only closely or too far as acquisition device), the preferable facial image of quality can be collected in this way, and then guarantee living body verification result Accuracy.
Illustratively, living body verification method according to an embodiment of the present invention can be in setting with memory and processor It is realized in standby, device or system.
Living body verification method according to an embodiment of the present invention can be deployed at Image Acquisition end, for example, can be deployed in It is mobile at the Image Acquisition end of the financial systems such as bank management system or to be deployed in smart phone, tablet computer etc. At terminal.Alternatively, living body verification method according to an embodiment of the present invention can also be deployed in server end (or cloud with being distributed End) and client at.For example, can acquire the image of face to be verified in client, client transmits acquired image Server end (or cloud) is given, living body verifying is carried out by server end (or cloud), and verification result is returned into client, taken Business device has bigger data operation ability relative to client, transfers to server end to carry out living body verifying, is able to ascend and tests Speed is demonstrate,proved, user experience is promoted, further, since server has bigger arithmetic speed therefore increasingly complex living body can be used Verification algorithm, by carrying out the accuracy rate that living body verifying is able to ascend vivo identification in server end.
Fig. 3 shows the schematic flow chart of living body verification method 300 in accordance with another embodiment of the present invention.Shown in Fig. 3 Living body verification method 300 step S310 and S320 and living body verification method 200 shown in Fig. 2 step S210 and S220 point Dui Ying not be consistent, those skilled in the art can understand step S310 and S320 shown in Fig. 3 with reference to the associated description of Fig. 2, this Place repeats no more.According to the present embodiment, the step S230 of living body verification method 200 may further include step shown in Fig. 3 S332 and S334, is described below in detail.
Illustratively, facial image may include that image collecting device acquires face to be verified under the irradiation of detection light One or more light images, step S230 may include:Step S332:Based on face to be verified in one or more illumination patterns The reflective character showed as in determines whether face to be verified belongs to living body, to obtain illumination living body verification result;And Step S334:At least determine face to be verified whether by living body verifying based on illumination living body verification result.
Illustratively, it can use light source (such as light source 112) and emit detection light to face to be verified.Light source can be by Device (such as processor 102) control is managed to shine.Illustratively, light source can share other light emitting devices (for example, display screen At least partly region, the light source in projector) be used as light source.In another example light source can also be special light source (for example, according to One or more Light-Emitting Diodes or laser diode, such as the flash lamp for camera of certain way arrangement etc.), it can also Think display screen and the combination of other kinds of light source etc..
The mode of detection light can include but is not limited to the color of detection light, the position of light emitting region, detection light intensity, The irradiating angle of detection light, the wavelength of detection light, frequency of detection light etc..
Illustratively, during irradiating face to be verified, the mode of detection light can not change, that is, It says, light source can irradiate face to be verified using single constant light.For example, in a preferred embodiment, it is used Light source is the display screen of mobile terminal.On the display screen, color and the brightness etc. of each pixel be can control, so that display Screen can emit the light that specific pattern is presented, such as structure light, at this point, the particular color that screen is shown in specific pixel region Or brightness can be the mode for the specific detection light chosen after optimizing according to lot of experimental data, in such detection light Under mode, verifying face progress living body can rapidly and accurately be treated by special algorithm corresponding with the mode of the detection light and tested Card.In this case, one or more light images can be acquired under the irradiation of constant detection light, based on light image into The verifying of row living body.
Compare it is appreciated that the mode of detection light at least changes once during irradiating face to be verified.This In the case of, the frequency acquisition of frequency and image can be changed with the mode of coordinated control detection light, so that in the inspection of each pattern At least one light image can be collected by surveying under light.
More preferably, the mode of detection light at the time of every two is continuous between change.The moment can be with It is the time point of any specific in predetermined period.For example, the mode of detection light can change once every 1 second.Do not stop to change The mode of detection light can obtain reflective character information more abundant, be conducive to more accurately and efficiently implement based on light The living body of reflection characteristic is verified.
Optionally, during irradiating face to be verified, the mode of detection light be change at random or it is pre-set 's.In one example, the mode of detection light be completely random change.For example, in a preferred embodiment, being used Light source be mobile terminal display screen.On the display screen, the color that can control each region, for each region, A certain rgb value is randomly selected within the scope of scheduled rgb value every time to be shown as the color value in the region.The division in region It can arbitrarily set, for example, each region may include one or more pixels, the size of two different zones can be identical, It can also be different.
In another example, the mode of detection light can be pre-set.For example, can set detection light is total to prolonged exposure 10 seconds, change one mode per second, the color of the detection light emitted every time, position, intensity etc. were pre-set.In living body In verification process, light source can successively emit the detection light of 10 kinds of modes according to pre-set mode.Pre-set The mode of detection light can be based on first experience obtain, to living body verifying for relatively effective mode, this is conducive to mention The accuracy rate and efficiency of high living body verifying.
For example, can dynamically change the inspection for being irradiated to face to be verified by dynamically changing the luminescent color of detection light Survey the mode of light.In another example can also be by dynamically changing the position of the light emitting region of detection light (that is, changing detection light Position) dynamically to change the mode for being irradiated to the detection light of face to be verified.For another example can also be by dynamically changing simultaneously The position of the light emitting region of the luminescent color and detection light of detection light carrys out dynamic and changes the detection light for being irradiated to face to be verified Mode.
For example, can come the position of the dynamic light emitting region that change detection light by changing the position of light source, this can be with Change the position that detection light is irradiated to face to be verified.In another example can also by change light source emergent ray angle come The dynamic position for changing detection light and being irradiated to face to be verified.
In a preferred embodiment, used light source is the display screen of mobile terminal, and image collector is set to this The camera (such as front camera) for being located at the same side with display screen of mobile terminal.Relative to using additional dedicated optical The scheme in source, this programme can be realized using existing mobile terminals such as mobile phones, do not limited, which can be tested by external condition Card scheme is preferably applied for carrying out remotely open an account equal application scenarios by individual mobile terminal.
Further, in the further preferred scheme of above preferred embodiment, the mode of used light is the face of light The integrated mode of the position of color and light emitting region, such as:Synchronization issues different colours in the different location of display screen Light, alternatively, color of the synchronization in the light that the different location of display screen issues the light of same color but different moments issue Difference etc..Using the scheme of the integrated mode of the position of the color and light emitting region of light, relative to select change light intensity etc. other The scheme of the mode of light, not only living body verification the verifying results are more preferable, but also can reduce stimulation of the light to human eye, to promote user's body It tests.
In the case where irradiation of the face to be verified by detection light, can use image collecting device, (such as electronics is set Standby 100 image collecting device 110) image of the acquisition face to be verified under the irradiation of detection light, obtain the light image. Image collecting device can be controlled by processor to acquire image.One or more light images are transmitted to by image collecting device The processor that living body verifies system is verified for living body.Illustratively, the collected illumination under the irradiation of the light of same mode The number of image can be one or more, and the present invention limits not to this.It will be appreciated by persons skilled in the art that living Experience card is mainly based upon the verifying of face progress, therefore, according to embodiment hereof, in acquisition light image and subsequent movement When image and realtime graphic, it is therefore intended that the image comprising face is collected, for carrying out living body verifying.
Illustratively, light image can be by client device (mobile terminal, long-distance video cabinet for example including camera Member's machine (Video Teller Machine, VTM) etc.) electronic equipment 100 is sent to by the processor 102 of electronic equipment 100 It is handled, the image collecting device 110 (such as camera) that can also include by electronic equipment 100 acquires and is transmitted to processing Device 102 is handled.
As described above, the light showed in one or more light images based on face to be verified is anti-in step S332 It penetrates characteristic and determines whether face to be verified belongs to living body, to obtain illumination living body verification result.
The human skin of such as face skin is a kind of irreflexive material, and face is three-dimensional;In contrast, all As the display screen of liquid crystal display (LCD) or Organic Light Emitting Diode (OLED) display is considered self luminous object Body and also generally include partial specular reflection component, and photo etc. be usually plane and also to generally include partial mirror anti- Component is penetrated, and either shows screen or photo, reflection characteristic on the whole is three-dimensional that is uniform and lacking face Characteristic.The reflective character of face is different from the reflective character of display screen or photo, it is possible thereby to by based on to be tested The reflective character of witness's face judges whether face to be verified is to belong to living body.
As described above, at least determining whether face to be verified passes through work based on illumination living body verification result in step S334 Experience card.
It in one example, can be directly using illumination living body verification result as final living body verification result, that is, if Illumination living body verification result indicates that face to be verified belongs to living body, it is determined that face to be verified is verified by living body, if illumination Living body verification result indicates that face to be verified is not belonging to living body, it is determined that face to be verified is not verified by living body.This verifying The calculation amount of mode is smaller, and efficiency is higher.In another example, illumination living body can be tested in conjunction with other living body verification modes Card result is combined considerations with other living body verification results obtained based on other living body verification modes, with finally determination to Verify whether face is verified by living body.The accuracy rate of this verification mode is higher.
As described above, not due to the reflective character of the reflective character of face and the display objects such as screen or photo Together, therefore based on reflective character the face on the face or photo played back on real human face and screen can effectively be distinguished.Cause This, the living body whether face to be verified belongs to living body is verified based on the reflective character that face to be verified is presented under detection light Verification method and device can effectively defend screen or photo attacker, use the living body verification method and dress so as to improve The safety of the identity authorization system or similar system set and user experience.
Screen or photo can be defendd to attack although carrying out living body verifying based on reflective character, the attack of attacker There are many mode is possible, certain others attack patterns are possible to break through the living body verifying carried out based on reflective character, such as The attack of three-dimensional artificial mask.The case where for mask attack, the living body verification method based on reflective character is possibly can not be fine Ground defence.Therefore, in order to further improve living body verification method, the safety of living body verifying is improved, can be reflected based on light On the basis of the living body verifying of characteristic, verified further combined with other living body verification modes.One kind is described below to show The implementation of example property.
According to embodiments of the present invention, step S320 may include:If image of the face to be verified in present image is adopted Collection condition meets preset requirement, then exports detection light control instruction, emits detection light to object to be verified for controlling light source, obtains The image acquired after present image is taken to obtain one or more light images.
When the Image Acquisition condition of face to be verified meets preset requirement, processor (such as processor of mobile terminal) can To control light source (such as display screen of mobile terminal) transmitting detection light.The mode of detection light has been described above, herein not It repeats.
According to embodiments of the present invention, step S320 may include:If in the image that acquisition acquires after present image During obtaining one or more light images, it is more than allowed band that mobile and moving distance, which occurs, for face to be verified, then Return step S310.
During acquiring light image, it can continue to monitor position, posture, size of face to be verified etc..For example, If it find that face to be verified is moved to the left and moving distance is more than pre-determined distance threshold value, then return step S310, rejudges Image Acquisition condition simultaneously resurveys new light image.Step S310 can repeat directly with the step of obtaining light image Meet preset requirement and the enough light images of number to Image Acquisition condition is got.This mode can guarantee to be used for living body The quality of the light image of verifying is good enough, and the Image Acquisition condition such as position, posture, size of face to be verified is sufficiently stable, So that the accuracy of living body verification result is sufficiently high.
Fig. 4 shows the schematic flow chart of living body verification method 400 in accordance with another embodiment of the present invention.Shown in Fig. 4 Living body verification method 400 step S410 and S430 respectively with the step S310 of living body verification method 300 shown in Fig. 3 and S332 is corresponding, and those skilled in the art can understand step S410 and S430 shown in Fig. 4 with reference to the associated description of Fig. 3, this Place repeats no more.According to the present embodiment, the step S320 of living body verification method 300 may include step S420 shown in Fig. 4 and S450, step S334 may include step S480.In addition, living body verification method 400 can also include step before step S480 Rapid S440, S460 and S470.
In step S420 and step S450, the light image and motion images of face to be verified are obtained respectively.Light image Acquisition can with reference to above understand, repeat no more.Living body verification step (i.e. step based on movement is mainly described below S440-S470)。
In step S440, output action instruction, wherein action command is used to indicate face to be verified and executes corresponding move Make.
Illustratively, it can be instructed randomly or by pre-defined rule output action.Action command may include individually referring to It enables, or the instruction sequence being made of series of instructions.For example, action command can indicate that face to be verified is nodded, shakes the head, blinked Eye is opened one's mouth, etc..
In step S450, the motion images of image acquisition device face to be verified are obtained, wherein facial image also wraps Include the motion images.
Witness to be tested can be directed to while output action instruction or within a period of time after output action instruction Face carries out Image Acquisition, obtains one or more motion images.Illustratively, multiple motion images can be continuous video. Motion images can equally be acquired by above-mentioned image collecting device 110, or by other image acquisition devices.
In step S460, movement performed by face to be verified is detected based on motion images.
Illustratively, Face datection and key point identification can be carried out in each motion images, and are based on multiple movements Facial contour and/or face key point in image judge movement performed by face, for example, pass through identification facial contour And/or variation tendency of the face key point in multiple the continuous motion images got judges movement performed by face.With Afterwards, it can be determined that whether movement indicated by movement performed by face and action command is consistent.In addition it is also possible to be based on single Motion images detect the movement whether face to be verified executes instruction.
In step S470, determine whether face to be verified belongs to living body according to motion detection result and action command, to obtain Obtain action live body verification result.
Illustratively, if indicated by face to be verified movement and action command performed in multiple motion images Keep strokes, it is determined that face to be verified belongs to living body, if the movement that face to be verified is performed in multiple motion images It is inconsistent or face to be verified is not carried out any movement (i.e. not in multiple motion images with movement indicated by action command Detect the movement of face to be verified), it is determined that face to be verified is not belonging to living body.Certainly, aforesaid way is only example, movement Living body verifies whether by that can have other methods of determination, for example, face to be verified performed in multiple motion images it is more A movement includes and the movement kept strokes indicated by action command, it is determined that face to be verified belongs to work in multiple movements Body.
In step S480, determine whether face to be verified leads to based on illumination living body verification result and action live body verification result Experience of making a living is demonstrate,proved.
Illustratively, if illumination living body verification result and action live body verification result indicate that face to be verified belongs to work Body, it is determined that face to be verified is verified by living body, if appointing in illumination living body verification result and action live body verification result What one indicates that face to be verified is not belonging to living body, it is determined that face to be verified is not verified by living body.Certainly, aforesaid way is only It is example, living body is verified whether by that can have other methods of determination.
It should be noted that the above-mentioned living body verification step (step S440-S470) based on movement and the work based on reflective character The successive execution sequence of body verification step (step S410-S420) can arbitrarily be set, and the present invention limits not to this.
Living body verification method comprising the living body verification step based on movement can be independently executed by Image Acquisition end, example Such as, it can be moved by the Image Acquisition end of the financial systems such as bank management system or smart phone, tablet computer etc. Dynamic terminal independently executes.Alternatively, the living body verification method comprising the living body verification step based on movement can also be by server (or cloud) and client cooperation is held to execute.For example, action command can be generated in server end or client, adopted by client Collect the motion images of face to be verified, client sends collected motion images to server end (or cloud), by servicing Device end (or cloud) carries out the verifying of the living body based on movement, and verification result is returned to client.
Final living body verification result is needed in the living body verification step based on reflective character and based on the living body of movement The two steps of verification step all just disposably provide after the completion, and can allow attacker that can not judge in this way is which kind of method prevents It is attacked, to improve the safety of holistic approach.Living body verification mode based on movement can defend mask attack etc. Attack pattern is combined together with the living body verification mode based on reflective character, can effectively defend the attack of multiple types, from And it is further ensured that the safety of living body verifying system and relevant identity authorization system or similar system, while being also beneficial to protect The information security and its equity of user has extremely wide application value and market prospects.
According to embodiments of the present invention, step S470 may include:If based in the period for being not more than the first preset time Interior multiple motion images collected detect that keeps strokes indicated by executed as face to be verified and action command moves Make, it is determined that face to be verified belongs to living body, if do not examined based on multiple motion images collected in the first preset time Measure the movement kept strokes indicated by executed as face to be verified and action command, it is determined that face to be verified does not belong to In living body.
Random output action command (such as texts or the phonetic order such as " please nod ", " please open one's mouth "), it is to be verified to indicate Face executes corresponding movement (such as nod, open one's mouth), is detected to human face region key point to judge face to be verified Whether performed movement is consistent with the action command of output.If being detected in the first preset time performed by face to be verified Movement with export action command it is consistent, it is determined that face to be verified belongs to living body;If being detected in the first preset time Movement and the action command exported performed by face to be verified are inconsistent, or are not detected in the first preset time to be tested The movement of witness's face can then determine that face to be verified is not belonging to living body.First preset time is the execution institute for action command The time-out time of setting, it is desirable that face to be verified execution in the first preset time.No matter herein whether face to be verified Stage completion compulsory exercise, all operation of recording living body verification result simultaneously enter next stage.Illustratively, if face to be verified Compulsory exercise is not completed in the first preset time, then can determine that face to be verified is not belonging to living body.
According to embodiments of the present invention, simultaneously with step S440, living body verification method 400 can also include:Output first Time prompting information, the first time prompt information include count down information corresponding with the first preset time.
Optionally, count down information corresponding with the first preset time can be using in text, dynamic image and voice One or more forms realize.Count down information can be convenient user and understand authentication progress, and the friendship of user can be improved Mutually experience.
According to embodiments of the present invention, before the step S332 (or S420) or execute the step S332 (or S420) and during the step S334 (or S430), living body verification method 300 (or 400) can also include:Output second Time prompting information, wherein the second time prompting information is for prompting face to be verified to remain stationary in the second preset time.
Illustratively, the second preset time can be the living body verification step (step shown in Fig. 2 based on reflective character S332-S334 or step S420-S430 shown in Fig. 4) the execution time.It is held in the living body verification step based on reflective character When row, i.e., when irradiating face to be verified using detection light, face to be verified can be prompted to remain stationary within this period, in order to avoid Influence image collection effect and living body verification result.Illustratively, if face to be verified movement in the second preset time is led Cause the Image Acquisition condition of face to be verified no longer to meet preset requirement, then it can be with return step S310 (or S410).
Illustratively, the second time prompting information may include count down information corresponding with the second preset time.It can Selection of land, count down information corresponding with the second preset time can use one of text, dynamic image and voice or more Kind form is realized.Count down information can be convenient user and understand authentication progress, and the interactive experience of user can be improved.
According to embodiments of the present invention, before step S210 (S310 or S410), living body verification method 200 (300 or 400) Can also include:Export the 4th acquisition prompt information, wherein the 4th acquisition prompt information is for prompting face face figure to be verified As acquisition device and close to image collecting device.
4th acquisition prompt information can be exported using any suitable way.Illustratively, the 4th acquisition prompt of output Information may include:Pass through one of speech form, image format and written form or the 4th acquisition prompt letter of a variety of outputs Breath.For example, can export " asking face screen " on the display screen of mobile terminal, (face screen is equivalent to face Image Acquisition Device) as text, or signal language as " asking face screen " can be issued by the loudspeaker of mobile terminal.
Illustratively, living body verification method can by be mounted on the electronic equipments such as mobile terminal application (APP) To realize.When user's opening should be in application, the 4th acquisition prompt information of output can be first begin to, to prompt user and movement eventually End keeps suitable relative positional relationship, tests in order to which the camera of mobile terminal acquires ideal facial image for living body Card.In one example, the 4th acquisition prompt information can the Image Acquisition condition of face to be verified meet preset requirement it It is preceding constantly or at intervals to export.
Exporting the 4th acquisition prompt information can be opposite with itself in order to instruct user to adjust living body verifying device in time Positional relationship, meanwhile, the interaction of this user and system can also promote user experience.
Step S210 (S310 or S410) can have a variety of implementations, and step S210 (S310 or S410) is described below Several illustrative implementations.Several example implementations guide user to execute using simple interactive command below Correctly operation, improves the convenience of living body verification method.
According to an embodiment of the present invention, step S210 (S310 or S410) may include:Image collecting device is obtained to adopt Collect the realtime graphic of face to be verified;One face preview area of real-time display, and shown in face preview area in real time real-time The image section of image and face preview area position consistency;According to Image Acquisition item of the face to be verified in realtime graphic Part, real-time display text prompt information, text prompt information for prompting face to be verified adjustment Image Acquisition condition so that Image Acquisition condition meets preset requirement;And whether face is fallen into according at least to position of the face to be verified in realtime graphic Preview area limited range, determines whether the Image Acquisition condition of face to be verified meets preset requirement.
Fig. 5 show it is according to an embodiment of the invention, in the living body verification method implementation process on the display screen Show the schematic diagram of content.
As shown in figure 5, showing face preview area and text on the display screen first when living body verifying process starts Highlight.The position in face preview area and text prompt area can be fixed.Note that on the first width figure in Fig. 5 Shown " text prompt area " these texts are only a kind of signals, and the word content really shown in text prompt area can be with According to preset and the case where current face to be verified depending on.For example, not falling within face preview area in face to be verified In the case where, it can be text as such as " me please be allow to see your face " shown by text prompt area.Similarly, Fig. 5 In the first width figure on shown " face preview area " be a kind of signal, the content that face preview area is really shown can be with It is the image section in current acquired image with face preview area position consistency.Position consistency as described herein refers to people In face preview area coordinate occupied in the display interface of display screen and image collecting device institute acquired image Specific image part coordinate occupied in whole image is consistent.
In face preview area, can with real-time display in the collected realtime graphic of face to be verified with face The image section of preview area position consistency.It is appreciated that in the case where continuous acquisition multiframe realtime graphic, face preview region What domain was shown will be one section of video.When object scene in image acquisition region changes, such as when face to be verified movement, face Display content in preview area can also change therewith.By the display content in face preview area, user can compare Intuitively judge whether face to be verified enters suitable position, whether size is suitable size, and whether posture is suitable Posture, etc..
It is exemplary and not restrictive, in the implementation procedure of step S210, face preview area and text prompt area Display screen portions in addition can be shown as white, to highlight face preview area and text prompt area.
Referring to the second width figure shown in Fig. 5, enter the living body Qualify Phase based on reflective character at this time, in text prompt Area shows the text prompt information that " please such as remain stationary ", while can show countdown on the edge of face preview area Information (i.e. colored progress bar).In this stage, still can in face preview area real-time display face to be verified Situation.
Referring to the third width figure shown in Fig. 5, enters the living body Qualify Phase based on movement at this time, shown in text prompt area The text prompt information such as " please significantly nodded " prompts user to execute corresponding movement.It equally can be after in this stage Continue the situation of the real-time display face to be verified in face preview area.
The representation of face preview area and text prompt area shown in as described above and Fig. 5 and aobvious Show that content can be set as needed, is limited herein not to this.
According to above-described embodiment, the benchmark of face to be verified is aligned as user by fixed face preview area, and User is prompted to approach preset requirement by text prompt area, this mode is realized relatively simple, and calculation amount is smaller.
According to embodiments of the present invention, the Image Acquisition condition according to face to be verified in realtime graphic, real-time display text Word prompt information may include one or more in following item:When face to be verified does not appear in realtime graphic, output Text prompt information, to prompt face movement to be verified so that face to be verified appears in realtime graphic;When face to be verified When position in realtime graphic shifts relative to face preview area, output character prompt information is to be verified to prompt Face is mobile to the direction opposite with offset direction.
For example, when face to be verified does not enter into image acquisition region, it, can when so that can not find face in realtime graphic To export the text prompt information that such as " me please be allow to see your face ".For example, working as position of the face to be verified in realtime graphic It sets when keeping left relative to face preview area, the text prompt information such as " please kept right again " can be exported.For example, when to When position of the verifying face in realtime graphic is kept right relative to face preview area, it can export and such as " please keep left again " Text prompt information.For example, when position of the face to be verified in realtime graphic is top relative to face preview area, it can To export text prompt information such as " please again more on the lower ".For example, working as position phase of the face to be verified in realtime graphic When for face preview area on the lower, the text prompt information of such as " please more top again " can be exported.
The content of above-mentioned text prompt information is only example, can be set as needed the text that desired text prompt area is shown The content of word prompt information, the present invention limit not to this.
According to embodiments of the present invention, Image Acquisition condition can also include in the fog-level and realtime graphic of realtime graphic The occlusion state at the face position of face to be verified, according to Image Acquisition condition of the face to be verified in realtime graphic, in real time Show that text prompt information may include one or more in following item:When the fog-level of realtime graphic is more than preset mould When pasting threshold value, output character prompt information, to prompt user to wipe image collecting device;When face to be verified is in realtime graphic Posture be output character prompt information, to prompt face to be verified to bow when raising up;When face to be verified is in realtime graphic Posture when being sagging, output character prompt information, to prompt face to be verified to come back;When face to be verified is in realtime graphic Posture be to the left or to the right inclination when, output character prompt information, with prompt face to be verified face front;As witness to be tested When size of the face in realtime graphic is less than first threshold, output character prompt information, to prompt face to be verified close to image Acquisition device;When size of the face to be verified in realtime graphic is greater than second threshold, output character prompt information, with prompt Face to be verified is far from image collecting device;When there are shelters on the Given Face position of face to be verified in realtime graphic When, output character prompt information, to prompt face exposure to be verified Given Face position.
As described above, the Image Acquisition condition of face to be verified can also include the posture of face to be verified and/or big It is small.Correspondingly, it when needing to judge whether posture and/or size meet preset requirement, can export and posture and/or size Adjust relevant text prompt information.
For example, exporting the text such as " please bowed slightly " when posture of the face to be verified in realtime graphic is to raise up Word prompt information.For example, when posture of the face to be verified in realtime graphic is sagging, what output such as " please came back " slightly Text prompt information.When posture of the face to be verified in realtime graphic is inclination to the left or to the right, output " please such as be faced The text prompt information in front ".When size of the face to be verified in realtime graphic is too small, output is such as " please again close to screen Curtain it is some " text prompt information.For example, when size of the face to be verified in realtime graphic is excessive, output such as " please from Screen is far " text prompt information.
It is still further contemplated that some other possible factors for influencing living body verifying precision are adopted as image as described herein Collection condition.For example, the Image Acquisition condition of face to be verified can also include the fuzzy of the realtime graphic comprising face to be verified The occlusion state at the face position of face to be verified in degree and realtime graphic.For example, as the witness to be tested in realtime graphic When the eyes of face are blocked by other objects (such as hair, hand, spectacle-frame), the text prompt that such as " eyes please don't be blocked " is exported Information.When the mouth of face to be verified in realtime graphic is blocked by other objects (such as mask, hand), output " please don't be hidden The text prompt information of gear mouth ".For example, user can also be prompted to wipe when the image that image acquisition device arrives is fuzzy Image collecting device is wiped, such as exports the text prompt information that such as " camera lens please be wipe ".
Illustratively, it can according to need and preset, be only completely located at face preview area in face to be verified Interior, size ratio occupied by entire face preview area of face to be verified is in preset proportional region (preset ratio Example range can be such as 70% or more) in, and the tilt angle in either direction is all in three-dimensional space for face to be verified In the case where no more than preset threshold, just enter next stage, i.e. the living body Qualify Phase based on reflective character.
Illustratively, as shown in figure 5, text prompt information can be shown above face preview area.This display side Formula can allow the sight of user to focus on this region, and user does not need to divert sb.'s attention, and experience coherent smoothness, and interaction flow is simple It is apparent, therefore good interactive experience can be obtained.
According to embodiments of the present invention, step S210 (S310 or S410) may include:Image acquisition device is obtained to wait for Verify the realtime graphic of face;One target site region of real-time display, and face place to be verified in realtime graphic is exported in real time Image section for showing;And judge whether position of the Given Face position of face to be verified in realtime graphic falls into Otherwise target site region determines to be verified if it is, determining that the Image Acquisition condition of face to be verified meets preset requirement The Image Acquisition condition of face is unsatisfactory for preset requirement.
Certain Given Face positions in face can be aligned by guidance user to realize that the alignment of face to be verified (makes It obtains its Image Acquisition condition and meets preset requirement).In alignment procedure, by requiring user will be obvious on face to be verified Given Face position snap in display interface specify position, to achieve the purpose that finally to be aligned entire face.
Fig. 6 show it is in accordance with another embodiment of the present invention, in living body verification method implementation process on the display screen Display content schematic diagram.In the example depicted in fig. 6, it is desirable that the eyes of face to be verified are snapped to specific position by user It sets, after the operation for completing alignment eyes, i.e., it is believed that the whole all alignment of face to be verified.Such alignment thereof can also To be generalized to nose, place between the eyebrows, chin etc., other have on the Given Face position of obvious characteristic.Furthermore, it is possible to be based on multiple specific Alignment is while face position to be aligned face to be verified.
Scheme referring to shown in the left side Fig. 6, it to be two regions marked with circle that there is shown with target site regions.Such as The eyes of fruit face to be verified can fall into target site region, i.e. eyes can be aligned with the circle of display, it is determined that be tested The Image Acquisition condition of witness's face meets preset requirement.Scheme referring to shown in the right side Fig. 6, the eyes of face to be verified are lucky at this time Fall into target site region.If the eyes of face to be verified do not fall within target site region, such as only one eye is fallen into Target site region or every eye only partially fall into target site region, i.e. eyes can not be aligned with the circle of display, then Determine that the Image Acquisition condition of face to be verified is unsatisfactory for preset requirement.
As shown in fig. 6, when being aligned Given Face position, it can be where face to be verified in real-time display realtime graphic Image section.In this way, user can easily check the gap at Given Face position Yu target site region, it is convenient into Row alignment.It is directly higher to the parameters such as abstract posture, the size difficulty that adjusts due to requiring user, and provide specific reference The difficulty of status requirement user alignment is lower, so the alignment schemes of the present embodiment are easier to execute.
According to embodiments of the present invention, step S210 (S310 or S410) includes:It is to be verified to obtain image acquisition device The realtime graphic of face;Face to be verified is followed according to Image Acquisition condition real-time display of the face to be verified in realtime graphic The simulation human face region of variation, wherein face to be verified is shown in simulation human face region;Real-time display is used to indicate to be verified The target human face region of face alignment;And judge simulate human face region whether with target face region alignment, if it is, really The Image Acquisition condition of fixed face to be verified meets preset requirement, otherwise determines that the Image Acquisition condition of face to be verified is unsatisfactory for Preset requirement.
Image Acquisition condition of the face to be verified in each realtime graphic (such as the position of face to be verified can be passed through Set, posture, size etc.) generate some real-time, abstract or tool elephant dummy object (such as described simulation human face region) into The alignment of row face to be verified.In alignment procedure, can mainly consider whether the posture of face to be verified is ajusted, witness to be tested The size of position of the face in realtime graphic face whether placed in the middle, to be verified if appropriate for etc..Algorithm can be used and calculate these Image Acquisition condition, and be the numerical value of some keys by Function Mapping by the Image Acquisition condition of calculating, use these numerical value Some dummy object in control display screen is moved or is changed.Until the dummy object controlled reaches some target-like After state (such as described target human face region), determine that the corresponding Image Acquisition condition of face to be verified meets preset requirement.
Fig. 7 show it is in accordance with another embodiment of the present invention, in living body verification method implementation process on the display screen Display content schematic diagram.In Fig. 7, for show face to be verified image window (namely simulation human face region, when When acquiring multiframe consecutive image for face to be verified, which is video window) it is designed to one and can move simultaneously And it can change the circular object of size.User can by adjusting face to be verified up and down, the angle and to be tested of left and right The position of witness's face within display screen, to control moving up and down for circular object.User can also be by adjusting to be tested The distance of witness's face adjusts the size of circular object.Final purpose is to require user that this circular object is snapped to target face On region (circle of grey shown in Fig. 7).
It in one example, can be in the edge of simulation human face region and the perfectly aligned feelings in edge of target human face region Simulation human face region and target face region alignment are determined under condition.In another example, mesh can be fallen into simulation human face region In mark human face region and simulates human face region proportion in target human face region and be within the scope of preset ratio (such as not Greater than the second preset ratio as described herein) in the case where, determine simulation human face region and target face region alignment.
According to embodiments of the present invention, judge to simulate human face region whether with target face region alignment include:If simulation Human face region, which is located in target human face region and simulates human face region proportion in realtime graphic, is greater than the first default ratio Example, it is determined that simulation human face region and target face region alignment;If simulation human face region is not at target human face region Interior or simulation human face region proportion in realtime graphic is not more than the first preset ratio, it is determined that simulation human face region is not With target face region alignment.
The size of simulation human face region can reflect face to be verified at a distance from image collecting device and relative angle, because This can reflect to a certain extent whether Image Acquisition condition meets the requirements.Target human face region and the first preset ratio To be set as needed, the present invention limits not to this.
For example, if the simulation human face region of face to be verified is located in target human face region, but simulate human face region Proportion is less than the first preset ratio (such as 2/3rds) in realtime graphic, it is likely that is the posture of face to be verified Be too greatly inclined and/or range image acquisition device farther out, at this time it is considered that Image Acquisition condition is unsatisfactory for preset requirement.
Illustratively, living body verification method 200 (300 or 400) can also include:If simulation human face region is schemed in real time As in proportion be not more than the first preset ratio, then in real time output first acquisition prompt information, with prompt face to be verified with Image collecting device is close.
Optionally, the first acquisition prompt information can by one of speech form, image format and written form or A variety of outputs.For example, if discovery simulation human face region proportion in realtime graphic is not more than the first preset ratio, Ke Yi Such as " please be close to camera " (or " please be close to mobile phone ") this kind of prompt information is shown on display screen.
According to embodiments of the present invention, judge to simulate human face region whether with target face region alignment include:If simulation Human face region, which is located in target human face region and simulates human face region proportion in target human face region, is greater than second in advance If ratio, it is determined that simulation human face region and target face region alignment;If simulation human face region is not at target face In region or simulation human face region proportion in target human face region is not more than the second preset ratio, it is determined that simulation people Face region not with target face region alignment.
The size of simulation human face region can reflect face to be verified at a distance from image collecting device and relative angle, because This can reflect to a certain extent whether Image Acquisition condition meets the requirements.For example, when detecting that face distance to be verified is aobvious Display screen curtain from the distant to the near when, the simulation human face region of real-time display changes from small to big on the display screen, and sufficiently closes in face Make to show that the simulation human face region alignment target human face region shown on screen is shown on screen in real time certainly when showing screen The human face region of display can also only be sized to alignment target under conditions of face to be verified sufficiently closes to display screen Human face region is not limited thereto.Target human face region and the second preset ratio can be set as needed, and the present invention is not right This is limited.
For example, if the simulation human face region of face to be verified is located in target human face region, but simulate human face region Proportion is less than the second preset ratio (such as 2/3rds) in target human face region, it is likely that is face to be verified Posture be too greatly inclined and/or range image acquisition device farther out, at this time it is considered that Image Acquisition condition is unsatisfactory for preset requirement.
Illustratively, living body verification method 200 (300 or 400) can also include:If simulating human face region in target person Proportion is not more than the second preset ratio in face region, then the second acquisition of output in real time prompt information, to prompt witness to be tested Face is close with image collecting device.
Optionally, the second acquisition prompt information can by one of speech form, image format and written form or A variety of outputs.For example, if discovery simulation human face region proportion in target human face region is not more than the second preset ratio, it can To show such as " please be close to camera " (or " please be close to mobile phone ") this kind of prompt information on the display screen.
According to embodiments of the present invention, method 200 (300 or 400) can also include:Real-time judge simulates human face region and mesh Mark the relative positional relationship between human face region;And export third acquisition prompt information in real time based on relative positional relationship, with Prompt changes relative positional relationship so that simulation human face region and target human face region are close.
For example, when realizing living body verification method and device according to an embodiment of the present invention on mobile terminals, Ke Yi Real-time display simulation human face region and the icon for indicating target human face region are (i.e. in screen on the display screen of mobile terminal The target human face region of upper real-time display).Real-time display simulates human face region and for indicating that the icon of target human face region can To facilitate user to know which kind of situation is its current Image Acquisition condition be in, have with the gap of preset requirement it is much, with convenient User adjusts the posture of itself or image collecting device (or living body verifying device comprising image collecting device), to enter as early as possible Subsequent living body Qualify Phase.Therefore, real-time display simulation human face region and icon for indicating target human face region can be with User experience is improved, and the efficiency of living body verifying can be improved.
Further, it is also possible to third acquisition prompt information be exported, to prompt user to change face and image collector to be verified Relative positional relationship between setting is so that simulation human face region and target human face region are close.Optionally, third acquisition prompt Information can pass through one of speech form, image format and written form or a variety of outputs.For example, if discovery simulation face Region is not in target human face region, then can show such as " please be close to circle center " (target person on the display screen Face region is shown on the display screen with circular icon) this kind of prompt information.Further, it is also possible to be shown on the display screen from mould Quasi- human face region is directed toward the arrow of target human face region, facilitate user understand how to move itself or image collecting device so that Simulation human face region enters target human face region as early as possible.Above-mentioned " please close to circle center " this kind of text prompt information and arrow this Class picture cues information can show or select simultaneously a display.
According to embodiments of the present invention, during image acquisition device facial image, living body verification method 200 (300 or 400) further include:Brightness control instruction is exported, brightness control instruction is used to control for showing the aobvious of face to be verified The brightness of display screen curtain is one of lower list:Greater than preset luminance threshold, reach maximum value and Strength Changes based on environment light.
Since illumination condition difference will affect the quality of facial image, living body verifying may be poor in some illumination conditions Scene under can not work normally.It illustratively, can be during image acquisition device facial image, by display screen The brightness of curtain lightens, such as is set as most bright or is greater than preset luminance threshold, is illuminated with playing using the light of display screen Face to be verified, so that can still go on smoothly the purpose of living body verifying in a dark environment.This working method can fill Divide the feature that can be shone using the display screen itself of mobile terminal, uses screen light as face light filling, it is ensured that black It still can be with the preferable facial image of acquisition quality, so that living body verification method more Shandong nation under dark situation.Optionally, mobile whole End can also detect environment light, and the Strength Changes based on environment light show the brightness of screen come adjust automatically.
The 8 a kind of implementation process for describing living body verification method according to an embodiment of the present invention with reference to the accompanying drawing.Shown in Fig. 8 Application scenarios be mobile terminal.
As shown in figure 8, firstly, text as display " asking face screen ", prompt on the display screen of mobile terminal Face's face screen is shown the icon (being indicated with circle) for indicating target human face region by user on the display screen With the simulation human face region based on real time image generation.When user changes position and/or the posture of itself face, and/or change It, can text as continuously display " asking face screen " and for indicating target person when the position of mobile terminal and/or posture The icon in face region, both information can remain unchanged.However, the size and location of simulation human face region may all change, Therefore, user can be facilitated to check with the continually changing simulation human face region of real-time display.Then, when the image of face to be verified When acquisition condition meets preset requirement, next stage, i.e. the living body verification step based on reflective character can be entered.
In the implementation procedure of the living body verification step based on reflective character, can show on the display screen " please be protected Hold motionless " as text (as shown in the 2nd and 3 width images of Fig. 8), prompt user to remain stationary, while can also show Count down information is shown on screen.It uses and is indicated in for indicating target person in count down information the 3rd width image shown in Fig. 8 Colored progress bar on the icon (i.e. circle) in face region indicates.
After the living body verification step based on reflective character is completed, it can start to execute the living body verifying based on movement Step.As shown in the 4th width image of Fig. 8, text as " please nod " is shown on the display screen, and instruction user executes corresponding Movement.
Finally, final living body verification result is exported on the display screen, text as such as " living body is verified ".
Three kinds of Fig. 5, Fig. 6 and Fig. 7 (or Fig. 8) description Image Acquisition conditions for judging face to be verified are being combined above In embodiment, it is required to face to be verified or part of it snapping to target position.It is understood, however, that above-mentioned reality Applying example is not limitation of the present invention, and the present invention can have other implementations.For example, can not consider that face to be verified is being schemed Position as in, only considers its size and/or posture in the picture, as long as its size reaches predefined size and/or posture reaches To predetermined posture, it can think that the Image Acquisition condition of face to be verified meets preset requirement.
According to a further aspect of the invention, a kind of living body verifying device is provided.Fig. 9 is shown according to an embodiment of the present invention Living body verifying device 900 schematic block diagram.
As shown in figure 9, living body verifying device 900 according to an embodiment of the present invention includes condition judgment module 910, face figure Determining module 930 is verified as obtaining module 920 and living body.The modules can execute respectively above in conjunction with Fig. 2-8 Each step/function of the living body verification method of description.Below only to the major function of each component of living body verifying device 900 It is described, and omits the detail content having been described above.
Condition judgment module 910 is for judging face to be verified in the image of image acquisition device face to be verified Image Acquisition condition whether meet preset requirement, wherein Image Acquisition condition includes face to be verified in image collecting device Position, posture in the image of acquisition and one or more in size.Condition judgment module 910 can electricity as shown in Figure 1 The program instruction that stores in 102 Running storage device 104 of processor in sub- equipment is realized.
Facial image obtains module 920 and is used for the case where the Image Acquisition condition of face to be verified meets preset requirement Under, obtain the facial image of image acquisition device face to be verified.Facial image obtains module 920 can be as shown in Figure 1 Electronic equipment in 102 Running storage device 104 of processor in the program instruction that stores realize.
Living body is verified determining module 930 for judging whether face to be verified is tested by living body based on facial image Card.Living body is verified determining module 930 can 102 Running storage device 104 of processor in electronic equipment as shown in Figure 1 The program instruction of middle storage is realized.
Illustratively, condition judgment module 910 includes:First realtime graphic acquisition submodule, for obtaining Image Acquisition Device acquires the realtime graphic of face to be verified;First area display sub-module is used for one face preview area of real-time display, and The image section of realtime graphic Yu face preview area position consistency is shown in face preview area in real time;First prompt display Submodule, for the Image Acquisition condition according to face to be verified in realtime graphic, real-time display text prompt information, text Prompt information is for prompting face adjustment Image Acquisition condition to be verified so that Image Acquisition condition meets preset requirement;And First condition determines submodule, for whether falling into face preview region according at least to position of the face to be verified in realtime graphic Domain limited range, determines whether the Image Acquisition condition of face to be verified meets preset requirement.
Illustratively, the first prompt display sub-module includes one or more in following item:First prompt output unit, For when face to be verified does not appear in realtime graphic, output character prompt information to be made with prompting face to be verified to move Face to be verified is obtained to appear in realtime graphic;Second prompt output unit, for when face to be verified is in realtime graphic When position shifts relative to face preview area, output character prompt information, with prompt face to be verified to offset side It moves in the opposite direction.
Illustratively, Image Acquisition condition further includes face to be verified in the fog-level and realtime graphic of realtime graphic The occlusion state at face position, the first prompt display sub-module further includes one or more in following item:Third prompt output Unit, for when the fog-level of realtime graphic be more than preset Fuzzy Threshold when, output character prompt information, to prompt user Wipe image collecting device;4th prompt output unit, for when posture of the face to be verified in realtime graphic is to raise up, Output character prompt information, to prompt face to be verified to bow;5th prompt output unit, for when face to be verified is real-time When posture in image is sagging, output character prompt information, to prompt face to be verified to come back;6th prompt output unit, For when posture of the face to be verified in realtime graphic is inclination to the left or to the right, output character prompt information, with prompt Face to be verified faces front;7th prompt output unit, for when size of the face to be verified in realtime graphic is less than the When one threshold value, output character prompt information, to prompt face to be verified close to image collecting device;8th prompt output unit, For when size of the face to be verified in realtime graphic is greater than second threshold, output character prompt information to be to be tested to prompt Witness's face is far from image collecting device;9th prompt output unit, for the particular person when face to be verified in realtime graphic There are when shelter on face position, output character prompt information, to prompt face exposure to be verified Given Face position.
Illustratively, text prompt information is shown above face preview area.
Illustratively, condition judgment module 910 includes:Second realtime graphic acquisition submodule, for obtaining Image Acquisition Device acquires the realtime graphic of face to be verified;Second area display sub-module is used for one target site region of real-time display, and The image section in output realtime graphic where face to be verified is for showing in real time;And second condition determines submodule, uses In judging whether position of the Given Face position of face to be verified in realtime graphic falls into target site region, if so, It then determines that the Image Acquisition condition of face to be verified meets preset requirement, otherwise determines the Image Acquisition condition of face to be verified not Meet preset requirement.
Illustratively, condition judgment module 910 includes:Third realtime graphic acquisition submodule, for obtaining Image Acquisition Device acquires the realtime graphic of face to be verified;Third region display sub-module is used for according to face to be verified in realtime graphic In Image Acquisition condition real-time display follow the simulation human face region of face to be verified variation, wherein face to be verified is in mould It is shown in quasi- human face region;The fourth region display sub-module is used to indicate the target of face alignment to be verified for real-time display Human face region;And third condition determines submodule, for judge simulation human face region whether with target face region alignment, such as Fruit is, it is determined that the Image Acquisition condition of face to be verified meets preset requirement, otherwise determines the Image Acquisition of face to be verified Condition is unsatisfactory for preset requirement.
Illustratively, third condition determines that submodule includes:First alignment determination unit, is located at for simulating human face region It in target human face region and simulates human face region proportion in realtime graphic and is greater than the first preset ratio, it is determined that simulation Human face region and target face region alignment;Second alignment determination unit, if being not at target for simulating human face region In human face region or simulation human face region proportion in realtime graphic is not more than the first preset ratio, it is determined that simulation people Face region not with target face region alignment.
Illustratively, living body verifying device 900 further includes:First prompt output module, if for simulating human face region Proportion is not more than the first preset ratio in realtime graphic, then the first acquisition of output in real time prompt information, to be tested to prompt Witness's face and image collecting device are close.
Illustratively, third condition determines that submodule includes:Third is aligned determination unit, if for simulating human face region In target human face region and simulate human face region in target human face region proportion be greater than the second preset ratio, then Determine simulation human face region and target face region alignment;4th alignment determination unit, if do not had for simulating human face region In target human face region or simulation human face region proportion in target human face region is not more than the second preset ratio, Then determine simulation human face region not with target face region alignment.
Illustratively, living body verifying device 900 further includes:Second prompt output module, if for simulating human face region Proportion is not more than the second preset ratio in target human face region, then the second acquisition of output in real time prompt information, with prompt Face to be verified and image collecting device are close.
Illustratively, living body verifying device 900 further includes:Positional relationship judgment module simulates face for real-time judge Relative positional relationship between region and target human face region;And third prompts output module, for being closed based on relative position Output third acquires prompt information in real time for system, changes relative positional relationship with prompt so that simulation human face region and target face Region is close.
Illustratively, living body verifying device 900 further includes:Brightness control module, in image acquisition device people During face image, brightness control instruction is exported, brightness control instruction is used to control the display for showing face to be verified The brightness of screen is one of lower list:Greater than preset luminance threshold, reach maximum value and Strength Changes based on environment light.
Illustratively, facial image includes one that image collecting device acquires face to be verified under the irradiation of detection light Or multiple light images, living body are verified determining module 930 and include:Illumination living body verifies submodule, for based on to be verified The reflective character that face is showed in one or more light images determines whether face to be verified belongs to living body, to obtain Illumination living body verification result;And living body is verified determining submodule, at least being determined based on illumination living body verification result Whether face to be verified is verified by living body.
Illustratively, facial image acquisition module 920 includes:Control instruction output sub-module, if being used for witness to be tested Image Acquisition condition of the face in present image meets preset requirement, then exports detection light control instruction, for control light source to Object to be verified emits detection light, obtains the image acquired after present image to obtain one or more light images.
Illustratively, facial image acquisition module 920 includes:Promoter module, if for obtaining in present image During the image acquired later is to obtain one or more light images, it is super that mobile and moving distance occurs for face to be verified Allowed band is crossed, then entry condition judgment module 910.
Illustratively, living body verifying device 900 further includes:Action command output module is instructed for output action, In, action command is used to indicate face to be verified and executes corresponding movement;Motion images obtain module, for obtaining Image Acquisition Device acquires the motion images of face to be verified, wherein facial image further includes motion images;Motion detection module is used for base Movement performed by face to be verified is detected in motion images;And movement verification result obtains module, for being examined according to movement It surveys result and action command determines whether face to be verified belongs to living body, to obtain action live body verification result;Living body verifying is logical It crosses and determines that submodule includes:Living body is verified determination unit, for based on illumination living body verification result and action live experience card As a result determine whether face to be verified is verified by living body.
Illustratively, movement verification result acquisition module includes:It acts verification result and obtains submodule, if for being based on Within the period no more than the first preset time motion images collected detect it is being executed by face to be verified, refer to movement Enable the indicated movement kept strokes, it is determined that face to be verified belongs to living body, if based on the institute in the first preset time The movement kept strokes indicated by executed as face to be verified and action command is not detected in the motion images of acquisition, then Determine that face to be verified is not belonging to living body.
Illustratively, living body verifying device 900 further includes:4th prompt output module, for exporting mould with action command Block output action instructs simultaneously, exports first time prompt information, and first time prompt information includes and the first preset time Corresponding count down information.
Illustratively, living body verifying device 900 further includes:5th prompt output module, for verifying son in illumination living body Whether the reflective character that module is showed in one or more light images based on face to be verified determines face to be verified Before belonging to living body or face to be verified is based in illumination living body verifying submodule to be showed in one or more light images Reflective character determine whether face to be verified belongs to living body and living body is verified determining submodule and is at least based on illumination During living body verification result determines whether face to be verified is verified by living body, the second time prompting information is exported, wherein Second time prompting information is for prompting face to be verified to remain stationary in the second preset time.
Illustratively, the second time prompting information includes count down information corresponding with the second preset time.
Illustratively, living body verifying device 900 further includes:6th prompt output module, in condition judgment module 910 Judge whether face to be verified is full for the Image Acquisition condition in face acquired image to be verified in image collecting device Before sufficient preset requirement, the 4th acquisition prompt information of output, wherein the 4th acquisition prompt information is for prompting face to be verified just To image collecting device and close to image collecting device.
Illustratively, the 6th prompt output module includes:Second prompt output sub-module, for passing through speech form, figure As one of form and written form or the 4th acquisition prompt information of a variety of outputs.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed The scope of the present invention.
Figure 10 shows the schematic block diagram of living body verifying system 1000 according to an embodiment of the invention.Living body verifying System 1000 includes image collecting device 1010, storage device 1020, processor 1030 and light source 1040.
Image collecting device 1010 be used for acquire face to be verified image (including light image, motion images and in real time Image).Image collecting device 1010 is that optionally, it can not include image collecting device 1010 that living body, which verifies system 1000,.? In this case, it can use image of other image acquisition devices for living body verifying, and the image of acquisition sent System 1000 is verified to living body.
The storage of storage device 1020 is for realizing the corresponding step in living body verification method according to an embodiment of the present invention Rapid computer program instructions.
The processor 1030 is for running the computer program instructions stored in the storage device 1020, to execute root According to the corresponding steps of the living body verification method of the embodiment of the present invention, and for realizing living body according to an embodiment of the present invention verifying Condition judgment module 910, facial image in device 900 obtain module 920 and living body is verified determining module 930.
Light source 1040 is used to emit detection light to face to be verified.Light source 1040 is optional, living body verifying system 1000 It can not include light source 1040.
In one embodiment, verify the living body when computer program instructions are run by the processor 1030 System 1000 executes following steps:Step S210:Judge face to be verified in the figure of image acquisition device face to be verified Whether the Image Acquisition condition as in meets preset requirement, wherein Image Acquisition condition includes face to be verified in Image Acquisition It is one or more in the position in image, posture and the size that device acquires;Step S220:It is adopted in the image of face to be verified In the case that collection condition meets preset requirement, the facial image of image acquisition device face to be verified is obtained;And step S230:Judge face to be verified whether by living body verifying based on facial image.
Illustratively, the step S210 of used execution when computer program instructions are run by processor includes:Obtain figure As acquisition device acquires the realtime graphic of face to be verified;One face preview area of real-time display, and in real time in face preview region The image section of realtime graphic Yu face preview area position consistency is shown in domain;According to face to be verified in realtime graphic Image Acquisition condition, real-time display text prompt information, text prompt information is for prompting face adjustment Image Acquisition to be verified Condition is so that Image Acquisition condition meets preset requirement;And it is according at least to position of the face to be verified in realtime graphic It is no to fall into face preview area limited range, determine whether the Image Acquisition condition of face to be verified meets preset requirement.
Illustratively, when computer program instructions are run by processor used execution according to face to be verified real-time The step of Image Acquisition condition in image, real-time display text prompt information includes one or more in following item:When to When verifying face is not appeared in realtime graphic, output character prompt information, to prompt face movement to be verified so as to be verified Face appears in realtime graphic;When position of the face to be verified in realtime graphic shifts relative to face preview area When, output character prompt information, to prompt face to be verified mobile to the direction opposite with offset direction.
Illustratively, Image Acquisition condition further includes face to be verified in the fog-level and realtime graphic of realtime graphic The occlusion state at face position, when computer program instructions are run by processor used execution according to face to be verified in reality When image in Image Acquisition condition, the step of real-time display text prompt information includes one or more in following item:When When the fog-level of realtime graphic is more than preset Fuzzy Threshold, output character prompt information is adopted with prompting user to wipe image Acquisition means;When posture of the face to be verified in realtime graphic is to raise up, output character prompt information, to prompt witness to be tested Face is bowed;When posture of the face to be verified in realtime graphic is sagging, output character prompt information, to prompt witness to be tested Face comes back;When posture of the face to be verified in realtime graphic is inclination to the left or to the right, output character prompt information, to mention Show that face to be verified faces front;When size of the face to be verified in realtime graphic is less than first threshold, output character is mentioned Show information, to prompt face to be verified close to image collecting device;When size of the face to be verified in realtime graphic is greater than the When two threshold values, output character prompt information, to prompt face to be verified far from image collecting device;When to be tested in realtime graphic There are when shelter on the Given Face position of witness's face, output character prompt information is specific to prompt face to be verified to expose Face position.
Illustratively, text prompt information is shown above face preview area.
Illustratively, the step S210 of used execution when computer program instructions are run by processor includes:Obtain figure As acquisition device acquires the realtime graphic of face to be verified;One target site region of real-time display, and realtime graphic is exported in real time In image section where face to be verified for showing;And judge the Given Face position of face to be verified in realtime graphic In position whether fall into target site region, if it is, determining that the Image Acquisition condition of face to be verified meets default want It asks, otherwise determines that the Image Acquisition condition of face to be verified is unsatisfactory for preset requirement.
Illustratively, the step S210 of used execution when computer program instructions are run by processor includes:Obtain figure As acquisition device acquires the realtime graphic of face to be verified;It is real according to Image Acquisition condition of the face to be verified in realtime graphic When display follow the simulation human face region of face to be verified variation, wherein face to be verified is shown in simulation human face region;It is real When display be used to indicate the target human face region of face to be verified alignment;And judge simulate human face region whether with target face Otherwise region alignment determines face to be verified if it is, determining that the Image Acquisition condition of face to be verified meets preset requirement Image Acquisition condition be unsatisfactory for preset requirement.
Illustratively, used execution judges whether simulate human face region when computer program instructions are run by processor Include with the step of target face region alignment:If simulation human face region is located in target human face region and simulates face area Domain proportion in realtime graphic is greater than the first preset ratio, it is determined that simulation human face region and target face region alignment; If simulation human face region be not in target human face region or simulation human face region proportion is not in realtime graphic Greater than the first preset ratio, it is determined that simulation human face region not with target face region alignment.
Illustratively, it is also used to execute when computer program instructions are run by processor:If simulating human face region in reality When image in proportion be not more than the first preset ratio, then in real time output first acquisition prompt information, to prompt witness to be tested Face is close with image collecting device.
Illustratively, used execution judges whether simulate human face region when computer program instructions are run by processor Include with the step of target face region alignment:If simulation human face region is located in target human face region and simulates face area Domain proportion in target human face region is greater than the second preset ratio, it is determined that simulation human face region and target human face region pair Together;If simulation human face region is not in target human face region or simulation human face region is shared in target human face region Ratio be not more than the second preset ratio, it is determined that simulation human face region not with target face region alignment.
Illustratively, it is also used to execute when computer program instructions are run by processor:If simulating human face region in mesh It marks proportion in human face region and is not more than the second preset ratio, then the second acquisition of output in real time prompt information, to be tested to prompt Witness's face and image collecting device are close.
Illustratively, it is also used to execute when computer program instructions are run by processor:Real-time judge simulates human face region With the relative positional relationship between target human face region;And export third acquisition prompt letter in real time based on relative positional relationship Breath changes relative positional relationship with prompt so that simulation human face region and target human face region are close.
Illustratively, during image acquisition device facial image, computer program instructions are transported by processor It is also used to execute when row:Brightness control instruction is exported, brightness control instruction is used to control the display for showing face to be verified The brightness of screen is one of lower list:Greater than preset luminance threshold, reach maximum value and Strength Changes based on environment light.
Illustratively, facial image includes one that image collecting device acquires face to be verified under the irradiation of detection light Or multiple light images, the step S230 of used execution when computer program instructions are run by processor include:Step S332: Determine whether face to be verified belongs to based on the reflective character that face to be verified is showed in one or more light images Living body, to obtain illumination living body verification result;And step S334:Witness to be tested is at least determined based on illumination living body verification result Whether face is verified by living body.
Illustratively, the step S220 of used execution when computer program instructions are run by processor includes:If to It verifies Image Acquisition condition of the face in present image and meets preset requirement, then detection light control instruction is exported, for controlling Light source emits detection light to object to be verified, obtains the image acquired after present image to obtain one or more illumination patterns Picture.
Illustratively, the step S320 of used execution when computer program instructions are run by processor includes:If It obtains during the image acquired after present image is to obtain one or more light images, face to be verified moves Dynamic and moving distance is more than allowed band, then return step S210.
Illustratively, it when computer program instructions are run by processor before the step S334 of used execution, calculates Machine program instruction is also used to execute when being run by processor:Step S440:Output action instruction, wherein action command is for referring to Show that face to be verified executes corresponding movement;Step S450:The motion images of image acquisition device face to be verified are obtained, Wherein, facial image further includes motion images;Step S460:Movement performed by face to be verified is detected based on motion images; And step S470:Determine whether face to be verified belongs to living body according to motion detection result and action command, to be acted Living body verification result;The step S334 of used execution when computer program instructions are run by processor includes:It is living based on illumination Body verification result and action live body verification result determine whether face to be verified is verified by living body.
Illustratively, the step S470 of used execution when computer program instructions are run by processor includes:If base Executed by face to be verified and movement is detected in motion images collected within the period no more than the first preset time The indicated movement kept strokes of instruction, it is determined that face to be verified belongs to living body, if based in the first preset time The movement kept strokes indicated by executed as face to be verified and action command is not detected in motion images collected, Then determine that face to be verified is not belonging to living body.
Illustratively, simultaneously with step S440, it is also used to execute when computer program instructions are run by processor:Output First time prompt information, first time prompt information include count down information corresponding with the first preset time.
Illustratively, it before the step S332 of used execution or is being counted when computer program instructions are run by processor When being run by processor during the step S332 and step S334 of used execution, computer program refers to calculation machine program instruction Order is also used to execute when being run by processor:Export the second time prompting information, wherein the second time prompting information is for prompting Face to be verified remains stationary in the second preset time.
Illustratively, the second time prompting information includes count down information corresponding with the second preset time.
Illustratively, it when computer program instructions are run by processor before the step S210 of used execution, calculates Machine program instruction is also used to execute when being run by processor:Export the 4th acquisition prompt information, wherein the 4th acquisition prompt information For prompting face face image collecting device to be verified and close to image collecting device.
Illustratively, the output the 4th of used execution when computer program instructions are run by processor acquires prompt information The step of include:Pass through one of speech form, image format and written form or the 4th acquisition prompt information of a variety of outputs.
In addition, according to embodiments of the present invention, additionally providing a kind of storage medium, storing program on said storage Instruction, when described program instruction is run by computer or processor for executing the living body verification method of the embodiment of the present invention Corresponding steps, and for realizing the corresponding module in living body according to an embodiment of the present invention verifying device.The storage medium It such as may include the storage card of smart phone, the storage unit of tablet computer, the hard disk of personal computer, read-only memory (ROM), Erasable Programmable Read Only Memory EPROM (EPROM), portable compact disc read-only memory (CD-ROM), USB storage, Or any combination of above-mentioned storage medium.
In one embodiment, described program instruction can make computer or place when being run by computer or processor Reason device realizes each functional module of living body verifying device according to an embodiment of the present invention, and/or can execute according to this The living body verification method of inventive embodiments.
In one embodiment, described program instruction is at runtime for executing following steps:Step S210:Judge to be tested Whether Image Acquisition condition of witness's face in the image of image acquisition device face to be verified meets preset requirement, In, Image Acquisition condition includes face to be verified in position, posture and the size in the image of image acquisition device It is one or more;Step S220:In the case where the Image Acquisition condition of face to be verified meets preset requirement, obtains image and adopt Acquisition means acquire the facial image of face to be verified;And step S230:Judge whether face to be verified leads to based on facial image Experience of making a living is demonstrate,proved.
Illustratively, the used step S210 executed includes program instruction at runtime:Image collecting device is obtained to adopt Collect the realtime graphic of face to be verified;One face preview area of real-time display, and shown in face preview area in real time real-time The image section of image and face preview area position consistency;According to Image Acquisition item of the face to be verified in realtime graphic Part, real-time display text prompt information, text prompt information for prompting face to be verified adjustment Image Acquisition condition so that Image Acquisition condition meets preset requirement;And whether face is fallen into according at least to position of the face to be verified in realtime graphic Preview area limited range, determines whether the Image Acquisition condition of face to be verified meets preset requirement.
Illustratively, the program instruction used image according to face to be verified in realtime graphic executed at runtime The step of acquisition condition, real-time display text prompt information includes one or more in following item:When face to be verified does not go out When in present realtime graphic, output character prompt information, to prompt face movement to be verified so that face to be verified appears in reality When image in;When position of the face to be verified in realtime graphic shifts relative to face preview area, output character Prompt information, to prompt face to be verified mobile to the direction opposite with offset direction.
Illustratively, Image Acquisition condition further includes face to be verified in the fog-level and realtime graphic of realtime graphic The occlusion state at face position, the program instruction used figure according to face to be verified in realtime graphic executed at runtime The step of picture acquisition condition, real-time display text prompt information includes one or more in following item:When the mould of realtime graphic When paste degree is more than preset Fuzzy Threshold, output character prompt information, to prompt user to wipe image collecting device;When to be tested Posture of witness's face in realtime graphic is output character prompt information, to prompt face to be verified to bow when raising up;When to be tested When posture of witness's face in realtime graphic is sagging, output character prompt information, to prompt face to be verified to come back;When to be tested When posture of witness's face in realtime graphic is inclination to the left or to the right, output character prompt information, to prompt face to be verified Face front;When size of the face to be verified in realtime graphic is less than first threshold, output character prompt information, with prompt Face to be verified is close to image collecting device;When size of the face to be verified in realtime graphic is greater than second threshold, output Text prompt information, to prompt face to be verified far from image collecting device;It is specific when face to be verified in realtime graphic There are when shelter on face position, output character prompt information, to prompt face exposure to be verified Given Face position.
Illustratively, text prompt information is shown above face preview area.
Illustratively, the used step S210 executed includes program instruction at runtime:Image collecting device is obtained to adopt Collect the realtime graphic of face to be verified;One target site region of real-time display, and face to be verified in realtime graphic is exported in real time The image section at place is for showing;And whether judge position of the Given Face position of face to be verified in realtime graphic Fall into target site region, if it is, determine that the Image Acquisition condition of face to be verified meets preset requirement, otherwise determine to The Image Acquisition condition of verifying face is unsatisfactory for preset requirement.
Illustratively, the used step S210 executed includes program instruction at runtime:Image collecting device is obtained to adopt Collect the realtime graphic of face to be verified;According to Image Acquisition condition real-time display of the face to be verified in realtime graphic follow to Verify the simulation human face region of face variation, wherein face to be verified is shown in simulation human face region;Real-time display is for referring to Show the target human face region of face alignment to be verified;And judge simulate human face region whether with target face region alignment, such as Fruit is, it is determined that the Image Acquisition condition of face to be verified meets preset requirement, otherwise determines the Image Acquisition of face to be verified Condition is unsatisfactory for preset requirement.
Illustratively, program instruction at runtime it is used execute judge to simulate human face region whether with target face area Domain be aligned the step of include:If simulation human face region is located in target human face region and simulates human face region in realtime graphic Middle proportion is greater than the first preset ratio, it is determined that simulation human face region and target face region alignment;If simulating face Region is not in target human face region or simulation human face region proportion in realtime graphic is default no more than first Ratio, it is determined that simulation human face region not with target face region alignment.
Illustratively, program instruction is also used to execute at runtime:If it is shared in realtime graphic to simulate human face region Ratio is not more than the first preset ratio, then the first acquisition of output in real time prompt information, to prompt face to be verified and Image Acquisition Device is close.
Illustratively, program instruction at runtime it is used execute judge to simulate human face region whether with target face area Domain be aligned the step of include:If simulation human face region is located in target human face region and simulates human face region in target face Proportion is greater than the second preset ratio in region, it is determined that simulation human face region and target face region alignment;If simulation Human face region is not in target human face region or simulation human face region proportion in target human face region is not more than Second preset ratio, it is determined that simulation human face region not with target face region alignment.
Illustratively, program instruction is also used to execute at runtime:If simulating human face region in target human face region Proportion is not more than the second preset ratio, then the second acquisition of output in real time prompt information, to prompt face and image to be verified Acquisition device is close.
Illustratively, program instruction is also used to execute at runtime:Real-time judge simulates human face region and target face area Relative positional relationship between domain;And export third acquisition prompt information in real time based on relative positional relationship, to prompt to change Relative positional relationship is so that simulation human face region and target human face region are close.
Illustratively, during image acquisition device facial image, program instruction is also used to hold at runtime Row:Brightness control instruction is exported, the brightness that brightness control instruction is used to control for showing the display screen of face to be verified is One of lower list:Greater than preset luminance threshold, reach maximum value and Strength Changes based on environment light.
Illustratively, facial image includes one that image collecting device acquires face to be verified under the irradiation of detection light Or multiple light images, the used step S230 executed includes program instruction at runtime:Step S332:Based on witness to be tested The reflective character that face is showed in one or more light images determines whether face to be verified belongs to living body, to obtain light According to living body verification result;And step S334:At least determine whether face to be verified passes through work based on illumination living body verification result Experience card.
Illustratively, the used step S220 executed includes program instruction at runtime:If face to be verified is being worked as Image Acquisition condition in preceding image meets preset requirement, then exports detection light control instruction, for controlling light source to be verified Object emits detection light, obtains the image acquired after present image to obtain one or more light images.
Illustratively, the used step S220 executed includes program instruction at runtime:If schemed obtaining currently During the image acquired as after is to obtain one or more light images, mobile and moving distance occurs for face to be verified More than allowed band, then return step S210.
Illustratively, before the program instruction at runtime used step S334 executed, program instruction is at runtime It is also used to execute:Step S440:Output action instruction, wherein action command is used to indicate face to be verified and executes corresponding move Make;Step S450:Obtain the motion images of image acquisition device face to be verified, wherein facial image further includes movement Image;Step S460:Movement performed by face to be verified is detected based on motion images;And step S470:It is examined according to movement It surveys result and action command determines whether face to be verified belongs to living body, to obtain action live body verification result;Computer program Instruction when being run by processor the step S334 of used execution include:Based on illumination living body verification result and action live experience card As a result determine whether face to be verified is verified by living body.
Illustratively, the used step S470 executed includes program instruction at runtime:If based on no more than the In the period of one preset time motion images collected detect it is being executed as face to be verified, with indicated by action command The movement kept strokes, it is determined that face to be verified belongs to living body, if being based on the movement collected in the first preset time The movement kept strokes indicated by executed as face to be verified and action command is not detected in image, it is determined that be verified Face is not belonging to living body.
Illustratively, simultaneously with step S440, program instruction is also used to execute at runtime:Output prompts at the first time Information, first time prompt information include count down information corresponding with the first preset time.
Illustratively, it is being run before the program instruction at runtime used step S332 executed or in program instruction When used execution step S332 and step S334 during, program instruction is also used to execute at runtime:Output second Time prompting information, wherein the second time prompting information is for prompting face to be verified to remain stationary in the second preset time.
Illustratively, the second time prompting information includes count down information corresponding with the second preset time.
Illustratively, before the program instruction at runtime used step S210 executed, program instruction is at runtime It is also used to execute:Export the 4th acquisition prompt information, wherein the 4th acquisition prompt information is for prompting face face figure to be verified As acquisition device and close to image collecting device.
Illustratively, program instruction includes the step of the used output the 4th executed acquires prompt information at runtime: Pass through one of speech form, image format and written form or the 4th acquisition prompt information of a variety of outputs.
Each module in living body verifying system according to an embodiment of the present invention can pass through reality according to an embodiment of the present invention The processor computer program instructions that store in memory of operation of the electronic equipment of living body verifying are applied to realize, or can be with The computer instruction stored in the computer readable storage medium of computer program product according to an embodiment of the present invention is counted Calculation machine is realized when running.
Although describing example embodiment by reference to attached drawing here, it should be understood that above example embodiment are only exemplary , and be not intended to limit the scope of the invention to this.Those of ordinary skill in the art can carry out various changes wherein And modification, it is made without departing from the scope of the present invention and spiritual.All such changes and modifications are intended to be included in appended claims Within required the scope of the present invention.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed The scope of the present invention.
In several embodiments provided herein, it should be understood that disclosed device and method can pass through it Its mode is realized.For example, apparatus embodiments described above are merely indicative, for example, the division of the unit, only Only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components can be tied Another equipment is closed or is desirably integrated into, or some features can be ignored or not executed.
In the instructions provided here, numerous specific details are set forth.It is to be appreciated, however, that implementation of the invention Example can be practiced without these specific details.In some instances, well known method, structure is not been shown in detail And technology, so as not to obscure the understanding of this specification.
Similarly, it should be understood that in order to simplify the present invention and help to understand one or more of the various inventive aspects, To in the description of exemplary embodiment of the present invention, each feature of the invention be grouped together into sometimes single embodiment, figure, Or in descriptions thereof.However, the method for the invention should not be construed to reflect following intention:It is i.e. claimed The present invention claims features more more than feature expressly recited in each claim.More precisely, such as corresponding power As sharp claim reflects, inventive point is that the spy of all features less than some disclosed single embodiment can be used Sign is to solve corresponding technical problem.Therefore, it then follows thus claims of specific embodiment are expressly incorporated in this specific Embodiment, wherein each, the claims themselves are regarded as separate embodiments of the invention.
It will be understood to those skilled in the art that any combination pair can be used other than mutually exclusive between feature All features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so disclosed any method Or all process or units of equipment are combined.Unless expressly stated otherwise, this specification (is wanted including adjoint right Ask, make a summary and attached drawing) disclosed in each feature can be replaced with an alternative feature that provides the same, equivalent, or similar purpose.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments In included certain features rather than other feature, but the combination of the feature of different embodiments mean it is of the invention Within the scope of and form different embodiments.For example, in detail in the claims, embodiment claimed it is one of any Can in any combination mode come using.
Various component embodiments of the invention can be implemented in hardware, or to run on one or more processors Software module realize, or be implemented in a combination thereof.It will be understood by those of skill in the art that can be used in practice Microprocessor or digital signal processor (DSP) realize some moulds in living body verifying device according to an embodiment of the present invention The some or all functions of block.The present invention is also implemented as a part or complete for executing method as described herein The program of device (for example, computer program and computer program product) in portion.It is such to realize that program of the invention can store On a computer-readable medium, it or may be in the form of one or more signals.Such signal can be from internet Downloading obtains on website, is perhaps provided on the carrier signal or is provided in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and ability Field technique personnel can be designed alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference symbol between parentheses should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not Element or step listed in the claims.Word "a" or "an" located in front of the element does not exclude the presence of multiple such Element.The present invention can be by means of including the hardware of several different elements and being come by means of properly programmed computer real It is existing.In the unit claims listing several devices, several in these devices can be through the same hardware branch To embody.The use of word first, second, and third does not indicate any sequence.These words can be explained and be run after fame Claim.
The above description is merely a specific embodiment or to the explanation of specific embodiment, protection of the invention Range is not limited thereto, and anyone skilled in the art in the technical scope disclosed by the present invention, can be easily Expect change or replacement, should be covered by the protection scope of the present invention.Protection scope of the present invention should be with claim Subject to protection scope.

Claims (26)

1. a kind of living body verification method, including:
Step S210:Judge the Image Acquisition in the image of face to be verified face to be verified described in the image acquisition device Whether condition meets preset requirement, wherein described image acquisition condition includes that the face to be verified is filled in described image acquisition It sets one or more in position, posture and the size in the image of acquisition;
Step S220:In the case where the described image acquisition condition of the face to be verified meets the preset requirement, obtain Described image acquisition device acquires the facial image of the face to be verified;And
Step S230:Judge the face to be verified whether by living body verifying based on the facial image.
2. the method for claim 1, wherein the step S210 includes:
Obtain the realtime graphic that described image acquisition device acquires the face to be verified;
One face preview area of real-time display, and the realtime graphic and the people are shown in the face preview area in real time The image section of face preview area position consistency;
According to described image acquisition condition of the face to be verified in the realtime graphic, real-time display text prompt letter Breath, the text prompt information is for prompting the face adjustment described image acquisition condition to be verified so that described image is adopted Collection condition meets the preset requirement;And
It is limited according at least to whether position of the face to be verified in the realtime graphic falls into the face preview area Fixed range, determines whether the described image acquisition condition of the face to be verified meets the preset requirement.
3. method according to claim 2, wherein it is described according to the face to be verified in the realtime graphic described in Image Acquisition condition, real-time display text prompt information include one or more in following item:
When the face to be verified does not appear in the realtime graphic, the text prompt information is exported, described in prompt Face movement to be verified is so that the face to be verified appears in the realtime graphic;
It is defeated when position of the face to be verified in the realtime graphic shifts relative to the face preview area The text prompt information out, to prompt the face to be verified mobile to the direction opposite with offset direction.
4. method according to claim 2, wherein described image acquisition condition further includes the fog-level of the realtime graphic With the occlusion state at the face position of face to be verified described in the realtime graphic, it is described according to the face to be verified in institute The described image acquisition condition in realtime graphic is stated, real-time display text prompt information includes one or more in following item:
When the fog-level of the realtime graphic is more than preset Fuzzy Threshold, the text prompt information is exported, with prompt User wipes described image acquisition device;
When posture of the face to be verified in the realtime graphic is to raise up, the text prompt information is exported, to mention Show that the face to be verified is bowed;
When posture of the face to be verified in the realtime graphic is sagging, the text prompt information is exported, to mention Show that the face to be verified comes back;
When posture of the face to be verified in the realtime graphic is inclination to the left or to the right, the text prompt is exported Information, to prompt the face to be verified to face front;
When size of the face to be verified in the realtime graphic is less than first threshold, the text prompt letter is exported Breath, to prompt the face to be verified close to described image acquisition device;
When size of the face to be verified in the realtime graphic is greater than second threshold, the text prompt letter is exported Breath, to prompt the face to be verified far from described image acquisition device;
When, there are when shelter, exporting the text on the Given Face position of the face to be verified described in the realtime graphic Prompt information, to prompt the face exposure to be verified Given Face position.
5. method according to claim 2, wherein the text prompt information is shown above the face preview area.
6. the method for claim 1, wherein the step S210 includes:
Obtain the realtime graphic that described image acquisition device acquires the face to be verified;
One target site region of real-time display, and the image portion where face to be verified described in the realtime graphic is exported in real time Divide for showing;And
Judge whether position of the Given Face position of the face to be verified in the realtime graphic falls into the target portion Otherwise position region determines if it is, determining that the described image acquisition condition of the face to be verified meets the preset requirement The described image acquisition condition of the face to be verified is unsatisfactory for the preset requirement.
7. the method for claim 1, wherein the step S210 includes:
Obtain the realtime graphic that described image acquisition device acquires the face to be verified;
It is followed according to described image acquisition condition real-time display of the face to be verified in the realtime graphic described to be tested The simulation human face region of witness's face variation, wherein the face to be verified is shown in the simulation human face region;
Real-time display is used to indicate the target human face region of the face alignment to be verified;And
Judge the simulation human face region whether with the target face region alignment, if it is, determining the witness to be tested The described image acquisition condition of face meets the preset requirement, otherwise determines the described image acquisition condition of the face to be verified It is unsatisfactory for the preset requirement.
8. the method for claim 7, wherein it is described judge the simulation human face region whether with target face area Domain is aligned:
If the simulation human face region is located in the target human face region and the simulation human face region is described real-time Proportion is greater than the first preset ratio in image, it is determined that the simulation human face region and the target face region alignment;
If the simulation human face region is not in the target human face region or the simulation human face region is described In realtime graphic proportion be not more than first preset ratio, it is determined that the simulation human face region not with the target person Face region alignment.
9. method according to claim 8, wherein the method also includes:
If simulation human face region proportion in the realtime graphic is not more than first preset ratio, in real time Output the first acquisition prompt information, to prompt the face to be verified and described image acquisition device close.
10. the method for claim 7, wherein it is described judge the simulation human face region whether with the target face Region alignment includes:
If the simulation human face region is located in the target human face region and the simulation human face region is in the target Proportion is greater than the second preset ratio in human face region, it is determined that the simulation human face region and the target human face region pair Together;If the simulation human face region is not in the target human face region or the simulation human face region is in the mesh Mark human face region in proportion be not more than second preset ratio, it is determined that the simulation human face region not with the target Human face region alignment.
11. method as claimed in claim 10, wherein the method also includes:
If simulation human face region proportion in the target human face region is not more than second preset ratio, The the second acquisition prompt information of output in real time, to prompt the face to be verified and described image acquisition device close.
12. the method as described in claim 9 or 11, wherein the method also includes:
Relative positional relationship between simulation human face region and the target human face region described in real-time judge;And
Export third acquisition prompt information in real time based on the relative positional relationship, with prompt change the relative positional relationship with So that the simulation human face region and the target human face region are close.
13. the method for claim 1, wherein during described image acquisition device acquires the facial image, The method also includes:
Brightness control instruction is exported, the brightness control instruction is used to control the display screen for showing the face to be verified Brightness be one of lower list:Greater than preset luminance threshold, reach maximum value and Strength Changes based on environment light.
14. the method for claim 1, wherein the facial image includes described image acquisition device in detection light One or more light images of the lower acquisition of the irradiation face to be verified, the step S230 include:
Step S332:The reflective character showed in one or more of light images based on the face to be verified is true Whether the fixed face to be verified belongs to living body, to obtain illumination living body verification result;And
Step S334:At least determine the face to be verified whether by living body verifying based on the illumination living body verification result.
15. method as claimed in claim 14, wherein the step S220 includes:
If Image Acquisition condition of the face to be verified in present image meets the preset requirement, detection light is exported Control instruction emits the detection light to the object to be verified for controlling light source, and acquisition is adopted after the present image The image of collection is to obtain one or more of light images.
16. method as claimed in claim 15, wherein the step S220 includes:
If obtaining the process of one or more of light images in the image that acquisition acquires after the present image In, it is more than allowed band that mobile and moving distance, which occurs, for the face to be verified, then returns to the step S210.
17. method as claimed in claim 14, wherein
Before the step S334, the method also includes:
Step S440:Output action instruction, wherein the action command is used to indicate the face to be verified and executes corresponding move Make;
Step S450:Described image acquisition device acquires the motion images of the face to be verified, wherein the facial image is also Including the motion images;
Step S460:Movement performed by the face to be verified is detected based on the motion images;And
Step S470:Determine whether the face to be verified belongs to living body according to motion detection result and the action command, with Obtain action live body verification result;
The step S334 includes:
Determine whether the face to be verified passes through based on the illumination living body verification result and the action live body verification result Living body verifying.
18. method as claimed in claim 17, wherein the step S470 includes:
If detected based on the motion images collected within the period no more than the first preset time by described to be tested The movement kept strokes indicated by witness's face the executes and action command, it is determined that the face to be verified belongs to work Body is held if be not detected based on the motion images collected in first preset time by the face to be verified The movement kept strokes indicated by the capable and action command, it is determined that the face to be verified is not belonging to living body.
19. method as claimed in claim 18, wherein simultaneously with the step S440, the method also includes:
Export first time prompt information, the first time prompt information include it is corresponding with first preset time fall Clocking information.
20. method as claimed in claim 14, wherein before the step S332 or executing the step S332 and institute During stating step S334, the living body verification method further includes:
Export the second time prompting information, wherein the second time prompting information is for prompting the face to be verified the It is remained stationary in two preset times.
21. method as claimed in claim 20, wherein the second time prompting information includes and second preset time Corresponding count down information.
22. the method for claim 1, wherein before the step S210, the method also includes:
Export the 4th acquisition prompt information, wherein the 4th acquisition prompt information is for prompting the face face to be verified Described image acquisition device and close described image acquisition device.
23. method as claimed in claim 22, wherein the output the 4th acquires prompt information and includes:By speech form, One of image format and written form or a variety of outputs the 4th acquisition prompt information.
24. a kind of living body verifies system, including image collecting device, processor and memory, wherein described image acquisition device For acquiring image for the face to be verified, computer program instructions are stored in memory, the computer program refers to It enables when being run by the processor for executing following steps:
Step S210:Judge the Image Acquisition in the image of face to be verified face to be verified described in the image acquisition device Whether condition meets preset requirement, wherein described image acquisition condition includes that the face to be verified is filled in described image acquisition It sets one or more in position, posture and the size in the image of acquisition;
Step S220:In the case where the described image acquisition condition of the face to be verified meets the preset requirement, obtain Described image acquisition device acquires the facial image of the face to be verified;And
Step S230:Judge the face to be verified whether by living body verifying based on the facial image.
25. a kind of storage medium stores program instruction on said storage, described program instruction is at runtime for holding Row following steps:
Step S210:Judge the Image Acquisition in the image of face to be verified face to be verified described in the image acquisition device Whether condition meets preset requirement, wherein described image acquisition condition includes that the face to be verified is filled in described image acquisition It sets one or more in position, posture and the size in the image of acquisition;
Step S220:In the case where the described image acquisition condition of the face to be verified meets the preset requirement, obtain Described image acquisition device acquires the facial image of the face to be verified;And
Step S230:Judge the face to be verified whether by living body verifying based on the facial image.
26. a kind of living body verifies device, including:
Condition judgment module, in the image for judging face to be verified face to be verified described in the image acquisition device Whether Image Acquisition condition meets preset requirement, wherein described image acquisition condition includes the face to be verified in the figure It is one or more in the position in image, posture and the size acquired as acquisition device;
Facial image obtains module, for meeting the preset requirement in the described image acquisition condition of the face to be verified In the case of, obtain the facial image that described image acquisition device acquires the face to be verified;And
Living body is verified determining module, for judging whether the face to be verified is tested by living body based on the facial image Card.
CN201710518028.8A 2016-12-15 2017-06-29 Living body verification method, device and system and storage medium Pending CN108875473A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201710518028.8A CN108875473A (en) 2017-06-29 2017-06-29 Living body verification method, device and system and storage medium
US15/840,863 US10796178B2 (en) 2016-12-15 2017-12-13 Method and device for face liveness detection

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710518028.8A CN108875473A (en) 2017-06-29 2017-06-29 Living body verification method, device and system and storage medium

Publications (1)

Publication Number Publication Date
CN108875473A true CN108875473A (en) 2018-11-23

Family

ID=64325396

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710518028.8A Pending CN108875473A (en) 2016-12-15 2017-06-29 Living body verification method, device and system and storage medium

Country Status (1)

Country Link
CN (1) CN108875473A (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109639664A (en) * 2018-12-06 2019-04-16 上海中信信息发展股份有限公司 Login validation method, apparatus and system
CN109766849A (en) * 2019-01-15 2019-05-17 深圳市凯广荣科技发展有限公司 A kind of biopsy method, detection device and self-help terminal equipment
CN109816521A (en) * 2019-01-31 2019-05-28 中国银行股份有限公司 A kind of banking processing method, apparatus and system
CN109859718A (en) * 2018-12-28 2019-06-07 维沃移动通信有限公司 Screen brightness regulation method and terminal device
CN111179569A (en) * 2020-03-19 2020-05-19 许扬杰 Face detection control system and application thereof
CN111383638A (en) * 2018-12-28 2020-07-07 上海寒武纪信息科技有限公司 Signal processing device, signal processing method and related product
CN112131365A (en) * 2020-09-22 2020-12-25 平安科技(深圳)有限公司 Data processing method, device, equipment and medium
WO2021000415A1 (en) * 2019-07-03 2021-01-07 平安科技(深圳)有限公司 Method and device for live user detection, computer device, and storage medium
CN112287792A (en) * 2020-10-22 2021-01-29 深圳前海微众银行股份有限公司 Method and device for collecting face image and electronic equipment
CN112764850A (en) * 2021-01-07 2021-05-07 浙江大华技术股份有限公司 Method and device for displaying access control verification progress
CN114596638A (en) * 2020-11-30 2022-06-07 华为技术有限公司 Face living body detection method, device and storage medium
CN114613018A (en) * 2022-03-23 2022-06-10 Oppo广东移动通信有限公司 Living body detection method, living body detection device, storage medium and electronic equipment
CN117523684A (en) * 2022-07-27 2024-02-06 腾讯科技(深圳)有限公司 Image acquisition method, device, computer equipment and storage medium

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102254164A (en) * 2011-08-04 2011-11-23 蔡翔 Face recognition method with prompt function
CN102622588A (en) * 2012-03-08 2012-08-01 无锡数字奥森科技有限公司 Dual-certification face anti-counterfeit method and device
CN103678984A (en) * 2013-12-20 2014-03-26 湖北微模式科技发展有限公司 Method for achieving user authentication by utilizing camera
CN104104867A (en) * 2014-04-28 2014-10-15 三星电子(中国)研发中心 Method for controlling image photographing device for photographing and device thereof
CN104766063A (en) * 2015-04-08 2015-07-08 宁波大学 Living body human face identifying method
CN104881632A (en) * 2015-04-28 2015-09-02 南京邮电大学 Hyperspectral face recognition method
CN105117695A (en) * 2015-08-18 2015-12-02 北京旷视科技有限公司 Living body detecting device and method
CN105160289A (en) * 2015-07-03 2015-12-16 深圳市金立通信设备有限公司 Face identification method and terminal
CN105389553A (en) * 2015-11-06 2016-03-09 北京汉王智远科技有限公司 Living body detection method and apparatus
CN105631439A (en) * 2016-02-18 2016-06-01 北京旷视科技有限公司 Human face image collection method and device
CN106557726A (en) * 2015-09-25 2017-04-05 北京市商汤科技开发有限公司 A kind of band is mourned in silence the system for face identity authentication and its method of formula In vivo detection

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102254164A (en) * 2011-08-04 2011-11-23 蔡翔 Face recognition method with prompt function
CN102622588A (en) * 2012-03-08 2012-08-01 无锡数字奥森科技有限公司 Dual-certification face anti-counterfeit method and device
CN103678984A (en) * 2013-12-20 2014-03-26 湖北微模式科技发展有限公司 Method for achieving user authentication by utilizing camera
CN104104867A (en) * 2014-04-28 2014-10-15 三星电子(中国)研发中心 Method for controlling image photographing device for photographing and device thereof
CN104766063A (en) * 2015-04-08 2015-07-08 宁波大学 Living body human face identifying method
CN104881632A (en) * 2015-04-28 2015-09-02 南京邮电大学 Hyperspectral face recognition method
CN105160289A (en) * 2015-07-03 2015-12-16 深圳市金立通信设备有限公司 Face identification method and terminal
CN105117695A (en) * 2015-08-18 2015-12-02 北京旷视科技有限公司 Living body detecting device and method
CN106557726A (en) * 2015-09-25 2017-04-05 北京市商汤科技开发有限公司 A kind of band is mourned in silence the system for face identity authentication and its method of formula In vivo detection
CN105389553A (en) * 2015-11-06 2016-03-09 北京汉王智远科技有限公司 Living body detection method and apparatus
CN105631439A (en) * 2016-02-18 2016-06-01 北京旷视科技有限公司 Human face image collection method and device

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109639664A (en) * 2018-12-06 2019-04-16 上海中信信息发展股份有限公司 Login validation method, apparatus and system
CN109859718A (en) * 2018-12-28 2019-06-07 维沃移动通信有限公司 Screen brightness regulation method and terminal device
CN111383638A (en) * 2018-12-28 2020-07-07 上海寒武纪信息科技有限公司 Signal processing device, signal processing method and related product
CN109766849B (en) * 2019-01-15 2023-06-20 深圳市凯广荣科技发展有限公司 Living body detection method, detection device and self-service terminal equipment
CN109766849A (en) * 2019-01-15 2019-05-17 深圳市凯广荣科技发展有限公司 A kind of biopsy method, detection device and self-help terminal equipment
CN109816521A (en) * 2019-01-31 2019-05-28 中国银行股份有限公司 A kind of banking processing method, apparatus and system
WO2021000415A1 (en) * 2019-07-03 2021-01-07 平安科技(深圳)有限公司 Method and device for live user detection, computer device, and storage medium
CN111179569A (en) * 2020-03-19 2020-05-19 许扬杰 Face detection control system and application thereof
CN112131365A (en) * 2020-09-22 2020-12-25 平安科技(深圳)有限公司 Data processing method, device, equipment and medium
CN112287792A (en) * 2020-10-22 2021-01-29 深圳前海微众银行股份有限公司 Method and device for collecting face image and electronic equipment
WO2022083479A1 (en) * 2020-10-22 2022-04-28 深圳前海微众银行股份有限公司 Method and apparatus for capturing face image, and electronic device
CN114596638A (en) * 2020-11-30 2022-06-07 华为技术有限公司 Face living body detection method, device and storage medium
CN112764850A (en) * 2021-01-07 2021-05-07 浙江大华技术股份有限公司 Method and device for displaying access control verification progress
CN114613018A (en) * 2022-03-23 2022-06-10 Oppo广东移动通信有限公司 Living body detection method, living body detection device, storage medium and electronic equipment
CN114613018B (en) * 2022-03-23 2024-08-23 Oppo广东移动通信有限公司 Living body detection method, living body detection device, storage medium and electronic equipment
CN117523684A (en) * 2022-07-27 2024-02-06 腾讯科技(深圳)有限公司 Image acquisition method, device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
CN108875473A (en) Living body verification method, device and system and storage medium
US10380419B2 (en) Systems and methods for panning a display of a wearable device
US20170316264A1 (en) Eye-tracking enabled wearable devices
US10796178B2 (en) Method and device for face liveness detection
US12015818B2 (en) Video distribution system for live distributing video containing animation of character object generated based on motion of distributor user, video distribution method, and storage medium storing thereon video distribution program
CN108629260A (en) Live body verification method and device and storage medium
US10573085B2 (en) Reality mixer for mixed reality
TW202004421A (en) Eye tracking with prediction and late update to GPU for fast foveated rendering in an HMD environment
TWI549505B (en) Comprehension and intent-based content for augmented reality displays
CN105393192B (en) Netted hierarchical menu for near-eye display shows configuration
CN108875452A (en) Face identification method, device, system and computer-readable medium
CN103913841B (en) The control method of display device and display device
EP3449337A1 (en) Eye-tracking enabled wearable devices
CN106529512B (en) Living body faces verification method and device
CN107787472A (en) For staring interactive hovering behavior in virtual reality
CN105518708A (en) Method and equipment for verifying living human face, and computer program product
CN108875546A (en) Face auth method, system and storage medium
CN108229450A (en) The method and living creature characteristic recognition system of light filling are carried out based on screen display
CN109191802A (en) Method, apparatus, system and storage medium for sight protectio prompt
US20210312167A1 (en) Server device, terminal device, and display method for controlling facial expressions of a virtual character
CN108875468A (en) Biopsy method, In vivo detection system and storage medium
CN106408646A (en) Instant light color rendering system and method used for play scenes
US20200034606A1 (en) Facial mirroring in virtual and augmented reality
US20210409617A1 (en) Displaying a three-dimensional image of a user using an array of infrared illuminators

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