Detect people in an image and return the total headcount along with a confidence score for each person found. Useful for occupancy, safety and zone analytics.
Headcount
Total people in frame
Per-person score
Confidence array
Optional boxes
Bounding boxes on request
Request URL
https://faceapi.mxface.ai/api/v3/Face/PeopleDetection
Method type
Headers
Content-Type : application/json
Subscriptionkey : xxxxxxxxxxx
{
"encoded_image": "/9j/4AAQSkZJRgABAQAAAQA......"
}
encoded_image
YesString
base64 encoded string
returnImage
Optionalbool
If true the API returns bounding boxes for the people in the image. If false only the score and count are returned.
{
"peopleCount": 1,
"score": [
0.9452115297317505
]
}
peopleCount
int
Total number of people detected in the image.
score
float
Quality score for each detected person, returned as an array.
200Success
400Invalid request. Please pass valid json with all required parameters.
Not valid biometric data or invalid format.
The input is not a valid Base-64 string.
401Access denied due to an invalid subscription key or the wrong API endpoint. Make sure to provide a valid key for an active subscription.
500Something went wrong, please try again later.
Try it on your own images
Free trial key unlocks every model.
Verify to continue
Captcha does not match. Please try again.