Detect Face

Detect Face

Locate faces in an image with bounding boxes and scores (OpenCV detect pipeline).

menu_bookAPI reference: Face Detectionexpand_more

Official docs: docs.verifik.co/verifik-biometrics-apis/liveness/face-detection (face detection overview, sample payloads, and response shape).

This demo calls the same POST /v2/face-recognition/detect route using min_score and search_mode as required by the current API validation. Optional collection_id and max_results are supported by the client but not exposed in the form below.

POST /v2/face-recognition/detect

Returns detected faces with geometry and scores. The published Face Detection guide also documents optional flags such as return_landmarks where supported.

HeaderValue
Content-Typeapplication/json
AuthorizationBearer <token>
ParamReqDescription
imageYesBase64 probe image (raw base64 or data URI per API)
min_scoreYesThreshold, typically 0.5–1
search_modeYesFAST or ACCURATE
collection_idNoOptional scope (not used in this demo UI)
max_resultsNoOptional cap (not used in this demo UI)
await fetch("https://api.verifik.co/v2/face-recognition/detect", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    Authorization: `Bearer ${accessToken}`,
  },
  body: JSON.stringify({
    image: "<base64>",
    min_score: 0.75,
    search_mode: "FAST",
  }),
});
  • This demo uses detectFace from @humanauthn/api-client with your session token.
  • For 1:N identification after capture, use Face Search or Search Live Face from the related docs.
menu_book

Official guides on docs.verifik.co