September 23, 2011 report
Software developer shows face-swapping in realtime (w/ video)
Castro calls the technology Realtime Face Substitution, and its underpinning is the open source platform openFrameworks, which Castro helps to drive along with Zachary Lieberman and Theodore Watson.
OpenFrameworks is a coding toolkit that has been simplified for designers and artists, with C++ as the programming language.The popular openFrameworks toolkit was born out of the conviction that better tools make better projects, and that artists are generally turned on, not turned off, by using C++ for artistic expression.
Castro also makes use of Jason Saragihs FaceTracker library, a C/C++ API for real time face alignment and tracking.
FaceTracker is open source for non-commercial use, and is available from Saragih. Castro pays tribute to FaceTracker for having contributed "much of the magic that happens in the video. The library returns a mesh that matches contours of the facial features, such as eyes, nose and mouth.
"That way the mesh obtained from a photo is matched to my own face in the video. Applying some color interpolation algorithms from Kevin Atkinsons image clone code gives it the blending effect that can be seen in the final footage," he said.
The other technology component used is Kyle McDonalds ofxFacetracker. "Im also using Kyle McDonalds ofxFaceTracker addon for openFrameworks which wraps Jasons library for easier use," he said.
Castro said before producing the video he had thought about identity theft and what would happen if a face could be grabbed and put on someone else.
His next step is to use the technology for his art-making projects. He is planning an installation soon. His inspirations have been the art center in Valencia, Spain, lalalab, and an electronic musician, Aphex Twin, both with videos that use face-swapping technology.
© 2011 PhysOrg.com