Image requirements
The API expects the input image to have certain requirements in order to accurately perform facial liveness checks.
Best practices
Supported image formats: png, jpg, jpeg.
Image size should not exceed: 10mb
Image should be clicked in a well-lit room, with the face shown clearly to the camera. Extreme darkness/brightness on the face might increase the BPCER.
The Face should be straight and not tilted.
Minimum Size of detected face should be 224X224 pixels.
Distance between eyes should be ateast 100 pixels.
Motion Blur might increase BPCER.
Any occlusions on parts of face like Glasses, Masks should be removed while performing Liveness Check.
The detected Face should occupy atleast 20% of the total image area.
Image should be clicked as a selfie (portrait mode only).
No image compression is highly recommended.
Compressing Images for high performance - python
Use the following snippet to reduce the size of the images before sending it to the spoofsense-api.
Last updated