What do you want to do?
3 use cases
-
Detect and annotate objects in a few lines of Python
Run a detector, wrap its output as sv.Detections and draw clean boxes with an annotator.
View prompt
Using roboflow/supervision with RF-DETR, write a script that runs detection on every image in <folder> at threshold 0.5, draws boxes with sv.BoxAnnotator and saves annotated copies to <output folder>, printing the number of detections per image.
-
Convert and split vision datasets between YOLO, COCO and Pascal VOC
Load a labeled dataset in one format, split it into train, test and validation, and save it in another.
View prompt
With roboflow/supervision, load my COCO dataset from <images path> and <annotations path>, split it 70/15/15 into train, test and validation, and save each split in YOLO format under <output folder>. Print the class list and the size of each split.
-
Measure how long people or vehicles stay in a zone
Combine detection, tracking and zones to time how long objects spend in an area of a video stream.
View prompt
Using roboflow/supervision, build a script that reads <video file>, detects and tracks people, counts how long each one stays inside a zone I define by coordinates, and writes an annotated video plus a CSV of track id and seconds in zone. Follow the README's dwell time tutorial approach.
Quick start with Supervision
- Check you have what it needs: Python 3.10 or later; A detection or segmentation model; the quickstart uses RF-DETR via `pip install pillow rfdetr`; A Roboflow API key only if you use Inference or download datasets from Roboflow.
- Open roboflow/supervision on GitHub and read the README and license.
- Run
pip install supervision - Install the example dependencies with
pip install pillow rfdetr - Load an image and run
RFDETRSmall()predict with a threshold to get detections - Create
sv.BoxAnnotator()and call annotate on a copy of the image with the detections
These steps come from our top use case, Detect and annotate objects in a few lines of Python, which also has a copy-paste agent prompt.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for roboflow/supervision
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeAbout this repo
- Who it is forPython developers and ML engineers building vision apps who want to stop rewriting the glue code around their models.
- Why it is hot51k stars, talked about in 2 AI sources we track
- LanguagePython
- Sourcegithub.com/roboflow/supervision ยท Back to Hot repos
Requirements
- Python 3.10 or later
- A detection or segmentation model; the quickstart uses RF-DETR via `pip install pillow rfdetr`
- A Roboflow API key only if you use Inference or download datasets from Roboflow
Add this badge to your README
Maintain Supervision? Show readers where to find these use cases.
Markdown
[](https://dedupedai.com/use-cases/roboflow-supervision/?utm_source=github&utm_medium=badge&utm_campaign=roboflow-supervision)
HTML
<a href="https://dedupedai.com/use-cases/roboflow-supervision/?utm_source=github&utm_medium=badge&utm_campaign=roboflow-supervision"><img src="https://dedupedai.com/badge/roboflow/supervision.svg" alt="Use cases on Deduped" height="20"></a>
A static image, no tracking script. About the badge
Questions about Supervision
What is Supervision?
Supervision is Roboflow's model-agnostic Python toolkit for computer vision. It wraps the output of classification, detection and segmentation models from Ultralytics, Transformers, MMDetection, Inference or RF-DETR into one Detections object, then gives you annotators to draw results, zone counting and tracking tools, and dataset utilities to load, split, merge and convert YOLO, COCO and Pascal VOC datasets. It is an open-source project on GitHub: https://github.com/roboflow/supervision.
How do I use Supervision?
Run pip install supervision; then install the example dependencies with pip install pillow rfdetr; load an image and run RFDETRSmall() predict with a threshold to get detections. The use cases on this page give the full steps and a copy-paste agent prompt for each job.
Who is Supervision for?
Python developers and ML engineers building vision apps who want to stop rewriting the glue code around their models.
What can I do with Supervision?
3 use cases so far, for example: Detect and annotate objects in a few lines of Python; Convert and split vision datasets between YOLO, COCO and Pascal VOC; Measure how long people or vehicles stay in a zone. Each has steps and a copy-paste agent prompt.
What do I need to run Supervision?
Python 3.10 or later; A detection or segmentation model; the quickstart uses RF-DETR via `pip install pillow rfdetr`; A Roboflow API key only if you use Inference or download datasets from Roboflow.
What are alternatives to Supervision?
Other hot AI repos in Data and analytics: Chronos Forecasting, Crawlee Python, DLT, Timesfm, Ultralytics.
Is Supervision safe to run?
Deduped does not own, audit or vouch for it. Read the README and license, run it on your own systems first and review every command before you run it.