
supervision
Python toolkit for computer vision detection, tracking, and annotation
Replaces Roboflow
Who it's for
Gets the annotation, tracking, and dataset-conversion utilities needed to ship a detection or tracking application without writing repetitive glue code. The model-agnostic API means the pipeline stays the same when swapping between Ultralytics, MMDetection, or any other supported model.
You need a web-based annotation interface or managed AutoML training. Supervision has no UI and does not include training infrastructure.
Provides a consistent Python API for loading annotated datasets in YOLO or COCO format, splitting train/test sets, and visualizing detection results frame by frame. The pip install and zero-configuration design makes it fast to add to any Jupyter or script-based experiment.
You are working in a no-code or GUI-only environment. Supervision is a Python library and requires writing code.
Handles post-inference processing for video use cases including zone counting, object tracking, speed estimation, and frame annotation. Tutorials cover dwell time analysis for retail and speed estimation for traffic monitoring, giving teams a working reference for these patterns.
You need managed real-time streaming infrastructure or a hosted inference server. Supervision handles processing logic but does not include a cloud runner or stream ingestion layer.
The problem
Every computer vision project hits the same wall after training a model. Teams need to visualize bounding boxes, persist tracking IDs across video frames, count objects in zones, convert datasets between YOLO and COCO, and filter detections by confidence threshold. Each of these feels like a solved problem, but in practice every team writes these utilities from scratch in slightly different ways. The result is duplicated code that breaks at the edges. Trackers lose IDs on occlusion, annotators produce different colors on different machines, and dataset converters drop class names in the round trip. Projects end up with multiple incompatible utility functions and no clean way to swap the underlying detection model.
How it works
Connects to outputs from Ultralytics, Hugging Face Transformers, MMDetection, and Roboflow Inference via a unified `sv.Detections` object. Switching the underlying model requires changing one line; the annotation, tracking, and analytics pipeline stays unchanged. Any classification, detection, or segmentation model can plug in.
Provides multiple annotator types for composing frame-level visualizations, including box, label, and tracker-trail annotators. Each annotator is independently configurable, and you can stack multiple annotators in a single render pass to produce a complete visualization with bounding boxes, masks, and class labels.
Loads, splits, merges, and saves datasets in YOLO, COCO, and Pascal VOC formats through a single `DetectionDataset` API. Converting between formats is one method call. Merging two datasets with different class lists produces a unified class index automatically, with no manual remapping required.
Counts objects entering or exiting polygon zones in real time. The README describes this as a first-class capability: 'From data loading to real-time zone counting.' Tutorials show how to measure dwell time per zone, enabling retail wait-time analysis, traffic monitoring, and crowd management applications.
Includes utilities for multi-object tracking, demonstrated in tutorials that combine detection with ByteTrack to persist tracking IDs across frames. The tracking tutorial covers ID persistence through occlusion, per-class filtering, and speed estimation from perspective-transformed video coordinates.
Features
- Model-agnostic detection connectors
- Highly customizable frame annotators
- Dataset loading, splitting, and format conversion
- Real-time zone counting and spatial analytics
- Object tracking across video frames
How to install
Install supervision via pip in a Python 3.10 or newer environment.
pip install supervisionRecommended for this setup
Strengths
- MIT-licensed with over 50,000 GitHub stars: With over 50,000 stars and a last push in September 2026, supervision has broad community adoption and active maintenance. The MIT license allows commercial use, modification, and redistribution with no restrictions. The library makes no telemetry calls and has no dependency on a vendor account.
- Connects to every major CV framework: Native connectors for Ultralytics, Hugging Face Transformers, MMDetection, and Roboflow Inference cover the most-used detection libraries. Integrations like rfdetr return `sv.Detections` directly, requiring no adapter code. Teams using PyTorch or TensorFlow runtimes get the same annotation and dataset API.
- Runs anywhere with no server component: Supervision is a pure Python library with no background service, database, or cloud dependency. It installs in one pip command and runs on any Python 3.10+ system, including laptops, GPU servers, and Docker containers. No network calls are made at runtime, making it suitable for air-gapped or on-premises deployments.
Trade-offs
- No annotation UI or model training pipeline: Supervision is a code library, not a visual platform. It has no web-based annotation interface, no AutoML training pipeline, and no dataset hosting. Teams that rely on collaborative no-code labeling workflows still need a separate tool for that step, such as Label Studio or Roboflow's annotation interface.
- Requires Python 3.10 or newer: The library requires Python 3.10 or newer, as stated in the README. Projects running on older Python environments need to upgrade the runtime before adding supervision. This is a hard requirement and is not configurable.
Tech stack
FAQ
Yes. Supervision is MIT-licensed and free to use, modify, and redistribute, including for commercial purposes. There is no subscription, API key, or cloud account required to run it. The library installs via pip and runs entirely on your own machine or server.
Yes. Supervision was built to be model-agnostic. It provides connectors for Ultralytics, Hugging Face Transformers, MMDetection, and Roboflow Inference, and integrations like rfdetr return `sv.Detections` directly. For models without a built-in connector, you can construct a `sv.Detections` object from any bounding box and class label output.
Supervision requires Python 3.10 or newer, as stated in the README. Install it with `pip install supervision` in a compatible environment. If your project runs on an older Python version, you will need to upgrade the runtime before adding supervision.
Yes. Supervision is an independent open source library maintained by Roboflow but requires no Roboflow account by default. It makes no calls to Roboflow's API on its own. The Roboflow-specific integrations shown in the README's examples are optional; they appear when using `inference` or the `roboflow` package as the model provider, which is not required.
Yes. Supervision includes utilities for processing video streams frame by frame, and its tutorials cover real-time object tracking, zone-based dwell time analysis, and speed estimation from video. It does not include a built-in stream capture system; you supply the frames from OpenCV, FFmpeg, or another source and pass them through supervision's processing utilities.