人脸识别face recognition
0 简介
人脸识别大致分为如下三个部分:
人脸检测 face detection
人脸对齐 face alignment
人脸识别 face recognition,包括:
face verification:两张图片相似程度。
face identification: 在图片库中检索与当前图片相似度最高的图片。
1 人脸检测
face detection通常认为是在图片中找到人脸的过程,这个过程常用的办法有用openCV调用’haarcascade_frontalface_default.xml’或者其他xml文件构建分类器对象,通过detectMultiScale函数返回人脸框坐标,在图像中框出人脸。也可以通过深度学习的方法定位人脸。
1.1 openCV-haarcascade检测
1.2 faster-RCNN 检测人脸
github : face-py-faster-rcnn
参考http://blog.csdn.net/zengdong_1991/article/details/66475821
编译过程中如果出现问题,参考faster rcnn +cudnn V5方法2,Caffe + CUDNN V5:
用最新caffe源码(https://github.com/BVLC/caffe)的以下文件替换掉faster rcnn 的对应文件
include/caffe/layers/cudnn_relu_layer.hpp,
src/caffe/layers/cudnn_relu_layer.cpp,
src/caffe/layers/cudnn_relu_layer.cu<