WO2019127262A1 - Cloud end-based human face in vivo detection method, electronic device and program product - Google Patents

Cloud end-based human face in vivo detection method, electronic device and program product Download PDF

Info

Publication number
WO2019127262A1
WO2019127262A1 PCT/CN2017/119543 CN2017119543W WO2019127262A1 WO 2019127262 A1 WO2019127262 A1 WO 2019127262A1 CN 2017119543 W CN2017119543 W CN 2017119543W WO 2019127262 A1 WO2019127262 A1 WO 2019127262A1
Authority
WO
WIPO (PCT)
Prior art keywords
face
user
image
distance
human face
Prior art date
Application number
PCT/CN2017/119543
Other languages
French (fr)
Chinese (zh)
Inventor
刘兆祥
廉士国
王敏
Original Assignee
深圳前海达闼云端智能科技有限公司
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 深圳前海达闼云端智能科技有限公司 filed Critical 深圳前海达闼云端智能科技有限公司
Priority to PCT/CN2017/119543 priority Critical patent/WO2019127262A1/en
Priority to CN201780002701.0A priority patent/CN108124486A/en
Publication of WO2019127262A1 publication Critical patent/WO2019127262A1/en

Links

Images

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

Definitions

  • the present invention relates to the field of face detection technologies, and in particular, to a cloud-based method for detecting a living body of a living body, an electronic device, and a program product.
  • face recognition technology can directly acquire the camera through the camera. It is convenient and fast, but it also brings some information security issues, such as face photos or face videos. Deceive the face recognition system.
  • the embodiment of the present application provides a cloud-based human face detection method, an electronic device, and a program product, which are mainly used for blind navigation.
  • the embodiment of the present application provides a cloud-based method for detecting a living body of a human body, including:
  • each first face image is a living image, identifying whether there is a micro motion in the plurality of consecutive first face images;
  • an embodiment of the present application provides an electronic device, where the electronic device includes:
  • a memory one or more processors; a memory coupled to the processor via a communication bus; a processor configured to execute instructions in the memory; the storage medium having stored therein for performing the steps of the method of the first aspect of the claims instruction.
  • an embodiment of the present application provides a computer program product for use in conjunction with an electronic device including a display, the computer program product comprising a computer readable storage medium and a computer program mechanism embedded therein, the computer
  • the program mechanism includes instructions for performing the various steps in the method of the first aspect described above.
  • a plurality of first face images of the user are continuously collected, and after each first face image is a living image, whether there is a micro motion in the plurality of consecutive first face images, if there is a micro
  • the action confirms that the user's face is detected by the living body, and the living body detection is performed on the user through the living body recognition and the micro motion recognition, thereby effectively improving the accuracy of the face detection, and preventing the face recognition system from being passed through the face photo or the face video.
  • the behavior of the real person to distinguish the function of the real person dummy, to ensure information security.
  • FIG. 1 is a schematic flowchart of a cloud-based method for detecting a human face in a cloud according to an embodiment of the present application
  • FIG. 2 is a schematic diagram of a key feature part of a face in the embodiment of the present application.
  • FIG. 3 is a schematic structural diagram of a deep neural network for micro-expression recognition according to an embodiment of the present application.
  • FIG. 4 is a schematic flowchart of another cloud-based method for detecting a human face in the embodiment of the present application.
  • FIG. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
  • face recognition applications are more and more widely, but there is a core security problem in face recognition: face fraud, such as face recognition system can be deceived by face photo, face video or 3D face film.
  • the embodiment of the present application provides a cloud-based method for detecting a human face in vivo, which continuously collects a plurality of first face images of a user, and determines that each first face image is a living image, and identifies a plurality of consecutive first persons. Whether there is a micro-action in the face image. If there is a micro-action, it is confirmed that the user's face is detected by the living body, and the living body detection is performed on the user through the living body recognition and the micro-motion recognition, thereby effectively improving the accuracy of the face detection and preventing the person passing through.
  • the face photo or the face video deceives the behavior of the face recognition system to realize the function of distinguishing the real person dummy and ensure the information security.
  • the cloud-based method for detecting a human face in vivo includes:
  • intrusion methods for face recognition are usually printed photos including face images or face videos/mobile screens/computer screens/3D masks, etc. These invasive tools usually have characteristic differences from normal living faces.
  • this proposal first requires the distance between the user (such as the face) from the recognition device (such as the camera), and recognizes the difference between the features while keeping the camera and the face at an appropriate distance. .
  • Step 1 Acquire a second face image of the user.
  • the second face image is an image used by the user to adjust the distance, which is different from the image used for subsequent face recognition.
  • Step 2 Acquire a face area in the second face image.
  • step 3 the user distance is determined according to the face area.
  • the user distance may be determined according to the proportion of the face area occupying the second face image. It is also possible to extract the distance between the face preset parts from the face area, and determine the user distance according to the ratio of the distance to the width and height of the second face image.
  • Step 4 If the user distance matches the distance requirement, it is determined that the user meets the distance requirement.
  • Step 5 If the user distance does not match the distance requirement, the user is instructed to move to meet the distance requirement.
  • a prompt (such as a voice prompt or a text prompt) can be sent to the user to guide the user to adjust their position, manner, and the like.
  • step 1 to step 3 are performed again to determine whether the adjusted distance matches the distance requirement. If it matches, step 4 is performed again; otherwise, step 5 is performed again. This cycle until the user meets the distance requirement.
  • face detection is performed first, and a face area is obtained.
  • the distance of the face can be approximated according to the size of the face area and the proportion of the area in the image. If it is within the proper specific gravity range, it is considered to be within the optimal distance, otherwise the user is approached or away according to the magnitude of the ratio.
  • the 2D coordinates of the key points can be obtained, and then the 3D pose Euler angle and the 3D translation (T x , T y , T z ) of the face relative to the camera are obtained by the solvepnp algorithm, and the 3D distance is further obtained, and then judged. Is the distance within the proper range?
  • the posture of the user's face may be reminded (such as roll, pitch, yaw) according to the detection result of the position and posture described above, and the position in the 2D image is reminded ( Left, right, upper, lower, etc.).
  • the roll is rotated around the Z axis, also called the roll angle.
  • the pitch is rotated around the X axis, also known as the pitch angle.
  • Yaw is rotated around the Y axis, also called the yaw angle.
  • the user's continuous and multiple face images that is, the first face image
  • the first face image user performs the basis for the face detection of the user.
  • any of the first face images is a living image
  • any one of the first face images is stored in the image sequence.
  • the image sequence here is initially empty, and it is determined that a first face image is a living image, and the first face image is stored in the image sequence, and then whether the next face image of a certain frame is performed For the detection of the living image, if the next picture of a certain picture is a living body image, the next picture of a certain picture is stored in the image sequence, and the loop is repeated until all the first face images are subjected to the living body image detection. If a next non-living image of a certain piece is found during the detection, the face image in the image sequence is cleared at this time.
  • the process is terminated, the image sequence is cleared, and the face detection of the user does not pass.
  • non-living images including but not limited to: photos (such as print photos, photos on the phone screen, photos on the computer screen), videos (such as video on the phone screen, video on the computer screen), facial mask (such as 3D face mask).
  • photos such as print photos, photos on the phone screen, photos on the computer screen
  • videos such as video on the phone screen, video on the computer screen
  • facial mask such as 3D face mask
  • Filtering of a single image can be achieved by step 103.
  • the single image is classified and discriminated by a method of machine learning.
  • CNN Convolutional Neural Network
  • deep learning is used for classification and discrimination, such as using a very popular resnet classification network for classification and discrimination.
  • each first face image is classified and identified by using the successfully trained network model and weight. Which type of output probability is large, that is, which type can be considered, and the threshold can be set for further discrimination, for example.
  • the maximum probability is greater than a set value.
  • step 104 is performed to perform image sequence classification discrimination. If the classification results in other categories, the image sequence is cleared and the entire inspection process is restarted.
  • step 105 is performed.
  • the process is terminated, the image sequence is cleared, and the user's face biometric detection does not pass.
  • the recognition of the print photo/mobile phone screen/computer screen/3D face film including the face image or the face video can be realized, but only the recognition result is determined to determine whether the user face biometric detection still exists. The case of misjudgment.
  • the image sequence classification filtering is performed through step 104.
  • image sequence classification filtering is performed.
  • the image sequence is input into a deep neural network for classification and discrimination, and the output is two categories: normal face and abnormal face.
  • the deep neural network can be directly based on the 3D convolutional neural network, or a general 2D convolutional neural network, such as resnet, except that the network input is the stacked sequence image data, as shown in FIG.
  • the general resnet classification network input is 1 channel or 3 channels. After the image sequence is stacked, the color image is taken as an example, which is equivalent to inputting N*3 channel data.
  • N is the length of the image sequence of the input depth neural network, ie the number of first face images in the image sequence of the input depth neural network.
  • N is the number of all the first face images in the image sequence.
  • the 3D convolutional neural network or the 2D convolutional neural network can be trained. After the training is completed, the input image sequence is directly discriminated using the trained model and weight. Which category has a large output probability, which is the same type, and the threshold can also be set for further filtering.
  • the image sequence is directly input into the deep neural network for classification and discrimination, if the final output is a normal face, it is determined that there is a micro-action, and the step 105 is performed to perform the bio-detection, otherwise it is determined that there is no micro-action, the process is terminated, and the image sequence is cleared. The user's face is not detected by the living body, and the entire detection process is restarted.
  • the face distance detection is performed to remind the user and the camera to maintain a suitable distance for subsequent living body detection; then, a single face image is collected for classification, and it is judged to be a print photo/mobile screen/computer screen/3D face/normal face. Filtering abnormal faces; finally, sorting the sequence of consecutive pictures filtered by face to determine whether it is a real person.
  • a plurality of first face images of the user are continuously collected, and after each first face image is a living body image, whether there are micro motions in the plurality of consecutive first face images, if there is a micro action , to confirm that the user's face is detected by the living body, and the living body detection is performed on the user through the living body recognition and the micro motion recognition, thereby effectively improving the accuracy of the face detection, and preventing the face recognition system from being deceived by the face photo or the face video. Behavior, to achieve the function of distinguishing between real people and dummy, to ensure information security.
  • the embodiment of the present application further provides an electronic device.
  • the electronic device includes:
  • the storage medium stores instructions for performing the following steps:
  • each first face image is a living image, identifying whether there are micro actions in the plurality of consecutive first face images;
  • the method before continuously acquiring the plurality of first face images, the method further includes:
  • determining that the user meets the distance requirement includes:
  • determining the user distance according to the face area including:
  • the distance between the face preset parts is extracted from the face area, and the user distance is determined according to the ratio of the distance to the width and height of the second face image.
  • the method further includes:
  • the user is instructed to move to meet the distance requirement.
  • the method further includes:
  • any one of the first face images is determined to be a living image, any one of the first face images is stored in the image sequence; if any one of the first face images is determined If the image is not a live image, the process is terminated, the image sequence is cleared, and the user's face is not detected.
  • the non-living image includes: a photo, a video, a face film.
  • the micro-motions include micro-changes in the face organs, slight changes in the face muscles, and micro-movement of the faces.
  • the method further includes:
  • the process is terminated, and the first face image in the image sequence is cleared, and the user's face biometric detection does not pass.
  • a plurality of first face images of the user are continuously collected, and after each first face image is a living body image, whether there are micro motions in the plurality of consecutive first face images, if there is a micro action , to confirm that the user's face is detected by the living body, and the living body detection is performed on the user through the living body recognition and the micro motion recognition, thereby effectively improving the accuracy of the face detection, and preventing the face recognition system from being deceived by the face photo or the face video. Behavior, to achieve the function of distinguishing between real people and dummy, to ensure information security.
  • an embodiment of the present application further provides a computer program product for use in conjunction with an electronic device including a display, the computer program product comprising a computer readable storage medium and a computer program mechanism embedded therein,
  • the computer program mechanism includes instructions for performing the various steps described below:
  • each first face image is a living image, identifying whether there are micro actions in the plurality of consecutive first face images;
  • the method before continuously acquiring the plurality of first face images, the method further includes:
  • determining that the user meets the distance requirement includes:
  • determining the user distance according to the face area including:
  • the distance between the face preset parts is extracted from the face area, and the user distance is determined according to the ratio of the distance to the width and height of the second face image.
  • the method further includes:
  • the user is instructed to move to meet the distance requirement.
  • the method further includes:
  • any one of the first face images is determined to be a living image, any one of the first face images is stored in the image sequence; if any one of the first face images is determined If the image is not a live image, the process is terminated, the image sequence is cleared, and the user's face is not detected.
  • the non-living image includes: a photo, a video, a face film.
  • the micro-motions include micro-changes in the face organs, slight changes in the face muscles, and micro-movement of the faces.
  • the method further includes:
  • the process is terminated, and the first face image in the image sequence is cleared, and the user's face biometric detection does not pass.
  • a plurality of first face images of the user are continuously collected, and after each first face image is a living body image, whether there are micro motions in the plurality of consecutive first face images, if there is a micro action , to confirm that the user's face is detected by the living body, and the living body detection is performed on the user through the living body recognition and the micro motion recognition, thereby effectively improving the accuracy of the face detection, and preventing the face recognition system from being deceived by the face photo or the face video. Behavior, to achieve the function of distinguishing between real people and dummy, to ensure information security.
  • embodiments of the present application can be provided as a method, system, or computer program product.
  • the present application can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment in combination of software and hardware.
  • the application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.

Abstract

Provided are a cloud end-based human face in vivo detection method, an electronic device and a program product, wherein same are applied to the technical field of human face detection. The method comprises: consecutively collecting multiple first human face images of a user; recognizing whether there is a micro action in the multiple consecutive first human face images after it is determined that each of the first human face images is an in vivo image; and if there is a micro action, confirming that human face in vivo detection of the user is passed. According to the present invention, based on a cloud end, multiple first human face images of a user are consecutively collected; whether there is a micro action in the multiple consecutive first human face images is recognized after it is determined that each of the first human face images is an in vivo image; and if there is a micro action, it is confirmed that human face in vivo detection of the user is passed. By means of in vivo recognition and micro action recognition, human face in vivo detection is carried out on the user, thereby effectively improving the accuracy of human face in vivo detection, preventing the behavior of using a human face picture or a human face video to cheat a human face recognition system, realizing the function of distinguishing a real person from a dummy, and ensuring information security.

Description

基于云端的人脸活体检测方法、电子设备和程序产品Cloud-based human face detection method, electronic device and program product 技术领域Technical field
本申请涉及人脸检测技术领域,特别涉及一种基于云端的人脸活体检测方法、电子设备和程序产品。The present invention relates to the field of face detection technologies, and in particular, to a cloud-based method for detecting a living body of a living body, an electronic device, and a program product.
背景技术Background technique
随着深度学习技术的发展,人脸已经成为一种新的身份验证。With the development of deep learning technology, face has become a new type of authentication.
人脸识别技术与其他生物特征识别技术相比,通过摄像头直接获取,可以非接触的方式完成识别过程,方便快捷,但是也带来了一些信息安全问题,比如可以通过人脸照片或者人脸视频欺骗人脸识别系统。Compared with other biometric recognition technologies, face recognition technology can directly acquire the camera through the camera. It is convenient and fast, but it also brings some information security issues, such as face photos or face videos. Deceive the face recognition system.
发明内容Summary of the invention
本申请实施例提供了一种基于云端的人脸活体检测方法、电子设备和程序产品,主要用于盲人导航。The embodiment of the present application provides a cloud-based human face detection method, an electronic device, and a program product, which are mainly used for blind navigation.
第一方面,本申请实施例提供了一种基于云端的人脸活体检测方法,包括:In a first aspect, the embodiment of the present application provides a cloud-based method for detecting a living body of a human body, including:
连续采集用户的多张第一人脸图像;Collecting a plurality of first face images of the user continuously;
确定每张第一人脸图像均为活体图像后,识别所述多张连续第一人脸图像中是否存在微动作;After determining that each first face image is a living image, identifying whether there is a micro motion in the plurality of consecutive first face images;
若存在微动作,则确认所述用户人脸活体检测通过。If there is a micro motion, it is confirmed that the user's face is detected by the living body.
第二方面,本申请实施例提供了一种电子设备,所述电子设备包括:In a second aspect, an embodiment of the present application provides an electronic device, where the electronic device includes:
存储器,一个或多个处理器;存储器与处理器通过通信总线相连;处理器被配置为执行存储器中的指令;所述存储介质中存储有用于执行权利要求第一方面所述方法中各个步骤的指令。a memory, one or more processors; a memory coupled to the processor via a communication bus; a processor configured to execute instructions in the memory; the storage medium having stored therein for performing the steps of the method of the first aspect of the claims instruction.
第三方面,本申请实施例提供了一种与包括显示器的电子设备结合使 用的计算机程序产品,所述计算机程序产品包括计算机可读的存储介质和内嵌于其中的计算机程序机制,所述计算机程序机制包括用于执行上述第一方面所述方法中各个步骤的指令。In a third aspect, an embodiment of the present application provides a computer program product for use in conjunction with an electronic device including a display, the computer program product comprising a computer readable storage medium and a computer program mechanism embedded therein, the computer The program mechanism includes instructions for performing the various steps in the method of the first aspect described above.
有益效果如下:The benefits are as follows:
本申请实施例中,连续采集用户的多张第一人脸图像,确定每张第一人脸图像均为活体图像后,识别多张连续第一人脸图像中是否存在微动作,若存在微动作,则确认用户人脸活体检测通过,通过活体识别和微动作识别对用户进行人脸活体检测,有效提升人脸活体检测的准确性,防止通过人脸照片或者人脸视频欺骗人脸识别系统的行为,实现区分真人假人的功能,保证信息安全。In the embodiment of the present application, a plurality of first face images of the user are continuously collected, and after each first face image is a living image, whether there is a micro motion in the plurality of consecutive first face images, if there is a micro The action confirms that the user's face is detected by the living body, and the living body detection is performed on the user through the living body recognition and the micro motion recognition, thereby effectively improving the accuracy of the face detection, and preventing the face recognition system from being passed through the face photo or the face video. The behavior of the real person to distinguish the function of the real person dummy, to ensure information security.
附图说明DRAWINGS
下面将参照附图描述本申请的具体实施例,其中:Specific embodiments of the present application will be described below with reference to the accompanying drawings, in which:
图1为本申请实施例中的一种基于云端的人脸活体检测方法流程示意图;FIG. 1 is a schematic flowchart of a cloud-based method for detecting a human face in a cloud according to an embodiment of the present application;
图2为本申请实施例中的一种人脸关键特征部位示意图;2 is a schematic diagram of a key feature part of a face in the embodiment of the present application;
图3为本申请实施例中的一种用于微表情识别的深度神经网络结构示意图;FIG. 3 is a schematic structural diagram of a deep neural network for micro-expression recognition according to an embodiment of the present application; FIG.
图4为本申请实施例中的另一种基于云端的人脸活体检测方法流程示意图;4 is a schematic flowchart of another cloud-based method for detecting a human face in the embodiment of the present application;
图5为本申请实施例中的一种电子设备的结构示意图。FIG. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
具体实施方式Detailed ways
为了使本申请的技术方案及优点更加清楚明白,以下结合附图对本申请的示例性实施例进行进一步详细的说明,显然,所描述的实施例仅是本申请的一部分实施例,而不是所有实施例的穷举。并且在不冲突的情况下, 本申请中的实施例及实施例中的特征可以互相结合。The exemplary embodiments of the present application are further described in detail below with reference to the accompanying drawings, in which the embodiments described are only a part of the embodiments of the present application, but not all embodiments. An exhaustive example. And in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined with each other.
目前人脸识别应用越来越广泛,但是人脸识别存在一个核心安全问题:人脸欺诈,比如可以通过人脸照片、人脸视频或者3D脸膜欺骗人脸识别系统。At present, face recognition applications are more and more widely, but there is a core security problem in face recognition: face fraud, such as face recognition system can be deceived by face photo, face video or 3D face film.
为了解决上述人脸欺诈问题,提高人脸识别系统的安全性。本申请实施例提供了一种基于云端的人脸活体检测方法,连续采集用户的多张第一人脸图像,确定每张第一人脸图像均为活体图像后,识别多张连续第一人脸图像中是否存在微动作,若存在微动作,则确认用户人脸活体检测通过,通过活体识别和微动作识别对用户进行人脸活体检测,有效提升人脸活体检测的准确性,防止通过人脸照片或者人脸视频欺骗人脸识别系统的行为,实现区分真人假人的功能,保证信息安全。In order to solve the above-mentioned face fraud problem, the security of the face recognition system is improved. The embodiment of the present application provides a cloud-based method for detecting a human face in vivo, which continuously collects a plurality of first face images of a user, and determines that each first face image is a living image, and identifies a plurality of consecutive first persons. Whether there is a micro-action in the face image. If there is a micro-action, it is confirmed that the user's face is detected by the living body, and the living body detection is performed on the user through the living body recognition and the micro-motion recognition, thereby effectively improving the accuracy of the face detection and preventing the person passing through. The face photo or the face video deceives the behavior of the face recognition system to realize the function of distinguishing the real person dummy and ensure the information security.
参见图1,本实施例提供的基于云端的人脸活体检测方法,包括:Referring to FIG. 1 , the cloud-based method for detecting a human face in vivo according to the embodiment includes:
101,确定用户满足距离要求。101. Determine that the user meets the distance requirement.
人脸识别常用入侵手段通常为包含人脸图像或者人脸视频的打印照片/手机屏幕/电脑屏幕/3D脸膜等,这些入侵工具通常和正常的活体人脸存在特征上的差异。为了更好的识别该差异,本提案首先要对用户(如人脸)距识别装置(如摄像头)的距离进行要求,在保持摄像头和人脸在适当距离的基础上,对这些特征差异进行识别。Commonly used intrusion methods for face recognition are usually printed photos including face images or face videos/mobile screens/computer screens/3D masks, etc. These invasive tools usually have characteristic differences from normal living faces. In order to better identify the difference, this proposal first requires the distance between the user (such as the face) from the recognition device (such as the camera), and recognizes the difference between the features while keeping the camera and the face at an appropriate distance. .
确定用户满足距离要求的实现方案,包括但不限于:Determine the implementation of the user to meet the distance requirements, including but not limited to:
步骤1,获取用户的第二人脸图像。Step 1: Acquire a second face image of the user.
其中第二人脸图像为用户调距离用的图像,与后续人脸识别所用图像不同。The second face image is an image used by the user to adjust the distance, which is different from the image used for subsequent face recognition.
步骤2,获取第二人脸图像中的人脸区域。Step 2: Acquire a face area in the second face image.
步骤3,根据人脸区域确定用户距离。In step 3, the user distance is determined according to the face area.
具体的,可以根据人脸区域占第二人脸图像的比重,确定用户距离。 还可以从人脸区域中提取人脸预设部位之间的距离,根据距离与第二人脸图像的宽高的比值,确定用户距离。Specifically, the user distance may be determined according to the proportion of the face area occupying the second face image. It is also possible to extract the distance between the face preset parts from the face area, and determine the user distance according to the ratio of the distance to the width and height of the second face image.
步骤4,若用户距离与距离要求匹配,则确定用户满足距离要求。Step 4: If the user distance matches the distance requirement, it is determined that the user meets the distance requirement.
步骤5,若用户距离与距离要求不匹配,则指导用户进行移动,以满足距离要求。Step 5: If the user distance does not match the distance requirement, the user is instructed to move to meet the distance requirement.
具体的,可以向用户发送提示(如语音提示,或者文字提示),以指导用户调整其位置,仪态等。调整后,再次执行步骤1至步骤3,确定调整后的距离是否与距离要求匹配,若匹配则再次执行步骤4,否则,再次执行步骤5。如此循环,直至用户满足距离要求。Specifically, a prompt (such as a voice prompt or a text prompt) can be sent to the user to guide the user to adjust their position, manner, and the like. After the adjustment, step 1 to step 3 are performed again to determine whether the adjusted distance matches the distance requirement. If it matches, step 4 is performed again; otherwise, step 5 is performed again. This cycle until the user meets the distance requirement.
例如,本实施例进入执行时,先进行人脸检测,获得人脸区域。可以根据人脸区域的大小以及在图像中的区域比重近似估计人脸的距离,如果在合适的比重范围之内则认为在最佳距离内,否则根据比值的大小相应的提醒用户靠近或者远离。除此之外,还可以通过检测人脸一些关键特征部位(点),如图2所示,根据这些关键部位(点)的之间的距离与图像宽高的比值来判断远近,比如先检测两眼,在根据两眼中心的距离与图像宽的比值。For example, when the embodiment is executed, face detection is performed first, and a face area is obtained. The distance of the face can be approximated according to the size of the face area and the proportion of the area in the image. If it is within the proper specific gravity range, it is considered to be within the optimal distance, otherwise the user is approached or away according to the magnitude of the ratio. In addition, it is also possible to detect some key features (points) of the human face, as shown in Figure 2, according to the ratio of the distance between these key parts (points) and the width and height of the image to determine the distance, such as detecting first Both eyes are at a ratio of the distance from the center of the two eyes to the width of the image.
在计算用户距离时,可以获得关键点的2D坐标,然后通过solvepnp算法获得人脸相对摄像机的3D姿态欧拉角和3D平移(T x,T y,T z),进一步得到3D距离,然后判断距离是否在合适的范围之内。 When calculating the user distance, the 2D coordinates of the key points can be obtained, and then the 3D pose Euler angle and the 3D translation (T x , T y , T z ) of the face relative to the camera are obtained by the solvepnp algorithm, and the 3D distance is further obtained, and then judged. Is the distance within the proper range?
在判断距离是否在合适的范围之内以后,还可以根据上述的位置和姿态的检测结果对用户的脸的姿态进行提醒(如roll,pitch,yaw),以及在2D图像中的位置进行提醒(偏左,偏右,偏上,偏下等)。After judging whether the distance is within the appropriate range, the posture of the user's face may be reminded (such as roll, pitch, yaw) according to the detection result of the position and posture described above, and the position in the 2D image is reminded ( Left, right, upper, lower, etc.).
此处的用户提醒:可以语音提示,也可以在图像上以文字的形式提示。User reminder here: you can voice prompts, or you can prompt in the form of text on the image.
其中,roll是围绕Z轴旋转,也叫翻滚角。pitch是围绕X轴旋转,也叫做俯仰角。yaw是围绕Y轴旋转,也叫偏航角。Among them, the roll is rotated around the Z axis, also called the roll angle. The pitch is rotated around the X axis, also known as the pitch angle. Yaw is rotated around the Y axis, also called the yaw angle.
102,连续采集用户的多张第一人脸图像。102. Collect multiple first face images of the user continuously.
在确认用户满足距离要求之后,会采集该用户的连续、多张人脸图像,即第一人脸图像。此处的第一人脸图像用户对该用户进行人脸活体检测的依据。After confirming that the user meets the distance requirement, the user's continuous and multiple face images, that is, the first face image, are collected. Here, the first face image user performs the basis for the face detection of the user.
103,确定各张第一人脸图像是否为活体图像。103. Determine whether each first face image is a living image.
对于任一张第一人脸图像,For any first face image,
若确定任一张第一人脸图像为活体图像,则将任一张第一人脸图像存入图像序列中。If it is determined that any of the first face images is a living image, any one of the first face images is stored in the image sequence.
此处的图像序列,开始时为空,确定某张第一人脸图像为活体图像,会将该张第一人脸图像存入图像序列中,进而进行某张的下一张人脸图像是否为活体图像的检测,若某张的下一张为活体图像,则将某张的下一张存入图像序列中,如此循环,直至所有第一人脸图像均进行活体图像检测。若检测过程中发现某张的下一张非活体图像,此时将图像序列中的人脸图像清空。The image sequence here is initially empty, and it is determined that a first face image is a living image, and the first face image is stored in the image sequence, and then whether the next face image of a certain frame is performed For the detection of the living image, if the next picture of a certain picture is a living body image, the next picture of a certain picture is stored in the image sequence, and the loop is repeated until all the first face images are subjected to the living body image detection. If a next non-living image of a certain piece is found during the detection, the face image in the image sequence is cleared at this time.
若确定任一张第一人脸图像非活体图像,则终止流程,清空图像序列,该用户的人脸活体检测不通过。If it is determined that any one of the first face images is not a living image, the process is terminated, the image sequence is cleared, and the face detection of the user does not pass.
其中,非活体图像,包括但不限于:照片(如打印照片,手机屏幕中的照片,电脑屏幕中的照片)、视频(如手机屏幕中的视频,电脑屏幕中的视频)、脸膜(如3D脸膜)。Among them, non-living images, including but not limited to: photos (such as print photos, photos on the phone screen, photos on the computer screen), videos (such as video on the phone screen, video on the computer screen), facial mask (such as 3D face mask).
通过步骤103可以实现单张图像的过滤。Filtering of a single image can be achieved by step 103.
具体的,通过机器学习的方法,对单张图像进行分类判别。Specifically, the single image is classified and discriminated by a method of machine learning.
例如,采用基于深度学习的CNN(卷积神经网络)进行分类判别,如采用非常流行的resnet分类网络进行分类判别。For example, CNN (Convolutional Neural Network) based on deep learning is used for classification and discrimination, such as using a very popular resnet classification network for classification and discrimination.
首先收集各种可能的欺诈样本,进行训练,比如可分为打印照片/手机屏幕/电脑屏幕/3D脸膜/正常脸几个类别进行训练。First, collect various possible fraud samples and train them. For example, you can divide into several categories: print photo/mobile screen/computer screen/3D face/normal face for training.
CNN训练完毕后,利用训练成功的网络模型和权重对每张第一人脸图像进行分类识别,哪个类别的输出概率大,即可以认为是哪类,同时可以设定阈值进行进一步的判别,比如最大概率要大于一个设定值。After CNN training is completed, each first face image is classified and identified by using the successfully trained network model and weight. Which type of output probability is large, that is, which type can be considered, and the threshold can be set for further discrimination, for example. The maximum probability is greater than a set value.
若如分类结果为正常人脸,则执行步骤104进行图像序列分类判别。若分类结果其他类别,则清空图像序列,返回重新开始整个检测流程。If the classification result is a normal face, step 104 is performed to perform image sequence classification discrimination. If the classification results in other categories, the image sequence is cleared and the entire inspection process is restarted.
104,识别多张连续第一人脸图像中是否存在微动作。104: Identify whether there are micro actions in the plurality of consecutive first face images.
若存在微动作,则执行步骤105。If there is a micro action, step 105 is performed.
若不存在微动作,则终止流程,清空图像序列,该用户人脸活体检测不通过。If there is no micro action, the process is terminated, the image sequence is cleared, and the user's face biometric detection does not pass.
在执行103之后,可以实现对包含人脸图像或者人脸视频的打印照片/手机屏幕/电脑屏幕/3D脸膜等的识别,但仅依靠该识别结论确定用户人脸活体检测是否通过还会存在误判的情况。After the execution 103, the recognition of the print photo/mobile phone screen/computer screen/3D face film including the face image or the face video can be realized, but only the recognition result is determined to determine whether the user face biometric detection still exists. The case of misjudgment.
在人脸识别的整个过程中,人往会做出许多不经意的微动作,比如眼睛和嘴部会发生一些微变化,或者脸部肌肉的运动变形,或者头部的轻微晃动,通过对该微动作的识别可以进一步提升人脸活体检测的准确性。In the whole process of face recognition, people will make many inadvertent micro-actions, such as slight changes in the eyes and mouth, or deformation of the facial muscles, or slight shaking of the head, through the micro-action The identification can further improve the accuracy of the human face detection.
具体的,通过步骤104进行图像序列分类过滤。Specifically, the image sequence classification filtering is performed through step 104.
如当图像序列长度满足一定长度时,则进行图像序列分类过滤。将图像序列输入一个深度神经网络直接进行分类判别,输出为正常人脸和非正常人脸两个类别。For example, when the length of the image sequence satisfies a certain length, image sequence classification filtering is performed. The image sequence is input into a deep neural network for classification and discrimination, and the output is two categories: normal face and abnormal face.
深度神经网络可以直接基于3D卷积神经网络,也可以采用一般的2D卷积神经网络,比如resnet,只不过此时网络输入为堆叠的序列图像数据,如图3所示。The deep neural network can be directly based on the 3D convolutional neural network, or a general 2D convolutional neural network, such as resnet, except that the network input is the stacked sequence image data, as shown in FIG.
一般的resnet分类网络输入为1通道或者3通道,将图像序列堆叠后,以彩色图像为例,相当于输入为N*3通道数据。The general resnet classification network input is 1 channel or 3 channels. After the image sequence is stacked, the color image is taken as an example, which is equivalent to inputting N*3 channel data.
其中N为输入深度神经网络的图像序列的长度,即输入深度神经网络 的图像序列中的第一人脸图像的数量。Where N is the length of the image sequence of the input depth neural network, ie the number of first face images in the image sequence of the input depth neural network.
例如,若将图像序列输入深度神经网络直接进行分类判别,则N为图像序列中所有第一人脸图像的数量。For example, if the image sequence is input to the depth neural network for classification and discrimination, N is the number of all the first face images in the image sequence.
然后根据采集的两类样本,对3D卷积神经网络或者2D卷积神经网络进行训练即可。训练完成后,直接利用训练后的模型和权重对输入的图像序列进行判别。哪个类别的输出概率大,即为哪类,同也可以设定阈值进行进一步过滤。Then, according to the two types of samples collected, the 3D convolutional neural network or the 2D convolutional neural network can be trained. After the training is completed, the input image sequence is directly discriminated using the trained model and weight. Which category has a large output probability, which is the same type, and the threshold can also be set for further filtering.
对于将图像序列输入深度神经网络直接进行分类判别的情况,若最终的输出为正常人脸,则确定存在微动作,执行步骤105活体检测通过,否则确定不存在微动作,终止流程,清空图像序列,该用户人脸活体检测不通过,重新开始整个检测流程。For the case where the image sequence is directly input into the deep neural network for classification and discrimination, if the final output is a normal face, it is determined that there is a micro-action, and the step 105 is performed to perform the bio-detection, otherwise it is determined that there is no micro-action, the process is terminated, and the image sequence is cleared. The user's face is not detected by the living body, and the entire detection process is restarted.
105,确认用户人脸活体检测通过。105. Confirm that the user's face is detected by the living body.
执行至此,本实施例的基于云端的人脸活体检测方法执行完毕。So far, the cloud-based human face detection method of the present embodiment is completed.
下面参见图4所示的流程,再次说明本实施例的基于云端的人脸活体检测方法。Referring to the flow shown in FIG. 4, the cloud-based human face detection method of the present embodiment will be described again.
首先进行人脸距离检测,提醒用户和摄像头保持合适的距离,方便后续的活体检测;然后采集单张人脸图像进行分类,判断是打印照片/手机屏幕/电脑屏幕/3D脸膜/正常脸,对非正常人脸进行过滤;最后对通过人脸过滤的连续图片序列进行分类判断是否是真人。Firstly, the face distance detection is performed to remind the user and the camera to maintain a suitable distance for subsequent living body detection; then, a single face image is collected for classification, and it is judged to be a print photo/mobile screen/computer screen/3D face/normal face. Filtering abnormal faces; finally, sorting the sequence of consecutive pictures filtered by face to determine whether it is a real person.
有益效果:Beneficial effects:
本申请实施例,连续采集用户的多张第一人脸图像,确定每张第一人脸图像均为活体图像后,识别多张连续第一人脸图像中是否存在微动作,若存在微动作,则确认用户人脸活体检测通过,通过活体识别和微动作识别对用户进行人脸活体检测,有效提升人脸活体检测的准确性,防止通过人脸照片或者人脸视频欺骗人脸识别系统的行为,实现区分真人假人的功 能,保证信息安全。In the embodiment of the present application, a plurality of first face images of the user are continuously collected, and after each first face image is a living body image, whether there are micro motions in the plurality of consecutive first face images, if there is a micro action , to confirm that the user's face is detected by the living body, and the living body detection is performed on the user through the living body recognition and the micro motion recognition, thereby effectively improving the accuracy of the face detection, and preventing the face recognition system from being deceived by the face photo or the face video. Behavior, to achieve the function of distinguishing between real people and dummy, to ensure information security.
基于同一构思,本申请实施例还提供了一种电子设备,参见图5,电子设备包括:Based on the same concept, the embodiment of the present application further provides an electronic device. Referring to FIG. 5, the electronic device includes:
存储器501,一个或多个处理器502;以及收发组件503,存储器、处理器以及收发组件503通过通信总线(本申请实施例中是以通信总线为I/O总线进行的说明)相连;所述存储介质中存储有用于执行下述各个步骤的指令:a memory 501, one or more processors 502; and a transceiver component 503, the memory, the processor, and the transceiver component 503 are connected by a communication bus (in the embodiment of the present application, the communication bus is an I/O bus); The storage medium stores instructions for performing the following steps:
连续采集用户的多张第一人脸图像;Collecting a plurality of first face images of the user continuously;
确定每张第一人脸图像均为活体图像后,识别多张连续第一人脸图像中是否存在微动作;After determining that each first face image is a living image, identifying whether there are micro actions in the plurality of consecutive first face images;
若存在微动作,则确认用户人脸活体检测通过。If there is a micro-action, it is confirmed that the user's face is detected by the living body.
可选地,连续采集多张第一人脸图像之前,还包括:Optionally, before continuously acquiring the plurality of first face images, the method further includes:
确定用户满足距离要求。Make sure the user meets the distance requirement.
可选地,确定用户满足距离要求,包括:Optionally, determining that the user meets the distance requirement includes:
获取用户的第二人脸图像;Obtaining a second face image of the user;
获取第二人脸图像中的人脸区域;Obtaining a face area in the second face image;
根据人脸区域确定用户距离;Determining the user distance according to the face area;
若用户距离与距离要求匹配,则确定用户满足距离要求。If the user distance matches the distance requirement, it is determined that the user meets the distance requirement.
可选地,根据人脸区域确定用户距离,包括:Optionally, determining the user distance according to the face area, including:
根据人脸区域占第二人脸图像的比重,确定用户距离;或者,Determining the user distance according to the proportion of the face area occupying the second face image; or
从人脸区域中提取人脸预设部位之间的距离,根据距离与第二人脸图像的宽高的比值,确定用户距离。The distance between the face preset parts is extracted from the face area, and the user distance is determined according to the ratio of the distance to the width and height of the second face image.
可选地,根据人脸区域确定用户距离之后,还包括:Optionally, after determining the user distance according to the face area, the method further includes:
若用户距离与距离要求不匹配,则指导用户进行移动,以满足距离要求。If the user distance does not match the distance requirement, the user is instructed to move to meet the distance requirement.
可选地,连续采集用户的多张第一人脸图像之后,还包括:Optionally, after continuously collecting the plurality of first face images of the user, the method further includes:
确定各张第一人脸图像是否为活体图像;Determining whether each first face image is a living image;
对于任一张第一人脸图像,若确定任一张第一人脸图像为活体图像,则将任一张第一人脸图像存入图像序列中;若确定任一张第一人脸图像非活体图像,则终止流程,清空图像序列,用户人脸活体检测不通过。For any first face image, if any one of the first face images is determined to be a living image, any one of the first face images is stored in the image sequence; if any one of the first face images is determined If the image is not a live image, the process is terminated, the image sequence is cleared, and the user's face is not detected.
可选地,非活体图像包括:照片、视频、脸膜。Optionally, the non-living image includes: a photo, a video, a face film.
可选地,微动作,包括人脸器官微变化,人脸肌肉微变化,人脸微移动。Optionally, the micro-motions include micro-changes in the face organs, slight changes in the face muscles, and micro-movement of the faces.
可选地,识别多张连续第一人脸图像中是否存在微动作之后,还包括:Optionally, after identifying whether there are micro actions in the plurality of consecutive first face images, the method further includes:
若不存在微动作,则终止流程,清空图像序列中的第一人脸图像,用户人脸活体检测不通过。If there is no micro motion, the process is terminated, and the first face image in the image sequence is cleared, and the user's face biometric detection does not pass.
不难理解的是,在具体实施时,就为了实现本申请的基本目的而言,上述的并不必然的需要包含上述的收发组件503。It is not difficult to understand that, in the specific implementation, in order to achieve the basic purpose of the present application, the above-mentioned transceiver component 503 is not necessarily required.
有益效果:Beneficial effects:
本申请实施例,连续采集用户的多张第一人脸图像,确定每张第一人脸图像均为活体图像后,识别多张连续第一人脸图像中是否存在微动作,若存在微动作,则确认用户人脸活体检测通过,通过活体识别和微动作识别对用户进行人脸活体检测,有效提升人脸活体检测的准确性,防止通过人脸照片或者人脸视频欺骗人脸识别系统的行为,实现区分真人假人的功能,保证信息安全。In the embodiment of the present application, a plurality of first face images of the user are continuously collected, and after each first face image is a living body image, whether there are micro motions in the plurality of consecutive first face images, if there is a micro action , to confirm that the user's face is detected by the living body, and the living body detection is performed on the user through the living body recognition and the micro motion recognition, thereby effectively improving the accuracy of the face detection, and preventing the face recognition system from being deceived by the face photo or the face video. Behavior, to achieve the function of distinguishing between real people and dummy, to ensure information security.
再一方面,本申请实施例还提供了一种与包括显示器的电子设备结合使用的计算机程序产品,所述计算机程序产品包括计算机可读的存储介质和内嵌于其中的计算机程序机制,所述计算机程序机制包括用于执行下述各个步骤的指令:In still another aspect, an embodiment of the present application further provides a computer program product for use in conjunction with an electronic device including a display, the computer program product comprising a computer readable storage medium and a computer program mechanism embedded therein, The computer program mechanism includes instructions for performing the various steps described below:
连续采集用户的多张第一人脸图像;Collecting a plurality of first face images of the user continuously;
确定每张第一人脸图像均为活体图像后,识别多张连续第一人脸图像中是否存在微动作;After determining that each first face image is a living image, identifying whether there are micro actions in the plurality of consecutive first face images;
若存在微动作,则确认用户人脸活体检测通过。If there is a micro-action, it is confirmed that the user's face is detected by the living body.
可选地,连续采集多张第一人脸图像之前,还包括:Optionally, before continuously acquiring the plurality of first face images, the method further includes:
确定用户满足距离要求。Make sure the user meets the distance requirement.
可选地,确定用户满足距离要求,包括:Optionally, determining that the user meets the distance requirement includes:
获取用户的第二人脸图像;Obtaining a second face image of the user;
获取第二人脸图像中的人脸区域;Obtaining a face area in the second face image;
根据人脸区域确定用户距离;Determining the user distance according to the face area;
若用户距离与距离要求匹配,则确定用户满足距离要求。If the user distance matches the distance requirement, it is determined that the user meets the distance requirement.
可选地,根据人脸区域确定用户距离,包括:Optionally, determining the user distance according to the face area, including:
根据人脸区域占第二人脸图像的比重,确定用户距离;或者,Determining the user distance according to the proportion of the face area occupying the second face image; or
从人脸区域中提取人脸预设部位之间的距离,根据距离与第二人脸图像的宽高的比值,确定用户距离。The distance between the face preset parts is extracted from the face area, and the user distance is determined according to the ratio of the distance to the width and height of the second face image.
可选地,根据人脸区域确定用户距离之后,还包括:Optionally, after determining the user distance according to the face area, the method further includes:
若用户距离与距离要求不匹配,则指导用户进行移动,以满足距离要求。If the user distance does not match the distance requirement, the user is instructed to move to meet the distance requirement.
可选地,连续采集用户的多张第一人脸图像之后,还包括:Optionally, after continuously collecting the plurality of first face images of the user, the method further includes:
确定各张第一人脸图像是否为活体图像;Determining whether each first face image is a living image;
对于任一张第一人脸图像,若确定任一张第一人脸图像为活体图像,则将任一张第一人脸图像存入图像序列中;若确定任一张第一人脸图像非活体图像,则终止流程,清空图像序列,用户人脸活体检测不通过。For any first face image, if any one of the first face images is determined to be a living image, any one of the first face images is stored in the image sequence; if any one of the first face images is determined If the image is not a live image, the process is terminated, the image sequence is cleared, and the user's face is not detected.
可选地,非活体图像包括:照片、视频、脸膜。Optionally, the non-living image includes: a photo, a video, a face film.
可选地,微动作,包括人脸器官微变化,人脸肌肉微变化,人脸微移动。Optionally, the micro-motions include micro-changes in the face organs, slight changes in the face muscles, and micro-movement of the faces.
可选地,识别多张连续第一人脸图像中是否存在微动作之后,还包括:Optionally, after identifying whether there are micro actions in the plurality of consecutive first face images, the method further includes:
若不存在微动作,则终止流程,清空图像序列中的第一人脸图像,用户人脸活体检测不通过。If there is no micro motion, the process is terminated, and the first face image in the image sequence is cleared, and the user's face biometric detection does not pass.
有益效果:Beneficial effects:
本申请实施例,连续采集用户的多张第一人脸图像,确定每张第一人脸图像均为活体图像后,识别多张连续第一人脸图像中是否存在微动作,若存在微动作,则确认用户人脸活体检测通过,通过活体识别和微动作识别对用户进行人脸活体检测,有效提升人脸活体检测的准确性,防止通过人脸照片或者人脸视频欺骗人脸识别系统的行为,实现区分真人假人的功能,保证信息安全。In the embodiment of the present application, a plurality of first face images of the user are continuously collected, and after each first face image is a living body image, whether there are micro motions in the plurality of consecutive first face images, if there is a micro action , to confirm that the user's face is detected by the living body, and the living body detection is performed on the user through the living body recognition and the micro motion recognition, thereby effectively improving the accuracy of the face detection, and preventing the face recognition system from being deceived by the face photo or the face video. Behavior, to achieve the function of distinguishing between real people and dummy, to ensure information security.
本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that embodiments of the present application can be provided as a method, system, or computer program product. Thus, the present application can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment in combination of software and hardware. Moreover, the application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.
本申请是参照根据本申请实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (system), and computer program products according to embodiments of the present application. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine for the execution of instructions for execution by a processor of a computer or other programmable data processing device. Means for implementing the functions specified in one or more of the flow or in a block or blocks of the flow chart.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理 设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。The computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device. The apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device. The instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
尽管已描述了本申请的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例作出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本申请范围的所有变更和修改。While the preferred embodiment of the present application has been described, it will be apparent that those skilled in the art can make further changes and modifications to the embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and the modifications and

Claims (11)

  1. 一种基于云端的人脸活体检测方法,其特征在于,包括:A cloud-based method for detecting a living body in a living body, comprising:
    连续采集用户的多张第一人脸图像;Collecting a plurality of first face images of the user continuously;
    确定每张第一人脸图像均为活体图像后,识别所述多张连续第一人脸图像中是否存在微动作;After determining that each first face image is a living image, identifying whether there is a micro motion in the plurality of consecutive first face images;
    若存在微动作,则确认所述用户人脸活体检测通过。If there is a micro motion, it is confirmed that the user's face is detected by the living body.
  2. 根据权利要求1所述的方法,其特征在于,所述连续采集多张第一人脸图像之前,还包括:The method according to claim 1, wherein before the collecting the plurality of first face images in succession, the method further comprises:
    确定用户满足距离要求。Make sure the user meets the distance requirement.
  3. 根据权利要求2所述的方法,其特征在于,所述确定用户满足距离要求,包括:The method of claim 2, wherein the determining that the user meets the distance requirement comprises:
    获取用户的第二人脸图像;Obtaining a second face image of the user;
    获取所述第二人脸图像中的人脸区域;Obtaining a face region in the second face image;
    根据所述人脸区域确定所述用户距离;Determining the user distance according to the face area;
    若所述用户距离与距离要求匹配,则确定所述用户满足距离要求。If the user distance matches the distance requirement, it is determined that the user satisfies the distance requirement.
  4. 根据权利要求3所述的方法,其特征在于,所述根据所述人脸区域确定所述用户距离,包括:The method according to claim 3, wherein the determining the user distance according to the face area comprises:
    根据所述人脸区域占所述第二人脸图像的比重,确定所述用户距离;或者,Determining the user distance according to the proportion of the face area occupying the second face image; or
    从所述人脸区域中提取人脸预设部位之间的距离,根据所述距离与所述第二人脸图像的宽高的比值,确定所述用户距离。Extracting a distance between the face preset portions from the face region, and determining the user distance according to a ratio of the distance to a width and height of the second face image.
  5. 根据权利要求4所述的方法,其特征在于,所述根据所述人脸区域确定所述用户距离之后,还包括:The method according to claim 4, wherein after determining the user distance according to the face area, the method further comprises:
    若所述用户距离与距离要求不匹配,则指导所述用户进行移动,以满足距离要求。If the user distance does not match the distance requirement, the user is instructed to move to meet the distance requirement.
  6. 根据权利要求1至5任一权利要求所述的方法,其特征在于,所述连续采集用户的多张第一人脸图像之后,还包括:The method according to any one of claims 1 to 5, wherein after the plurality of first face images of the user are continuously collected, the method further comprises:
    确定各张第一人脸图像是否为活体图像;Determining whether each first face image is a living image;
    对于任一张第一人脸图像,若确定所述任一张第一人脸图像为活体图像,则将所述任一张第一人脸图像存入图像序列中;若确定所述任一张第一人脸图像非活体图像,则终止流程,清空所述图像序列,所述用户人脸活体检测不通过。For any one of the first face images, if it is determined that any one of the first face images is a living image, the one of the first face images is stored in the image sequence; If the first face image is not a live image, the process is terminated, the sequence of the image is cleared, and the user's face is not detected.
  7. 根据权利要求6所述的方法,其特征在于,所述非活体图像包括:照片、视频、脸膜。The method according to claim 6, wherein the non-living image comprises: a photo, a video, a face film.
  8. 根据权利要求1至7任一权利要求所述的方法,其特征在于,所述微动作,包括人脸器官微变化,人脸肌肉微变化,人脸微移动。The method according to any one of claims 1 to 7, wherein the micro-motions include micro-changes in facial organs, slight changes in facial muscles, and micro-movement of human faces.
  9. 根据权利要求1至8任一权利要求所述的方法,其特征在于,所述识别所述多张连续第一人脸图像中是否存在微动作之后,还包括:The method according to any one of claims 1 to 8, wherein after the identifying the presence of the micro-action in the plurality of consecutive first face images, the method further comprises:
    若不存在微动作,则终止流程,清空所述图像序列,所述用户人脸活体检测不通过。If there is no micro action, the process is terminated, the image sequence is cleared, and the user's face biometric detection fails.
  10. 一种电子设备,其特征在于,所述电子设备包括:An electronic device, comprising:
    存储器,一个或多个处理器;存储器与处理器通过通信总线相连;处理器被配置为执行存储器中的指令;所述存储介质中存储有用于执行权利要求1至9任一项所述方法中各个步骤的指令。a memory, one or more processors; a memory coupled to the processor via a communication bus; a processor configured to execute instructions in the memory; the storage medium having stored therein for performing the method of any of claims 1-9 Instructions for each step.
  11. 一种与包括显示器的电子设备结合使用的计算机程序产品,所述计算机程序产品包括计算机可读的存储介质和内嵌于其中的计算机程序机制,所述计算机程序机制包括用于执行权利要求1至9任一所述方法中各个步骤的指令。A computer program product for use in conjunction with an electronic device including a display, the computer program product comprising a computer readable storage medium and a computer program mechanism embodied therein, the computer program mechanism comprising for performing claim 1 9 The instructions of the various steps in any of the methods described.
PCT/CN2017/119543 2017-12-28 2017-12-28 Cloud end-based human face in vivo detection method, electronic device and program product WO2019127262A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2017/119543 WO2019127262A1 (en) 2017-12-28 2017-12-28 Cloud end-based human face in vivo detection method, electronic device and program product
CN201780002701.0A CN108124486A (en) 2017-12-28 2017-12-28 Face living body detection method based on cloud, electronic device and program product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/119543 WO2019127262A1 (en) 2017-12-28 2017-12-28 Cloud end-based human face in vivo detection method, electronic device and program product

Publications (1)

Publication Number Publication Date
WO2019127262A1 true WO2019127262A1 (en) 2019-07-04

Family

ID=62233594

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/119543 WO2019127262A1 (en) 2017-12-28 2017-12-28 Cloud end-based human face in vivo detection method, electronic device and program product

Country Status (2)

Country Link
CN (1) CN108124486A (en)
WO (1) WO2019127262A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111259757A (en) * 2020-01-13 2020-06-09 支付宝实验室(新加坡)有限公司 Image-based living body identification method, device and equipment
CN111783617A (en) * 2020-06-29 2020-10-16 中国工商银行股份有限公司 Face recognition data processing method and device
CN112818918A (en) * 2021-02-24 2021-05-18 浙江大华技术股份有限公司 Living body detection method and device, electronic equipment and storage medium
CN114863515A (en) * 2022-04-18 2022-08-05 厦门大学 Human face living body detection method and device based on micro-expression semantics

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019127262A1 (en) * 2017-12-28 2019-07-04 深圳前海达闼云端智能科技有限公司 Cloud end-based human face in vivo detection method, electronic device and program product
CN109255322B (en) * 2018-09-03 2019-11-19 北京诚志重科海图科技有限公司 A kind of human face in-vivo detection method and device
CN109684924B (en) * 2018-11-21 2022-01-14 奥比中光科技集团股份有限公司 Face living body detection method and device
CN109684927A (en) * 2018-11-21 2019-04-26 北京蜂盒科技有限公司 Biopsy method, device, computer readable storage medium and electronic equipment
CN109784175A (en) * 2018-12-14 2019-05-21 深圳壹账通智能科技有限公司 Abnormal behaviour people recognition methods, equipment and storage medium based on micro- Expression Recognition
CN109815944A (en) * 2019-03-21 2019-05-28 娄奥林 A kind of defence method that video face replacement is identified for artificial intelligence
CN111931544B (en) * 2019-05-13 2022-11-15 中国移动通信集团湖北有限公司 Living body detection method, living body detection device, computing equipment and computer storage medium
WO2021042375A1 (en) * 2019-09-06 2021-03-11 深圳市汇顶科技股份有限公司 Face spoofing detection method, chip, and electronic device
CN111507286B (en) * 2020-04-22 2023-05-02 北京爱笔科技有限公司 Dummy detection method and device
CN112506204B (en) * 2020-12-17 2022-12-30 深圳市普渡科技有限公司 Robot obstacle meeting processing method, device, equipment and computer readable storage medium
CN112990167B (en) * 2021-05-19 2021-08-10 北京焦点新干线信息技术有限公司 Image processing method and device, storage medium and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090135188A1 (en) * 2007-11-26 2009-05-28 Tsinghua University Method and system of live detection based on physiological motion on human face
CN104361326A (en) * 2014-11-18 2015-02-18 新开普电子股份有限公司 Method for distinguishing living human face
CN105718925A (en) * 2016-04-14 2016-06-29 苏州优化智能科技有限公司 Real person living body authentication terminal equipment based on near infrared and facial micro expression
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
CN107016608A (en) * 2017-03-30 2017-08-04 广东微模式软件股份有限公司 The long-range account-opening method and system of a kind of identity-based Information Authentication
CN108124486A (en) * 2017-12-28 2018-06-05 深圳前海达闼云端智能科技有限公司 Face living body detection method based on cloud, electronic device and program product

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102662334A (en) * 2012-04-18 2012-09-12 深圳市兆波电子技术有限公司 Method for controlling distance between user and electronic equipment screen and electronic equipment
CN104143078B (en) * 2013-05-09 2016-08-24 腾讯科技(深圳)有限公司 Living body faces recognition methods, device and equipment
CN104794464B (en) * 2015-05-13 2019-06-07 上海依图网络科技有限公司 A kind of biopsy method based on relative priority

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090135188A1 (en) * 2007-11-26 2009-05-28 Tsinghua University Method and system of live detection based on physiological motion on human face
CN104361326A (en) * 2014-11-18 2015-02-18 新开普电子股份有限公司 Method for distinguishing living human face
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
CN105718925A (en) * 2016-04-14 2016-06-29 苏州优化智能科技有限公司 Real person living body authentication terminal equipment based on near infrared and facial micro expression
CN107016608A (en) * 2017-03-30 2017-08-04 广东微模式软件股份有限公司 The long-range account-opening method and system of a kind of identity-based Information Authentication
CN108124486A (en) * 2017-12-28 2018-06-05 深圳前海达闼云端智能科技有限公司 Face living body detection method based on cloud, electronic device and program product

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111259757A (en) * 2020-01-13 2020-06-09 支付宝实验室(新加坡)有限公司 Image-based living body identification method, device and equipment
CN111259757B (en) * 2020-01-13 2023-06-20 支付宝实验室(新加坡)有限公司 Living body identification method, device and equipment based on image
CN111783617A (en) * 2020-06-29 2020-10-16 中国工商银行股份有限公司 Face recognition data processing method and device
CN111783617B (en) * 2020-06-29 2024-02-23 中国工商银行股份有限公司 Face recognition data processing method and device
CN112818918A (en) * 2021-02-24 2021-05-18 浙江大华技术股份有限公司 Living body detection method and device, electronic equipment and storage medium
CN112818918B (en) * 2021-02-24 2024-03-26 浙江大华技术股份有限公司 Living body detection method, living body detection device, electronic equipment and storage medium
CN114863515A (en) * 2022-04-18 2022-08-05 厦门大学 Human face living body detection method and device based on micro-expression semantics

Also Published As

Publication number Publication date
CN108124486A (en) 2018-06-05

Similar Documents

Publication Publication Date Title
WO2019127262A1 (en) Cloud end-based human face in vivo detection method, electronic device and program product
CN105612533B (en) Living body detection method, living body detection system, and computer program product
JP7040952B2 (en) Face recognition method and equipment
KR102596897B1 (en) Method of motion vector and feature vector based fake face detection and apparatus for the same
US10275672B2 (en) Method and apparatus for authenticating liveness face, and computer program product thereof
WO2019127365A1 (en) Face living body detection method, electronic device and computer program product
US10621454B2 (en) Living body detection method, living body detection system, and computer program product
CN106407914B (en) Method and device for detecting human face and remote teller machine system
CN104361276B (en) A kind of multi-modal biological characteristic identity identifying method and system
CN105989264B (en) Biological characteristic living body detection method and system
CN106557726B (en) Face identity authentication system with silent type living body detection and method thereof
US9985963B2 (en) Method and system for authenticating liveness face, and computer program product thereof
US20180239955A1 (en) Liveness detection
CN109858375B (en) Living body face detection method, terminal and computer readable storage medium
CN107798279B (en) Face living body detection method and device
CN106874830B (en) A kind of visually impaired people's householder method based on RGB-D camera and recognition of face
US20240021015A1 (en) System and method for selecting images for facial recognition processing
US20150169943A1 (en) System, method and apparatus for biometric liveness detection
WO2016172923A1 (en) Video detection method, video detection system, and computer program product
CN110612530A (en) Method for selecting a frame for use in face processing
CN111626240B (en) Face image recognition method, device and equipment and readable storage medium
JP2008090452A (en) Detection device, method and program
JP7268725B2 (en) Image processing device, image processing method, and image processing program
CN107480628B (en) Face recognition method and device
JP2005084979A (en) Face authentication system, method and program

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17936763

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS (EPO FORM 1205A DATED 18.11.2020)

122 Ep: pct application non-entry in european phase

Ref document number: 17936763

Country of ref document: EP

Kind code of ref document: A1