face-api.js icon indicating copy to clipboard operation
face-api.js copied to clipboard

Liveness Detection

Open GL-RuiLa opened this issue 6 years ago • 20 comments

Hi,

I am working on an internal room check-in system using this API. The detection speed and accuracy looks great. But there is a problem that people can use pictures on their phone or printed paper to unlock the door. I am wondering if there is any liveness detection (anti-spoofing) model we can integrate to make this API better. Thanks

Rio

GL-RuiLa avatar Feb 20 '19 21:02 GL-RuiLa

Also interested in liveness detection.

One aspect of that could be blink detection, see #176.

nathany avatar Feb 22 '19 18:02 nathany

Also interested! Something like that! http://cvlab.cse.msu.edu/project-face-anti.html

leandrojo avatar Mar 01 '19 23:03 leandrojo

An article on one type of liveness detection using a convolutional neural network: https://www.pyimagesearch.com/2019/03/11/liveness-detection-with-opencv/

nathany avatar Mar 12 '19 18:03 nathany

Also Interested!

guinaldi avatar Apr 16 '19 16:04 guinaldi

I would love to see Vincent @justadudewhohacks implements some kind like this https://github.com/richmondu/libfaceid

Bajajar avatar Jun 02 '19 09:06 Bajajar

This is likely my #1 request for this fantastic library.

ScottDellinger avatar Sep 13 '19 12:09 ScottDellinger

I have converted liveness keras model from https://www.pyimagesearch.com/2019/03/11/liveness-detection-with-opencv/ into tensorflowjs json model. anyone know how can i use this converted model in this library?

live

ariffromeo avatar Oct 11 '19 03:10 ariffromeo

New open source solution: https://github.com/SoftwareGift/FeatherNets_Face-Anti-spoofing-Attack-Detection-Challenge-CVPR2019

international download link model

Testing code

Output:

./images/fake.jpg: FAKE!
./images/real.jpg: REAL

msvargas avatar Nov 05 '19 18:11 msvargas

An article on one type of liveness detection using a convolutional neural network: https://www.pyimagesearch.com/2019/03/11/liveness-detection-with-opencv/

I tried that but the accuracy of the model is very poor.

ankitnamdeo34 avatar Jan 22 '20 11:01 ankitnamdeo34

Landmarks, specifically for eyes, changes in difference of distance between upper eye points and lower eyes points

We tried to use the same for fatigue detection but sadly eyes closed, it wasn't perfoming well for Indians faces so had to move to a different solution.

Summarizing, record a video run face-api notice how distances are changing, disproportionately compared to other landmarks, they are alive if not it's something static which may be moving around as a whole

no-1ne avatar Feb 11 '20 00:02 no-1ne

Hello there,

Just wanted to suggest a direction on how to do this.

There's a company which I won't disclose the name, who does the liveness detection based on the realness of the skin of the person.

While capturing the video input, several screens of different colors are quickly displayed on the screen. The algorithm analyses the reflection of light on the skin and determines if it's real or not.

Chey

Cheyenne55 avatar Feb 19 '20 15:02 Cheyenne55

I want code example for checking face liveness.

sundar505 avatar Jun 25 '20 07:06 sundar505

Hopefully this repo has an additional guide to detecting fake faces

tuanphan1998 avatar Feb 02 '21 08:02 tuanphan1998

@ariffromeo, sorry, did you manage to incorporate the models?

cristian2395 avatar Feb 27 '21 00:02 cristian2395

excellent feature request. would love to have this.

crypt0miester avatar Mar 27 '21 13:03 crypt0miester

+100 on this request!

financeable avatar Apr 22 '21 23:04 financeable

Please check following repo: https://github.com/Nikit333/Face-Liveness-Detection

Rdp1111 avatar Apr 23 '21 15:04 Rdp1111

I think this code will work. https://gist.github.com/kleysonr/d75494f239ad0dce561a55a624920693

qalainau avatar Aug 03 '21 14:08 qalainau

I have a problem like this too. Please fix it 😍😍 .

Alireza17224 avatar Dec 06 '21 10:12 Alireza17224

+1

codevjs avatar Mar 21 '23 06:03 codevjs