From 7ca0d70137f33b1cce8d40c731eadb78e5c7662a Mon Sep 17 00:00:00 2001
From: Olegs NIKISINS <onikisins@italix03.idiap.ch>
Date: Fri, 2 Mar 2018 18:26:40 +0100
Subject: [PATCH] Fixed the bug in min_face_size check

---
 bob/pad/face/preprocessor/FaceCropAlign.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bob/pad/face/preprocessor/FaceCropAlign.py b/bob/pad/face/preprocessor/FaceCropAlign.py
index f22a11dd..acbd819b 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
 
-- 
GitLab