Ubuntu14.04编译libfacedetection
1.下载源代码
地址:https://github.com/ShiqiYu/libfacedetection
2.编译
2.1.修改CMakeLists.txt
option(ENABLE_AVX2 “use avx2” ON)
option(DEMO “build the demo” ON)
2.2.编译
cd libfacedetection-master
mkdir build
cd build
cmake …
make
3.测试
./fdt_demo …/images/chloecalmon.png
结果:
4.编译libfacedetectcnn-example.cpp
也可以编译此文件为so,方便py调用。
编译时只开启了O3选项,在640*480图片上测试时间为0.21s左右,优化开关还要研究下。