Fixed a bug in how the mmod_options automatically determines detection window

sizes.  It would pick a bad size in some cases.
This commit is contained in:
Davis King 2017-09-20 21:10:59 -04:00
parent 3d4bd975e6
commit 64942d92c4
1 changed files with 2 additions and 2 deletions

View File

@ -430,8 +430,8 @@ namespace dlib
detector_width = ratio*target_size;
if (detector_width < min_target_size)
{
detector_height = min_target_size;
detector_width = min_target_size/ratio;
detector_height = min_target_size/ratio;
detector_width = min_target_size;
}
}
else