Skip to content

Detect facial landmarks in an image using dlib, OpenCV and Python.

Notifications You must be signed in to change notification settings

08pixels/distance-between-pupils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Distance Between Pupils

Environment

This code is developed using Python 3.6 on Xubuntu 18.04.

Install dependencies

pip install -r requirements.txt

Usage

# in the project root folder
python3 src/facial_landmarks.py --shape-predictor predictor/shape_predictor_68_face_landmarks.dat --image images/image5.jpg

Distance between pupils method (just a simple approximation)

The distance was calculated using euclidean distance

About

Detect facial landmarks in an image using dlib, OpenCV and Python.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages