[go: up one dir, main page]

CN107346422A - A kind of living body faces recognition methods based on blink detection - Google Patents

A kind of living body faces recognition methods based on blink detection Download PDF

Info

Publication number
CN107346422A
CN107346422A CN201710520707.9A CN201710520707A CN107346422A CN 107346422 A CN107346422 A CN 107346422A CN 201710520707 A CN201710520707 A CN 201710520707A CN 107346422 A CN107346422 A CN 107346422A
Authority
CN
China
Prior art keywords
face
living body
frame image
methods based
blink detection
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710520707.9A
Other languages
Chinese (zh)
Other versions
CN107346422B (en
Inventor
余化鹏
刘佳
徐智勇
邱小霞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lanshan Chengdu Peng Peng Intelligent Technology Co Ltd
Chengdu University
Original Assignee
Lanshan Chengdu Peng Peng Intelligent Technology Co Ltd
Chengdu University
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 Lanshan Chengdu Peng Peng Intelligent Technology Co Ltd, Chengdu University filed Critical Lanshan Chengdu Peng Peng Intelligent Technology Co Ltd
Priority to CN201710520707.9A priority Critical patent/CN107346422B/en
Publication of CN107346422A publication Critical patent/CN107346422A/en
Application granted granted Critical
Publication of CN107346422B publication Critical patent/CN107346422B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/40Spoof detection, e.g. liveness detection
    • G06V40/45Detection of the body part being alive
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/40Scenes; Scene-specific elements in video content
    • G06V20/41Higher-level, semantic clustering, classification or understanding of video scenes, e.g. detection, labelling or Markovian modelling of sport events or news items
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • G06V40/168Feature extraction; Face representation
    • G06V40/171Local features and components; Facial parts ; Occluding parts, e.g. glasses; Geometrical relationships
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • G06V40/172Classification, e.g. identification

Landscapes

  • Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Oral & Maxillofacial Surgery (AREA)
  • Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Computational Linguistics (AREA)
  • Software Systems (AREA)
  • Measurement Of The Respiration, Hearing Ability, Form, And Blood Characteristics Of Living Organisms (AREA)
  • Image Analysis (AREA)

Abstract

The invention discloses a kind of living body faces recognition methods based on blink detection, image in the face video that this method is detected by reading camera, and pass through distance value between palpebra inferior characteristic point on the face in calculating per two field picture, when reading frame number reaches frame number threshold value, according in the image read of statistics on face between palpebra inferior characteristic point distance value fluctuation situation, judge whether the face in the face video is live body, if the face in the face video is live body, recognition of face is carried out to the face in the face video.Therefore, computational methods of the present invention are simple, not high to image request, it is possible to increase the accuracy and efficiency of In vivo detection.

Description

一种基于眨眼检测的活体人脸识别方法A Live Face Recognition Method Based on Blink Detection

技术领域technical field

本发明涉及人脸识别技术领域,特别涉及一种基于眨眼检测的活体人脸检测方法。The invention relates to the technical field of face recognition, in particular to a method for detecting living human faces based on blink detection.

背景技术Background technique

如今人脸识别系统越来越多的应用于日常生活中,为了确保应用时的安全性,要求人脸识别系统能够防范照片、视频、三维人脸模型的干扰与仿冒,而单纯地眨眼检测是无法达到防范要求的。Nowadays, face recognition systems are more and more used in daily life. In order to ensure the safety of the application, the face recognition system is required to prevent interference and counterfeiting of photos, videos, and 3D face models. Simple blink detection is Unable to meet the protection requirements.

活体检测算法主要分为三类:(1)基于运动的方法,主要是通过分析图像帧序列的运动趋势,对图像的背景或者用户的无意识动作进行判定,但是计算过程复杂。(2)基于纹理的方法,主要是通过找出单帧真实人脸和欺骗人脸的显著性区分特征进行活体判断,由于欺骗人脸在二次获取的过程中会带来质量下降、模糊等微纹理的变化,但是其只能很好地处理低分辨率的打印照片攻击,对高清照片无效。(3)基于融合的方法,即通过融合至少两种活体判别方法,达到抵御多种攻击形式的目的。该方法分为特征层融合方法和得分层融合方法,特征层融合方法是将多个特征串联进行融合,正处于研究阶段,而得分层融合方法是获取多个特征的得分,然后进行加权得到最终得分,但对于不同量纲、不同含义的特征,是无法准确地融合,影响活体识别的效率和精度。Liveness detection algorithms are mainly divided into three categories: (1) Motion-based methods, which mainly analyze the motion trend of the image frame sequence to determine the background of the image or the unconscious actions of the user, but the calculation process is complicated. (2) Texture-based methods, mainly by finding out the salient distinguishing features of single-frame real faces and deceptive faces for liveness judgment, because deceptive faces will cause quality degradation, blurring, etc. in the process of secondary acquisition Variations in microtexture, but it only handles low-res print photo attacks well, not high-resolution photos. (3) Fusion-based methods, that is, to achieve the purpose of resisting multiple attack forms by fusing at least two living body discrimination methods. This method is divided into a feature layer fusion method and a score layer fusion method. The feature layer fusion method is to fuse multiple features in series and is in the research stage, while the score layer fusion method is to obtain the scores of multiple features and then weight them. The final score is obtained, but for features of different dimensions and different meanings, it cannot be accurately fused, which affects the efficiency and accuracy of living body recognition.

因此,目前的活体检测方法存在计算方法复杂,对图像要求严苛等不足,严重影响活体检测的精确度或效率。Therefore, the current liveness detection methods have shortcomings such as complex calculation methods and strict requirements on images, which seriously affect the accuracy or efficiency of liveness detection.

发明内容Contents of the invention

本发明的目的在于:解决现有的目前的活体检测方法存在计算方法复杂,对图像要求严苛等不足,严重影响活体检测的精确度或效率的技术问题。The purpose of the present invention is to solve the technical problems that the existing living body detection methods have shortcomings such as complex calculation methods and strict requirements on images, which seriously affect the accuracy or efficiency of living body detection.

为了实现上述发明目的,本发明提供了以下技术方案:In order to realize the above-mentioned purpose of the invention, the present invention provides the following technical solutions:

一种基于眨眼检测的活体人脸识别方法,其包括以下步骤,A kind of live face recognition method based on blink detection, it comprises the following steps,

步骤一:读取摄像头检测的人脸视频中的图像;Step 1: Read the image in the face video detected by the camera;

步骤二:检测当前帧图像中的人脸,并定位用于分别标定上眼睑和下眼睑的特征点;Step 2: Detect the face in the current frame image, and locate the feature points used to calibrate the upper and lower eyelids respectively;

步骤三:计算并保存当前帧图像中的人脸上下眼睑特征点之间距离值;Step 3: Calculate and save the distance value between the feature points of the upper and lower eyelids on the face in the current frame image;

步骤四:判断读取帧数是否达到帧数阈值;若未达到,则跳转至步骤一,读取所述人脸视频中的下一帧图像;Step 4: Judging whether the number of read frames reaches the frame number threshold; if not, jump to step 1 to read the next frame image in the face video;

步骤五:统计所读取的帧图像中人脸上下眼睑特征点之间距离值的波动情况,并根据统计的波动情况,判断所述人脸视频中的人脸是否为活体;Step 5: Count the fluctuation of the distance value between the upper and lower eyelid feature points on the human face in the read frame image, and judge whether the human face in the human face video is a living body according to the statistical fluctuation;

步骤六:若所述人脸视频中的人脸为活体,则对所述人脸视频中的人脸进行人脸识别。Step 6: If the face in the face video is a living body, perform face recognition on the face in the face video.

根据一种具体的实施方式,本发明基于眨眼检测的活体人脸识别方法的步骤二中,确定用于描述头部姿态的三维坐标轴,根据检测到当前帧图像中的人脸,估计头部姿态,得到头部姿态向量;计算当前帧图像的头部姿态向量分别与前面每帧图像的头部姿态向量之间的夹角值,若有夹角值大于角度阈值,则跳转至步骤一。According to a specific implementation, in the second step of the living face recognition method based on blink detection in the present invention, the three-dimensional coordinate axes used to describe the head posture are determined, and the head is estimated according to the detected face in the current frame image. Attitude, to obtain the head attitude vector; calculate the angle between the head attitude vector of the current frame image and the head attitude vector of each previous frame image, if any angle value is greater than the angle threshold, then jump to step 1 .

进一步地,若有夹角值大于角度阈值,则发出第一提示信息,提醒被识别人将脸部正对所述摄像头。Further, if any included angle value is greater than the angle threshold, a first prompt message is issued to remind the identified person to face the camera directly.

根据一种具体的实施方式,本发明基于眨眼检测的活体人脸识别方法的步骤二中,根据检测到当前帧图像中的人脸,计算人脸的宽度,若当前帧图像中人脸的宽度小于宽度阈值,则跳转至步骤一。According to a specific embodiment, in step 2 of the living face recognition method based on blink detection in the present invention, the width of the face is calculated according to the detected face in the current frame image, if the width of the face in the current frame image is If it is smaller than the width threshold, go to step 1.

进一步地,若当前帧图像中人脸的宽度小于宽度阈值,则发出第二提示信息,提醒被识别人将脸部靠近所述摄像头。Further, if the width of the face in the current frame image is smaller than the width threshold, a second prompt message is issued to remind the recognized person to move his face closer to the camera.

根据一种具体的实施方式,本发明基于眨眼检测的活体人脸识别方法的步骤二中,根据检测到当前帧图像中的人脸,计算人脸的大小,并计算当前帧图像中人脸的大小分别与前面每帧图像的人脸大小的差值,若有差值大于人脸大小阈值,则跳转至步骤一。According to a specific embodiment, in step 2 of the living face recognition method based on blink detection in the present invention, the size of the face is calculated according to the detected face in the current frame image, and the size of the face in the current frame image is calculated. The difference between the size and the face size of each previous frame image, if there is a difference greater than the face size threshold, then jump to step 1.

进一步地,若有差值大于人脸大小阈值,则发出第三提示信息,提醒被识别人不要晃动头部。Further, if there is a difference greater than the face size threshold, a third prompt message is issued to remind the recognized person not to shake his head.

根据一种具体的实施方式,本发明基于眨眼检测的活体人脸识别方法的步骤五中,所述波动情况通过统计值来表征,若所述统计值达到波动阈值,则判断人脸视频中的人脸为活体;并且,所述统计值采用以下公式计算:According to a specific implementation, in step five of the present invention's live face recognition method based on blink detection, the fluctuations are characterized by statistical values, and if the statistical values reach the fluctuation threshold, then the determination of the face video in the The human face is a living body; and, the statistical value is calculated using the following formula:

其中,L表示所述统计值,s1表示第一帧图像中人脸上下眼睑特征点之间距离值,si表示第i帧图像中人脸上下眼睑特征点之间距离值,n为帧数阈值。Among them, L represents the statistical value, s 1 represents the distance value between the feature points of the upper and lower eyelids on the face of the first frame image, si represents the distance value between the feature points of the upper and lower eyelids on the face of the i-th frame image, and n is the frame number threshold.

根据一种具体的实施方式,本发明基于眨眼检测的活体人脸识别方法中,在读取帧数不超过所述帧数阈值之前,发出第四提示消息,提示被识别人做出特定动作,并识别后续的若干帧图像中是否出现所述特定动作,若未出现所述特定动作,则停止人脸识别。According to a specific implementation, in the living face recognition method based on blink detection of the present invention, before the number of read frames does not exceed the frame number threshold, a fourth prompt message is sent to prompt the person to be recognized to make a specific action, And identify whether the specific action appears in the subsequent several frames of images, if the specific action does not appear, stop face recognition.

与现有技术相比,本发明的有益效果:Compared with prior art, the beneficial effect of the present invention:

1、本发明基于眨眼检测的活体人脸识别方法,通过读取摄像头检测的人脸视频中的图像,并通过计算每帧图像中的人脸上下眼睑特征点之间距离值,当读取帧数达到帧数阈值时,根据统计的所读取的图像中人脸上下眼睑特征点之间距离值的波动情况,判断该人脸视频中的人脸是否为活体,若该人脸视频中的人脸为活体,则对所述人脸视频中的人脸进行人脸识别。因此,本发明计算方法简单,对图像要求不高,能够提高活体检测的精确度和效率。1. The living face recognition method based on blink detection of the present invention, by reading the image in the face video detected by the camera, and by calculating the distance value between the feature points of the upper and lower eyelids on the face in each frame of the image, when reading the frame When the number of frames reaches the threshold of the frame number, according to the fluctuation of the distance value between the upper and lower eyelid feature points of the face in the read image, it is judged whether the face in the face video is a living body. If the human face is a living body, face recognition is performed on the human face in the human face video. Therefore, the calculation method of the present invention is simple, has low requirements on images, and can improve the accuracy and efficiency of living body detection.

2、本发明基于眨眼检测的活体人脸识别方法,在计算每帧图像中的人脸上下眼睑特征点之间距离值的过程中,还判断图像间头部姿态向量夹角是否有超过夹角阈值,图像中人脸的宽度是否超过宽度阈值,以及图像间的人脸大小的差值是否有超过人脸大小阈值,并发出相应的提示消息,提醒被识别人更好地面对摄像头,保证准确地获取人脸检测视频,提高人脸识别的精确度。2. The living face recognition method based on blink detection of the present invention, in the process of calculating the distance value between the upper and lower eyelid feature points on the human face in each frame of image, also judges whether the angle between the head pose vectors between the images exceeds the included angle Threshold, whether the width of the face in the image exceeds the width threshold, and whether the difference in face size between images exceeds the face size threshold, and a corresponding prompt message is sent to remind the recognized person to face the camera better to ensure Accurately acquire face detection video and improve the accuracy of face recognition.

3、本发明基于眨眼检测的活体人脸识别方法,在读取帧数不超过所述帧数阈值之前,发出消息提示被识别人做出特定动作,再通过识别后续的若干帧图像中是否出现该特定动作,从而验证人脸检测视频中的被识别人是否是真人,若未出现特定动作,表明被识别人不是真人,则停止人脸识别。因此,本发明能够避免摄像头拍摄到视频播放出的人脸,而影响人脸识别的结果。3. The living face recognition method based on blink detection of the present invention sends a message to remind the person to make a specific action before the number of read frames does not exceed the threshold of the frame number, and then recognizes whether there is a specific action in subsequent frames of images. This specific action verifies whether the recognized person in the face detection video is a real person. If no specific action occurs, it indicates that the recognized person is not a real person, and face recognition is stopped. Therefore, the present invention can prevent the camera from capturing the human face displayed in the video, thereby affecting the result of human face recognition.

附图说明:Description of drawings:

图1为本发明基于眨眼检测的活体人脸识别方法的流程图。FIG. 1 is a flow chart of the living face recognition method based on blink detection in the present invention.

具体实施方式detailed description

下面结合试验例及具体实施方式对本发明作进一步的详细描述。但不应将此理解为本发明上述主题的范围仅限于以下的实施例,凡基于本发明内容所实现的技术均属于本发明的范围。The present invention will be further described in detail below in conjunction with test examples and specific embodiments. However, it should not be understood that the scope of the above subject matter of the present invention is limited to the following embodiments, and all technologies realized based on the content of the present invention belong to the scope of the present invention.

如图1所示的本发明基于眨眼检测的活体人脸识别方法的流程图;其中,本发明的方法包括,以下步骤:As shown in Figure 1, the present invention is based on the flow chart of the live face recognition method of blink detection; wherein, the method of the present invention comprises the following steps:

步骤一:读取摄像头检测的人脸视频中的图像。Step 1: Read the image in the face video detected by the camera.

步骤二:检测当前帧图像中的人脸,并定位用于标定上眼睑和下眼睑的特征点。检测人脸时,首先检测出全部用于人脸脸部特征的特征点,然后从中提取出用于标定上眼睑和下眼睑的特征点,同时对这些特征点进行定位,锁定这些特征点在图像中的位置信息。Step 2: Detect the face in the current frame image, and locate the feature points used to calibrate the upper and lower eyelids. When detecting a human face, first detect all the feature points used for facial features, and then extract the feature points used to calibrate the upper and lower eyelids, and locate these feature points at the same time, lock these feature points in the image location information in .

步骤三:计算并保存当前帧图像中的人脸上下眼睑特征点之间距离值。其中,定位用于标定上眼睑和下眼睑的特征点后,根据这些特征点在图像中的位置信息,计算用于标定上眼睑的特征点与用于标定下眼睑的特征点之间的距离值。由于标定上眼睑或下眼睑的特征点具有多个,那么,用于标定上眼睑的特征点与用于标定下眼睑的特征点具有对应关系,并根据该对应关系,计算距离值。Step 3: Calculate and save the distance value between the feature points of the upper and lower eyelids on the face in the current frame image. Among them, after locating the feature points used to calibrate the upper and lower eyelids, according to the position information of these feature points in the image, calculate the distance value between the feature points used to calibrate the upper eyelid and the feature points used to calibrate the lower eyelid . Since there are multiple feature points for marking the upper eyelid or lower eyelid, the feature points for marking the upper eyelid and the feature points for marking the lower eyelid have a corresponding relationship, and the distance value is calculated according to the corresponding relationship.

步骤四:判断读取帧数是否达到帧数阈值;若未达到,则跳转至步骤一,读取所述人脸视频中的下一帧图像。每计算完一帧图像中人脸上下眼睑特征点之间距离值,则判断一次读取帧数是否达到帧数阈值,若达到帧数阈值,则继续执行步骤五。Step 4: Determine whether the number of read frames reaches the frame number threshold; if not, jump to step 1 to read the next frame image in the face video. After calculating the distance value between the feature points of the upper and lower eyelids of the human face in a frame of image, it is judged whether the number of read frames reaches the frame number threshold, and if it reaches the frame number threshold, continue to step five.

步骤五:统计所读取的帧图像中人脸上下眼睑特征点之间距离值的波动情况,并根据统计的波动情况,判断所述人脸视频中的人脸是否为活体。如果是摄像头采集具有人脸高清照片的人脸视频,由于读取的帧图像中人脸上下眼睑特征点之间距离值不会波动,得到采集的人脸视频中的人脸不是活体。因此,本发明能够排除高清照片所带来对人脸识别结果的干扰。Step 5: Count the fluctuation of the distance value between the upper and lower eyelid feature points of the human face in the read frame image, and judge whether the human face in the human face video is a living body according to the statistical fluctuation. If the camera captures a face video with high-definition photos of the face, since the distance value between the feature points of the upper and lower eyelids in the read frame image will not fluctuate, the face in the collected face video is not a living body. Therefore, the present invention can eliminate the interference to the face recognition result brought by the high-definition photos.

步骤六:若所述人脸视频中的人脸为活体,则对所述人脸视频中的人脸进行人脸识别。在验证摄像头所采集的人脸视频中的人脸为活体后,再对该人脸视频中的人脸进行人脸识别,从而提高人脸识别的精确度和效率。Step 6: If the face in the face video is a living body, perform face recognition on the face in the face video. After verifying that the face in the face video collected by the camera is a living body, face recognition is performed on the face in the face video, thereby improving the accuracy and efficiency of face recognition.

具体的,在本发明步骤二中,先确定用于描述头部姿态的三维坐标轴,再根据检测到当前帧图像中的人脸,估计头部姿态,得到头部姿态向量。然后,计算当前帧图像的头部姿态向量分别与前面每帧图像的头部姿态向量之间的夹角值,若有夹角值大于角度阈值,则跳转至步骤一,读取所述人脸视频中的下一帧图像。同时,一旦有夹角值大于角度阈值,则发出第一提示信息,提醒被识别人将脸部正对所述摄像头。Specifically, in the second step of the present invention, the three-dimensional coordinate axes used to describe the head pose are determined first, and then the head pose is estimated according to the detected face in the current frame image to obtain the head pose vector. Then, calculate the angle value between the head pose vector of the current frame image and the head pose vector of each previous frame image, if there is an angle value greater than the angle threshold, then jump to step 1 and read the person The next frame image in the face video. At the same time, once an included angle value is greater than the angle threshold, a first prompt message is issued to remind the identified person to face the camera directly.

进一步地,本发明步骤二中,还根据检测到当前帧图像中的人脸,计算人脸的宽度,若当前帧图像中人脸的宽度小于宽度阈值,则跳转至步骤一,读取所述人脸视频中的下一帧图像。同时,一旦当前帧图像中人脸的宽度小于宽度阈值,则发出第二提示信息,提醒被识别人将脸部靠近所述摄像头。如此可以避免人脸视频中人脸的位置位于图像的边缘或者超出图像范围,从而无法准确地进行人脸识别。Further, in step 2 of the present invention, the width of the face is also calculated according to the detected face in the current frame image, if the width of the face in the current frame image is smaller than the width threshold, then jump to step 1 and read the The next frame image in the face video. At the same time, once the width of the human face in the current frame image is smaller than the width threshold, a second prompt message is issued to remind the recognized person to move his face closer to the camera. In this way, it can avoid that the position of the face in the face video is located at the edge of the image or exceeds the range of the image, so that the face recognition cannot be performed accurately.

再进一步地,本发明步骤二中,还根据检测到当前帧图像中的人脸,计算人脸的大小,并计算当前帧图像中人脸的大小分别与前面每帧图像的人脸大小的差值,若有差值大于人脸大小阈值,则跳转至步骤一,读取所述人脸视频中的下一帧图像。同时,一旦有差值大于人脸大小阈值,则发出第三提示信息,提醒被识别人不要晃动头部。如此可以避免人脸视频中人脸在不同时刻距离摄像头的位置不相同,而影响人脸识别的结果。Still further, in the second step of the present invention, the size of the face is also calculated according to the detected face in the current frame image, and the difference between the size of the face in the current frame image and the size of the face in each previous frame image is calculated. value, if there is a difference greater than the face size threshold, then jump to step 1 to read the next frame image in the face video. At the same time, once a difference is greater than the face size threshold, a third prompt message is issued to remind the identified person not to shake his head. In this way, it can be avoided that the face in the face video is at different positions from the camera at different times, which will affect the result of face recognition.

本发明基于眨眼检测的活体人脸识别方法中,步骤五中的波动情况通过统计值来表征,若该统计值达到波动阈值,则判断人脸视频中的人脸为活体。并且,统计值采用以下公式计算:In the living face recognition method based on blink detection of the present invention, the fluctuation in step 5 is represented by a statistical value, and if the statistical value reaches the fluctuation threshold, it is judged that the human face in the human face video is a living body. And, the statistical value is calculated using the following formula:

其中,L表示所述统计值,s1表示第一帧图像中人脸上下眼睑特征点之间距离值,si表示第i帧图像中人脸上下眼睑特征点之间距离值,n为帧数阈值。Among them, L represents the statistical value, s 1 represents the distance value between the feature points of the upper and lower eyelids on the face of the first frame image, si represents the distance value between the feature points of the upper and lower eyelids on the face of the i-th frame image, and n is the frame number threshold.

本发明基于眨眼检测的活体人脸识别方法中,在读取帧数不超过所述帧数阈值之前,发出第四提示消息,提示被识别人做出特定动作,并识别后续的若干帧图像中是否出现所述特定动作,若未出现所述特定动作,则停止人脸识别。如果摄像头采集的是视频播放的人脸,由于本发明通过实时随机地提示被识别人做出特定动作,由于播放的视频不能够做出及时适应性地调整,并向摄像头呈现特定动作。因此,本发明能够排除视频所带来对人脸识别结果的干扰。其中,特定的动作包括睁一只眼闭一只眼、点头或摇头等。In the live face recognition method based on blink detection of the present invention, before the number of read frames does not exceed the frame number threshold, a fourth prompt message is sent to prompt the person to be recognized to make a specific action, and to identify the number of subsequent frames of images Whether the specific action occurs, if the specific action does not occur, face recognition is stopped. If the camera captures the human face played by the video, since the present invention randomly prompts the identified person to make a specific action in real time, the played video cannot make timely and adaptive adjustments and present the specific action to the camera. Therefore, the present invention can eliminate the interference caused by the video on the face recognition result. Among them, the specific actions include opening and closing one eye, nodding or shaking the head, etc.

Claims (9)

  1. A kind of 1. living body faces recognition methods based on blink detection, it is characterised in that comprise the following steps,
    Step 1:Read the image in the face video of camera detection;
    Step 2:The face in current frame image is detected, and is positioned for demarcating the characteristic point of upper eyelid and palpebra inferior respectively;
    Step 3:Calculate and preserve on the face in current frame image distance value between palpebra inferior characteristic point;
    Step 4:Judge to read whether frame number reaches frame number threshold value;If not up to, step 1 is jumped to, reads the face Next two field picture in video;
    Step 5:In the read two field picture of statistics on face between palpebra inferior characteristic point distance value fluctuation situation, and according to The fluctuation situation of statistics, judge whether the face in the face video is live body;
    Step 6:If the face in the face video is live body, recognition of face is carried out to the face in the face video.
  2. 2. the living body faces recognition methods based on blink detection as claimed in claim 1, it is characterised in that in step 2,
    It is determined that the 3-D walls and floor for describing head pose, according to the face detected in current frame image, estimates head appearance State, obtain head pose vector;Calculate current frame image head pose vector respectively with above per two field picture head pose Angle value between vector, if there is angle value to be more than angle threshold, jump to step 1.
  3. 3. the living body faces recognition methods based on blink detection as claimed in claim 2, it is characterised in that if there is angle value big In angle threshold, then the first prompt message is sent, remind identified person by camera described in face's face.
  4. 4. the living body faces recognition methods based on blink detection as claimed in claim 1, it is characterised in that in step 2,
    According to the face detected in current frame image, the width of face is calculated, if the width of face is less than in current frame image Width threshold value, then jump to step 1.
  5. 5. the living body faces recognition methods based on blink detection as claimed in claim 4, it is characterised in that if current frame image The width of middle face is less than width threshold value, then sends the second prompt message, reminds identified person by face close to the camera.
  6. 6. the living body faces recognition methods based on blink detection as claimed in claim 1, it is characterised in that in step 2,
    According to the face detected in current frame image, the size of face is calculated, and calculates the size of face in current frame image Respectively with the difference of the above face size per two field picture, if there is difference to be more than face size threshold value, step 1 is jumped to.
  7. 7. the living body faces recognition methods based on blink detection as claimed in claim 6, it is characterised in that if there is difference to be more than Face size threshold value, then the 3rd prompt message is sent, remind identified person not rock head.
  8. 8. the living body faces recognition methods based on blink detection as claimed in claim 1, it is characterised in that in step 5, institute Fluctuation situation is stated by statistical value to characterize, if the statistical value reaches fluctuation threshold, judges that the face in face video is Live body;Also, the statistical value is calculated using below equation:
    <mrow> <mi>L</mi> <mo>=</mo> <munderover> <mo>&amp;Sigma;</mo> <mrow> <mi>i</mi> <mo>=</mo> <mn>1</mn> </mrow> <mi>n</mi> </munderover> <mrow> <mo>(</mo> <msub> <mi>s</mi> <mi>i</mi> </msub> <mo>-</mo> <msub> <mi>s</mi> <mn>1</mn> </msub> <mo>)</mo> </mrow> </mrow>
    Wherein, L represents the statistical value, s1Represent in the first two field picture on face distance value, s between palpebra inferior characteristic pointiRepresent Distance value, n are frame number threshold value between palpebra inferior characteristic point on face in i-th two field picture.
  9. 9. the living body faces recognition methods based on blink detection as claimed in claim 1, it is characterised in that reading frame number not Before the frame number threshold value, the 4th prompting message is sent, prompts identified person to make specific action, and if identifying follow-up Whether occur the specific action in dry two field picture, if not occurring the specific action, stop recognition of face.
CN201710520707.9A 2017-06-30 2017-06-30 Living body face recognition method based on blink detection Expired - Fee Related CN107346422B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710520707.9A CN107346422B (en) 2017-06-30 2017-06-30 Living body face recognition method based on blink detection

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710520707.9A CN107346422B (en) 2017-06-30 2017-06-30 Living body face recognition method based on blink detection

Publications (2)

Publication Number Publication Date
CN107346422A true CN107346422A (en) 2017-11-14
CN107346422B CN107346422B (en) 2020-09-08

Family

ID=60256655

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710520707.9A Expired - Fee Related CN107346422B (en) 2017-06-30 2017-06-30 Living body face recognition method based on blink detection

Country Status (1)

Country Link
CN (1) CN107346422B (en)

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107862298A (en) * 2017-11-27 2018-03-30 电子科技大学 It is a kind of based on the biopsy method blinked under infrared eye
CN107992845A (en) * 2017-12-14 2018-05-04 广东工业大学 A kind of face recognition the method for distinguishing and device, computer equipment
CN108537103A (en) * 2018-01-19 2018-09-14 东北电力大学 The living body faces detection method and its equipment measured based on pupil axle
CN109598201A (en) * 2018-11-05 2019-04-09 北京三快在线科技有限公司 Motion detection method, device, electronic equipment and readable storage medium storing program for executing
CN109635757A (en) * 2018-12-18 2019-04-16 北京字节跳动网络技术有限公司 Biopsy method, device, electronic equipment and storage medium
CN109658533A (en) * 2018-11-23 2019-04-19 深圳市沃特沃德股份有限公司 Method of registering, system and the intelligent terminal of video conference
CN109670413A (en) * 2018-11-30 2019-04-23 腾讯科技(深圳)有限公司 Face living body verification method and device
CN109684993A (en) * 2018-12-21 2019-04-26 普联技术有限公司 A kind of face identification method based on nostril information, system and equipment
CN109697416A (en) * 2018-12-14 2019-04-30 腾讯科技(深圳)有限公司 A kind of video data handling procedure and relevant apparatus
CN109766785A (en) * 2018-12-21 2019-05-17 中国银联股份有限公司 A method and device for detecting a living body of a human face
CN110363132A (en) * 2019-07-09 2019-10-22 北京字节跳动网络技术有限公司 Biopsy method, device, electronic equipment and storage medium
WO2019205007A1 (en) * 2018-04-25 2019-10-31 Beijing Didi Infinity Technology And Development Co., Ltd. Systems and methods for blink action recognition based on facial feature points
CN110705454A (en) * 2019-09-29 2020-01-17 东华大学 Face recognition method with living body detection function
CN111860057A (en) * 2019-04-29 2020-10-30 北京眼神智能科技有限公司 Face image blurring and living body detection method, device, storage medium and device
WO2021197369A1 (en) * 2020-11-12 2021-10-07 平安科技(深圳)有限公司 Liveness detection method and apparatus, electronic device, and computer readable storage medium
CN113836973A (en) * 2020-06-23 2021-12-24 中兴通讯股份有限公司 Terminal control method, device, terminal and storage medium
CN114821756A (en) * 2022-05-20 2022-07-29 上海美沃精密仪器股份有限公司 Blink data statistical method and device based on deep learning
CN117256007A (en) * 2021-04-28 2023-12-19 日本电气株式会社 Information processing system, information processing method, and recording medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103440038A (en) * 2013-08-28 2013-12-11 中国人民大学 Information collection system based on eye recognition and application thereof
US20160171324A1 (en) * 2013-10-14 2016-06-16 Mircea Ionita Methods and systems for determining user liveness
CN106203369A (en) * 2016-07-18 2016-12-07 三峡大学 Active stochastic and dynamic for anti-counterfeiting recognition of face instructs generation system
CN106446831A (en) * 2016-09-24 2017-02-22 南昌欧菲生物识别技术有限公司 Face recognition method and device
WO2017034861A1 (en) * 2015-08-21 2017-03-02 Magic Leap, Inc. Eyelid shape estimation
CN106897658A (en) * 2015-12-18 2017-06-27 腾讯科技(深圳)有限公司 The discrimination method and device of face live body

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103440038A (en) * 2013-08-28 2013-12-11 中国人民大学 Information collection system based on eye recognition and application thereof
US20160171324A1 (en) * 2013-10-14 2016-06-16 Mircea Ionita Methods and systems for determining user liveness
WO2017034861A1 (en) * 2015-08-21 2017-03-02 Magic Leap, Inc. Eyelid shape estimation
CN106897658A (en) * 2015-12-18 2017-06-27 腾讯科技(深圳)有限公司 The discrimination method and device of face live body
CN106203369A (en) * 2016-07-18 2016-12-07 三峡大学 Active stochastic and dynamic for anti-counterfeiting recognition of face instructs generation system
CN106446831A (en) * 2016-09-24 2017-02-22 南昌欧菲生物识别技术有限公司 Face recognition method and device

Cited By (27)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107862298A (en) * 2017-11-27 2018-03-30 电子科技大学 It is a kind of based on the biopsy method blinked under infrared eye
CN107862298B (en) * 2017-11-27 2021-07-06 电子科技大学 A living body detection method based on blinking under infrared camera device
CN107992845A (en) * 2017-12-14 2018-05-04 广东工业大学 A kind of face recognition the method for distinguishing and device, computer equipment
CN108537103A (en) * 2018-01-19 2018-09-14 东北电力大学 The living body faces detection method and its equipment measured based on pupil axle
CN108537103B (en) * 2018-01-19 2022-06-10 东北电力大学 Living body face detection method and device based on pupil axis measurement
WO2019205007A1 (en) * 2018-04-25 2019-10-31 Beijing Didi Infinity Technology And Development Co., Ltd. Systems and methods for blink action recognition based on facial feature points
US10936867B2 (en) 2018-04-25 2021-03-02 Beijing Didi Infinity Technology And Development Co.. Ltd. Systems and methods for blink action recognition based on facial feature points
CN109598201A (en) * 2018-11-05 2019-04-09 北京三快在线科技有限公司 Motion detection method, device, electronic equipment and readable storage medium storing program for executing
CN109658533A (en) * 2018-11-23 2019-04-19 深圳市沃特沃德股份有限公司 Method of registering, system and the intelligent terminal of video conference
CN109670413A (en) * 2018-11-30 2019-04-23 腾讯科技(深圳)有限公司 Face living body verification method and device
CN109670413B (en) * 2018-11-30 2023-04-18 腾讯科技(深圳)有限公司 Face living body verification method and device
CN109697416A (en) * 2018-12-14 2019-04-30 腾讯科技(深圳)有限公司 A kind of video data handling procedure and relevant apparatus
CN109697416B (en) * 2018-12-14 2022-11-18 腾讯科技(深圳)有限公司 Video data processing method and related device
CN109635757A (en) * 2018-12-18 2019-04-16 北京字节跳动网络技术有限公司 Biopsy method, device, electronic equipment and storage medium
CN109635757B (en) * 2018-12-18 2019-10-25 北京字节跳动网络技术有限公司 Biopsy method, device, electronic equipment and storage medium
US11017253B2 (en) 2018-12-18 2021-05-25 Beijing Bytedance Network Technology Co., Ltd. Liveness detection method and apparatus, and storage medium
CN109766785A (en) * 2018-12-21 2019-05-17 中国银联股份有限公司 A method and device for detecting a living body of a human face
CN109766785B (en) * 2018-12-21 2023-09-01 中国银联股份有限公司 Method and device for liveness detection of human face
CN109684993A (en) * 2018-12-21 2019-04-26 普联技术有限公司 A kind of face identification method based on nostril information, system and equipment
CN111860057A (en) * 2019-04-29 2020-10-30 北京眼神智能科技有限公司 Face image blurring and living body detection method, device, storage medium and device
CN110363132B (en) * 2019-07-09 2021-08-03 北京字节跳动网络技术有限公司 Living body detection method, living body detection device, electronic apparatus, and storage medium
CN110363132A (en) * 2019-07-09 2019-10-22 北京字节跳动网络技术有限公司 Biopsy method, device, electronic equipment and storage medium
CN110705454A (en) * 2019-09-29 2020-01-17 东华大学 Face recognition method with living body detection function
CN113836973A (en) * 2020-06-23 2021-12-24 中兴通讯股份有限公司 Terminal control method, device, terminal and storage medium
WO2021197369A1 (en) * 2020-11-12 2021-10-07 平安科技(深圳)有限公司 Liveness detection method and apparatus, electronic device, and computer readable storage medium
CN117256007A (en) * 2021-04-28 2023-12-19 日本电气株式会社 Information processing system, information processing method, and recording medium
CN114821756A (en) * 2022-05-20 2022-07-29 上海美沃精密仪器股份有限公司 Blink data statistical method and device based on deep learning

Also Published As

Publication number Publication date
CN107346422B (en) 2020-09-08

Similar Documents

Publication Publication Date Title
CN107346422B (en) Living body face recognition method based on blink detection
KR102596897B1 (en) Method of motion vector and feature vector based fake face detection and apparatus for the same
CN102375970B (en) A kind of identity identifying method based on face and authenticate device
CN105023010B (en) A kind of human face in-vivo detection method and system
CN110223322B (en) Image recognition method and device, computer equipment and storage medium
CN105740780B (en) Method and device for detecting living human face
CN105740775B (en) A three-dimensional face living body recognition method and device
CN109840565A (en) A kind of blink detection method based on eye contour feature point aspect ratio
CN107358152B (en) Living body identification method and system
CN104794465B (en) A kind of biopsy method based on posture information
CN105740779B (en) Method and device for detecting living human face
CN108009531A (en) A kind of face identification method of more tactful antifraud
CN109376608A (en) A face detection method
CN106355147A (en) Acquiring method and detecting method of live face head pose detection regression apparatus
CN106897658A (en) The discrimination method and device of face live body
CN108764058A (en) A kind of dual camera human face in-vivo detection method based on thermal imaging effect
CN109858375A (en) Living body faces detection method, terminal and computer readable storage medium
CN107330370B (en) Forehead wrinkle action detection method and device and living body identification method and system
CN102004905B (en) Human face authentication method and device
CN105447432A (en) Face anti-fake method based on local motion pattern
CN112069954B (en) Living body micro-expression detection method and system
CN105740778A (en) Improved three-dimensional human face in-vivo detection method and device thereof
CN105138967B (en) Biopsy method and device based on human eye area active state
JP7230345B2 (en) Information processing device and information processing program
CN109711239B (en) Visual attention detection method based on improved mixed increment dynamic Bayesian network

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20200908

CF01 Termination of patent right due to non-payment of annual fee