Bulk Enroll or Update Persons
Bulk Enroll or Update Persons
PUT
/persons
This endpoint is to enroll or update persons in bulk.
Headers
Content-Type
application/json
x-api-key
<your-api-key>
Body
collection_name
Required: Yes
Type: string
Example:
"collection_name": "MyCollection"
Please create a collection first before enrolling person(s). Else an error "The requested entity could not be found." will return
face_storage_type
Required: Yes
Type: string
Accepted values: "NoStorage", "StoreThumbnails", "StoreFullImage"
Example:
"face_storage_type": "StoreThumbnails"
"NoStorage" = do not store any face image "StoreThumbnails" = store only thumbnails (cropped face from the given image) "StoreFullImage" = store full base64 image
Persons
Required: Yes
Type: dict Example: To enroll multiple persons in a specified collection:
{
"collection_name": "MyCollection",
"face_storage_type": "StoreThumbnails",
"persons": [
{
"face_base_64": "U2Vjb25kIGltYWdl",
"metadata": {
"DOB": "2000-01-01"
},
"person_id": "JD1",
"person_name": "John Doe1"
},
{
"face_base_64": "U2Vjb25kIGltYWdl",
"metadata": {
"DOB": "2001-01-01"
},
"person_id": "JD2",
"person_name": "John Doe2"
}
]
}
Enrolling or updating multiple persons in one collection is allowed. Each Base64 image should have only one face. Not supporting multiple persons enrollment/update to multiple collections.
Response
[
{
"code": "string",
"message": "string",
"metadata": {
"additionalProp1": "string",
"additionalProp2": "string",
"additionalProp3": "string"
}
}
]
Last updated