Compare with liveness

Step 1 of 3
1
SourceReference only
2
TargetLiveness here
3
Analyze

Source · Reference only

Source is sent as gallery for face comparison.

Liveness does not use Source. It runs on Target in the next step.

menu_bookAPI reference: Compare with livenessexpand_more

Official docs: docs.verifik.co/biometrics/compare-with-liveness

POST /v2/face-recognition/compare-with-liveness

Compare first; if the face score meets compare_min_score (or it is omitted), liveness runs on the probe image against liveness_min_score.

HeaderValue
Content-Typeapplication/json
AuthorizationBearer <token>

In this demo, Source is the gallery image (step 1). Target is the probe (step 2). You can optionally detect the largest face in the Source and crop the image to that region in the browser before sending. The Target image is not cropped here. Server integrations may also support cropping via cropFace.

ParamTypeReqDescription
probestringYesBase64 live capture
gallerystring[]YesReference images (base64; https URLs supported server-side)
liveness_min_scorenumberNoDefault 0.6 if omitted
compare_min_scorenumberNo0.67 to 0.95, optional threshold
// 200 OK, example response shape
{
  "data": {
    "comparison": { "score": 0.88 },
    "liveness": {
      "liveness_score": 0.91,
      "min_score": 0.6,
      "passed": true
    }
  }
}
  • Comparison runs first; liveness on probe only if compare passes your threshold (or threshold omitted).
  • liveness_min_score defaults to 0.6 when not sent.
  • Gallery may use https URLs; the service fetches and converts them.