Kredibel API
  • Home
  • Knowledge Base
    • Security
    • Scoring Engine
    • Blacklist & Whitelist
    • Team Management
  • API Guide
  • Getting Started
  • Environment
  • Authorization
  • Responses & Errors
  • API References
    • Account Screening
      • Watchlist Screening
      • Bank Account
      • Phone Number
      • Email Address
      • IP Address
    • Electronic Certificate
      • Certificate Issuance
    • Identity Verification [Deprecated]
      • Biometric Verification
      • Demography Verification
      • Full Verification
    • Text Recognition
      • National Identity
      • Driver License
      • Passport
    • Face Recognition
      • Face Comparison
    • Billing
      • Credit
Powered by GitBook
On this page
  • Headers
  • Model
  • Non-Handheld
  • Endpoint
  • Request
  • Response
  • Handheld
  • Endpoint
  • Request
  • Response
  • Errors

Was this helpful?

  1. API References
  2. Face Recognition

Face Comparison

Headers

Header

Value

Content-Type

application/json

Authorization

Model

Kredibel provide two different option of model for face recognition. Every model has its own advantages and disadvantages. We recommend you to try both of the model before deciding which model is the best fit for your case.

Version
Description
Threshold

1

Model version 1 is the default model used for face recognition task. The model extract 512 facial features (landmarks).

< 0.80: not match >= 0.80: match

2

Model version 2 is the another model option for face recognition task. The model extract 128 facial features (landmarks).

< 0.80: not match >= 0.80: match

Non-Handheld

Endpoint

Method

URL

POST

$vision/v1/face/verification

Request

Field

Type

Description

image1

<base64:image>

Image binary encoded in base64 without <data:image/png;>. - Supports: JPG, JPEG, PNG - Max Size: 2MB

image2

<base64:image>

Image binary encoded in base64 without <data:image/png;>. - Supports: JPG, JPEG, PNG - Max Size: 2MB

Integer

Model version used to recognize the faces. Default version is 1.

threshold

Float (0-1)

Threshold of the matched faces.

{
    "image1": "<base64:image>",
    "image2": "<base64:image>"
}

Response

Field

Type

Description

similarity

Float (0-1)

Similarity value between the two images

matched

Boolean

Matched

{
    "message": "face verification succeded",
    "data": {
        "id": "8f9efedc-d5bf-11eb-9953-5517feb46cc4",
        "similarity": 0.7396538793680758,
        "matched": true
    }
}

Handheld

Endpoint

Method

URL

POST

$vision/v1/face/verification/handheld

Request

Field

Type

Description

image

<base64:image>

Image binary encoded in base64 without <data:image/png;>. - Supports: JPG, JPEG, PNG - Max Size: 2MB

Integer

Model version used to recognize the faces. Default version is 1.

threshold

Float (0-1)

Threshold of the matched faces.

{
    "image": "<base64:image>"
}

Response

Field

Type

Description

similarity

Float (0-1)

Similarity value between the two images

matched

Boolean

Matched

{
    "message": "face verification succeded",
    "data": {
        "id": "8f9efedc-d5bf-11eb-9953-5517feb46cc4",
        "similarity": 0.7396538793680758,
        "matched": true
    }
}

Errors

Error 4XX

Error Type
Description
Is charged?

invalid_base64_encoding

Invalid base64 encoding.

false

no_face_detected

No face was detected from one of the images or both images.

true

{
   "errors":{
      "errorId": <log_id:uuid>,
      "errorType": <error_type:str>
   },
   "message": <message:str>
}

Error 5XX

For every 5XX http code response, there will be no charge.

PreviousFace RecognitionNextBilling

Last updated 2 years ago

Was this helpful?

Bearer

Please read this to know more about response.

page <Responses & Errors>
YOUR_API_KEY
modelVersion
modelVersion