Ubuntu16.04编译libfacedetection

首先下载libfacedetection的源代码,源码地址:https://github.com/ShiqiYu/libfacedetection

Ubuntu16.04编译libfacedetection

然后进入目录,创建目录build,然后进入build文件,进行cmake

cmake..

Ubuntu16.04编译libfacedetection

然后make,修改src/facedetectcnn.h 中注释掉

//#define _ENABLE_AVX2 //Please enable it if X64 CPU
//#define _ENABLE_NEON //Please enable it if ARM CPU

然后make,成功Ubuntu16.04编译libfacedetection

 make编译结束后,进行demo测试,输入指令./fdt_demo ../images/chloecalmon.png最后输出测试图片的运行结果

Ubuntu16.04编译libfacedetection

Ubuntu16.04编译libfacedetection

 

 谢谢!