From 8323a99f6fa988657f5e8201d626f42bbcd1ca79 Mon Sep 17 00:00:00 2001
From: ageorge <anjith.george@idiap.ch>
Date: Thu, 16 Nov 2017 12:00:43 +0100
Subject: [PATCH] Added mtcnn/dlib detectors

---
 bob/pad/face/utils/face_detection_utils.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/bob/pad/face/utils/face_detection_utils.py b/bob/pad/face/utils/face_detection_utils.py
index 7b01c4c2..27c2030d 100644
--- a/bob/pad/face/utils/face_detection_utils.py
+++ b/bob/pad/face/utils/face_detection_utils.py
@@ -205,9 +205,9 @@ def detect_face_landmarks_in_image(image, method = "dlib"):
 
         bounding_box = data[0]
 
-        #bounding_box = bounding_box.scale(0.9, True)
+        bounding_box_scaled = bounding_box.scale(0.95, True) # is ok for dlib
 
-        lm=landmark_detection_module.detect_landmarks_on_boundingbox(image, bounding_box)
+        lm=landmark_detection_module.detect_landmarks_on_boundingbox(image, bounding_box_scaled)
 
         if lm is not None:
 
-- 
GitLab