Any library for face recognition in JavaScript?

Felix picture Felix · Sep 3, 2011 · Viewed 42.3k times · Source

I would like to know if someone know how to recognize a face using just JavaScript. I've heard of OpenCV and relatives but I want to process the face recognition at the client side (web app).

Any ideas?

Answer

le_m picture le_m · Sep 5, 2012

Currently there is no pure JavaScript library performing face recognition. Real time face detection however is possible using one of the following libraries:

  • For face and face element detection as well as object detection in general, you could use js-objectdetect or tracking.js which include ports of the OpenCV object detector based on Haar-like features. Also consult this performance comparison chart for ten popular JavaScript face detection libraries.

    Face detection demo

  • The very first face detection algorithm on the web found in ccv also deserves a mention. Its SURF classifier is fast but not very reliable.

  • The headtrackr library used for face tracking might also be of interest since it implements the camshift algorithm found in OpenCV. Also have a look at clmtrackr of the same author.