| 206 | } |
| 207 | |
| 208 | inline std::vector<dlib::rectangle> run_detector_with_upscale2 ( |
| 209 | dlib::simple_object_detector& detector, |
| 210 | py::array img, |
| 211 | const unsigned int upsampling_amount |
| 212 | |
| 213 | ) |
| 214 | { |
| 215 | std::vector<double> detection_confidences; |
| 216 | std::vector<unsigned long> weight_indices; |
| 217 | const double adjust_threshold = 0.0; |
| 218 | |
| 219 | return run_detector_with_upscale1(detector, img, upsampling_amount, |
| 220 | adjust_threshold, |
| 221 | detection_confidences, weight_indices); |
| 222 | } |
| 223 | |
| 224 | inline py::tuple run_rect_detector ( |
| 225 | dlib::simple_object_detector& detector, |
no test coverage detected