| 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 | { |
nothing calls this directly
no test coverage detected