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?
OpenCV, the most popular library for computer vision, provides bindings for Python. OpenCV uses machine learning algorithms to search for faces within a picture.
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.
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With