Skip to content

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
jackculpepper committed Mar 12, 2015
1 parent a12e1e7 commit cf0d5a4
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions tools/python/src/simple_object_detector_py.h
Original file line number Diff line number Diff line change
Expand Up @@ -155,20 +155,12 @@ namespace dlib
std::vector<dlib::rectangle> run_detector1 (boost::python::object img,
const unsigned int upsampling_amount_)
{
std::vector<double> detection_confidences;
std::vector<double> 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<dlib::rectangle> run_detector2 (boost::python::object img)
{
std::vector<double> detection_confidences;
std::vector<double> weight_indices;

return run_detector_with_upscale1(detector, img, upsampling_amount,
detection_confidences, weight_indices);
return run_detector_with_upscale2(detector, img, upsampling_amount);
}


Expand Down

0 comments on commit cf0d5a4

Please sign in to comment.