📝 updated install guide

This commit is contained in:
SkalskiP
2023-07-21 23:11:03 +02:00
parent b6b7663ea7
commit f1f2728e0d
2 changed files with 57 additions and 79 deletions
+4 -62
View File
@@ -18,80 +18,22 @@
</div>
## 👋 Hello
## 👋 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! 🤝
## 💻 Install
## 💻 install
Pip install the supervision package in a
[**3.11>=Python>=3.8**](https://www.python.org/) environment.
### Headless Installation
The headless installation of supervision is designed for environments where graphical user interfaces (GUI) are not needed, making it more lightweight and suitable for server-side or headless applications. To install supervision with the headless version of OpenCV, simply use the following command:
```bash
pip install supervision
```
### Desktop Installation
If you require the full version of supervision with GUI support and want to utilize OpenCV's graphical capabilities, you can install the desktop version. This version includes the GUI components of OpenCV, allowing you to interact with images and videos through graphical interfaces. To install supervision with the full version of OpenCV, use the following command:
```bash
pip install supervision[desktop]
```
<details close>
<summary>👉 Install from source</summary>
Read more about desktop, headless and local installation in our [guide](https://roboflow.github.io/supervision/).
### Virtualenv/Pip Installation Method
```bash
# clone repository and navigate to root directory
git clone https://github.com/roboflow/supervision.git
cd supervision
# setup python environment and activate it
python3 -m venv venv
source venv/bin/activate
# Headless install
pip install -e "."
# Desktop install
pip install -e ".[desktop]"
```
### Poetry Installation Method
```bash
# clone repository and navigate to root directory
git clone https://github.com/roboflow/supervision.git
cd supervision
# setup python environment and activate it
poetry shell
# If you like to speficiy python version
poetry env use python 3.10 # 3.8,3.9
poetry shell
# Headless install
poetry install
# Desktop install
poetry install --extras "desktop"
```
</details>
## 🔥 Quickstart
## 🔥 quickstart
### [detections processing](https://roboflow.github.io/supervision/detection/core/)
+53 -17
View File
@@ -9,29 +9,65 @@
</p>
</div>
## 👋 Welcome
## 👋 Hello
Supervision is a set of easy-to-use utilities that will come in handy in any computer vision project.
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!
**Supervision** is still in
pre-release stage 🚧 Keep your eyes open for potential bugs and be aware that at this stage our API is still fluid and may change.
## 💻 How to Install
## 💻 Install
You can install `supervision` with pip in a
[**3.11>=Python>=3.7**](https://www.python.org/) environment.
!!! example "Pip install method (recommended)"
!!! example "pip install (recommended)"
```bash
pip install supervision
```
=== "headless"
The headless installation of `supervision` is designed for environments where graphical user interfaces (GUI) are not needed, making it more lightweight and suitable for server-side applications.
!!! example "Git clone method (for development)"
```bash
pip install supervision
```
=== "desktop"
If you require the full version of `supervision` with GUI support you can install the desktop version. This version includes the GUI components of OpenCV, allowing you to display images and videos on the screen.
```bash
git https://github.com/roboflow/supervision.git
cd supervision
pip install -e '.[dev]'
```
See contributing section to know more about contributing to the project
```bash
pip install supervision[desktop]
```
!!! example "git clone (for development)"
=== "virtualenv"
```bash
# clone repository and navigate to root directory
git clone https://github.com/roboflow/supervision.git
cd supervision
# setup python environment and activate it
python3 -m venv venv
source venv/bin/activate
# headless install
pip install -e "."
# desktop install
pip install -e ".[desktop]"
```
=== "poetry"
```bash
# clone repository and navigate to root directory
git clone https://github.com/roboflow/supervision.git
cd supervision
# setup python environment and activate it
poetry env use python 3.10
poetry shell
# headless install
poetry install
# desktop install
poetry install --extras "desktop"
```