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".
pip install -r requirements.txt
The code is tested in python 3.7.8 and macOS Catalina
python face_anti_spoofing.py
- Emotion detection: https://github.com/juan-csv/emotion_detection
- Profile detection: https://github.com/juan-csv/profile_detection
- Blink detection: https://github.com/juan-csv/eye_blink_detection