/face_liveness_detection-Anti-spoofing

face liveness detection activate, the script asks the person to generate an action, for example one of the actions they may ask you to do is smile, turn your face to the right, get angry, blink, etc. The actions are requested randomly, after fulfilling all the actions it generates a message saying "liveness successful" or "liveness fail"

Primary LanguagePythonMIT LicenseMIT

face_liveness_detection-Anti-spoofing

face liveness detection activate, the script asks the person to generate an action, for example one of the actions they may ask you to do is smile, turn your face to the right, get angry, blink, etc. The actions are requested randomly, after fulfilling all the actions it generates a message saying "liveness successful" or "liveness fail".

How to install:

pip install -r requirements.txt 

How to run:

The code is tested in python 3.7.8 and macOS Catalina

python face_anti_spoofing.py 

alt text

alt text

References