From b6b7663ea7ac9bfd9e4bbf1971cc804783c6bff9 Mon Sep 17 00:00:00 2001 From: Onuralp SEZER Date: Fri, 21 Jul 2023 21:52:09 +0300 Subject: [PATCH] =?UTF-8?q?docs:=20=20=F0=9F=93=9D=20update=20installation?= =?UTF-8?q?=20and=20source=20installation=20methods?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Onuralp SEZER --- README.md | 54 ++++++++++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 48 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 89bea7cf..10dd7ff3 100644 --- a/README.md +++ b/README.md @@ -18,21 +18,35 @@ -## 👋 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] +``` +
-👉 install from source +👉 Install from source + +### Virtualenv/Pip Installation Method ```bash # clone repository and navigate to root directory @@ -43,13 +57,41 @@ cd supervision python3 -m venv venv source venv/bin/activate -# install -pip install -e ".[dev]" +# 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" + ```
-## 🔥 quickstart +## 🔥 Quickstart ### [detections processing](https://roboflow.github.io/supervision/detection/core/)