face-recognition.js | Simple Node.js package | Computer Vision library
kandi X-RAY | face-recognition.js Summary
kandi X-RAY | face-recognition.js Summary
Simple Node.js package for robust face detection and face recognition. JavaScript and TypeScript API.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Base face recognition context .
- Run tests .
- Draw a rectangle
- Adds faces info to a mesh
- add faces descriptors to face
- Create a cv image from a given matrix
- Convert a DOM rectangle to a CVD object .
- Creates a rectangle from a given argument .
- check the descriptors in descriptor
- Computes the Levenshtein distance to the argument
face-recognition.js Key Features
face-recognition.js Examples and Code Snippets
Community Discussions
Trending Discussions on face-recognition.js
QUESTION
I need to find a way to implement face detection and recognition completely offline using a browser. Trained model specific to each user maybe loaded initially. We only need to recognize one face per device. What is the best way to implement this?
I tried tracking.js
to implement face detection. It works. But couldn't get a solution to implement recognition. I tried face-recognition.js. But it needs a node server.
ANSWER
Answered 2018-Aug-30 at 14:08Take a look at: face-api.js it can both detect and recognize faces in realtime completely in the browser! It's made by Vincent Mühler, the same creator of face-recognition.js.
Thing to note:
- It's realtime, my machine gets ~50ms (using MTCNN model)
- It's JavaScript but uses WebGL GPU acceleration under the hood which is why it performs so well
- It can also work on mobile! (tested on my S8+)
- I recommend looking at the included examples as well, these helped me a lot
I have used the package to create a working project, it was surprisingly easier than I thought and this is coming from a student that just started web development. (used it in a ReactJs App)
Just like you I was searching and trying things such as tracking.js but to be honest they didn't work well.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install face-recognition.js
If you want to use an own build of dlib:.
set DLIB_INCLUDE_DIR to the source directory of dlib
set DLIB_LIB_DIR to the file path to dlib.lib | dlib.so | dlib.dylib
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page