nicoTrombon / facial-landmarks

Facial landmarks with dlib, OpenCV, and Python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Facial landmarks with dlib, OpenCV, and Python


Languages

Language:Python 96.0%Language:Shell 4.0%