Skip to main content

Recognize a face from an uploaded image

POST 

https://demo.frigate.video/api/faces/recognize

Recognizes a face from an uploaded image file by comparing it against registered faces in the system. Returns the recognized face name and confidence score, or an error if face recognition is not enabled or the image cannot be processed.

Request​

Bodyrequired

    filestring<binary>required

Responses​

Successful Response

Schema
    successSuccess (boolean)required

    Whether the face recognition was successful

    score object

    Confidence score of the recognition (0-1)

    anyOf
    number
    face_name object

    The recognized face name if successful

    anyOf
    string
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/recognize", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
Request Collapse all
Base URL
https://demo.frigate.video/api
Body required
required
file
ResponseClear

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