diff --git a/openbr/plugins/classification/dlib.cpp b/openbr/plugins/classification/dlib.cpp index 2ea2732..6dbbb88 100644 --- a/openbr/plugins/classification/dlib.cpp +++ b/openbr/plugins/classification/dlib.cpp @@ -74,25 +74,21 @@ private: array2d image; assign_image(image,cimg); - if (src.file.rects().isEmpty()) { //If the image has no rects assume the whole image is a face - rectangle r(0, 0, cvImage.cols, cvImage.rows); - full_object_detection shape = (*sp)(image, r); - for (size_t i = 0; i < shape.num_parts(); i++) - dst.file.appendPoint(QPointF(shape.part(i)(0),shape.part(i)(1))); - setFacePoints(dst); - } - else { // Crop the image on the rects - for (int j=0; j points; + for (size_t i=0; i