This is a technical demo for face substitution technique. The application works in real time and it's developed using the opensource framework for creative coding openFrameworks:

Most of the "magic" happens thanks to Jason Saragih's c++ library for face tracking The face tracking library returns a mesh that matches the contour of the eyes, nose, mouth and other facial features.

That way the mesh obtained from a photo is matched to my own face in the video. Applying some color interpolation algorithms from Kevin Atkinson's image clone code: gives it the blending effect that can be seen in the final footage.

I'm also using Kyle McDonald's ofxFaceTracker addon for openframeworks which wraps Jason's library for easier use.

Kyle has uploaded another video giving a try at a different blending algorithm, which get rids of the artifacts and an even creepier look:

Loading more stuff…

Hmm…it looks like things are taking a while to load. Try again?

Loading videos…