mirror of
https://github.com/davisking/dlib.git
synced 2024-11-01 10:14:53 +08:00
simplify
This commit is contained in:
parent
a12e1e71fa
commit
cf0d5a4cb0
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user