Face tracking, adding virtual objects in Flash
Thursday, July 12th, 2007In a previous blog I talked about using Flash and C++ for face detection. I’m going to use face detection to determine if the player of the game has the right distance to the webcam and is standing in the middle of the screen. But it’s also lots of fun to attach virtual objects to the face (like done in the more expensive Logitech webcam series), or to put filters and effects on the facial area.
Here is a quick example. The Jason Voorhees hockey mask moves along with my head in real time (about 60ms delay). The size of the sprite also changes as you move back and forward.
Edit: Or go on a killing spree in style ;)