v1

latestOpenAPI 3.0.32026-07-26451985.7 KB

object-detection

Identify and locate objects in images for applications like security systems, autonomous driving, and retail analytics

post/models/v2/facebook/detr-resnet-50

Request body

urlstring required
base64string

Example request

{
  "url": "https://upload.wikimedia.org/wikipedia/commons/thumb/4/4d/Cat_November_2010-1a.jpg/1200px-Cat_November_2010-1a.jpg",
  "base64": "data:image/jpg;base64,...BASE_64_GOES_HERE (Only use this is you are not using a url)"
}

Response

Successful object-detection response.

errorstring nullable required

Null on success; otherwise an error message.

Example response

{
  "output": [
    {
      "score": 0.9996581077575684,
      "label": "cat",
      "box": {
        "xmin": 255,
        "ymin": 175,
        "xmax": 1110,
        "ymax": 1531
      }
    }
  ]
}