Commit 778e6e58888654c36c59672a76ae4c8e6bb8d60d
1 parent
8467a6d5
Sanity check
Showing
1 changed file
with
3 additions
and
2 deletions
openbr/plugins/dlib.cpp
| ... | ... | @@ -3,10 +3,8 @@ |
| 3 | 3 | #include "openbr/core/eigenutils.h" |
| 4 | 4 | |
| 5 | 5 | #include <dlib/image_processing/frontal_face_detector.h> |
| 6 | -#include <dlib/image_processing/render_face_detections.h> | |
| 7 | 6 | #include <dlib/svm_threaded.h> |
| 8 | 7 | #include <dlib/image_processing.h> |
| 9 | -#include <dlib/gui_widgets.h> | |
| 10 | 8 | #include <dlib/image_io.h> |
| 11 | 9 | #include <dlib/opencv.h> |
| 12 | 10 | |
| ... | ... | @@ -105,6 +103,9 @@ private: |
| 105 | 103 | } |
| 106 | 104 | } |
| 107 | 105 | |
| 106 | + if (samples.size() == 0) | |
| 107 | + qFatal("Training data has no bounding boxes."); | |
| 108 | + | |
| 108 | 109 | add_image_left_right_flips(samples, boxes); |
| 109 | 110 | |
| 110 | 111 | image_scanner_type scanner; | ... | ... |