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