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

Function test_simple_object_detector2

tools/python/src/simple_object_detector.h:297–312  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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,

Callers

nothing calls this directly

Calls 2

load_image_datasetFunction · 0.85

Tested by

no test coverage detected