Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Any library for face recognition in JavaScript? [closed]

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?

like image 991
Felix Avatar asked Sep 03 '11 03:09

Felix


People also ask

Which library we have used for face recognition?

OpenCV, the most popular library for computer vision, provides bindings for Python. OpenCV uses machine learning algorithms to search for faces within a picture.

Can OpenCV be used for face recognition?

OpenCV uses machine learning algorithms to search for faces within a picture. Because faces are so complicated, there isn't one simple test that will tell you if it found a face or not. Instead, there are thousands of small patterns and features that must be matched.

What is face API JS?

js — JavaScript API for Face Recognition in the Browser with tensorflow. js. Realtime JavaScript Face Tracking and Face Recognition using face-api. js' MTCNN Face Detector.


2 Answers

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.

like image 52
le_m Avatar answered Sep 22 '22 08:09

le_m


If you are looking to recognize where a face is in an image, as opposed to matching faces across multiple images, there is actually a library that does this in conjunction with HTML canvass.

There is a demo on the developers site here. You can also download the source on github.

In my test's the performance was decent - but not blazing.

like image 32
nikmd23 Avatar answered Sep 23 '22 08:09

nikmd23