Face Liveliness Detection
A lightweight, fast anti-spoofing model that tells real faces from fake images and videos.
Links: GitHub repository
A deep learning model for face liveliness detection that distinguishes between real and fake (spoofed) faces, intended to harden face-recognition and other security systems against presentation attacks such as a photo or video held up to the camera.
Highlights
- Lightweight and fast, with a detection speed of about 30ms, which makes it practical for real-time use in security pipelines.
- Ships as a complete, reproducible pipeline rather than just a model:
-
gather_examples.pyextracts face crops from video streams to build a real-versus-fake dataset. -
livenessnet.pydefines the compact convolutional network used for classification. -
liveness_demo.pyruns the trained model live on a webcam feed.
-
- Uses an OpenCV deep-learning face detector (a Caffe model) to localise faces before the liveness classifier decides whether each detected face is genuine.