Supervision by Roboflow: Python library for computer vision with 38,000 stars on GitHub

Unified detections, video annotation, tracking, zone counting and YOLO/COCO/VOCdataset conversion. Compatible with Ultralytics, SAM, Detectron2 and more. MIT · pip install supervision.

Supervision: Roboflow open source Python library for computer vision and object detection
Supervision centralizes reusable tools to load datasets, annotate predictions, and count detections in zones. Source: Supervision Docs

Supervision is Roboflow's open source Python library for building computer vision applications in production. According to the official documentation, it offers a unified Detections object, converters for dozens of inference backends, and ready-made utilities for annotating, tracking, filtering, and evaluating models — “We write your reusable computer vision tools.”

What Supervision solves

Working with computer vision involves repeating tasks: parsing output from different models, drawing boxes and masks, persisting IDs between frames, or counting objects that cross a line. Supervision packages that into coherent APIs around the Detections type.

  • Annotation: bounding boxes, masks and labels in images and video.
  • Tracking: tracking of objects with persistent IDs frame by frame.
  • Zones and lines: count and filter detections within polygons or when crossing a Line Zone.
  • Datasets: load and convert between YOLO, COCO and Pascal VOC formats.
  • Metrics: evaluate models with mAP, precision, recall, F1 and confusion matrices.

Supported integrations

The strong point of Supervision is the conversion layer: the same annotation and post-processing flow serves after inferring with:

  • Ultralytics (YOLOv8/v11, etc.)
  • Roboflow Inference
  • Transformers (Hugging Face)
  • SAM (Segment Anything)
  • Detectron2, MMDetection, YOLO-NAS, PaddleDet
  • NCNN, Azure AI Vision and VLMs
  • parsers

That reduces “glue” code when you change models or mix detection with segmentation.

Featured Tools

The documentation organizes recipes and API reference into specific modules:

  • Line Zone and Polygon Zone: counting and spatial filtering.
  • Inference Slicer: detect small objects by dividing the image into tiles.
  • Detection Smoother: smooth noisy predictions in video.
  • Annotators: visual rendering of detections and keypoints.
  • Trackers: integration with multi-object tracking pipelines.

There are step-by-step tutorials (detect and annotate, save detections, video tracking, model benchmarks) and cookbooks on the docs website.

Installation

Requires Python ≥ 3.9. Recommended installation:

pip install supervision

Also available via poetry, uv, rye or conda install -c conda-forge supervision. For development: clone github.com/roboflow/supervision and install in editable with pip install -e ..

Roboflow ecosystem

Supervision complements the Roboflow stack (labeling, training, deployment with Inference). The library is the “reusable open source” side for teams that already deploy models on edge, server or notebooks — without tying you to a single detection framework.

In summary

What is it? MIT Python library for post-inference CV. For what? Annotate, track, count in zones, convert datasets and measure mAP. How to get started? pip install supervision and the documentation.