justadudewhohacks / face-api.js

JavaScript API for face detection and face recognition in the browser and nodejs with tensorflow.js
MIT License
16.49k stars 3.68k forks source link

Verification of Face live(like face lock) #731

Open jai38 opened 3 years ago

jai38 commented 3 years ago

can we just store details of one person details and then verify if the person is same or other? just like face lock work?

josiahbryan commented 3 years ago

Yes. Have you looked at the FaceMatcher class in this project...? Check the docs for that class.

I wrote my own for finding "known" faces in video feeds for the purposes of switching cameras for streaming, but the idea is the same - get a face descriptor, store it, label it, then later match new descriptors from found faces against the existing descriptors you have stored. If under some threshold of Euclidean distance, then voila, you have a match.