/facial-landmarks

Facial landmarks with dlib, OpenCV, and Python

Primary LanguagePython

Requirements:

dlib, cv, imutils

Virtualenv:

cv

Link:

http://www.pyimagesearch.com/2017/04/03/facial-landmarks-dlib-opencv-python/

Run:

Create a virtual environment called cv with dlib, opencv and imutils as indicated in the blog. Download the detector model here

> workon cv
> python facial_landmarks.py --shape-predictor shape_predictor_68_face_landmarks.dat --image <imagefilename>

If you wish to output individual detections for facial landmarks (mouth, eyes, nose, jaw, left and right eyebrows):

> workon cv
> python facial_landmarks.py --shape-predictor shape_predictor_68_face_landmarks.dat --image <imagefilename> --draw

or, run example with:

./run.sh