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

Function run_rect_detector

tools/python/src/simple_object_detector_py.h:224–243  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

222 }
223
224 inline py::tuple run_rect_detector (
225 dlib::simple_object_detector& detector,
226 py::array img,
227 const unsigned int upsampling_amount,
228 const double adjust_threshold)
229 {
230 py::tuple t;
231
232 std::vector<double> detection_confidences;
233 std::vector<unsigned long> weight_indices;
234 std::vector<rectangle> rectangles;
235
236 rectangles = run_detector_with_upscale1(detector, img, upsampling_amount,
237 adjust_threshold,
238 detection_confidences, weight_indices);
239
240 return py::make_tuple(rectangles,
241 vector_to_python_list(detection_confidences),
242 vector_to_python_list(weight_indices));
243 }
244
245 struct simple_object_detector_py
246 {

Callers

nothing calls this directly

Calls 3

make_tupleFunction · 0.85
vector_to_python_listFunction · 0.85

Tested by

no test coverage detected