From c4a7f0c9bab2bfde791a57a6680b0712445a095e Mon Sep 17 00:00:00 2001 From: Davis King Date: Wed, 31 Jul 2013 19:26:00 -0400 Subject: [PATCH] Clarified the error message you get when an impossible set of object boxes is detected. --- dlib/svm/structural_svm_object_detection_problem.h | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/dlib/svm/structural_svm_object_detection_problem.h b/dlib/svm/structural_svm_object_detection_problem.h index adcf596f7..eb95db087 100644 --- a/dlib/svm/structural_svm_object_detection_problem.h +++ b/dlib/svm/structural_svm_object_detection_problem.h @@ -266,12 +266,13 @@ namespace dlib using namespace std; ostringstream sout; sout << "An impossible set of object labels was detected. This is happening because "; - sout << "none of the sliding window detection templates is capable of matching the size "; - sout << "and/or shape of one of the ground truth rectangles to within the required match_eps "; - sout << "amount of alignment. To resolve this you need to either lower the match_eps, add "; - sout << "another detection template which can match the offending rectangle, or adjust the "; - sout << "offending truth rectangle so it can be matched by an existing detection template. "; - sout << "It is also possible that the image pyramid you are using is too coarse. E.g. if one of "; + sout << "none of the object locations checked by the supplied image scanner is a close "; + sout << "enough match to one of the truth boxes. To resolve this you need to either lower the match_eps "; + sout << "or adjust the settings of the image scanner so that it hits this truth box. "; + sout << "Or you could adjust the "; + sout << "offending truth rectangle so it can be matched by the current image scanner. Also, if you "; + sout << "are using the scan_image_pyramid object then you could try using a finer image pyramid "; + sout << "or adding more detection templates. E.g. if one of "; sout << "your existing detection templates has a matching width/height ratio and smaller area "; sout << "than the offending rectangle then a finer image pyramid would probably help.";