CN105260731A - A system and method for human face liveness detection based on light pulses - Google Patents

A system and method for human face liveness detection based on light pulses Download PDF

Info

Publication number
CN105260731A
CN105260731A CN201510828738.1A CN201510828738A CN105260731A CN 105260731 A CN105260731 A CN 105260731A CN 201510828738 A CN201510828738 A CN 201510828738A CN 105260731 A CN105260731 A CN 105260731A
Authority
CN
China
Prior art keywords
image
images
living body
target area
measured
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510828738.1A
Other languages
Chinese (zh)
Inventor
张伟
吴子豪
汤晓鸥
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sensetime Group Ltd
Original Assignee
Sensetime Group Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sensetime Group Ltd filed Critical Sensetime Group Ltd
Priority to CN201510828738.1A priority Critical patent/CN105260731A/en
Publication of CN105260731A publication Critical patent/CN105260731A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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 OR CALCULATING; COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/40Spoof detection, e.g. liveness detection
    • G06V40/45Detection of the body part being alive

Landscapes

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

Abstract

The embodiment of the invention discloses a human face living body detection system and a method based on optical pulses, belonging to the field of image recognition, wherein the system comprises: the light emitting device emits light signals with different signal intensities to the object to be detected at a preset frequency; the camera device is used for acquiring a plurality of images of the object to be detected generated under optical signals with different signal intensities; and a detection device that detects whether the object to be measured is a living body based on the plurality of images. By applying the scheme provided by the embodiment of the invention to identify the target area, the situation that other people pretend to be the person passing through the target area identification by using non-living objects such as photos, videos and the like can be avoided.

Description

一种基于光脉冲的人脸活体检测系统及方法A system and method for human face liveness detection based on light pulses

技术领域technical field

本发明涉及图像识别技术领域,特别涉及一种基于光脉冲的人脸活体检测的系统及方法。The present invention relates to the technical field of image recognition, in particular to a system and method for human face liveness detection based on light pulses.

背景技术Background technique

人脸检测和识别技术因其无接触性和无侵入性(用户无感知)等优点,广泛应用于身份识别和验证系统中。目前绝大部分系统都是采用基于图像的人脸识别技术,由于缺乏对图像来源的判断,无法确定当前的图片采集来自于真实的人,还是包含了人脸的静止图片,预先录制好的视频,或人脸面具。这些基于图像的人脸识别系缺少活体检测环节,无法区分人脸素材和真实的人,因此存在欺骗等潜在的危险。Face detection and recognition technology is widely used in identity recognition and verification systems due to its advantages of non-contact and non-invasiveness (no user perception). At present, most systems use image-based face recognition technology. Due to the lack of judgment on the source of the image, it is impossible to determine whether the current image collection comes from a real person, or a still image containing a face, or a pre-recorded video. , or face masks. These image-based face recognition systems lack the link of liveness detection and cannot distinguish between face materials and real people, so there are potential dangers such as deception.

为了克服此类问题,现有技术中的一些系统引入活体检测环节。这些系统可以分为两大类:基于纹理的、基于光流的和基于交互的活体检测。基于纹理的方法利用了拍摄真实人脸皮肤和拍摄纸张、显示屏的纹理的细微差别,通过纹理描述子和机器学习的模型训练出检测模型,但是这种方法容易受环境(例如光照等)影响,而且过拟合到训练样本,推广性不好;基于光流的方法通过建立光流场模型,获取真实人脸和纸张、显示屏的不同的三维结构在运动时的光流特点,缺点是需要用户有一定的运动,并且结果受光流算法的精度影响;基于交互的方法则通过在与用户的互动过程中,获取相关的反馈,从而确定是否为真实的人。比如,系统提示被检测对象完成指定动作,如转头、眨眼等,或者简单问答。预先制作的素材(静止图片或视频)无法预知所要执行的交互动作,无法提供实时反馈,基于此可以判定其为非活体。交互式方法是一种侵入式和非静默的检测方法,需要用户辅助操作,增加了用户额外的使用负担。对于一些频繁出入的门禁检测系统,大量的重复性操作降低了用户的使用体验。In order to overcome such problems, some systems in the prior art introduce a live body detection link. These systems can be divided into two categories: texture-based, optical flow-based, and interaction-based liveness detection. The texture-based method takes advantage of the nuances of the real face skin and the texture of the paper and display screen, and trains the detection model through texture descriptors and machine learning models, but this method is easily affected by the environment (such as lighting, etc.) , and overfitting to the training samples, the generalization is not good; the method based on optical flow obtains the optical flow characteristics of different three-dimensional structures of real faces, paper and display screens during motion by establishing an optical flow field model. The disadvantages are The user is required to have a certain movement, and the result is affected by the accuracy of the optical flow algorithm; the interaction-based method obtains relevant feedback during the interaction with the user to determine whether it is a real person. For example, the system prompts the detected object to complete specified actions, such as turning head, blinking, etc., or simple questions and answers. Pre-produced material (still pictures or videos) cannot predict the interactive actions to be performed and cannot provide real-time feedback, based on which it can be judged to be non-living. The interactive method is an intrusive and non-silent detection method that requires user-assisted operations, which increases the user's additional usage burden. For some access control detection systems that come in and out frequently, a large number of repetitive operations reduce the user experience.

发明内容Contents of the invention

本发明实施例公开了一种基于光脉冲的人脸活体检测系统及方法,能够准确的判断出待检测对象是否为活体,与传统活体鉴别方法相比,简化了操作流程。The embodiment of the present invention discloses a human face living body detection system and method based on light pulses, which can accurately determine whether the object to be detected is a living body, and simplifies the operation process compared with the traditional living body identification method.

为达到上述目的,本发明实施例公开了一种基于光脉冲的人脸活体检测系统,所述系统包括:In order to achieve the above purpose, the embodiment of the present invention discloses a human face liveness detection system based on light pulses, the system includes:

发光装置,所述发光装置以预设频率向待测对象发射不同信号强度的光信号;A light-emitting device, the light-emitting device emits light signals of different signal intensities to the object to be measured at a preset frequency;

摄像装置,所述摄像装置用于获取所述待测对象在不同信号强度的光信号下产生的多个图像;以及an imaging device, the imaging device is used to acquire multiple images of the object to be measured under light signals of different signal intensities; and

检测装置,所述检测装置基于所述多个图像,检测所述待测对象是否为活体。A detection device, the detection device detects whether the object to be detected is a living body based on the plurality of images.

作为本发明实施例的一种具体实施方式,所述检测装置包括:As a specific implementation manner of the embodiment of the present invention, the detection device includes:

提取装置,所述提取装置在多个图像上提取待测对象的目标区域,并获取所述目标区域的特征点信息;以及an extracting device, the extracting device extracts target areas of the object to be measured on multiple images, and acquires feature point information of the target areas; and

判断装置,所述判断装置基于所述目标区域及所述特征点信息,判断所述待测对象是否为活体。A judging device, which judges whether the object to be measured is a living body based on the target area and the feature point information.

作为本发明实施例的一种具体实施方式,所述提取装置还用于:As a specific implementation of the embodiments of the present invention, the extraction device is also used for:

计算所述摄像装置获取的当前图像上的所述目标区域与所述特征点之间的方差;calculating the variance between the target area and the feature points on the current image acquired by the camera;

当所述方差是否低于第一阈值时,舍弃当前图像,再次从所述摄像装置上获取待测对象的图像。When the variance is lower than the first threshold, the current image is discarded, and the image of the object to be measured is acquired from the camera device again.

作为本发明实施例的一种具体实施方式,所述提取装置还用于:As a specific implementation of the embodiments of the present invention, the extraction device is also used for:

计算所述摄像装置获取的每幅图像上的所述目标区域的平均亮度值;calculating the average brightness value of the target area on each image captured by the camera;

对平均亮度值大于第二阈值或低于第三阈值的图像进行舍弃处理。Discarding is performed on images whose average brightness value is greater than the second threshold or lower than the third threshold.

作为本发明实施例的一种具体实施方式,所述提取装置还用于:As a specific implementation of the embodiments of the present invention, the extraction device is also used for:

在预设亮度值范围内,选取关键点平均亮度值最低的图像作为第一图像,选取关键点平均亮度值最高的图像作为第二图像。Within the range of preset brightness values, the image with the lowest average brightness value of key points is selected as the first image, and the image with the highest average brightness value of key points is selected as the second image.

作为本发明实施例的一种具体实施方式,所述检测装置还包括:As a specific implementation manner of the embodiment of the present invention, the detection device further includes:

预处理装置,用于对所述第一图像及第二图像进行图像预处理。A preprocessing device, configured to perform image preprocessing on the first image and the second image.

作为本发明实施例的一种具体实施方式,所述基于所述多个图像,检测所述待测对象是否为活体,包括:As a specific implementation manner of the embodiment of the present invention, the detecting whether the object to be tested is a living body based on the plurality of images includes:

分别对所述第一图像及第二图像的目标区域进行归一化处理,将所述特征点映射到统一的标准位置。The target areas of the first image and the second image are respectively subjected to normalization processing, and the feature points are mapped to a unified standard position.

作为本发明实施例的一种具体实施方式,所述对所述目标区域进行归一化处理,将所述特征点映射到统一的标准位置,包括:As a specific implementation manner of the embodiment of the present invention, performing normalization processing on the target area and mapping the feature points to a unified standard position includes:

分别计算第一图像及第二图像上的目标区域关键点与预定的平均目标区域的变换矩阵,将目标区域关键点映射到标准位置。The transformation matrices between the key points of the target area and the predetermined average target area on the first image and the second image are respectively calculated, and the key points of the target area are mapped to standard positions.

作为本发明实施例的一种具体实施方式,所述基于所述多个图像,检测所述待测对象是否为活体,还包括:As a specific implementation manner of the embodiment of the present invention, the detecting whether the object to be tested is a living body based on the plurality of images further includes:

对归一化处理后的第一图像及第二图像进行差分处理,获得目标区域差分图。Difference processing is performed on the normalized first image and the second image to obtain a difference map of the target area.

作为本发明实施例的一种具体实施方式,所述基于所述多个图像,检测所述待测对象是否为活体,还包括:As a specific implementation manner of the embodiment of the present invention, the detecting whether the object to be tested is a living body based on the plurality of images further includes:

在差分图中提取离散傅里叶变换特征:Extract discrete Fourier transform features in a difference map:

Ff (( kk ,, ll )) == ΣΣ mm == 00 NN -- 11 ΣΣ nno == 00 NN -- 11 II (( mm ,, nno )) ee -- 22 ππ (( kk mm // NN ++ lnln // NN )) ii

其中eix=cosx+sinx,I(m,n)为目标区域差分图的像素值,N为差分图尺寸。Where e ix =cosx+sinx, I(m,n) is the pixel value of the difference map of the target area, and N is the size of the difference map.

作为本发明实施例的一种具体实施方式,所述基于所述多个图像,检测所述待测对象是否为活体,还包括:As a specific implementation manner of the embodiment of the present invention, the detecting whether the object to be tested is a living body based on the plurality of images further includes:

获取所述第一图像及第二图像的图形类型;以及obtain the graphics type of the first image and the second image; and

基于所述图像类型提取所述第一图像及第二图像的辅助特征。Auxiliary features of the first image and the second image are extracted based on the image type.

作为本发明实施例的一种具体实施方式,所述基于所述多个图像,检测所述待测对象是否为活体,还包括:As a specific implementation manner of the embodiment of the present invention, the detecting whether the object to be tested is a living body based on the plurality of images further includes:

利用所述离散傅里叶变换特征及所述辅助特征构建特征向量;constructing a feature vector using the discrete Fourier transform feature and the auxiliary feature;

将所述特征向量作为输入,通过基于机器学习建立的反光特性的分类器进行分析,判断所述待测目标是否为活体。The feature vector is used as an input, and is analyzed by a classifier based on reflective characteristics established by machine learning to determine whether the target to be tested is a living body.

为达到上述目的,本发明实施例还公开了一种基于光脉冲的人脸活体检测方法,其特征在于,所述方法包括:In order to achieve the above purpose, the embodiment of the present invention also discloses a method for detecting human face liveness based on light pulses, which is characterized in that the method includes:

以预设频率向待测对象发射不同信号强度的光信号;Transmit optical signals with different signal strengths to the object to be measured at a preset frequency;

获取所述待测对象在不同信号强度的光信号下产生的多个图像;以及acquiring a plurality of images of the object to be measured under light signals of different signal intensities; and

基于所述多个图像,检测所述待测对象是否为活体。Based on the plurality of images, it is detected whether the object to be detected is a living body.

作为本发明实施例的一种具体实施方式,所述基于所述多个图像,检测所述待测对象是否为活体,包括:As a specific implementation manner of the embodiment of the present invention, the detecting whether the object to be tested is a living body based on the plurality of images includes:

在多个图像上提取待测对象的目标区域,并获取所述目标区域的特征点信息;以及Extracting target areas of the object to be measured on multiple images, and acquiring feature point information of the target areas; and

基于所述目标区域及所述特征点信息,判断所述待测对象是否为活体。Based on the target area and the feature point information, it is judged whether the object to be measured is a living body.

作为本发明实施例的一种具体实施方式,所述获取所述待测对象在不同信号强度的光信号下产生的多个图像,包括:As a specific implementation manner of the embodiment of the present invention, the acquisition of multiple images of the object to be measured under optical signals of different signal intensities includes:

计算所述摄像装置获取的当前图像上的所述目标区域与所述特征点之间的方差;calculating the variance between the target area and the feature points on the current image acquired by the camera;

当所述方差是否低于第一阈值时,舍弃当前图像,再次从所述摄像装置上获取待测对象的图像。When the variance is lower than the first threshold, the current image is discarded, and the image of the object to be measured is acquired from the camera device again.

作为本发明实施例的一种具体实施方式,所述获取所述待测对象在不同信号强度的光信号下产生的多个图像,还包括:As a specific implementation manner of the embodiment of the present invention, the acquisition of multiple images of the object to be measured under optical signals of different signal intensities further includes:

计算所述摄像装置获取的每幅图像上的所述目标区域的平均亮度值;calculating the average brightness value of the target area on each image captured by the camera;

对平均亮度值大于第二阈值或低于第三阈值的图像进行舍弃处理。Discarding is performed on images whose average brightness value is greater than the second threshold or lower than the third threshold.

作为本发明实施例的一种具体实施方式,所述获取所述待测对象在不同信号强度的光信号下产生的多个图像,还包括:As a specific implementation manner of the embodiment of the present invention, the acquisition of multiple images of the object to be measured under optical signals of different signal intensities further includes:

在预设亮度值范围内,选取关键点平均亮度值最低的图像作为第一图像,选取关键点平均亮度值最高的图像作为第二图像。Within the range of preset brightness values, the image with the lowest average brightness value of key points is selected as the first image, and the image with the highest average brightness value of key points is selected as the second image.

作为本发明实施例的一种具体实施方式,所述方法还包括:As a specific implementation manner of the embodiment of the present invention, the method further includes:

对所述第一图像及第二图像进行图像预处理。Image preprocessing is performed on the first image and the second image.

作为本发明实施例的一种具体实施方式,所述基于所述多个图像,检测所述待测对象是否为活体,包括:As a specific implementation manner of the embodiment of the present invention, the detecting whether the object to be tested is a living body based on the plurality of images includes:

分别对所述第一图像及第二图像的目标区域进行归一化处理,将所述特征点映射到统一的标准位置。The target areas of the first image and the second image are respectively subjected to normalization processing, and the feature points are mapped to a unified standard position.

作为本发明实施例的一种具体实施方式,所述对所述目标区域进行归一化处理,将所述特征点映射到统一的标准位置,包括:As a specific implementation manner of the embodiment of the present invention, performing normalization processing on the target area and mapping the feature points to a unified standard position includes:

分别计算第一图像及第二图像上的目标区域关键点与预定的平均目标区域的变换矩阵,将目标区域关键点映射到标准位置。The transformation matrices between the key points of the target area and the predetermined average target area on the first image and the second image are respectively calculated, and the key points of the target area are mapped to standard positions.

作为本发明实施例的一种具体实施方式,所述基于所述多个图像,检测所述待测对象是否为活体,还包括:As a specific implementation manner of the embodiment of the present invention, the detecting whether the object to be tested is a living body based on the plurality of images further includes:

对归一化处理后的第一图像及第二图像进行差分处理,获得目标区域差分图。Difference processing is performed on the normalized first image and the second image to obtain a difference map of the target area.

作为本发明实施例的一种具体实施方式,所述基于所述多个图像,检测所述待测对象是否为活体,还包括:As a specific implementation manner of the embodiment of the present invention, the detecting whether the object to be tested is a living body based on the plurality of images further includes:

在差分图中提取离散傅里叶变换特征:Extract discrete Fourier transform features in a difference map:

Ff (( kk ,, ll )) == ΣΣ mm == 00 NN -- 11 ΣΣ nno == 00 NN -- 11 II (( mm ,, nno )) ee -- 22 ππ (( kk mm // NN ++ lnln // NN )) ii

其中eix=cosx+sinx,I(m,n)为目标区域差分图的像素值,N为差分图尺寸。Where e ix =cosx+sinx, I(m,n) is the pixel value of the difference map of the target area, and N is the size of the difference map.

作为本发明实施例的一种具体实施方式,所述基于所述多个图像,检测所述待测对象是否为活体,还包括:As a specific implementation manner of the embodiment of the present invention, the detecting whether the object to be tested is a living body based on the plurality of images further includes:

获取所述第一图像及第二图像的图形类型;以及obtain the graphics type of the first image and the second image; and

基于所述图像类型提取所述第一图像及第二图像的辅助特征。Auxiliary features of the first image and the second image are extracted based on the image type.

作为本发明实施例的一种具体实施方式,所述基于所述多个图像,检测所述待测对象是否为活体,还包括:As a specific implementation manner of the embodiment of the present invention, the detecting whether the object to be tested is a living body based on the plurality of images further includes:

利用所述离散傅里叶变换特征及所述辅助特征构建特征向量;constructing a feature vector using the discrete Fourier transform feature and the auxiliary feature;

将所述特征向量作为输入,通过基于机器学习建立的反光特性的分类器进行分析,判断所述待测目标是否为活体。The feature vector is used as an input, and is analyzed by a classifier based on reflective characteristics established by machine learning to determine whether the target to be tested is a living body.

由以上可见,本发明实施例提供的方案中,通过连续发射不规则的闪光脉冲,并实时采集人脸面部的反射,例如皮肤光泽的变化。由于图片、视频播放屏幕、以及面具等的反光性比较均匀,而真实的人脸由于皮肤的非均匀和表面的起伏变化,其反光特性呈现不均匀分布。通过比较在闪光和非闪光条件下的人脸反光变化,从而确定当前人脸是来自真实的人,还是来自预先制作的素材。由于目前的很多便携式设备,都自带了拍摄相机和手电筒等光源发射功能,通过拍摄相机和手电筒的闪光功能,即可满足所需功能,无需额外的设备,减少了系统的复杂性,提供友好的用户体验。同时,为了能够获取不同类型人脸的光照反射分布情况,并且准确区分人脸反光与静止图片、视频播放屏幕、面具等非人脸反光之间的差别,本专利还采用了机器学习技术,通过大量的人脸和非人脸训练素材(包括静止图片、手工制作的人脸形状图片、人脸视频,以及人脸面具),建立人脸和非人脸的学习分类器,克服了当前其他方法存在的问题,从而准确的判定各种类型的活体人脸或非活体素材。It can be seen from the above that in the solutions provided by the embodiments of the present invention, irregular flash pulses are emitted continuously, and the reflections of the human face, such as changes in skin gloss, are collected in real time. Due to the relatively uniform reflectivity of pictures, video playback screens, and masks, the reflective properties of real faces show uneven distribution due to non-uniform skin and surface fluctuations. Determines whether the current face is from a real person or from pre-produced footage by comparing the change in the reflection of the face under flashing and non-flashing conditions. As many of the current portable devices have their own light source emission functions such as shooting cameras and flashlights, the required functions can be met through the flashing functions of the shooting cameras and flashlights, and no additional equipment is required, which reduces the complexity of the system and provides friendly user experience. At the same time, in order to be able to obtain the light reflection distribution of different types of faces, and to accurately distinguish the difference between face reflections and non-face reflections such as still pictures, video playback screens, and masks, this patent also uses machine learning technology, through A large number of face and non-face training materials (including still pictures, hand-made face shape pictures, face videos, and face masks), the establishment of learning classifiers for faces and non-faces, overcoming other current methods Existing problems, so as to accurately determine various types of living human faces or non-living materials.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图;In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. Those skilled in the art can also obtain other drawings based on these drawings without creative work;

图1为本发明实施例提供的另一种基于光脉冲的人脸活体检测系统的结构图;FIG. 1 is a structural diagram of another optical pulse-based human face liveness detection system provided by an embodiment of the present invention;

图2为本发明实施例提供的一种基于光脉冲的人脸活体检测系统检测装置的结构图;FIG. 2 is a structural diagram of a detection device for a human face liveness detection system based on light pulses provided by an embodiment of the present invention;

图3为本发明实施例提供的另一种基于光脉冲的人脸活体检测系统检测装置的结构图;FIG. 3 is a structural diagram of another optical pulse-based human face liveness detection system detection device provided by an embodiment of the present invention;

图4为本发明实施例提供的一种基于光脉冲的人脸活体检测方法流程图。FIG. 4 is a flow chart of a method for detecting human face liveness based on light pulses according to an embodiment of the present invention.

具体实施方式detailed description

下面将详细参考实施例,实施例的示例在附图2-3中示出。在下面的详细描述中,阐述了大量具体细节以提供对本发明的全面理解。但是,对于本领域技术人员而言显然的是,没有这些具体细节也可以实施本发明。在其它实例中,没有详细描述已知的方法、过程、部件、电路和网络,以免不必要地模糊实施例的各方面。Reference will now be made in detail to the embodiments, examples of which are illustrated in accompanying drawings 2-3. In the following detailed description, numerous specific details are set forth in order to provide a thorough understanding of the present invention. It will be apparent, however, to one skilled in the art that the present invention may be practiced without these specific details. In other instances, well-known methods, procedures, components, circuits and networks have not been described in detail so as not to unnecessarily obscure aspects of the embodiments.

也应该理解,虽然这里可使用术语第一、第二等来描述各种元素,但是这些元素不应当局限于这些术语。这些术语仅仅用于将一个元素与另一元素区分开。例如,第一姿态可被称为第二姿态,并且类似地,第二姿态可被称为第一姿态,而不会脱离本发明的范围。It should also be understood that, although the terms first, second etc. may be used herein to describe various elements, these elements should not be limited by these terms. These terms are only used to distinguish one element from another. For example, a first posture could be termed a second posture, and, similarly, a second posture could be termed a first posture, without departing from the scope of the present invention.

在此,在本发明的说明书中使用的术语仅仅是为了描述特定的实施例,而不是意图限制本发明。如在本发明的说明书和所附权利要求中所使用的,单数形式″一个″、″一种″和″该″意图也包括复数形式,除非上下文以别的方式清楚指明。还应该理解,这里所使用的术语″和/或″指的是、且包含相关列出项中的一个或多个的任何和所有可能的组合。还应该理解,术语″包括″和/或″包含″当用于该说明书时,表示存在所述的特征、整体(integer)、步骤、操作、元素、和/或部件,但是不排除存在或增加一个或多个其它特征、整体、步骤、操作、元素、部件、和/或其集合。Here, terms used in the description of the present invention are only for describing specific embodiments, and are not intended to limit the present invention. As used in the description of the present invention and the appended claims, the singular forms "a", "an" and "the" are intended to include the plural forms as well unless the context clearly dictates otherwise. It should also be understood that the term "and/or" as used herein refers to and includes any and all possible combinations of one or more of the associated listed items. It should also be understood that the term "comprises" and/or "comprises" when used in this specification means the presence of the stated features, integers, steps, operations, elements, and/or components, but does not exclude the presence or addition of One or more other features, integers, steps, operations, elements, components, and/or collections thereof.

图1为本发明实施例提供的基于光脉冲的人脸活体检测系统结构示意图,该系统100包括:FIG. 1 is a schematic structural diagram of a human face liveness detection system based on light pulses provided by an embodiment of the present invention. The system 100 includes:

发光装置101,所述发光装置以预设频率向待测对象发射不同信号强度的光信号。A light emitting device 101, the light emitting device emits light signals with different signal intensities to the object to be measured at a preset frequency.

具体的,发光装置可以是一个独立的可控光源,也可以是集成在设备上一体的光源。发光装置在短间距中采集的受可控光源照射的连续帧普通图像,本系统使用一秒内的连续20帧。Specifically, the light emitting device may be an independent controllable light source, or a light source integrated into the device. Continuous frames of ordinary images illuminated by a controllable light source collected by the light-emitting device in a short distance. This system uses 20 consecutive frames within one second.

除了可见光之外,发光装置可以产生红外光等其他可以成像的射线。In addition to visible light, light-emitting devices can generate other imaging rays such as infrared light.

摄像装置102,所述摄像装置用于获取所述待测对象在不同信号强度的光信号下产生的多个图像。An imaging device 102, configured to acquire multiple images of the object to be measured under light signals of different signal intensities.

具体的,可以利用普通摄像机获取普通图像,普通图像可以包含但不限于灰度图像、彩色图像或红外图像,摄像装置102的来源包含但不限于网络摄像头、监控摄像头以及手机自带的摄像头。Specifically, ordinary cameras can be used to acquire ordinary images, and ordinary images can include but not limited to grayscale images, color images or infrared images, and sources of the camera device 102 include but not limited to network cameras, surveillance cameras, and cameras that come with mobile phones.

检测装置103,所述检测装置基于所述多个图像,检测所述待测对象是否为活体。A detecting device 103, the detecting device detects whether the object to be tested is a living body based on the plurality of images.

具体的,检测装置103从摄像装置102拍摄的多张含有人脸的照片中选择成像质量较好、且反差较大的若干张图像,由于活体人脸的反光相比相片的反光更加发散,因此,通过比较上述照片的成像光亮度的差值即可判断待测对象是否为活体。Specifically, the detection device 103 selects several images with better imaging quality and higher contrast from the multiple photos containing faces taken by the camera device 102. Since the reflection of a live face is more divergent than that of a photo, the , it can be judged whether the object to be tested is a living body by comparing the difference of the imaging luminance of the above photos.

作为一种实施方式,检测装置103还包括提取装置1031。As an implementation manner, the detecting device 103 further includes an extracting device 1031 .

提取装置1031对所有连续帧进行人脸检测,得到分别人脸出现的区域及人脸关键点。计算区域及关键点的方差,若低于某一阈值则拾弃并重新进行活体检测,否则计算一个平均人脸区域。The extracting device 1031 performs face detection on all consecutive frames, and obtains the areas where faces appear and the key points of faces. Calculate the variance of the area and key points, if it is lower than a certain threshold, it will be discarded and the liveness detection will be performed again, otherwise, an average face area will be calculated.

提取装置1031还用于计算每帧内平均人脸区域中的平均亮度。舍弃平均亮度高于上限阈值或低于下限阈值的帧。选择关键点变化在某阈值范围中平均亮度最低值及最高值两帧,记为I1及I2The extracting means 1031 is also used to calculate the average brightness in the average face area in each frame. Frames with average brightness above the upper threshold or below the lower threshold are discarded. Select the two frames with the lowest value and the highest value of the average brightness of key point changes in a certain threshold range, which are recorded as I 1 and I 2 .

作为一种可选实施方式,检测装置103还包括预处理装置1033,对光暗两帧图像进行包括但不限于缩放、裁剪、去噪声、模糊化等。此预处理操作能大大提高最后判断的准确度。As an optional implementation manner, the detection device 103 further includes a preprocessing device 1033 , which includes but is not limited to scaling, cropping, denoising, blurring, and the like on the two frames of light and dark images. This preprocessing operation can greatly improve the accuracy of the final judgment.

作为一种可选实施方式,对识别出的人脸进行归一化处理,在人脸区域中人脸的大小尺寸并非固定,因此需要对其进行归一化处理,其方法包括以下步骤:计算I1中的人脸关键点,并计算与预定的平均人脸的变换矩阵,将人脸关键点映射到标准位置,并人脸图像变换到标准大小。利用上述的矩阵对I2进行同样变换。As an optional implementation, the normalization process is performed on the recognized faces. The size of the face in the face area is not fixed, so it needs to be normalized. The method includes the following steps: The key points of the face in I 1 , and calculate the transformation matrix with the predetermined average face, map the key points of the face to the standard position, and transform the face image to the standard size. The same transformation is performed on I2 using the matrix above.

作为一种可选实施方式,得到归一化后的高亮度及低亮度图像后,进行差分处理获得光暗人脸差分图。As an optional implementation manner, after the normalized high-brightness and low-brightness images are obtained, differential processing is performed to obtain a light-dark face difference map.

具体的,在差分图中提取离散傅里叶变换特征:Specifically, the discrete Fourier transform features are extracted in the difference map:

Ff (( kk ,, ll )) == ΣΣ mm == 00 NN -- 11 ΣΣ nno == 00 NN -- 11 II (( mm ,, nno )) ee -- 22 ππ (( kk mm // NN ++ lnln // NN )) ii

其中eix=cosx+sinx,I(m,n)为目标区域差分图的像素值,N为差分图尺寸。Where e ix =cosx+sinx, I(m,n) is the pixel value of the difference map of the target area, and N is the size of the difference map.

除了离散傅里叶变换特征之外,其他适用的特征包括但不限于:对整张脸或在某些关键点附近提取像素值、LBP、Gabor、梯度直方图换、SIFT、SURF等。In addition to discrete Fourier transform features, other applicable features include but are not limited to: extracting pixel values for the entire face or near certain key points, LBP, Gabor, gradient histogram conversion, SIFT, SURF, etc.

差分图能够很好地反映图像的材质信息,以及局部光照随时间变化的信息,但对于空间变化敏感度高,因此需要提取其他非关于空间变化的特征。若为彩色图像,在能够反映光照信息的通道提取更多辅助特征。通道包括HSV的V通道,YUV的Y通道,LAB的L通道及RGB三个通度的加权平均值;若为灰阶或红外图像,则使用其单通度值。在本实例中,在光暗两帧图像的人脸区域的已选通道上提取傅里叶变换特征,也可使用上述其他合适特征。The difference map can well reflect the material information of the image and the information of local illumination changes over time, but it is highly sensitive to spatial changes, so other features that are not related to spatial changes need to be extracted. If it is a color image, more auxiliary features are extracted in channels that can reflect illumination information. The channels include the V channel of HSV, the Y channel of YUV, the L channel of LAB and the weighted average of the three passes of RGB; if it is a grayscale or infrared image, use its single pass value. In this example, the Fourier transform features are extracted from the selected channels of the face area of the two frames of light and dark images, and other suitable features mentioned above may also be used.

作为一种可选实施方式,串联离散傅里叶特征和辅助特征得到一个特征向量。利用机器学习的模型建立活体和非活体的随机森林分类器。本系统的模型利用大量在不同环境下采集的人脸和非人脸(如手机或平板电脑屏幕上的人脸、以不同材质打印的照片)数据(五十万组)进行训练。训练算法的输入为上述的特征向量和预期输出。其他合适的机器学习算法包含,但不限于人工神经网络、决策树、支持向量机、卷积神经网络等。利用分类器的得分作出判断,若大于等于阈值则判为活体,小于则为非活体。As an optional implementation manner, a feature vector is obtained by concatenating the discrete Fourier feature and the auxiliary feature. Using the model of machine learning to build a random forest classifier for living and non-living. The model of this system uses a large number of data (500,000 groups) of human faces and non-human faces collected in different environments (such as human faces on the screen of mobile phones or tablet computers, and photos printed with different materials) for training. The input of the training algorithm is the above feature vector and expected output. Other suitable machine learning algorithms include, but are not limited to, artificial neural networks, decision trees, support vector machines, convolutional neural networks, and the like. Use the score of the classifier to make a judgment. If it is greater than or equal to the threshold, it will be judged as a living body, and if it is less than the threshold, it will be judged as a non-living body.

图4为本发明实施例提供的基于光脉冲的人脸活体检测方法流程图,该方法包括:Fig. 4 is the flow chart of the human face detection method based on light pulse provided by the embodiment of the present invention, the method includes:

S401,以预设频率向待测对象发射不同信号强度的光信号。S401. Transmit optical signals with different signal intensities to the object to be measured at a preset frequency.

具体的,采用发光装置执行上述步骤S501,发光装置可以是一个独立的可控光源,也可以是集成在设备上一体的光源。发光装置在短间距中采集的受可控光源照射的连续帧普通图像,本系统使用一秒内的连续20帧。Specifically, the above step S501 is performed by using a light emitting device. The light emitting device may be an independent controllable light source, or a light source integrated in the device. Continuous frames of ordinary images illuminated by a controllable light source collected by the light-emitting device in a short distance. This system uses 20 consecutive frames within one second.

除了可见光之外,发光装置可以产生红外光等其他可以成像的射线。In addition to visible light, light-emitting devices can generate other imaging rays such as infrared light.

S402,获取所述待测对象在不同信号强度的光信号下产生的多个图像。S402. Acquire multiple images of the object to be measured under light signals of different signal intensities.

具体的,可以利用普通摄像机获取普通图像,普通图像可以包含但不限于灰度图像、彩色图像或红外图像,摄像装置的来源包含但不限于网络摄像头、监控摄像头以及手机自带的摄像头。Specifically, ordinary cameras can be used to obtain ordinary images, and ordinary images can include but not limited to grayscale images, color images or infrared images, and sources of camera devices include but not limited to network cameras, surveillance cameras, and cameras that come with mobile phones.

S403,基于所述多个图像,检测所述待测对象是否为活体。S403. Based on the multiple images, detect whether the object to be tested is a living body.

具体的,从摄像装置拍摄的多张含有人脸的照片中选择成像质量较好、且反差较大的若干张图像,由于活体人脸的反光相比相片的反光更加发散,因此,通过比较上述照片的成像光亮度的差值即可判断待测对象是否为活体。Specifically, several images with better imaging quality and higher contrast are selected from multiple photos containing faces taken by the camera device. Since the reflection of living human faces is more divergent than that of photos, by comparing the above Whether the object to be tested is a living body can be judged by the difference value of the imaging luminance of the photo.

作为一种实施方式,对所有连续帧进行人脸检测,得到分别人脸出现的区域及人脸关键点。计算区域及关键点的方差,若低于某一阈值则拾弃并重新进行活体检测,否则计算一个平均人脸区域。计算每帧内平均人脸区域中的平均亮度。舍弃平均亮度高于上限阈值或低于下限阈值的帧。选择关键点变化在某阈值范围中平均亮度最低值及最高值两帧,记为I1及I2As an implementation manner, face detection is performed on all consecutive frames to obtain areas where faces appear and key points of faces. Calculate the variance of the area and key points, if it is lower than a certain threshold, it will be discarded and the liveness detection will be performed again, otherwise, an average face area will be calculated. Computes the average brightness in the average face region within each frame. Frames with average brightness above the upper threshold or below the lower threshold are discarded. Select the two frames with the lowest value and the highest value of the average brightness of key point changes in a certain threshold range, which are recorded as I 1 and I 2 .

作为一种可选实施方式,该方法还包括预处理步骤,对光暗两帧图像进行包括但不限于缩放、裁剪、去噪声、模糊化等。此预处理操作能大大提高最后判断的准确度。As an optional implementation manner, the method further includes a preprocessing step, including but not limited to scaling, cropping, denoising, blurring, etc., on the two frames of light and dark images. This preprocessing operation can greatly improve the accuracy of the final judgment.

作为一种可选实施方式,对识别出的人脸进行归一化处理,在人脸区域中人脸的大小尺寸并非固定,因此需要对其进行归一化处理,其方法包括以下步骤:计算I1中的人脸关键点,并计算与预定的平均人脸的变换矩阵,将人脸关键点映射到标准位置,并人脸图像变换到标准大小。利用上述的矩阵对I2进行同样变换。As an optional implementation, the normalization process is performed on the recognized faces. The size of the face in the face area is not fixed, so it needs to be normalized. The method includes the following steps: The key points of the face in I 1 , and calculate the transformation matrix with the predetermined average face, map the key points of the face to the standard position, and transform the face image to the standard size. The same transformation is performed on I2 using the matrix above.

作为一种可选实施方式,得到归一化后的高亮度及低亮度图像后,进行差分处理获得光暗人脸差分图。As an optional implementation manner, after the normalized high-brightness and low-brightness images are obtained, differential processing is performed to obtain a light-dark face difference map.

具体的,在差分图中提取离散傅里叶变换特征:Specifically, the discrete Fourier transform features are extracted in the difference map:

Ff (( kk ,, ll )) == ΣΣ mm == 00 NN -- 11 ΣΣ nno == 00 NN -- 11 II (( mm ,, nno )) ee -- 22 ππ (( kk mm // NN ++ lnln // NN )) ii

其中eix=cosx+sinx,I(m,n)为目标区域差分图的像素值,N为差分图尺寸。Where e ix =cosx+sinx, I(m,n) is the pixel value of the difference map of the target area, and N is the size of the difference map.

除了离散傅里叶变换特征之外,其他适用的特征包括但不限于:对整张脸或在某些关键点附近提取像素值、LBP、Gabor、梯度直方图换、SIFT、SURF等。In addition to discrete Fourier transform features, other applicable features include but are not limited to: extracting pixel values for the entire face or near certain key points, LBP, Gabor, gradient histogram conversion, SIFT, SURF, etc.

差分图能够很好地反映图像的材质信息,以及局部光照随时间变化的信息,但对于空间变化敏感度高,因此需要提取其他非关于空间变化的特征。若为彩色图像,在能够反映光照信息的通道提取更多辅助特征。通道包括HSV的V通道,YUV的Y通道,LAB的L通道及RGB三个通度的加权平均值;若为灰阶或红外图像,则使用其单通度值。在本实例中,在光暗两帧图像的人脸区域的已选通道上提取傅里叶变换特征,也可使用上述其他合适特征。The difference map can well reflect the material information of the image and the information of local illumination changes over time, but it is highly sensitive to spatial changes, so other features that are not related to spatial changes need to be extracted. If it is a color image, more auxiliary features are extracted in channels that can reflect illumination information. The channels include the V channel of HSV, the Y channel of YUV, the L channel of LAB and the weighted average of the three passes of RGB; if it is a grayscale or infrared image, use its single pass value. In this example, the Fourier transform features are extracted from the selected channels of the face area of the two frames of light and dark images, and other suitable features mentioned above may also be used.

作为一种可选实施方式,串联离散傅里叶特征和辅助特征得到一个特征向量。利用机器学习的模型建立活体和非活体的随机森林分类器。本系统的模型利用大量在不同环境下采集的人脸和非人脸(如手机或平板电脑屏幕上的人脸、以不同材质打印的照片)数据(五十万组)进行训练。训练算法的输入为上述的特征向量和预期输出。其他合适的机器学习算法包含,但不限于人工神经网络、决策树、支持向量机、卷积神经网络等。利用分类器的得分作出判断,若大于等于阈值则判为活体,小于则为非活体。As an optional implementation manner, a feature vector is obtained by concatenating the discrete Fourier feature and the auxiliary feature. Using the model of machine learning to build a random forest classifier for living and non-living. The model of this system uses a large number of data (500,000 groups) of human faces and non-human faces collected in different environments (such as human faces on the screen of mobile phones or tablet computers, and photos printed with different materials) for training. The input of the training algorithm is the above feature vector and expected output. Other suitable machine learning algorithms include, but are not limited to, artificial neural networks, decision trees, support vector machines, convolutional neural networks, and the like. Use the score of the classifier to make a judgment. If it is greater than or equal to the threshold, it will be judged as a living body, and if it is less than the threshold, it will be judged as a non-living body.

需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that there is a relationship between these entities or operations. any such actual relationship or order exists between them. Furthermore, the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements, but also includes elements not expressly listed. other elements of or also include elements inherent in such a process, method, article, or device. Without further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article or apparatus comprising said element.

本领域普通技术人员可以理解实现上述方法实施方式中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,所述的程序可以存储于计算机可读取存储介质中,这里所称得的存储介质,如:ROM/RAM、磁碟、光盘等。Those of ordinary skill in the art can understand that all or part of the steps in the implementation of the above method can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, referred to herein as Storage media, such as: ROM/RAM, disk, CD, etc.

以上所述仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。凡在本发明的精神和原则之内所作的任何修改、等同替换、改进等,均包含在本发明的保护范围内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principles of the present invention are included in the protection scope of the present invention.

Claims (24)

1.一种基于光脉冲的人脸活体检测系统,其特征在于,所述系统包括:1. A human face living body detection system based on light pulse, it is characterized in that, described system comprises: 发光装置,所述发光装置以预设频率向待测对象发射不同信号强度的光信号;A light-emitting device, the light-emitting device emits light signals of different signal intensities to the object to be measured at a preset frequency; 摄像装置,所述摄像装置用于获取所述待测对象在不同信号强度的光信号下产生的多个图像;以及an imaging device, the imaging device is used to acquire multiple images of the object to be measured under light signals of different signal intensities; and 检测装置,所述检测装置基于所述多个图像,检测所述待测对象是否为活体。A detection device, the detection device detects whether the object to be detected is a living body based on the plurality of images. 2.根据权利要求1所述的系统,其特征在于,优选的,所述检测装置包括:2. The system according to claim 1, wherein preferably, the detection device comprises: 提取装置,所述提取装置在多个图像上提取待测对象的目标区域,并获取所述目标区域的特征点信息;以及an extracting device, the extracting device extracts target areas of the object to be measured on multiple images, and acquires feature point information of the target areas; and 判断装置,所述判断装置基于所述目标区域及所述特征点信息,判断所述待测对象是否为活体。A judging device, which judges whether the object to be measured is a living body based on the target area and the feature point information. 3.根据权利要求2所述的系统,其特征在于,所述提取装置还用于:3. The system according to claim 2, wherein the extraction device is also used for: 计算所述摄像装置获取的当前图像上的所述目标区域与所述特征点之间的方差;calculating the variance between the target area and the feature points on the current image acquired by the camera; 当所述方差是否低于第一阈值时,舍弃当前图像,再次从所述摄像装置上获取待测对象的图像。When the variance is lower than the first threshold, the current image is discarded, and the image of the object to be measured is acquired from the camera device again. 4.根据权利要求2所述的系统,其特征在于,所述提取装置还用于:4. The system according to claim 2, wherein the extraction device is also used for: 计算所述摄像装置获取的每幅图像上的所述目标区域的平均亮度值;calculating the average brightness value of the target area on each image captured by the camera; 对平均亮度值大于第二阈值或低于第三阈值的图像进行舍弃处理。Discarding is performed on images whose average brightness value is greater than the second threshold or lower than the third threshold. 5.根据权利要求4所述的系统,其特征在于,所述提取装置还用于:5. The system according to claim 4, wherein the extraction device is also used for: 在预设亮度值范围内,选取关键点平均亮度值最低的图像作为第一图像,选取关键点平均亮度值最高的图像作为第二图像。Within the range of preset brightness values, the image with the lowest average brightness value of key points is selected as the first image, and the image with the highest average brightness value of key points is selected as the second image. 6.根据权利要求5所述的系统,其特征在于,所述检测装置还包括:6. The system according to claim 5, wherein the detection device further comprises: 预处理装置,用于对所述第一图像及第二图像进行图像预处理。A preprocessing device, configured to perform image preprocessing on the first image and the second image. 7.根据权利要求6所述的系统,其特征在于,所述基于所述多个图像,检测所述待测对象是否为活体,包括:7. The system according to claim 6, wherein the detecting whether the object to be measured is a living body based on the plurality of images comprises: 分别对所述第一图像及第二图像的目标区域进行归一化处理,将所述特征点映射到统一的标准位置。The target areas of the first image and the second image are respectively subjected to normalization processing, and the feature points are mapped to a unified standard position. 8.根据权利要求7所述的系统,其特征在于,所述对所述目标区域进行归一化处理,将所述特征点映射到统一的标准位置,包括:8. The system according to claim 7, wherein said normalizing said target area and mapping said feature points to a unified standard position comprises: 分别计算第一图像及第二图像上的目标区域关键点与预定的平均目标区域的变换矩阵,将目标区域关键点映射到标准位置。The transformation matrices between the key points of the target area and the predetermined average target area on the first image and the second image are respectively calculated, and the key points of the target area are mapped to standard positions. 9.根据权利要求7或8所述的系统,其特征在于,所述基于所述多个图像,检测所述待测对象是否为活体,还包括:9. The system according to claim 7 or 8, wherein the detecting whether the object to be measured is a living body based on the plurality of images further comprises: 对归一化处理后的第一图像及第二图像进行差分处理,获得目标区域差分图。Difference processing is performed on the normalized first image and the second image to obtain a difference map of the target area. 10.根据权利要求9所述的系统,其特征在于,所述基于所述多个图像,检测所述待测对象是否为活体,还包括:10. The system according to claim 9, wherein the detecting whether the object to be measured is a living body based on the plurality of images further comprises: 在差分图中提取离散傅里叶变换特征:Extract discrete Fourier transform features in a difference map: Ff (( kk ,, ll )) == ΣΣ mm == 00 NN -- 11 ΣΣ nno == 00 NN -- 11 II (( mm ,, nno )) ee -- 22 ππ (( kk mm // NN ++ ll nno // NN )) ii 其中eix=cosx+sinx,I(m,n)为目标区域差分图的像素值,N为差分图尺寸。Where e ix =cosx+sinx, I(m,n) is the pixel value of the difference map of the target area, and N is the size of the difference map. 11.根据权利要求10所述的系统,其特征在于,所述基于所述多个图像,检测所述待测对象是否为活体,还包括:11. The system according to claim 10, wherein the detecting whether the object to be tested is a living body based on the plurality of images further comprises: 获取所述第一图像及第二图像的图形类型;以及obtain the graphics type of the first image and the second image; and 基于所述图像类型提取所述第一图像及第二图像的辅助特征。Auxiliary features of the first image and the second image are extracted based on the image type. 12.根据权利要求11所述的系统,其特征在于,所述基于所述多个图像,检测所述待测对象是否为活体,还包括:12. The system according to claim 11, wherein the detecting whether the object to be tested is a living body based on the plurality of images further comprises: 利用所述离散傅里叶变换特征及所述辅助特征构建特征向量;constructing a feature vector using the discrete Fourier transform feature and the auxiliary feature; 将所述特征向量作为输入,通过基于机器学习建立的反光特性的分类器进行分析,判断所述待测目标是否为活体。The feature vector is used as an input, and is analyzed by a classifier based on reflective characteristics established by machine learning to determine whether the target to be tested is a living body. 13.一种基于光脉冲的人脸活体检测方法,其特征在于,所述方法包括:13. A human face living body detection method based on light pulses, characterized in that the method comprises: 以预设频率向待测对象发射不同信号强度的光信号;Transmit optical signals with different signal strengths to the object to be measured at a preset frequency; 获取所述待测对象在不同信号强度的光信号下产生的多个图像;以及acquiring a plurality of images of the object to be measured under light signals of different signal intensities; and 基于所述多个图像,检测所述待测对象是否为活体。Based on the plurality of images, it is detected whether the object to be detected is a living body. 14.根据权利要求13所述的方法,其特征在于,所述基于所述多个图像,检测所述待测对象是否为活体,包括:14. The method according to claim 13, wherein the detecting whether the object to be tested is a living body based on the plurality of images comprises: 在多个图像上提取待测对象的目标区域,并获取所述目标区域的特征点信息;以及Extracting target areas of the object to be measured on multiple images, and acquiring feature point information of the target areas; and 基于所述目标区域及所述特征点信息,判断所述待测对象是否为活体。Based on the target area and the feature point information, it is judged whether the object to be measured is a living body. 15.根据权利要求14所述的方法,其特征在于,所述获取所述待测对象在不同信号强度的光信号下产生的多个图像,包括:15. The method according to claim 14, wherein said acquiring a plurality of images of the object to be measured produced under light signals of different signal intensities comprises: 计算所述摄像装置获取的当前图像上的所述目标区域与所述特征点之间的方差;calculating the variance between the target area and the feature points on the current image acquired by the camera; 当所述方差是否低于第一阈值时,舍弃当前图像,再次从所述摄像装置上获取待测对象的图像。When the variance is lower than the first threshold, the current image is discarded, and the image of the object to be measured is acquired from the camera device again. 16.根据权利要求14所述的方法,其特征在于,所述获取所述待测对象在不同信号强度的光信号下产生的多个图像,还包括:16. The method according to claim 14, wherein said obtaining a plurality of images of the object to be measured produced under light signals of different signal intensities further comprises: 计算所述摄像装置获取的每幅图像上的所述目标区域的平均亮度值;calculating the average brightness value of the target area on each image captured by the camera; 对平均亮度值大于第二阈值或低于第三阈值的图像进行舍弃处理。Discarding is performed on images whose average brightness value is greater than the second threshold or lower than the third threshold. 17.根据权利要求16所述的方法,其特征在于,所述获取所述待测对象在不同信号强度的光信号下产生的多个图像,还包括:17. The method according to claim 16, wherein said acquiring a plurality of images of the object to be measured produced under light signals of different signal intensities further comprises: 在预设亮度值范围内,选取关键点平均亮度值最低的图像作为第一图像,选取关键点平均亮度值最高的图像作为第二图像。Within the range of preset brightness values, the image with the lowest average brightness value of key points is selected as the first image, and the image with the highest average brightness value of key points is selected as the second image. 18.根据权利要求17所述的方法,其特征在于,所述方法还包括:18. The method of claim 17, further comprising: 对所述第一图像及第二图像进行图像预处理。Image preprocessing is performed on the first image and the second image. 19.根据权利要求18所述的方法,其特征在于,所述基于所述多个图像,检测所述待测对象是否为活体,包括:19. The method according to claim 18, wherein the detecting whether the object to be tested is a living body based on the plurality of images comprises: 分别对所述第一图像及第二图像的目标区域进行归一化处理,将所述特征点映射到统一的标准位置。The target areas of the first image and the second image are respectively subjected to normalization processing, and the feature points are mapped to a unified standard position. 20.根据权利要求19所述的方法,其特征在于,所述对所述目标区域进行归一化处理,将所述特征点映射到统一的标准位置,包括:20. The method according to claim 19, wherein said normalizing said target area and mapping said feature points to a unified standard position comprises: 分别计算第一图像及第二图像上的目标区域关键点与预定的平均目标区域的变换矩阵,将目标区域关键点映射到标准位置。The transformation matrices between the key points of the target area and the predetermined average target area on the first image and the second image are respectively calculated, and the key points of the target area are mapped to standard positions. 21.根据权利要求19或20所述的方法,其特征在于,所述基于所述多个图像,检测所述待测对象是否为活体,还包括:21. The method according to claim 19 or 20, wherein the detecting whether the object to be tested is a living body based on the plurality of images further comprises: 对归一化处理后的第一图像及第二图像进行差分处理,获得目标区域差分图。Difference processing is performed on the normalized first image and the second image to obtain a difference map of the target area. 22.根据权利要求21所述的方法,其特征在于,所述基于所述多个图像,检测所述待测对象是否为活体,还包括:22. The method according to claim 21, wherein the detecting whether the object to be tested is a living body based on the plurality of images further comprises: 在差分图中提取离散傅里叶变换特征:Extract discrete Fourier transform features in a difference map: Ff (( kk ,, ll )) == ΣΣ mm == 00 NN -- 11 ΣΣ nno == 00 NN -- 11 II (( mm ,, nno )) ee -- 22 ππ (( kk mm // NN ++ ll nno // NN )) ii 其中eix=cosx+sinx,I(m,n)为目标区域差分图的像素值,N为差分图尺寸。Where e ix =cosx+sinx, I(m,n) is the pixel value of the difference map of the target area, and N is the size of the difference map. 23.根据权利要求22所述的方法,其特征在于,所述基于所述多个图像,检测所述待测对象是否为活体,还包括:23. The method according to claim 22, wherein the detecting whether the object to be tested is a living body based on the plurality of images further comprises: 获取所述第一图像及第二图像的图形类型;以及obtaining the graphic type of the first image and the second image; and 基于所述图像类型提取所述第一图像及第二图像的辅助特征。Auxiliary features of the first image and the second image are extracted based on the image type. 24.根据权利要求23所述的方法,其特征在于,所述基于所述多个图像,检测所述待测对象是否为活体,还包括:24. The method according to claim 23, wherein the detecting whether the object to be tested is a living body based on the plurality of images further comprises: 利用所述离散傅里叶变换特征及所述辅助特征构建特征向量;constructing a feature vector using the discrete Fourier transform feature and the auxiliary feature; 将所述特征向量作为输入,通过基于机器学习建立的反光特性的分类器进行分析,判断所述待测目标是否为活体。The feature vector is used as an input, and is analyzed by a classifier based on reflective characteristics established by machine learning to determine whether the target to be tested is a living body.
CN201510828738.1A 2015-11-25 2015-11-25 A system and method for human face liveness detection based on light pulses Pending CN105260731A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510828738.1A CN105260731A (en) 2015-11-25 2015-11-25 A system and method for human face liveness detection based on light pulses

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510828738.1A CN105260731A (en) 2015-11-25 2015-11-25 A system and method for human face liveness detection based on light pulses

Publications (1)

Publication Number Publication Date
CN105260731A true CN105260731A (en) 2016-01-20

Family

ID=55100412

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510828738.1A Pending CN105260731A (en) 2015-11-25 2015-11-25 A system and method for human face liveness detection based on light pulses

Country Status (1)

Country Link
CN (1) CN105260731A (en)

Cited By (33)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106203305A (en) * 2016-06-30 2016-12-07 北京旷视科技有限公司 Human face in-vivo detection method and device
CN106599872A (en) * 2016-12-23 2017-04-26 北京旷视科技有限公司 Method and equipment for verifying living face images
CN106778518A (en) * 2016-11-24 2017-05-31 汉王科技股份有限公司 A kind of human face in-vivo detection method and device
CN107038428A (en) * 2017-04-28 2017-08-11 北京小米移动软件有限公司 Vivo identification method and device
CN107169405A (en) * 2017-03-17 2017-09-15 上海云从企业发展有限公司 Method and device based on binocular camera vivo identification
CN107392135A (en) * 2017-07-14 2017-11-24 广东欧珀移动通信有限公司 Liveness detection method and related products
CN107832712A (en) * 2017-11-13 2018-03-23 深圳前海微众银行股份有限公司 Biopsy method, device and computer-readable recording medium
CN107909063A (en) * 2017-12-22 2018-04-13 天津科技大学 Bio-identification video playback attack detection method based on grey scale change
CN107992797A (en) * 2017-11-02 2018-05-04 中控智慧科技股份有限公司 Face identification method and relevant apparatus
CN107992845A (en) * 2017-12-14 2018-05-04 广东工业大学 A kind of face recognition the method for distinguishing and device, computer equipment
CN107992794A (en) * 2016-12-30 2018-05-04 腾讯科技(深圳)有限公司 A kind of biopsy method, device and storage medium
CN108446690A (en) * 2018-05-31 2018-08-24 北京工业大学 A kind of human face in-vivo detection method based on various visual angles behavioral characteristics
CN108875331A (en) * 2017-08-01 2018-11-23 北京旷视科技有限公司 Face unlocking method, device and system and storage medium
CN108881674A (en) * 2017-06-05 2018-11-23 北京旷视科技有限公司 image collecting device and image processing method
CN108875485A (en) * 2017-09-22 2018-11-23 北京旷视科技有限公司 A kind of base map input method, apparatus and system
CN108921080A (en) * 2018-06-27 2018-11-30 北京旷视科技有限公司 Image-recognizing method, device and electronic equipment
CN109147116A (en) * 2018-07-25 2019-01-04 深圳市飞瑞斯科技有限公司 The method that smart lock and control smart lock are opened
CN109583285A (en) * 2017-09-29 2019-04-05 阿里巴巴集团控股有限公司 Object identifying method
WO2019134536A1 (en) * 2018-01-04 2019-07-11 杭州海康威视数字技术股份有限公司 Neural network model-based human face living body detection
CN110059579A (en) * 2019-03-27 2019-07-26 北京三快在线科技有限公司 For the method and apparatus of test alive, electronic equipment and storage medium
CN110334698A (en) * 2019-08-30 2019-10-15 上海聚虹光电科技有限公司 Glasses detection system and method
CN110874542A (en) * 2018-08-31 2020-03-10 北京意锐新创科技有限公司 Method and device suitable for reading bar codes displayed by different carriers
CN111126229A (en) * 2019-12-17 2020-05-08 中国建设银行股份有限公司 Data processing method and device
CN111126265A (en) * 2019-12-24 2020-05-08 杭州魔点科技有限公司 Living body detection method, living body detection device, electronic apparatus, and medium
CN111783640A (en) * 2020-06-30 2020-10-16 北京百度网讯科技有限公司 Detection method, device, equipment and storage medium
CN112232152A (en) * 2020-09-30 2021-01-15 墨奇科技(北京)有限公司 Non-contact fingerprint identification method and device, terminal and storage medium
CN112307832A (en) * 2019-07-31 2021-02-02 浙江维尔科技有限公司 Living body detection method and device based on shadow analysis
CN112487921A (en) * 2020-11-25 2021-03-12 奥比中光科技集团股份有限公司 Face image preprocessing method and system for living body detection
CN112507818A (en) * 2020-11-25 2021-03-16 奥比中光科技集团股份有限公司 Illumination estimation method and system based on near-infrared image
CN112749603A (en) * 2019-10-31 2021-05-04 上海商汤智能科技有限公司 Living body detection method, living body detection device, electronic apparatus, and storage medium
CN112966562A (en) * 2021-02-04 2021-06-15 深圳市街角电子商务有限公司 Face living body detection method, system and storage medium
CN114140854A (en) * 2021-11-29 2022-03-04 北京百度网讯科技有限公司 Living body detection method and device, electronic equipment and storage medium
CN116343349A (en) * 2023-03-15 2023-06-27 平安银行股份有限公司 A living body discrimination method, device, equipment and computer-readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1849614A (en) * 2003-07-16 2006-10-18 全感知有限公司 Facial Activity Rating System
CN102360420A (en) * 2011-10-10 2012-02-22 星越实业(香港)有限公司 Double dynamic detection biometric face recognition method and system
CN202210263U (en) * 2011-06-30 2012-05-02 汉王科技股份有限公司 Face recognition device
US20120140091A1 (en) * 2009-06-22 2012-06-07 S1 Corporation Method and apparatus for recognizing a protrusion on a face

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1849614A (en) * 2003-07-16 2006-10-18 全感知有限公司 Facial Activity Rating System
US20120140091A1 (en) * 2009-06-22 2012-06-07 S1 Corporation Method and apparatus for recognizing a protrusion on a face
CN202210263U (en) * 2011-06-30 2012-05-02 汉王科技股份有限公司 Face recognition device
CN102360420A (en) * 2011-10-10 2012-02-22 星越实业(香港)有限公司 Double dynamic detection biometric face recognition method and system

Cited By (45)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106203305A (en) * 2016-06-30 2016-12-07 北京旷视科技有限公司 Human face in-vivo detection method and device
CN106203305B (en) * 2016-06-30 2020-02-04 北京旷视科技有限公司 Face living body detection method and device
CN106778518A (en) * 2016-11-24 2017-05-31 汉王科技股份有限公司 A kind of human face in-vivo detection method and device
CN106599872A (en) * 2016-12-23 2017-04-26 北京旷视科技有限公司 Method and equipment for verifying living face images
CN107992794B (en) * 2016-12-30 2019-05-28 腾讯科技(深圳)有限公司 A kind of biopsy method, device and storage medium
WO2019080797A1 (en) * 2016-12-30 2019-05-02 腾讯科技(深圳)有限公司 Living body detection method, terminal, and storage medium
CN107992794A (en) * 2016-12-30 2018-05-04 腾讯科技(深圳)有限公司 A kind of biopsy method, device and storage medium
WO2018121428A1 (en) * 2016-12-30 2018-07-05 腾讯科技(深圳)有限公司 Living body detection method, apparatus, and storage medium
CN107169405A (en) * 2017-03-17 2017-09-15 上海云从企业发展有限公司 Method and device based on binocular camera vivo identification
CN107169405B (en) * 2017-03-17 2020-07-03 上海云从企业发展有限公司 Method and device for living body recognition based on binocular camera
CN107038428A (en) * 2017-04-28 2017-08-11 北京小米移动软件有限公司 Vivo identification method and device
CN107038428B (en) * 2017-04-28 2020-04-07 北京小米移动软件有限公司 Living body identification method and apparatus
CN108881674A (en) * 2017-06-05 2018-11-23 北京旷视科技有限公司 image collecting device and image processing method
CN107392135A (en) * 2017-07-14 2017-11-24 广东欧珀移动通信有限公司 Liveness detection method and related products
CN108875331A (en) * 2017-08-01 2018-11-23 北京旷视科技有限公司 Face unlocking method, device and system and storage medium
CN108875331B (en) * 2017-08-01 2022-08-19 北京旷视科技有限公司 Face unlocking method, device and system and storage medium
CN108875485A (en) * 2017-09-22 2018-11-23 北京旷视科技有限公司 A kind of base map input method, apparatus and system
CN109583285A (en) * 2017-09-29 2019-04-05 阿里巴巴集团控股有限公司 Object identifying method
CN107992797B (en) * 2017-11-02 2022-02-08 中控智慧科技股份有限公司 Face recognition method and related device
CN107992797A (en) * 2017-11-02 2018-05-04 中控智慧科技股份有限公司 Face identification method and relevant apparatus
CN107832712A (en) * 2017-11-13 2018-03-23 深圳前海微众银行股份有限公司 Biopsy method, device and computer-readable recording medium
CN107992845A (en) * 2017-12-14 2018-05-04 广东工业大学 A kind of face recognition the method for distinguishing and device, computer equipment
CN107909063A (en) * 2017-12-22 2018-04-13 天津科技大学 Bio-identification video playback attack detection method based on grey scale change
CN107909063B (en) * 2017-12-22 2021-05-04 天津科技大学 A biometric video playback attack detection method based on grayscale changes
WO2019134536A1 (en) * 2018-01-04 2019-07-11 杭州海康威视数字技术股份有限公司 Neural network model-based human face living body detection
US11321963B2 (en) 2018-01-04 2022-05-03 Hangzhou Hikvision Digital Technology Co., Ltd. Face liveness detection based on neural network model
CN108446690A (en) * 2018-05-31 2018-08-24 北京工业大学 A kind of human face in-vivo detection method based on various visual angles behavioral characteristics
CN108921080A (en) * 2018-06-27 2018-11-30 北京旷视科技有限公司 Image-recognizing method, device and electronic equipment
CN109147116A (en) * 2018-07-25 2019-01-04 深圳市飞瑞斯科技有限公司 The method that smart lock and control smart lock are opened
CN110874542A (en) * 2018-08-31 2020-03-10 北京意锐新创科技有限公司 Method and device suitable for reading bar codes displayed by different carriers
CN110059579A (en) * 2019-03-27 2019-07-26 北京三快在线科技有限公司 For the method and apparatus of test alive, electronic equipment and storage medium
CN112307832A (en) * 2019-07-31 2021-02-02 浙江维尔科技有限公司 Living body detection method and device based on shadow analysis
CN110334698A (en) * 2019-08-30 2019-10-15 上海聚虹光电科技有限公司 Glasses detection system and method
CN112749603A (en) * 2019-10-31 2021-05-04 上海商汤智能科技有限公司 Living body detection method, living body detection device, electronic apparatus, and storage medium
CN111126229A (en) * 2019-12-17 2020-05-08 中国建设银行股份有限公司 Data processing method and device
CN111126265A (en) * 2019-12-24 2020-05-08 杭州魔点科技有限公司 Living body detection method, living body detection device, electronic apparatus, and medium
CN111783640A (en) * 2020-06-30 2020-10-16 北京百度网讯科技有限公司 Detection method, device, equipment and storage medium
CN112232152A (en) * 2020-09-30 2021-01-15 墨奇科技(北京)有限公司 Non-contact fingerprint identification method and device, terminal and storage medium
CN112507818A (en) * 2020-11-25 2021-03-16 奥比中光科技集团股份有限公司 Illumination estimation method and system based on near-infrared image
CN112487921A (en) * 2020-11-25 2021-03-12 奥比中光科技集团股份有限公司 Face image preprocessing method and system for living body detection
CN112487921B (en) * 2020-11-25 2023-09-08 奥比中光科技集团股份有限公司 Face image preprocessing method and system for living body detection
CN112507818B (en) * 2020-11-25 2024-03-15 奥比中光科技集团股份有限公司 Illumination estimation method and system based on near infrared image
CN112966562A (en) * 2021-02-04 2021-06-15 深圳市街角电子商务有限公司 Face living body detection method, system and storage medium
CN114140854A (en) * 2021-11-29 2022-03-04 北京百度网讯科技有限公司 Living body detection method and device, electronic equipment and storage medium
CN116343349A (en) * 2023-03-15 2023-06-27 平安银行股份有限公司 A living body discrimination method, device, equipment and computer-readable storage medium

Similar Documents

Publication Publication Date Title
CN105260731A (en) A system and method for human face liveness detection based on light pulses
CN111046703B (en) Face anti-counterfeiting detection method and device and multi-view camera
CN105335722B (en) Detection system and method based on depth image information
Radman et al. Automated segmentation of iris images acquired in an unconstrained environment using HOG-SVM and GrowCut
CN106778518B (en) Face living body detection method and device
US8379920B2 (en) Real-time clothing recognition in surveillance videos
CN109583285B (en) object recognition method
US7715596B2 (en) Method for controlling photographs of people
CN107301378B (en) Pedestrian detection method and system based on multi-classifier integration in image
US11238301B2 (en) Computer-implemented method of detecting foreign object on background object in an image, apparatus for detecting foreign object on background object in an image, and computer-program product
KR20200004841A (en) System and method for guiding a user to take a selfie
JP6351243B2 (en) Image processing apparatus and image processing method
US20140341421A1 (en) Method for Detecting Persons Using 1D Depths and 2D Texture
CN106023151B (en) Tongue object detection method under a kind of open environment
CN104166841A (en) Rapid detection identification method for specified pedestrian or vehicle in video monitoring network
CN103905733A (en) Method and system for conducting real-time tracking on faces by monocular camera
CN108921215A (en) A kind of Smoke Detection based on local extremum Symbiotic Model and energy spectrometer
CN113901423B (en) Intelligent security equipment control method and system based on face recognition
CN107909063B (en) A biometric video playback attack detection method based on grayscale changes
Zou et al. Face Recognition Using Active Near-IR Illumination.
CN113436735A (en) Body weight index prediction method, device and storage medium based on face structure measurement
CN112069907A (en) X-ray machine image recognition method, device and system based on example segmentation
Bogo et al. Automated detection of new or evolving melanocytic lesions using a 3D body model
Merkle et al. State of the art of quality assessment of facial images
JP2022537196A (en) surface recognition

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20160120