Created
September 8, 2020 23:24
-
-
Save igorrendulic/3c18efa932e239c0e31dcf2eada52c1b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import cv2 | |
import dlib | |
from imutils import face_utils | |
import chrysalis | |
# get the display | |
os.environ['DISPLAY'] = ":0" | |
# initialice frontal face detector in dlib and assign a shape predictor model | |
detector = dlib.get_frontal_face_detector() | |
predictor = dlib.shape_predictor("data/shape_predictor_68_face_landmarks.dat") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment