Detect objects in an image

Upload an image, ask what you are looking for and you will receive boxes around it

Use case example

  • - Automated photo filter
  • - Bot to sort pictures

Added by: APIForAI

Price per call≈ 0.02

License Paper Github

Try it nowAPI information

Try it

Examples

Input

Image
{
"input":{
"image":"https://rbqktisnztholqojxlaf.s..."
"query":"watch"
"box_threshold":0.25
"text_threshold":0.25
"show_visualisation":true
}
"id":94
}

Output

Image
{
"status":"succeeded"
"output":{
"detections":[
0:{
"bbox":[
0:{}
1:{}
2:{}
3:{}
]
"confidence":0.9388150572776794
"label":"watch"
}
]
"result_image":"https://rbqktisnztholqojxlaf.s..."
}
"prediction_time":6.939285
}

API Information

Input description

image uri

Input image to query

query string

Comma seperated names of the objects to be detected in the image

box_threshold number

Confidence level for object detection

Default value: 0.25

text_threshold number

Confidence level for object detection

Default value: 0.25

show_visualisation boolean

Draw and visualize bounding boxes on the image

Default value: true

Output JSON Schema

This represents the JSON schema that details the structure of the model's output.

{
"type":"object"
"title":"Output"
"required":[
0:"detections"
]
"properties":{
"detections":{
"type":"array"
"items":{}
"title":"Detections"
}
"result_image":{
"type":"string"
"title":"Result Image"
"format":"uri"
}
}
}

APIForAI

Build fast by accessing AI models easily