Mindket

Supervision

Newversion 2 · updated
GitHub trending
Star51.5k

Overview

Roboflow’s free, open source Python library for computer vision applications. It draws detections, counts objects in zones, converts datasets and scores models. The setup notes cover pip, conda, uv, a model and a tracker, datasets and benchmarks.

Supervision is an open-source project on GitHub in the Developer category, listed by Mindket. It is free. This is version 2, last updated on . Install it from GitHub as its README says. Get Mindket’s setup notes on your Mindket account, as a zip.

At a glance

Runs in
  • pip, the route the docs list as recommended, with a choice of OpenCV backend
  • Poetry, uv and rye
  • conda and mamba, from conda-forge
  • A clone of the develop branch, for development
Start with
pip install opencv-python supervision
pip install pillow rfdetr

Platform

LinuxOperating system
macOSOperating system
WindowsOperating system

About

What it is

Supervision is an open source Python library from Roboflow for building computer vision applications. It does not run a model. You pair it with one. RF-DETR’s predict method already returns Supervision’s Detections object, and for other models Supervision’s converters turn the output into that same object. From there you can draw boxes, masks and labels on images and video, filter detections and count them inside zones. It also loads and converts datasets between YOLO, COCO and Pascal VOC, and scores a model with mAP and confusion matrices. Tracking objects across frames takes a separate package, trackers.

  1. A model finds objects in an image or a video frame
  2. Supervision turns its output into one Detections object
  3. You filter, track, count or draw on those detections
  4. You save the picture, the video or a CSV or JSON file

Who it suits

Python developers and machine learning engineers who already have a detection or segmentation model and want the code around it. That means drawing results, counting in zones, converting datasets and scoring. Skip it if you need a model itself, because Supervision holds none.

Who uses it, and how
IndustryWho uses itHow they use itExample
Traffic and citiesEngineers who work with road videoCount vehicles inside zones and follow them from frame to frameAn engineer draws two zone polygons on the first frame of a traffic video and counts the cars inside each one, as the Count in Zone guide does.
Retail and operationsAnalysts who study queues and wait timesTrack people and measure the time they spend in a marked areaAn analyst follows the dwell time tutorial to see how long customers wait in a zone.
Model trainingMachine learning engineers who label and trainLoad, split, merge and convert datasets between YOLO, COCO and Pascal VOCAn engineer loads a COCO dataset, splits it, and saves the parts as YOLO for training.
Model evaluationTeams that compare detectorsScore predictions against labels with mAP, F1 and a confusion matrixA team runs two models over one test set and compares their mAP results.
High resolution imagesDevelopers who look for small objectsCut a large image into tiles, detect in each one and merge the resultsA developer wraps a model in InferenceSlicer so the small objects in a large photo are found.

Where to use it

Inside your own Python code. PyPI lists Linux, macOS and Windows. The maker documents these routes, and the kit has a page for each.

  • pip, the route the docs list as recommended, with a choice of OpenCV backend
  • Poetry, uv and rye
  • conda and mamba, from conda-forge
  • A clone of the develop branch, for development
  • A model and a tracker: RF-DETR, Roboflow Inference, Ultralytics, Transformers and the trackers package
  • Datasets, saved detections and benchmarks
  • Where the guides, the cheatsheet and the sample files are

The maker documents no steps for coding agents.

How to set it up

Get it saves a zip of Mindket’s setup notes in your downloads folder, with a page for each route above. The main route is pip, in a Python 3.10 or newer environment.

What you need first
NeedDetail
Python3.10 or newer. The README says a Python>=3.10 environment
A modelSupervision holds none. The README example uses RF-DETR, installed with pip install pillow rfdetr
OpenCVOnly if your code imports cv2 or reads a webcam. A standard install includes a fallback built on NumPy, Pillow, SciPy and PyAV
A Roboflow key or loginOnly where an example says so: the Inference connector, and the Roboflow dataset download
The trackers packageOnly for tracking objects across video frames: pip install trackers
  1. Open a Python 3.10 or newer environment.
  2. Install Supervision with OpenCV, and a model package.
  3. Run the docs example on one image.
pip install opencv-python supervision
pip install pillow rfdetr

How to use it

Run a model, then hand its output to Supervision. The documentation home gives this example. It finds objects in one image and draws a box and a label on each one.

import cv2
import supervision as sv
from rfdetr import RFDETRMedium

model = RFDETRMedium()
image = cv2.imread("image.jpg")
detections = model.predict(image[:, :, ::-1])

box_annotator = sv.BoxAnnotator()
label_annotator = sv.LabelAnnotator()

annotated_image = box_annotator.annotate(scene=image, detections=detections)
annotated_image = label_annotator.annotate(scene=annotated_image, detections=detections)

A model from another package returns its own kind of result, so you convert it first. Each converter is a class method on Detections, such as from_inference, from_ultralytics and from_transformers.

Example

You run a model on one photo and want only the confident detections. The Filter Detections page keeps them with one line.

detections = detections[detections.confidence > 0.5]

The same page filters by class, area, box size and zone. Draw the filtered result with the two annotators above.

For newcomers and experts

If you are new. A detection model looks at a picture and returns boxes, each with a class and a confidence. Supervision does not find anything itself. It is the code you write around the model: drawing, counting, saving and scoring. Start with one image and the example above. The Track Objects page downloads a sample video when you want to try video.

For experts. Every model connector ends in the same Detections object, so annotators and filters work the same whatever made the boxes. The process_video function runs a callback on every frame and writes a new video. LineZone counts crossings and needs tracker_id, so run a tracker first. For a moving camera, the Count in Zone page passes a coord_transform from the trackers motion estimator to the zone test.

CompactMask stores each mask as a run-length encoding of its box crop, and Detections.from_inference takes compact_masks=True. The page warns that a native COCO RLE mask can lose pixels outside its reported box.

Good to know

It is a library you run in your own Python code. The points below come from the maker’s pages.

  • Models: none comes with it. A model comes from another package. The Benchmark a Model page says RF-DETR ships pre-trained detection and segmentation checkpoints in the rfdetr package. The pages do not say whether those weights download, or from where
  • Network: download_assets fetches sample videos, and a Roboflow dataset download needs a login. The README says its Inference example needs a Roboflow API key and says nothing about usage data
  • Tracking: sv.ByteTrack was removed as of supervision-0.31.0. The cheatsheet still shows it. The current pages use ByteTrackTracker from the trackers package
  • OpenCV: it is no longer installed with Supervision. Some text and anti-aliased drawing pixels can differ from OpenCV’s, and the docs give a pin, pip install "supervision<0.30.0", for code that needs the older behavior
  • Versions: the repository’s default branch is develop. Mindket’s note: a PyPI release can be behind it, so check that the call you want exists in your version
  • Removal: the README gives no uninstall steps. Mindket’s note: use pip’s own uninstall, or delete the environment you made for it
  • License: MIT. The LICENSE file reads “Copyright (c) 2022 Roboflow”

README and files

README

Supervision: setup notes

This kit holds setup notes only. Mindket wrote them. Supervision itself installs from PyPI and from Roboflow's repository: https://github.com/roboflow/supervision

These notes are not made or endorsed by Roboflow. The README says: "We are your essential toolkit for computer vision. From data loading to real-time zone counting, we provide the building blocks so you can focus on building applications around your models." The documentation home page calls it "an open-source Python library by Roboflow for building computer vision applications." Docs: https://supervision.roboflow.com/

License: MIT. The LICENSE file (https://github.com/roboflow/supervision/blob/develop/LICENSE.md) is the MIT License text and reads "Copyright (c) 2022 Roboflow".

The repository's default branch is develop. A release on PyPI can be behind it, so the docs and the README can describe something your installed version does not have yet. After you install, check that the call you want exists in your version. That is Mindket's note, not the maker's.

What installs

  • supervision, the Python package, from PyPI. Source: https://github.com/roboflow/supervision/blob/develop/README.md
  • Its base dependencies, which PyPI lists as av, defusedxml, matplotlib, numpy, pillow, pydeprecate, pyyaml, requests, scipy and tqdm. Source: https://pypi.org/project/supervision/
  • Two optional extras that PyPI names: geotiff (rasterio) and metrics (pandas). The benchmark guide installs supervision[metrics]. See setup/datasets-and-benchmarks.md.
  • No OpenCV. The OpenCV migration page says: "Supervision no longer installs OpenCV or offers an OpenCV extra." A standard install carries a fallback built on NumPy, Pillow, SciPy and PyAV. See setup/pip.md.
  • No model. A detection model comes from another package, such as RF-DETR, Roboflow Inference, Ultralytics or Transformers. See setup/models-and-trackers.md.

What you need first

  • Python 3.10 or newer. The README says "a Python>=3.10 environment", and the PyPI metadata says >=3.10. Source: https://github.com/roboflow/supervision/blob/develop/README.md
  • A model and its package, if you want detections. The README's examples use RF-DETR.
  • OpenCV, if your code imports cv2 (the README's annotator example does) or reads a webcam. See setup/pip.md.
  • A Roboflow API key or login, only where an example says so: the README's Inference connector needs an API key, Process Datasets logs in with roboflow.login() before its dataset download, and Benchmark a Model downloads with Roboflow(api_key="<YOUR_API_KEY>"). See setup/models-and-trackers.md and setup/datasets-and-benchmarks.md.

Main install command

pip install supervision

Source: https://github.com/roboflow/supervision/blob/develop/README.md and https://supervision.roboflow.com/latest/

Per-platform notes

  • setup/pip.md: pip, the OpenCV choice, the backend check and the rollback line
  • setup/poetry-uv-rye.md: Poetry, uv and rye
  • setup/conda-and-mamba.md: conda and mamba, from conda-forge
  • setup/from-source.md: a clone of the develop branch with venv or uv, and the pre-release line
  • setup/models-and-trackers.md: the model connectors, RF-DETR, Inference, Ultralytics and Transformers, and the trackers package
  • setup/datasets-and-benchmarks.md: loading, splitting, merging and saving datasets, and the metrics extra
  • setup/docs-and-examples.md: where the guides, the cheatsheet and the sample videos are

The maker documents no steps for Claude Code, Codex or Cursor. A coding agent that can run shell commands can run the commands in setup/pip.md. That is Mindket's note, not the maker's.

Update or remove

The README and the docs give no update or uninstall steps. For a package installed with pip, use pip's own update and uninstall. If you made a virtual environment only for Supervision, deleting its folder removes everything in it. These two lines are Mindket's notes.

To go back to an older release, the OpenCV migration page gives a pin. See setup/pip.md.

Usage data and outbound connections

The README says nothing about usage data. These are the calls the docs show that reach the network: download_assets fetches a sample video, the roboflow package downloads a dataset after you log in, and the README says running with Inference needs a Roboflow API key. Sources: https://supervision.roboflow.com/latest/how_to/count_in_zone/, https://supervision.roboflow.com/latest/how_to/process_datasets/ and the README.

Sources

Files
README.md  6 KB
setup/conda-and-mamba.md  1 KB
setup/datasets-and-benchmarks.md  6 KB
setup/docs-and-examples.md  5 KB
setup/from-source.md  2 KB
setup/models-and-trackers.md  7 KB
setup/pip.md  3 KB
setup/poetry-uv-rye.md  900 B

8 files, 30 KB, downloaded as a zip.

What’s new

  • Version 2 · 2026-11-09

    Updated by Mindket to the current version of this kit.

  • Version 1 · 2026-11-03

Reviews

No ratings yet

Write a review

No reviews yet.

What people say

Posts and comments that name this project on Hacker News, Bluesky, X, Reddit, Facebook and YouTube, found by a weekly search and on Trendshift. Mindket doesn’t write or check them. Open one to read it where it was posted.

zerojamesAsk HN: Who is hiring? (July 2025)Roboflow | Solutions Architects, Implementation Engineer, Developer Advocate, Full Stack Engineers | Full-time (Remote, SF, NYC) | https://roboflow.com/careers?ref=whoishiring0725 Roboflow is the fastest way to use computer vision in production. We help developers give their software the sense of…deployedbyaiROBOFLOW: SUPERVISION 0.31.5: RTL LABELS, OCCLUSION-TOLERANT LINE COUNTS, EXACT ORIENTED-BOX CLIPPER1 reply@HongyeMain本期 GitHub 热门项目,一张图看完。 ① Microduck:双足机器人控制 ② Firecrawl:网页数据 API ③ Mobile-MCP:Agent 操作手机 ④ Editor:MCP 参与 3D 建模 ⑤ TimesFM:时间序列预测 ⑥ Supervision:统一视觉输出 #GitHub精选 #开源项目 #AI工具 #人工智能 #Agent https://t.co/tFskKuS05kr/computervisionNew Roboflow Pricing: Free private data, weights download, and local inferencezerojamesAsk HN: Who is hiring? (June 2025)Roboflow | Solutions Architects, Implementation Engineer, Developer Advocate, Full Stack Engineers | Full-time (Remote, SF, NYC) | https://roboflow.com/careers?ref=whoishiring0625 Roboflow is the fastest way to use computer vision in production. We help developers give their software the sense of…deployedbyaiROBOFLOW: SUPERVISION 0.31.3: GRAYSCALE ANNOTATORS, OPENCV-EXACT FALLBACKS, MERGED YOLO POLYGONS1 reply@iasg1004Plant cameras already run. The missing piece is reusable CV plumbing. 50,751★ · +327 today · #14 on GitHub Trending. roboflow/supervision: model-agnostic detect → track → annotate → zone count — plug Ultralytics / Transformers / Inference and ship the shop bay, not another notebook. Shop take: if…zerojamesAsk HN: Who is hiring? (April 2025)Roboflow | Solutions Architects, Implementation Engineer, Recruiter, Full Stack Engineers | Full-time (Remote, SF, NYC) | https://roboflow.com/careers?ref=whoishiring0425 Roboflow is the fastest way to use computer vision in production. We help developers give their software the sense of sight.…deployedbyaiRoboflow: supervision 0.31.2: Pascal VOC boxes follow devkit convention, edge-case crashes fixed1 reply@TheTechDiggestEmpowers developers to build sophisticated real-world computer vision applications in minutes: • Traffic & Speed Analytics: Tracks vehicles in real time and measures accurate speeds across highways and urban roadways. • Sports Analytics: Draws movement trails, player tracking paths, and spatial…zerojamesAsk HN: Who is hiring? (March 2025)Roboflow | Solutions Architects, IT & Security Ops, Implementation Engineer, Recruiter, Full Stack Engineer | Full-time (Remote, SF, NYC) | https://roboflow.com/careers?ref=whoishiring0325 Roboflow is the fastest way to use computer vision in production. We help developers give their software the…deployedbyaiROBOFLOW: SUPERVISION 0.30.9: INSTALLS WITHOUT OPENCV, FIXES COCO/CREATEML BOX LOADING, IMPROVES VIDEO FRAME READING1 reply

Searched

More from Mindket

See all from Mindket

Huashu Design

alchaincyf · Skill

Turns a one-line request in your AI agent into a finished design: a launch animation, a clickable app prototype, an editable slide deck, an infographic or a se…

New29.4k

Guizang PPT Skill

op7418 · Skill

Skill that makes single-file HTML slide decks, slide illustrations and platform covers in two visual styles, with a presenter mode for rehearsal. For speakers…

New29.8k

Claude Code Skills & Plugins

alirezarezvani · Skill

Adds 411 ready-made skills for Claude Code and other coding agents, grouped by role from engineering and product to marketing, finance and compliance. Installs…

New29.8k

Similar projects

See all in Developer

Rohit Ghumare’s free, MIT-licensed course that builds AI from raw math up to agents and production, in twenty phases. Tutor skills for Claude Code, Codex and C…

New77.8k

AI For Beginners

microsoft · Kit

Microsoft’s free 12-week, 24-lesson AI curriculum, with quizzes, Jupyter notebooks and labs. It runs from the history of AI and expert systems through neural n…

New70.6k

prometheus

prometheus · Kit

Collects metrics from your services on a schedule, stores them as time series, evaluates rules over them and raises alerts. For teams that run and watch system…

New67.5k