FaceTracker is a library for deformable face tracking written in C++ using OpenCV 2, authored by Jason Saragih and maintained by Kyle McDonald.
It is available free for non-commercial use, and may be redistributed under these conditions. Please see license.md for complete details.
Wrappers are available for:
These instructions are for compiling the code on OS X only. Compilation on other Unix-type architectures should be similar.
- Download the latest version of OpenCV-2.0 with 
git clone git://code.opencv.org/opencv.git(more instructions here) - Follow the OpenCv installation instructions and compile and install OpenCV to some arbitrary local directory (usually 
/usr/local/). - Clone the FaceTracker code with 
git clone git://github.com/kylemcdonald/FaceTracker.git. This will number of subdirectories within the root directory:- src (contains all source code)
 - model (contains a pre-trained tracking model)
 - bin (will contain the executable after building)
 
 - In the 
Makefilelocated in the root directory of the FaceTracker code, change theOPECV_PATHvariable to the directory where OpenCV was installed (by defualt/usr/local). Optionally, you can also add-fopenmpto theCFLAGSand-lgomptoLIBRARIESto compile with OpenMP support. - Build the system with 
make. - The executable 
face_trackercan be found in thebinsubdirectory. 
Usage: face_tracker [options]
Options:
-m <string> : Tracker model (default: ../model/face2.tracker)
-c <string> : Connectivity (default: ../model/face.con)
-t <string> : Triangulation (default: ../model/face.tri)
-s <double> : Image scaling (default: 1)
-d <int>    : Frames/detections (default: -1)
--check     : Check for failure 
--help      : Print help
-?          : Print help