转载:OpenFace

原网址:https://blog.csdn.net/qq_14845119/article/details/53994607

OpenFace是一个包含了landmark,head pose,Actionunions,eye gaze等功能,并包含训练和检测所有源码的开源人脸框架,论文为,OpenFace: an open source facial behavior analysis toolkit

 

OpenFace所用到的库包含opencv,dlib,boost,tbb

建议在vs2015下运行。

程序整体过程如下图所示。在Action unions的预测过程中,既有分类(SVM),也有回归(SVR)。

转载:OpenFace

MFC效果图,

转载:OpenFace

 

源程序分析:

该程序主要包含了以下5个部分,

FaceLandmarkImg:对单幅图片的测试

FaceLandmarkVid:对视频的测试,只检测其中最主要的一个人

FaceLandmarkVidMulti:对视频的测试,所有人都检测

FeatureExtraction:特征提取,会将特征脸都切出来,类似于Eigenface和Fisherface

Recording:基于摄像头的录像

首先用vs重新生成,就会生成上面的4个exe,进入release下根目录,

FaceLandmarkImg.exe -f ../videos/Obama.jpg

转载:OpenFace

 

FaceLandmarkVid.exe -f ../videos/1192_01_006_julia_roberts.avi

转载:OpenFace

 

FaceLandmarkVidMulti.exe -f ../videos/multi_face.avi

转载:OpenFace

 

FeatureExtraction.exe -f ../videos/2015-10-15-15-14.avi

转载:OpenFace转载:OpenFace

Recording.exe

 

 

链接:

http://www.cl.cam.ac.uk/research/rainbow/projects/openface/

https://github.com/TadasBaltrusaitis/OpenFace