From 18d5300c9fae18781bf267b46ffbeed97e36821d Mon Sep 17 00:00:00 2001 From: Amir MOHAMMADI <amir.mohammadi@idiap.ch> Date: Fri, 9 Mar 2018 15:42:32 +0100 Subject: [PATCH] Fix the tests too --- bob/pad/face/preprocessor/FaceCropAlign.py | 4 ++-- bob/pad/face/test/test.py | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/bob/pad/face/preprocessor/FaceCropAlign.py b/bob/pad/face/preprocessor/FaceCropAlign.py index 2e830365..3913aa35 100644 --- a/bob/pad/face/preprocessor/FaceCropAlign.py +++ b/bob/pad/face/preprocessor/FaceCropAlign.py @@ -32,10 +32,10 @@ def get_eye_pos(lm): **Returns:** - ``right_eye`` + ``reye`` A tuple containing the location of right eye, - ``left_eye`` + ``leye`` A tuple containing the location of left eye """ diff --git a/bob/pad/face/test/test.py b/bob/pad/face/test/test.py index d6afe44f..bbcf337a 100644 --- a/bob/pad/face/test/test.py +++ b/bob/pad/face/test/test.py @@ -42,12 +42,12 @@ def test_detect_face_landmarks_in_image_mtcnn(): annotations = detect_face_landmarks_in_image( img, method='mtcnn') assert len(annotations['landmarks']) == 68 - assert len(annotations['left_eye']) == 2 - assert len(annotations['right_eye']) == 2 + assert len(annotations['leye']) == 2 + assert len(annotations['reye']) == 2 assert len(annotations['topleft']) == 2 assert len(annotations['bottomright']) == 2 - #assert len(annotations['left_eye']) == (176, 220) + #assert len(annotations['leye']) == (176, 220) def test_detect_face_landmarks_in_image_dlib(): @@ -57,12 +57,12 @@ def test_detect_face_landmarks_in_image_dlib(): annotations = detect_face_landmarks_in_image( img, method='dlib') assert len(annotations['landmarks']) == 68 - assert len(annotations['left_eye']) == 2 - assert len(annotations['right_eye']) == 2 + assert len(annotations['leye']) == 2 + assert len(annotations['reye']) == 2 assert len(annotations['topleft']) == 2 assert len(annotations['bottomright']) == 2 - #assert len(annotations['left_eye']) == (176, 220) + #assert len(annotations['leye']) == (176, 220) #============================================================================== -- GitLab