This commit is contained in:
Davis King 2017-09-01 23:07:12 -04:00
commit e5df3d8e49
1 changed files with 1 additions and 1 deletions

View File

@ -534,7 +534,7 @@ namespace dlib
{
auto&& rects = any_cast<std::vector<rectangle>>(data.annotation());
DLIB_CASSERT(rects.size() > 0);
return rects[0].contains(p);
return rects[0].contains(p+rects[0].tl_corner());
}
drectangle tensor_space_to_image_space (