Visionaire
Search…
Face Match with Enrollment
This API will be deprecated in June 1st 2021. Please consider to use Sync V2
Send a POST request to https://api.cloud.nodeflux.io/v1beta1/face/match-with-id by providing these arguments as application/json.

Headers

Key
Value
Content-type
application/json
Authorization
Your authorization key.
x-nodeflux-timestamp
x-nodeflux-timestamp from the Authorization API.

Request Body

1
{
2
"image":{
3
"encoding":"IMAGE_ENCODING_JPEG",
4
"content":"{INSERT_JPEG_IMAGE_AS_BASE64_STRING}"
5
},
6
"id": 301219225937
7
}
Copied!

Response Body

HTTP Mapping: 200 OK
1
{
2
"face_match":{
3
"similarity":0.97,
4
"match": true
5
}
6
}
Copied!
!!! info "Protocol Reference"
1
Protocol reference available on [nodeflux.analytics.v1beta1.FaceMatch](../../protocol/analytics#nodeflux.analytics.v1beta1.FaceMatch)
Copied!

Errors

Empty Comparison Image

Requested comparison image data in field content is empty.
HTTP Mapping: 400 Bad Request
1
{
2
"error": "Comparison image data is empty",
3
"code": 3,
4
"message": "Comparison image data is empty",
5
"details": []
6
}
Copied!

Illegal Image Encoding

Requested comparison image data in field content is wrongly encoded.
HTTP Mapping: 400 Bad Request
1
{
2
"error": "illegal base64 data at input byte 240704",
3
"code": 2,
4
"message": "illegal base64 data at input byte 240704",
5
"details": []
6
}
Copied!

Not Found ID

Requested ID in field id is not found in database.
HTTP Mapping: 400 Bad Request
1
{
2
"error": "Requested ID not found",
3
"code": 3,
4
"message": "Requested ID not found",
5
"details": []
6
}
Copied!
Last modified 9mo ago