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

Function merge_simple_object_detectors

tools/python/src/object_detection.cpp:126–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124// ----------------------------------------------------------------------------------------
125
126std::shared_ptr<simple_object_detector_py> merge_simple_object_detectors (
127 const py::list& detectors
128)
129{
130 DLIB_CASSERT(len(detectors) > 0);
131 std::vector<simple_object_detector> temp;
132 for (const auto& d : detectors)
133 temp.push_back(d.cast<simple_object_detector_py>().detector);
134
135 simple_object_detector_py result;
136 result.detector = simple_object_detector(temp);
137 result.upsampling_amount = detectors[0].cast<simple_object_detector_py>().upsampling_amount;
138 return std::make_shared<simple_object_detector_py>(result);
139}
140
141// ----------------------------------------------------------------------------------------
142

Callers

nothing calls this directly

Calls 2

lenFunction · 0.85
push_backMethod · 0.45

Tested by

no test coverage detected