MCPcopy Create free account
hub / github.com/davisking/dlib / split_rect_detections

Function split_rect_detections

tools/python/src/simple_object_detector_py.h:18–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 (

Callers 2

Calls 3

clearMethod · 0.45
sizeMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected