SlimFace-demo / src /third_party /edgeface /tests /test_face_detection_mtcnn.py
danhtran2mind's picture
Upload 258 files
20cf96a verified
raw
history blame contribute delete
336 Bytes
import sys
import os
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
from face_alignment.align import get_aligned_face
bbox, face = get_aligned_face("test/test_images/Elon_Musk.jpg", rgb_pil_image=None)
print("type(bbox), bbox: ", type(bbox), bbox)
print("type(face), face: ", type(face), face)