Bounding Box On Image

Draw bounding boxes on a given image.

Algorithmia Platform License · Internet Access · Calls Other Algorithms

Try the API

{
  "output": "data://.algo/util/BoundingBoxOnImage/temp/output_2.png"
}

Install & Use

Use

curl -X POST -d '{
  "imageUrl": "data://util/BoundingBoxOnImage/three_people.jpg",
  "imageSaveUrl": "data://.algo/util/BoundingBoxOnImage/temp/output_2.png",
  "boundingBoxes": [
    {
      "coordinates": {
        "left": 1678,
        "right": 1900,
        "top": 1084,
        "bottom": 1307
      },
      "textObjects": [
        {
          "text": "Emily",
          "position": "bottom"
        }
      ]
    },{
      "coordinates": {
        "left": 2306,
        "right": 2491,
        "top": 1089,
        "bottom": 1274
      },
      "textObjects": [
        {
          "text": "Jay",
          "position": "top"
        }
      ]
    },{
      "coordinates": {
        "left": 3015,
        "right": 3238,
        "top": 910,
        "bottom": 1133
      },
      "textObjects": [
        {
          "text": "Jack",
          "position": "bottom"
        }
      ]
    }
  ]
}' -H 'Content-Type: application/json' -H 'Authorization: Simple YOUR_API_KEY' https://api.algorithmia.com/v1/algo/util/BoundingBoxOnImage/0.1.1
  
Curl Docs →