Working facesubstitution example with ofxFaceTracker2 in oF 0.11.1 - duplicate from this https://github.com/HalfdanJ/ofxFaceTracker2/pull/55 for more visibility
README
ofxFaceTracker2 - Face Substitution
live video input +
src.jpg create:This code provides an example of using the FaceSubstitution library with ofxFaceTracker2. It is based on samhains's implementation and modified with a new kalman filter and
glm::vec commands to work with oF 0.10 and up.Tested only on oF 0.11.1 on MacOS
Pre-Instructions
As with all openFrameworks projects, it is best to use the projectGenerator, import this project's root folder, check that all addons from addons.make are displayed and installed and then generate the project.Instructions
- Download shape_predictor_68_face_landmarks.dat and place in bin/data
- Use the files in the
libfolder to replace the Kalman.h and Kalman.cpp in your ofxCV in your addons folder inofxCv/libs/ofxCv/include/ofxCv/Kalman.handofxCv/libs/ofxCv/src/Kalman.cpp. This project was running on ofxCv-master commit209a3986a8f8e1928c7a11f6e1c5d8ea5406e639.
Thanks
To Thomas Colliers for sharing his solution in the issue above :) To nondescriptpointer for reuploading the updated Kalman filter and TargetMesh code from this thread issue #25
ofxAddons