HalfdanJ / ofxFaceTracker2

Landmark detection addon for openFrameworks using DLIB
Other
207 stars 60 forks source link

ofxFaceTracker2

This addon for openFrameworks is implementing the face detection and face landmark detection algorithm from dlib. The structure of this addon is heavily inspired by ofxFaceTracker. But, it does have some significant changes so it's not directly compatible with it.

Features

Platforms

Currently ofxFaceTracker2 is built and tested on OSX and Android, but dlib is crossplatform, so it should be possible to build for all other major platforms. The current builds are done with Apothecary

Comparison to ofxFaceTracker

The algorithms doing the tracking are very different. In the old ofxFaceTracker addon based on Jason Saragih's FaceTracker library, the face detection and landmark detection happens in the same algorithm.

In ofxFaceTracker2, the two stages happen seperately. The face detection in ofxFT2 is considerably slower then ofxFT, but it can easily run on a background thread. The landmark detection (finding the actual details on the face) is faster and more robust. Running ofxFT2 in multithreaded mode (default mode) will give you a better performance and better accuracy in comparison to ofxFT.

Another big difference is this addon supports multiple faces, whereas the old addon only supports one face at the time.

Installation