Text Generation
Image Generation
Model Training
Content Moderation
Authentication
Server Status
Detecting and Analysing Faces with AI
Detecting and Analysing Faces with AI
Detecting and Analysing Faces with AI using ImageCon V2
POST
/
api
/
ai
/
images
/
v2
/
face-detection
curl --request POST \
--url https://api.worqhat.com/api/ai/images/v2/face-detection \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multi-part/form-data' \
--data '{
"image": "/path/to/image.jpg"
}'
{
"code": 200,
"status": "success",
"data": {
"analysed_data": [
{
"age_range": {
"high": 26,
"low": 18
},
"beard": {
"confidence": 73.7099380493164,
"value": false
},
"bounding_box": {
"height": 0.22712668776512146,
"left": 0.3961663544178009,
"top": 0.2599637806415558,
"width": 0.22138258814811707
},
"confidence": 99.99722290039062,
"emotions": [
{
"confidence": 123,
"type": "<string>"
}
],
"eye_direction": {
"confidence": 123,
"pitch": 123,
"yaw": 123
},
"eyeglasses": {
"confidence": 123,
"value": true
},
"eyes_open": {
"confidence": 123,
"value": true
},
"face_occluded": {
"confidence": 123,
"value": true
},
"gender": {
"confidence": 123,
"value": "<string>"
},
"landmarks": [
{
"type": "<string>",
"x": 123,
"y": 123
}
],
"mouth_open": {
"confidence": 123,
"value": true
},
"mustache": {
"confidence": 123,
"value": true
},
"pose": {
"pitch": 123,
"roll": 123,
"yaw": 123
},
"quality": {
"brightness": 123,
"sharpness": 123
},
"smile": {
"confidence": 123,
"value": true
},
"sunglasses": {
"confidence": 123,
"value": true
}
}
]
},
"processing_time": 123,
"processing_id": "<string>",
"processing_count": 123
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
multi-part/form-data
The image to be sent as input.
Response
200
application/json
Successful response
Example:
99.99722290039062
Example:
200
Example:
"success"
Was this page helpful?
curl --request POST \
--url https://api.worqhat.com/api/ai/images/v2/face-detection \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multi-part/form-data' \
--data '{
"image": "/path/to/image.jpg"
}'
{
"code": 200,
"status": "success",
"data": {
"analysed_data": [
{
"age_range": {
"high": 26,
"low": 18
},
"beard": {
"confidence": 73.7099380493164,
"value": false
},
"bounding_box": {
"height": 0.22712668776512146,
"left": 0.3961663544178009,
"top": 0.2599637806415558,
"width": 0.22138258814811707
},
"confidence": 99.99722290039062,
"emotions": [
{
"confidence": 123,
"type": "<string>"
}
],
"eye_direction": {
"confidence": 123,
"pitch": 123,
"yaw": 123
},
"eyeglasses": {
"confidence": 123,
"value": true
},
"eyes_open": {
"confidence": 123,
"value": true
},
"face_occluded": {
"confidence": 123,
"value": true
},
"gender": {
"confidence": 123,
"value": "<string>"
},
"landmarks": [
{
"type": "<string>",
"x": 123,
"y": 123
}
],
"mouth_open": {
"confidence": 123,
"value": true
},
"mustache": {
"confidence": 123,
"value": true
},
"pose": {
"pitch": 123,
"roll": 123,
"yaw": 123
},
"quality": {
"brightness": 123,
"sharpness": 123
},
"smile": {
"confidence": 123,
"value": true
},
"sunglasses": {
"confidence": 123,
"value": true
}
}
]
},
"processing_time": 123,
"processing_id": "<string>",
"processing_count": 123
}