얼굴 비교

3 단계 중 1 단계
1
원천
2
목표
3
분석하다

소스 식별

확인에 사용되는 기본 생체인식 서명입니다.

menu_bookAPI 참조: 얼굴 비교expand_more

공식 문서: docs.verifik.co/biometrics/compare

Verifik의 공개 페이지는 다른 환경에 대한 추가 필드를 설명할 수 있습니다. 이 HumanAuthn 데모는 갤러리, 프로브 및 선택적 Compare_min_score만 허용하는 Verifik 경로를 호출합니다.

POST /v2/face-recognition/compare

프로브 이미지를 갤러리 이미지와 비교하고 유사성 점수를 반환합니다. 점수가 Compare_min_score(또는 생략된 경우 서버 기본값)를 충족하면 백엔드 세트가 통과됩니다.

헤더
Content-Typeapplication/json
AuthorizationBearer <token>
매개변수유형요청설명
gallerystring[]참조 얼굴, base64(데이터 URL 접두사 없음)
probestring[]일치시킬 면, base64
compare_min_scorenumber아니요0.67~0.95. 생략 시 서버 기본값 0.85
await fetch("https://api.verifik.co/v2/face-recognition/compare", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    Authorization: `Bearer ${accessToken}`,
  },
  body: JSON.stringify({
    gallery: ["<base64>"],
    probe: ["<base64>"],
    compare_min_score: 0.85,
  }),
});
// 200 OK, example shape
{
  "id": "…",
  "data": {
    "result": {
      "score": 0.91,
      "compare_min_score": 0.85,
      "passed": true
    },
    "compare_min_score": 0.85
  },
  "signature": {
    "message": "Certified by Verifik.co",
    "dateTime": "…"
  }
}
  • 이미지는 실제 base64 페이로드여야 합니다. 매우 짧은 문자열은 거부됩니다(예: 412:only_images_in_base64).
  • 최소 점수 비교 슬라이더는 요청에 대한 Compare_min_score를 설정합니다(0.67~0.95, API 클라이언트 기본값인 0.85에서 시작).
  • 응답에는 데이터와 함께 ID와 서명 블록이 포함되는 경우가 많습니다.