以YSQ人脸检测算法为例,测试其在FDDB上的精度。(其它算法可以自行生成检测结果,从第二步开始看) 一、生成FDDB人脸检测数据 使用 ShiqiYu/libfacedetection 项目,在windows下跑FDDB数据集。直接修改 example/libfacedetect-example.cpp 即可 #include <stdio.h> #include <fstream> #include <iostream> #include <opencv2/opencv.hpp> #include "facedetect-dll.h" //#pragma comment(lib,"libfacedetect.lib") #pragma comment(lib,"libfacedetect-x64.lib") //define the buffer size. Do not change the size! #define DETECT_BUFFER_SIZE 0x20000 using namespace cv; void split_dir_name(std::string& s, std::vector<std::string>& v, const std::string& c) { std::string::size_type pos1, pos2; pos2 = s