{
"images": [
{
"detected_faces": [
{
"bottom": 848,
"left": 1703,
"right": 2024,
"top": 527
},
{
"bottom": 811,
"left": 399,
"right": 861,
"top": 348
}
],
"imageDimensions": {
"height": 3137,
"width": 2826
},
"output": "data://.algo/temp/detected_faces.png",
"url": "https://en.wikipedia.org/wiki/Barack_Obama#/media/File:DIG13623-230.jpg"
}
]
}
Install the Algorithmia CLI client by running:
curl -sSLf https://algorithmia.com/install.sh | sh
Then authenticate by running:
algo auth
# Enter API Key: YOUR_API_KEY
algo run dlib/FaceDetection/0.2.1 -d '{
"images": [
{
"url": "https://en.wikipedia.org/wiki/Barack_Obama#/media/File:DIG13623-230.jpg",
"output": "data://.algo/temp/detected_faces.png"
}
]
}'