Skip to content

Commit 55f93a8

Browse files
authored
Merge pull request #991 from roboflow/develop
`supervision-0.19.0` release
2 parents 53f4cde + a0f7bb7 commit 55f93a8

File tree

96 files changed

+11296
-2484
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

96 files changed

+11296
-2484
lines changed

.github/workflows/docs.yml

Lines changed: 31 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
name: Docs WorkFlow
1+
name: Docs WorkFlow - Develop Tag 📚
22

33
on:
44
push:
55
branches:
6-
- master
7-
- main
86
- develop
97

108
permissions:
@@ -16,11 +14,34 @@ jobs:
1614
deploy:
1715
runs-on: ubuntu-latest
1816
steps:
19-
- uses: actions/checkout@v4
20-
- uses: actions/setup-python@v5
17+
- name: 🔄 Checkout code
18+
uses: actions/checkout@v4
2119
with:
22-
python-version: 3.x
23-
- run: pip install mkdocs-material
24-
- run: pip install "mkdocstrings[python]"
25-
- run: pip install "mkdocs-material[imaging]"
26-
- run: mkdocs gh-deploy --force
20+
fetch-depth: 0
21+
- name: 🐍 Set up Python
22+
uses: actions/setup-python@v5
23+
with:
24+
python-version: '3.10'
25+
- name: 📦 Install mkdocs-material
26+
run: pip install "mkdocs-material[all]"
27+
- name: 📦 Install mkdocstrings[python]
28+
run: pip install "mkdocstrings[python]"
29+
- name: 📦 Install mkdocs-material[imaging]
30+
run: pip install "mkdocs-material[imaging]"
31+
- name: 📦 Install mike
32+
run: pip install "mike"
33+
- name: 📦 Install mkdocs-git-revision-date-localized-plugin
34+
run: pip install "mkdocs-git-revision-date-localized-plugin"
35+
- name: 📦 Install JupyterLab
36+
run: pip install jupyterlab
37+
- name: 📦 Install mkdocs-jupyter
38+
run: pip install mkdocs-jupyter
39+
- name: 📦 Install mkdocs-git-committers-plugin-2
40+
run: pip install mkdocs-git-committers-plugin-2
41+
- name: ⚙️ Configure git for github-actions
42+
run: |
43+
git config --global user.name "github-actions[bot]"
44+
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
45+
- name: 🚀 Deploy MkDoc-Material with mike
46+
run: |
47+
MKDOCS_GIT_COMMITTERS_APIKEY=${{ secrets.GITHUB_TOKEN }} mike deploy --push develop

.github/workflows/publish.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ on:
33
push:
44
tags:
55
- '[0-9]+.[0-9]+[0-9]+.[0-9]'
6-
- '[0-9]+.[0-9]+[0-9]+.[0-9]'
7-
- '[0-9]+.[0-9]+[0-9]+.[0-9]'
86

97
# Allows you to run this workflow manually from the Actions tab
108
workflow_dispatch:

.github/workflows/test-doc.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: 🧪 Docs Test WorkFlow 📚
2+
3+
on:
4+
pull_request:
5+
branches: [main, develop]
6+
7+
jobs:
8+
docs-build-test:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: 🔄 Checkout code
12+
uses: actions/checkout@v4
13+
- name: 🐍 Set up Python
14+
uses: actions/setup-python@v5
15+
with:
16+
python-version: '3.10'
17+
- name: 📦 Install mkdocs-material
18+
run: pip install "mkdocs-material[all]"
19+
- name: 📦 Install mkdocstrings[python]
20+
run: pip install "mkdocstrings[python]"
21+
- name: 📦 Install mkdocs-material[imaging]
22+
run: pip install "mkdocs-material[imaging]"
23+
- name: 📦 Install mike
24+
run: pip install "mike"
25+
- name: 📦 Install mkdocs-git-revision-date-localized-plugin
26+
run: pip install "mkdocs-git-revision-date-localized-plugin"
27+
- name: 📦 Install JupyterLab
28+
run: pip install jupyterlab
29+
- name: 📦 Install mkdocs-jupyter
30+
run: pip install mkdocs-jupyter
31+
- name: 📦 Install mkdocs-git-committers-plugin-2
32+
run: pip install mkdocs-git-committers-plugin-2
33+
- name: 🧪 Test documentation build
34+
run: mkdocs build --verbose

.github/workflows/test-min.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ jobs:
3737
matplotlib==3.5.0 \
3838
numpy==1.21.2 \
3939
opencv-python==4.5.5.64 \
40+
Pillow==10.1.0 \
4041
packaging==23.2 \
4142
pluggy==1.3.0 \
4243
pyparsing==3.1.1 \

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,6 @@ dmypy.json
133133
# Pyre type checker
134134
.pyre/
135135

136-
# Notebooks
137-
notebooks/
138-
139136
# OSX folder attributes
140137
.DS_Store
141138
.AppleDouble

.pre-commit-config.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ repos:
1414
exclude: test/.*\.py
1515
- id: check-yaml
1616
exclude: mkdocs.yml
17-
- id: check-docstring-first
1817
- id: check-executables-have-shebangs
1918
- id: check-toml
2019
- id: check-case-conflict
@@ -30,7 +29,7 @@ repos:
3029

3130

3231
- repo: https://github.com/PyCQA/bandit
33-
rev: '1.7.6'
32+
rev: '1.7.8'
3433
hooks:
3534
- id: bandit
3635
args: ["-c", "pyproject.toml"]
@@ -47,7 +46,7 @@ repos:
4746

4847

4948
- repo: https://github.com/astral-sh/ruff-pre-commit
50-
rev: v0.1.14
49+
rev: v0.3.2
5150
hooks:
5251
- id: ruff
5352
args: [--fix, --exit-non-zero-on-fix]

CITATION.cff

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ url: 'https://roboflow.github.io/supervision/'
1515
abstract: >-
1616
supervision features a range of utilities for use in
1717
computer vision projects, from detections processing and
18-
filtering to confusion matrix calcuation.
18+
filtering to confusion matrix calculation.
1919
keywords:
2020
- computer vision
2121
- image processing

CONTRIBUTING.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,20 @@ To run the documentation, install the project requirements with `poetry install
112112

113113
You can learn more about mkdocs on the [mkdocs website](https://www.mkdocs.org/).
114114

115+
## 🧑‍🍳 cookbooks
116+
117+
We are always looking for new examples and cookbooks to add to the `supervision`
118+
documentation. If you have a use case that you think would be helpful to others, please
119+
submit a PR with your example. Here are some guidelines for submitting a new example:
120+
121+
- Create a new notebook in the [`docs/nodebooks`](https://github.com/roboflow/supervision/tree/develop/docs/notebooks) folder.
122+
- Add a link to the new notebook in [`docs/theme/cookbooks.html`](https://github.com/roboflow/supervision/blob/develop/docs/theme/cookbooks.html). Make sure to add the path to the new notebook, as well as a title, labels, author and supervision version.
123+
- Use the [Count Objects Crossing the Line](https://supervision.roboflow.com/develop/notebooks/count-objects-crossing-the-line/) example as a template for your new example.
124+
- Freeze the version of `supervision` you are using.
125+
- Place an appropriate Open in Colab button at the top of the notebook. You can find an example of such a button in the aforementioned `Count Objects Crossing the Line` cookbook.
126+
- Notebook should be self-contained. If you rely on external data ( videos, images, etc.) or libraries, include download and installation commands in the notebook.
127+
- Annotate the code with appropriate comments, including links to the documentation describing each of the tools you have used.
128+
115129
## 🧪 tests
116130

117131
[`pytests`](https://docs.pytest.org/en/7.1.x/) is used to run our tests.

README.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<div align="center">
22
<p>
3-
<a align="center" href="" target="_blank">
3+
<a align="center" href="" target="https://supervision.roboflow.com">
44
<img
55
width="100%"
66
src="https://media.roboflow.com/open-source/supervision/rf-supervision-banner.png?updatedAt=1678995927529"
@@ -10,7 +10,7 @@
1010

1111
<br>
1212

13-
[notebooks](https://github.com/roboflow/notebooks) | [inference](https://github.com/roboflow/inference) | [autodistill](https://github.com/autodistill/autodistill) | [collect](https://github.com/roboflow/roboflow-collect)
13+
[notebooks](https://github.com/roboflow/notebooks) | [inference](https://github.com/roboflow/inference) | [autodistill](https://github.com/autodistill/autodistill) | [maestro](https://github.com/roboflow/multimodal-maestro)
1414

1515
<br>
1616

@@ -21,13 +21,15 @@
2121
[![Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/roboflow/supervision/blob/main/demo.ipynb)
2222
[![Gradio](https://img.shields.io/badge/%F0%9F%A4%97%20Hugging%20Face-Spaces-blue)](https://huggingface.co/spaces/Roboflow/Annotators)
2323
[![Discord](https://img.shields.io/discord/1159501506232451173)](https://discord.gg/GbfgXGJ8Bk)
24-
24+
[![Built with Material for MkDocs](https://img.shields.io/badge/Material_for_MkDocs-526CFE?logo=MaterialForMkDocs&logoColor=white)](https://squidfunk.github.io/mkdocs-material/)
2525
</div>
2626

2727
## 👋 hello
2828

2929
**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! 🤝
3030

31+
[![supervision-hackfest](https://github.com/roboflow/supervision/assets/26109316/c05cc954-b9a6-4ed5-9a52-d0b4b619ff65)](https://github.com/orgs/roboflow/projects/10)
32+
3133
## 💻 install
3234

3335
Pip install the supervision package in a
@@ -43,7 +45,7 @@ Read more about desktop, headless, and local installation in our [guide](https:/
4345

4446
### models
4547

46-
Supervision was designed to be model agnostic. Just plug in any classification, detection, or segmentation model. For your convenience, we have created [connectors](https://supervision.roboflow.com/detection/core/#detections) for the most popular libraries like Ultralytics, Transformers, or MMDetection.
48+
Supervision was designed to be model agnostic. Just plug in any classification, detection, or segmentation model. For your convenience, we have created [connectors](https://supervision.roboflow.com/latest/detection/core/#detections) for the most popular libraries like Ultralytics, Transformers, or MMDetection.
4749

4850
```python
4951
import cv2
@@ -85,7 +87,7 @@ len(detections)
8587

8688
### annotators
8789

88-
Supervision offers a wide range of highly customizable [annotators](https://supervision.roboflow.com/annotators/), allowing you to compose the perfect visualization for your use case.
90+
Supervision offers a wide range of highly customizable [annotators](https://supervision.roboflow.com/latest/annotators/), allowing you to compose the perfect visualization for your use case.
8991

9092
```python
9193
import cv2
@@ -105,7 +107,7 @@ https://github.com/roboflow/supervision/assets/26109316/691e219c-0565-4403-9218-
105107

106108
### datasets
107109

108-
Supervision provides a set of [utils](https://supervision.roboflow.com/datasets/) that allow you to load, split, merge, and save datasets in one of the supported formats.
110+
Supervision provides a set of [utils](https://supervision.roboflow.com/latest/datasets/) that allow you to load, split, merge, and save datasets in one of the supported formats.
109111

110112
```python
111113
import supervision as sv

0 commit comments

Comments
 (0)