1
追问:openface/issue/157如何在dlib正面人脸检测器中分割级联级别?
我试图在DLIB正面人脸检测的五个级级联分裂,三级(前置,寻找,但左移,和前寻找,但向右旋转一个)
Evgeniy建议用C++分割探测器。我不熟悉C++。当我查看frontal_face_detector.h时,get_serialized_frontal_faces
返回一个base64编码对象。
我学会了如何保存现有的探测器为.svm
文件:
#include <dlib/image_processing/frontal_face_detector.h>
#include <iostream>
using namespace dlib;
using namespace std;
int main()
{
frontal_face_detector detector = get_frontal_face_detector();
dlib::serialize("new_detector.svm") << detector;
std::cout<<"End of the Program"<<endl;
return 0;
}
那么如何分割级联和新的检测仪保存到一个文件.svm
?
通过将金字塔等级从< 6>降低到frontal_face_detector.h的较低值,探测器性能也会提高?
谢谢。这工作。 纠正我,如果我错了: 1.根据这[评论](https://github.com/davisking/dlib/blob/master/dlib/image_processing/frontal_face_detector.h#L29),部分-0是前看,第二部分是留着看,第三部分是正确的看,等等。 2.如果我只想左看右看,我需要将第1部分和第2部分推回到零件向量并重构它。 –
另外,什么是默认的正面人脸检测器中的max_pyramid_levels?对我来说,set_max_pyramid_levels(8)适用于[小脸](https://github.com/cmusatyalab/openface/blob/master/images/examples/clapton-2.jpg)和比较[大脸](https:// github.com/cmusatyalab/openface/blob/master/images/examples/lennon-2.jpg)。 –
@vijayenthiransubramaniam,据我所知,它是无限的(1000左右) – Evgeniy