| 295 | } |
| 296 | |
| 297 | inline const simple_test_results test_simple_object_detector2 ( |
| 298 | const std::string& dataset_filename, |
| 299 | simple_object_detector_py& detector, |
| 300 | const int upsample_amount |
| 301 | ) |
| 302 | { |
| 303 | // Load all the testing images |
| 304 | dlib::array<array2d<rgb_pixel> > images; |
| 305 | std::vector<std::vector<rectangle> > boxes, ignore; |
| 306 | ignore = load_image_dataset(images, boxes, dataset_filename); |
| 307 | unsigned int final_upsampling_amount = 0; |
| 308 | if (upsample_amount < 0) |
| 309 | final_upsampling_amount = detector.upsampling_amount; |
| 310 | |
| 311 | return test_simple_object_detector_with_images(images, final_upsampling_amount, boxes, ignore, detector.detector); |
| 312 | } |
| 313 | |
| 314 | inline const simple_test_results test_simple_object_detector ( |
| 315 | const std::string& dataset_filename, |
nothing calls this directly
no test coverage detected