下载地址:https://pan.baidu.com/s/1A3vQHUbuCjpv5zigfKKwhA
200张人脸深度图.raw文件在face文件夹,200纸张攻击深度图.raw文件在non-face文件夹,人脸位置标注信息在同标题txt文件第一行
liveness_detection.m,修改文件夹路径后直接运行
批量处理文件夹中所有.raw深度图文件,在命令行中输出结果,给定人脸活体检测结果
输出结果如RESULT.txt所示
RAW_PATH = '/home/zhoujie/liveness detection/raw文件/non-face/';
pretotal=4100,_ary=0.3003,100.raw不是人脸
pretotal=4048,_ary=0.29005,101.raw不是人脸
pretotal=3804,_ary=0.28188,102.raw不是人脸
pretotal=4255,_ary=0.3143,103.raw不是人脸
...
RAW_PATH = '/home/zhoujie/liveness detection/raw文件/face/';
pretotal=1701,_ary=0.065471,0.raw是人脸
pretotal=1673,_ary=0.059544,1.raw是人脸
pretotal=1849,_ary=0.07232,10.raw是人脸
pretotal=1550,_ary=0.063227,100.raw是人脸
pretotal=1603,_ary=0.069963,101.raw是人脸
...
本算法检测类型范围:张照片攻击,视频攻击
核心算法:RANSAC随机一致性采样
C语言版本:https://github.com/zj19941113/Face-Liveness_detection
demo.m,修改文件路径后直接运行