Seventh Sense Face Anti-Spoofing / Liveness API
The `/liveness` endpoint allows you to determine if a face image is of a real person or a spoofed image (eg. a printed image of a face, or an image captured from a tablet's screen). The endpoint returns a score between 0 and 1, where 1 is a real person and 0 is a spoofed image, the threshold for the image to be considered live is >= 0.5. Our liveness achieved Attack Presentation Classification Error Rate (APCER) of 0% and reached iBeta Level 2 compliance in accordance with ISO 30107-3. **Note:** The `/liveness` endpoint does not store any information on our servers. It is a one-time classification of an image using a deep learning model. If you want to store the images and search for them later, use the `/person` endpoint to register persons for a later search using the `/search` endpoint.To ensure fraudsters cannot use high-resolution print outs, masks or video playbacks to spoof face recognition systems, liveness image has a higher requirement on image:Liveness image requirement: There should only be one main face on the image. It should be fully visible within a frame and fully open without any occlusions. No crop is allowed. Small faces in the background are not taken into account. The minimum size of a face box that can be processed is 224x224 pixels. The padding between the face box and the image's borders should be at least 25 pixels. The distance between the pupils on the face should be at least 80 pixels. The out-of-plane rotation angle (face pitch and yaw) should be no more than ±30 degrees. Fish-eye lenses and sunglass images are not supported.