Real-Time Viola-Jones Face Detection in a Web Browser

This demo uses an optimized version of the Viola-Jones face detection algorithm to track your face in real-time. You can see an implementation of the original method here. To view the demos, you will need flash installed and a working webcam.

Instructions

If you have more than one camera driver, the camera settings dialog will appear. On a mac laptop with a built-in camera, select "USB Video Class Video". Otherwise, select your camera.

Flash will prompt you to allow access to your webcam. Click "Allow".

Move around, and test out the detector. It is fairly robust to occlusions, clutter, and low light situations.

The green square is the first hit found, and the light blue box with the clown nose is the improved hit. Most of the time, these are almost identical, but the improvement does make a difference while you are moving.

It has been tested in Mozilla Firefox, Safari, Internet Explorer, Google Chrome