Commit 18d5300c authored by Amir MOHAMMADI's avatar Amir MOHAMMADI

Fix the tests too

parent 6c27b323
Pipeline #17501 passed with stage
in 37 minutes and 42 seconds
......@@ -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
"""
......
......@@ -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)
#==============================================================================
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment