Skip to content
Repository for face project
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md
classifyEmotion.ipynb
cnn_face_detector.py
combineFeatures.ipynb
face_detection.ipynb
face_detector.py
face_landmark_detection.py
features.csv
mmod_human_face_detector.dat
obama.jpg

README.md

Face tools

Language: Python 3

Targe platform: Raspberry Pi, Ubuntu, OSX

Libraries: Dlib, skimage

Installing Dlib

For Ubuntu

  1. Install required packages
sudo apt-get install build-essential cmake
sudo apt-get install libgtk-3-dev
sudo apt-get install libboost-all-dev
  1. Set up your virtual environment

  2. Install dlib with Python bindings and skimage

pip install dlib
pip install scikit-image

See http://www.pyimagesearch.com/2017/03/27/how-to-install-dlib/ for more details.

For Raspberry Pi

See http://www.pyimagesearch.com/2017/05/01/install-dlib-raspberry-pi/.

Official guideline

http://dlib.net/compile.html

Face detection using Dlib

  1. Install Dlib

  2. Run the example code:

    python3 face_detector.py [IMAGE-FILE-NAME]

Facial landmark detection using Dlib

  1. Install Dlib

  2. Get a pre-trained model:

    wget http://dlib.net/files/shape_predictor_68_face_landmarks.dat.bz2
    bunzip2 shape_predictor_68_face_landmarks.dat.bz2 
  3. run the example code

    python3 face_landmark_detection.py shape_predictor_68_face_landmarks.dat [IMAGE_FILE_NAME]

Other Dlib python examples

https://github.com/davisking/dlib/tree/master/python_examples

You can’t perform that action at this time.