Test the Detect.ai API

Documentation


Analytics for Faces

Face detection in an image. Retrieve demographics of each face. Gather an analytics view of what we detected in that image.


REQUEST HEADERS

X-Mashape-Key

REQUEST PAYLOAD

JSON Image URL

Image

ENDPOINT DEFINITION
POST https://matrixone-detect-v1.p.mashape.com/api/v1/faces
REQUEST EXAMPLE
curl -X POST --include 'https://matrixone-detect-v1.p.mashape.com/api/v1/faces' \
-H 'X-Mashape-Key: ' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-binary '{"imageUrl":"https://storage.googleapis.com/detection-server-tests/single_face.jpg","uid":"my-optional-request-uid"}'
                
RESPONSE HEADERS
Connection: keep-alive
Content-Length: 1057
Content-Type: application/json; charset=utf-8
Date: Sat, 19 Nov 2016 01:03:15 GMT
Etag: W/"421-vKIjkwOk9kiprH0CYFptuQ"
Server: Mashape/5.0.6
X-Powered-By: Express
                
RESPONSE BODY

200/JSON Analytics for Faces model



Demographics for a Face

Generates a set of demographics such as age, gender, emotions, etc... for an individual face. Expects a face.


REQUEST HEADERS

X-Mashape-Key

REQUEST PAYLOAD

JSON Image URL

Image

ENDPOINT DEFINITION
POST https://matrixone-detect-v1.p.mashape.com/api/v1/face/demographics
REQUEST EXAMPLE
curl -X POST --include 'https://matrixone-detect-v1.p.mashape.com/api/v1/face/demographics' \
-H 'X-Mashape-Key: ' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-binary '{"imageUrl":"https://storage.googleapis.com/detection-server-tests/single_face.jpg","uid":"my-optional-request-uid"}'
              
RESPONSE HEADERS
Connection: keep-alive
Content-Length: 617
Content-Type: application/json; charset=utf-8
Date: Sat, 19 Nov 2016 01:03:28 GMT
Etag: W/"269-nd0j1N6c31esTd+5a/nygg"
Server: Mashape/5.0.6
X-Powered-By: Express
                
RESPONSE BODY

200/JSON Demographics for a Face model