API Usage
spoofsense-triton endpoints are optimised for speed and performance.
Last updated
spoofsense-triton endpoints are optimised for speed and performance.
Last updated
You will require x-api-key in order to use the API.
Contact kartikeya@spoofsense.com in case you do not already have it.
Performs a Passive Liveness Check
Following table shows the API responses and behaviours in different cases
200
Live Face
200
Spoof Face
200
No Face
200
Bad Input
413
Image Size > 10MB
model_output contains everything needed to check for facial liveness
"pred_idx" refers to the predicted class of the face and has two possible values:
"real": A Live Face
"spoof": A Spoof Face / Presentation Attack
"prob_real" refers to the probability of the face being "real" (live). A score above 0.50 means the face is "real". A score less than 0.50 means the face is "spoof". "prob_real" metric can should be used for writing the liveness check logic in your app.
if model_output[“prob_real”] > 0.55:
return “Liveness Confirmed”
else:
return “Liveness Failed”