Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Face Detection in JavaScript with getUserMedia
Branch: master
Failed to load latest commit information. Added link to headtrackr in README
ccv.js Added files
face.html Added files
face.js Added files
glasses.png Added files

Face Detection in JavaScript with getUserMedia

Adapted to work with the getUserMedia API using code from

Try out the demo using Google Chrome with the "MediaStream" flag enabled in about:flags

Note that this demo only works online (or localhost) due to security restrictions. It won't work on a local file:/// system!

Also recommended is headtrackr which is a more sophisticated face- and head-tracking JavaScript library.

Something went wrong with that request. Please try again.