From cf0d5a4cb0fe0c009282a0f46873836a2c1d47d3 Mon Sep 17 00:00:00 2001 From: Jack Culpepper Date: Thu, 12 Mar 2015 01:17:40 -0700 Subject: [PATCH] simplify --- tools/python/src/simple_object_detector_py.h | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/tools/python/src/simple_object_detector_py.h b/tools/python/src/simple_object_detector_py.h index 1870789a3..0bd103bff 100644 --- a/tools/python/src/simple_object_detector_py.h +++ b/tools/python/src/simple_object_detector_py.h @@ -155,20 +155,12 @@ namespace dlib std::vector run_detector1 (boost::python::object img, const unsigned int upsampling_amount_) { - std::vector detection_confidences; - std::vector weight_indices; - - return run_detector_with_upscale1(detector, img, upsampling_amount_, - detection_confidences, weight_indices); + return run_detector_with_upscale2(detector, img, upsampling_amount_); } std::vector run_detector2 (boost::python::object img) { - std::vector detection_confidences; - std::vector weight_indices; - - return run_detector_with_upscale1(detector, img, upsampling_amount, - detection_confidences, weight_indices); + return run_detector_with_upscale2(detector, img, upsampling_amount); }