HubCloneHubClone
Tasks

Object Detection

Object detection finds objects in an image and draws a labeled box around each one.

Inputs

Input
A photo of a red fox in fresh snow

Object Detection Model

Output

Output
Boxes: fox 0.97, tree 0.81

About Object Detection

Object detection finds objects in an image and draws a labeled box around each one. Browse object detection models on HubClone to compare checkpoints, or open a Space to try one in the browser.

Use Cases

Traffic monitoring

Count cars and pedestrians at a crossing.

Retail analytics

Check shelf stock from photos.

Inference

The Transformers pipeline API runs object detection models in a few lines. Replace <model-id> with any model listed on this page.

from transformers import pipeline

pipe = pipeline("object-detection", model="<model-id>")
pipe("fox.png")

Useful Resources

Want to dig deeper into the topic? Great! Here is a hand-picked list of resources we found helpful.

Documentation

  • Object Detection task guide
  • Pipelines reference

Notebooks

  • Fine-tuning a object detection model