| 16 | typedef object_detector<scan_fhog_pyramid<pyramid_down<6> > > simple_object_detector; |
| 17 | |
| 18 | inline void split_rect_detections ( |
| 19 | std::vector<rect_detection>& rect_detections, |
| 20 | std::vector<rectangle>& rectangles, |
| 21 | std::vector<double>& detection_confidences, |
| 22 | std::vector<unsigned long>& weight_indices |
| 23 | ) |
| 24 | { |
| 25 | rectangles.clear(); |
| 26 | detection_confidences.clear(); |
| 27 | weight_indices.clear(); |
| 28 | |
| 29 | for (unsigned long i = 0; i < rect_detections.size(); ++i) |
| 30 | { |
| 31 | rectangles.push_back(rect_detections[i].rect); |
| 32 | detection_confidences.push_back(rect_detections[i].detection_confidence); |
| 33 | weight_indices.push_back(rect_detections[i].weight_index); |
| 34 | } |
| 35 | } |
| 36 | |
| 37 | |
| 38 | inline std::vector<dlib::rectangle> run_detector_with_upscale1 ( |
no test coverage detected