v1

latestOpenAPI 3.0.32026-07-26451985.7 KB

zero-shot-object-detection

Detect objects in images without prior training on those specific objects. Use cases include novel object detection, transfer learning, and few-shot learning

post/models/v2/google/owlv2-base-patch16-finetuned

Request body

urlstring required
base64string

Example request

{
  "url": "https://ocean.si.edu/sites/default/files/styles/3_2_largest/public/2023-11/Screen_Shot_2018-04-16_at_1_42_56_PM.png.webp?itok=Icvi-ek9",
  "candidate_labels": [
    "squid",
    "octopus",
    "human",
    "cat"
  ]
}

Response

Successful zero-shot-object-detection response.

errorstring nullable required

Null on success; otherwise an error message.

Example response

{
  "output": [
    {
      "score": 0.838,
      "label": "octopus",
      "box": {
        "xmin": 0,
        "ymin": -2,
        "xmax": 990,
        "ymax": 665
      }
    }
  ]
}