Face Comparison
Headers
Header | Value |
|
|
|
|
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 |
|
Request
Field | Type | Description |
image1 |
| Image binary encoded in base64 without <data:image/png;>. - Supports: JPG, JPEG, PNG - Max Size: 2MB |
image2 |
| Image binary encoded in base64 without <data:image/png;>. - Supports: JPG, JPEG, PNG - Max Size: 2MB |
| Model version used to recognize the faces. Default version is 1. | |
threshold |
| Threshold of the matched faces. |
Response
Field | Type | Description |
similarity |
| Similarity value between the two images |
matched |
| Matched |
Handheld
Endpoint
Method | URL |
POST |
|
Request
Field | Type | Description |
image |
| Image binary encoded in base64 without <data:image/png;>. - Supports: JPG, JPEG, PNG - Max Size: 2MB |
| Model version used to recognize the faces. Default version is 1. | |
threshold |
| Threshold of the matched faces. |
Response
Field | Type | Description |
similarity |
| Similarity value between the two images |
matched |
| Matched |
Errors
Please read this page <Responses & Errors> to know more about response.
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 |
Error 5XX
For every 5XX http code response, there will be no charge.
Last updated