Visionaire
Search…
Face Enrollment
This API will be deprecated in June 1st 2021. Please consider to use Sync V2

Create Enrollment

Send a POST request to https://api.cloud.nodeflux.io/v1beta1/image-analytic/stream 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
"analytics": [
3
{
4
"type": "FACE_ENROLLMENT"
5
}
6
],
7
"image": {
8
"encoding": "IMAGE_ENCODING_JPEG",
9
"content": "{INSERT_JPEG_IMAGE_AS_BASE64_STRING}"
10
}
11
}
Copied!

Response Body

HTTP Mapping: 200 OK
1
{
2
"result":{
3
"face_enrollments":[
4
{
5
"face_id":"30604573299179521",
6
"variation":"17952130604573299"
7
}
8
]
9
}
10
}
Copied!

Custom Face ID

Request Body

1
{ "analytics":[ { "type":"FACE_ENROLLMENT", "options":{ "@type":"type.googleapis.com/nodeflux.analytics.v1beta1.FaceEnrollmentOptions", "face_id":"123456789" } } ], "image":{ "encoding":"IMAGE_ENCODING_JPEG", "content":"{INSERT_JPEG_IMAGE_AS_BASE64_STRING}" } }
Copied!

Response Body

HTTP Mapping: 200 OK
1
{
2
"result":{
3
"face_enrollments":[
4
{
5
"face_id":"123456789",
6
"variation":"17952130604573299"
7
}
8
]
9
}
10
}
Copied!

Delete Enrollment

Send a DELETE request to https://api.cloud.nodeflux.io/v1beta1/face/enrollment 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
"face_ids": [
3
"71111845645123585",
4
"71111845645123585",
5
"71111845645123585"
6
]
7
}
Copied!

Response Body

HTTP Mapping: 200 OK
1
{
2
"deleted_face_ids": [
3
"71111845645123585",
4
"71111845645123585",
5
"71111845645123585"
6
]
7
}
Copied!
Last modified 9mo ago