libfacedetection 人脸检测

库说明

        libfacedetection库由深圳大学的于仕琪推出,用于图像中人脸检测。libfacedetection是一个基于CNN的人脸检测的开源库。CNN模型已在C源文件中转换为stastic variales。源代码不依赖于任何其他库,你需要的只是一个C++编译器。可以使用C ++编译器在Windows,Linux,ARM和任何平台下编译源代码。目前开源的代码不支持人脸标志检测,代码下载地址:https://github.com/ShiqiYu/libfacedetection


编译

        CMake生成解决方案,按照电脑的CPU是否支持指令集,选择AVX2或者NEON,勾选demo,生成测试例子


注意

 打开facedetectcnn.h,屏蔽掉CPU加速,因为电脑不支持CPU加速的指令集AVX2
//#define _ENABLE_AVX2 //Please enable it if X64 CPU
//#define _ENABLE_NEON //Please enable it if ARM CPU      

否则运行保存

inline int dotProductUint8Int8(unsigned char * p1, signed char * p2, int num, int lengthInBytes)

__m256i ones16 = _mm256_set1_epi16(1);
0x00007FF7ED5C6FB8 处有未经处理的异常(在 testface.exe 中): 0xC000001D: Illegal Instruction。 出现了