一、linux版本编译和安装
1.下载源码:
http://dlib.net/files/dlib-19.6.zip
cd build
cmake ..
cmake --build . --config Release
二、dlib android版本编译和安装
------------------------------------------
1. 源码下载https://github.com/tzutalin/dlib-android
1.下载源码:
http://dlib.net/files/dlib-19.6.zip
2. 编译examples
参考 http://dlib.net/compile.html
cd examples
cd build
cmake ..
cmake --build . --config Release
二、dlib android版本编译和安装
------------------------------------------
1. 源码下载https://github.com/tzutalin/dlib-android
包含编译安装说明
三、dlib example
1、 HOG 方法:
dlib-19.6/examples/build/face_detection_ex 直接输入人脸图片
2、 DNN方法:(测试比HOG方法识别率高)
dlib-19.6/examples/build/ dnn_mmod_face_detection_ex
输入mmod_human_face_detector.dat + 直接输入人脸图片
3、 Dlib android dnn face detector 尝试一下:
三、dlib 优化
参考:http://www.learnopencv.com/speeding-up-dlib-facial-landmark-detector/
四、
dlib with hog, ResNet 34 layer network.