diff --git a/bob/pad/face/preprocessor/FaceCropAlign.py b/bob/pad/face/preprocessor/FaceCropAlign.py index f22a11dd48b8b49d2588688000bda4cfc8f5f46d..acbd819b8b6bf650b082511ef7fa1e7ad4fc98f3 100644 --- a/bob/pad/face/preprocessor/FaceCropAlign.py +++ b/bob/pad/face/preprocessor/FaceCropAlign.py @@ -461,7 +461,7 @@ class FaceCropAlign(Preprocessor): np.array(annotations['bottomright']) - np.array(annotations['topleft'])) - if original_face_size >= self.min_face_size: # check if face size is above the threshold + if original_face_size < self.min_face_size: # check if face size is above the threshold return None