davisking / dlib

A toolkit for making real world machine learning and data analysis applications in C++
http://dlib.net
Boost Software License 1.0
13.53k stars 3.37k forks source link

use multi dnn detectors 1 #1390

Closed slmanali closed 6 years ago

slmanali commented 6 years ago

how to use multi dnn object detectors like in function "std::vector evaluate_detectors"

davisking commented 6 years ago

No, there is no equivalent function. For the dnns you just call them like normal.

slmanali commented 6 years ago

like this for(int i=0;i<detectors.size()-1;i++) { for (auto&& d : detectorsi) { dlib::rect_detection rect; rect.detection_confidence=d.detection_confidence; rect.rect=d.rect; std::string::size_type sz; // alias of size_t rect.weight_index=std::stoi (d.label,&sz); rects.push_back(rect); } }