Commit 6a1c470d authored by Amir MOHAMMADI's avatar Amir MOHAMMADI
Browse files

improve tests

parent 2cc95795
Pipeline #17507 passed with stage
in 49 minutes and 37 seconds
......@@ -3,6 +3,7 @@ import bob.io.base
import bob.io.base.test_utils
import bob.io.image
import bob.ip.facedetect
import numpy as np
face_image = bob.io.base.load(bob.io.base.test_utils.datafile(
'testimage.jpg', 'bob.ip.facedetect'))
......@@ -10,4 +11,7 @@ face_image = bob.io.base.load(bob.io.base.test_utils.datafile(
def test_bob_ip_facedetect():
from bob.bio.face.annotator.bobipfacedetect import BobIpFacedetect
annot = BobIpFacedetect(face_image)
annot = BobIpFacedetect()(face_image)
assert annot['topleft'] == (110, 82), annot
assert annot['bottomright'] == (334, 268), annot
assert np.allclose(annot['quality'], 39.209601948013685), annot
Supports Markdown
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