Skip to main content

Register a face image

POST 

https://demo.frigate.video/api/faces/:name/register

Registers a face image for a specific face name by uploading an image file. The uploaded image is processed and added to the face recognition system. Returns a success response with details about the registration, or an error if face recognition is not enabled or the image cannot be processed.

Request​

Path Parameters

    name Namerequired

Bodyrequired

    filestring<binary>required

Responses​

Successful Response

Schema
    successSuccess (boolean)required
    messageMessage (string)required
import http.client

conn = http.client.HTTPSConnection("demo.frigate.video")
payload = ''
headers = {
'Content-Type': 'multipart/form-data',
'Accept': 'application/json'
}
conn.request("POST", "/api/faces/:name/register", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
Request Collapse all
Base URL
https://demo.frigate.video/api
Parameters
— pathrequired
Body required
required
file
ResponseClear

Click the Send API Request button above and see the response here!