
Age group and minor detection
Estimates age and sex from facial images (handles multiple faces)
image_urlstringRequiredURL of image containing face(s) for demographic estimation
https://example.com/face.jpgDemographic analysis for all detected faces
num_facesintegerNumber of faces detected in image
2facesarrayArray of face analysis results
agefloatEstimated age in years
25.3from_agefloatAge range lower bound
23to_agefloatAge range upper bound
27.5is_minorbooleanTrue if age < 18 (minor)
falsechallenge_25booleanTrue if age < 25 (Challenge 25 policy)
truesexstringEstimated sex
femalesex_codeintegerSex code (0=male, 1=female)
1confidencefloatDetection confidence
0.95uncertaintyfloatAge estimation uncertainty
1.2bboxobjectFace bounding box
{"x1":100,"y1":150,"x2":300,"y2":400}image_sizeobjectOriginal image dimensions
{
"width": 1920,
"height": 1080
}{
"model": "minor-detection",
"image_url": "https://example.com/face.jpg"
}{
"success": true,
"data": {
"num_faces": 1,
"faces": [
{
"age": 25.3,
"from_age": 23,
"to_age": 27.5,
"is_minor": false,
"challenge_25": true,
"sex": "female",
"sex_code": 1,
"bbox": {
"x1": 100,
"y1": 150,
"x2": 300,
"y2": 400
},
"confidence": 0.95,
"uncertainty": 1.2
}
],
"image_size": {
"width": 1920,
"height": 1080
}
}
}429 HTTP error code along with an error message. You should then retry with an exponential back-off strategy, meaning that you should retry after 4 seconds, then 8 seconds, then 16 seconds, etc.Integrate Minor Detection into your application today with our easy-to-use API.