* feat: add GEO infrastructure for AI search visibility
* fix: guard GEO blocks with {% if page %} to fix 404 build error
* feat: GEO platform optimization — FAQPage, IndexNow, answer paragraphs
* fix: move Disallow:/0.*/ to User-agent:* in robots.txt
* fix: block all numeric versioned paths in robots.txt
---------
Co-authored-by: Claude Code <noreply@anthropic.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
206 lines
7.1 KiB
Markdown
206 lines
7.1 KiB
Markdown
---
|
|
template: index.html
|
|
comments: true
|
|
hide:
|
|
- navigation
|
|
- toc
|
|
description: Open-source Python library providing computer vision tools for annotating detections, tracking objects, counting in zones, and processing datasets.
|
|
---
|
|
|
|
<div class="md-typeset">
|
|
<h1></h1>
|
|
</div>
|
|
|
|
<div align="center" id="logo" style="padding-top: 1rem;">
|
|
<a align="center" href="" target="_blank">
|
|
<img width="850"
|
|
src="https://media.roboflow.com/open-source/supervision/rf-supervision-banner.png?updatedAt=1678995927529">
|
|
</a>
|
|
</div>
|
|
|
|
<style>
|
|
#hello {
|
|
margin: 0;
|
|
}
|
|
</style>
|
|
|
|
## What is Supervision?
|
|
|
|
Supervision is an open-source Python library by Roboflow for building computer vision applications. It provides a unified `Detections` object that works with YOLO, SAM, Grounding DINO, Transformers, and 20+ model frameworks — use any detector, get the same composable API.
|
|
|
|
With Supervision you can annotate images and video with bounding boxes, masks, and labels; track objects across frames with persistent IDs; count and filter detections inside polygon zones; load and convert datasets between YOLO, COCO, and Pascal VOC formats; and benchmark model performance with mAP and confusion matrices.
|
|
|
|
Trusted by researchers (cited in 4,000+ papers) and practitioners (38,000+ GitHub stars, 1M+ monthly PyPI downloads), Supervision is the standard toolkit for production computer vision workflows.
|
|
|
|
## 👋 Hello
|
|
|
|
We write your reusable computer vision tools. Whether you need to load your dataset from your hard drive, draw detections on an image or video, or count how many detections are in a zone. You can count on us!
|
|
|
|
<video controls>
|
|
<source
|
|
src="https://media.roboflow.com/traffic_analysis_result.mp4"
|
|
type="video/mp4"
|
|
>
|
|
</video>
|
|
|
|
## 💻 Install
|
|
|
|
You can install `supervision` in a
|
|
[**Python>=3.9**](https://www.python.org/) environment.
|
|
|
|
!!! example "Installation"
|
|
|
|
=== "pip (recommended)"
|
|
|
|
[](https://badge.fury.io/py/supervision)
|
|
[](https://pypistats.org/packages/supervision)
|
|
[](../LICENSE.md)
|
|
[](https://badge.fury.io/py/supervision)
|
|
|
|
```bash
|
|
pip install supervision
|
|
```
|
|
|
|
=== "poetry"
|
|
|
|
[](https://badge.fury.io/py/supervision)
|
|
[](https://pypistats.org/packages/supervision)
|
|
[](../LICENSE.md)
|
|
[](https://badge.fury.io/py/supervision)
|
|
|
|
```bash
|
|
poetry add supervision
|
|
```
|
|
|
|
=== "uv"
|
|
|
|
[](https://badge.fury.io/py/supervision)
|
|
[](https://pypistats.org/packages/supervision)
|
|
[](../LICENSE.md)
|
|
[](https://badge.fury.io/py/supervision)
|
|
|
|
```bash
|
|
uv pip install supervision
|
|
```
|
|
|
|
For uv projects:
|
|
|
|
```bash
|
|
uv add supervision
|
|
```
|
|
|
|
=== "rye"
|
|
|
|
[](https://badge.fury.io/py/supervision)
|
|
[](https://pypistats.org/packages/supervision)
|
|
[](../LICENSE.md)
|
|
[](https://badge.fury.io/py/supervision)
|
|
|
|
```bash
|
|
rye add supervision
|
|
```
|
|
|
|
!!! example "conda/mamba install"
|
|
|
|
=== "conda"
|
|
|
|
[](https://anaconda.org/conda-forge/supervision) [](https://anaconda.org/conda-forge/supervision) [](https://anaconda.org/conda-forge/supervision) [](https://anaconda.org/conda-forge/supervision)
|
|
|
|
```bash
|
|
conda install -c conda-forge supervision
|
|
```
|
|
|
|
=== "mamba"
|
|
|
|
[](https://anaconda.org/conda-forge/supervision) [](https://anaconda.org/conda-forge/supervision) [](https://anaconda.org/conda-forge/supervision) [](https://anaconda.org/conda-forge/supervision)
|
|
|
|
```bash
|
|
mamba install -c conda-forge supervision
|
|
```
|
|
|
|
!!! example "git clone (for development)"
|
|
|
|
=== "virtualenv"
|
|
|
|
```bash
|
|
# clone repository and navigate to root directory
|
|
git clone --depth 1 -b develop https://github.com/roboflow/supervision.git
|
|
cd supervision
|
|
|
|
# setup python environment and activate it
|
|
python3 -m venv venv
|
|
source venv/bin/activate
|
|
pip install --upgrade pip
|
|
|
|
# installation
|
|
pip install -e "."
|
|
```
|
|
|
|
=== "uv"
|
|
|
|
```bash
|
|
# clone repository and navigate to root directory
|
|
git clone --depth 1 -b develop https://github.com/roboflow/supervision.git
|
|
cd supervision
|
|
|
|
# setup python environment and activate it
|
|
uv venv
|
|
source .venv/bin/activate
|
|
|
|
# installation
|
|
uv pip install -r pyproject.toml -e . --all-extras
|
|
|
|
```
|
|
|
|
## 🚀 Quickstart
|
|
|
|
<div class="grid cards" markdown>
|
|
|
|
- **Detect and Annotate**
|
|
|
|
---
|
|
|
|
Annotate predictions from a range of object detection and segmentation models
|
|
|
|
[:octicons-arrow-right-24: Tutorial](how_to/detect_and_annotate.md)
|
|
|
|
- **Track Objects**
|
|
|
|
---
|
|
|
|
Discover how to enhance video analysis by implementing seamless object tracking
|
|
|
|
[:octicons-arrow-right-24: Tutorial](how_to/track_objects.md)
|
|
|
|
- **Detect Small Objects**
|
|
|
|
---
|
|
|
|
Learn how to detect small objects in images
|
|
|
|
[:octicons-arrow-right-24: Tutorial](how_to/detect_small_objects.md)
|
|
|
|
- **Count Objects Crossing Line**
|
|
|
|
---
|
|
|
|
Explore methods to accurately count and analyze objects crossing a predefined line
|
|
|
|
[:octicons-arrow-right-24: Notebook](https://supervision.roboflow.com/latest/notebooks/count-objects-crossing-the-line/)
|
|
|
|
- > **Filter Objects in Zone**
|
|
|
|
---
|
|
|
|
Master the techniques to selectively filter and focus on objects within a specific zone
|
|
|
|
- **Cheatsheet**
|
|
|
|
---
|
|
|
|
Access a quick reference guide to the most common `supervision` functions
|
|
|
|
[:octicons-arrow-right-24: Cheatsheet](https://roboflow.github.io/cheatsheet-supervision/)
|
|
|
|
</div>
|