From cac62e834f05fd072219c2f1d1cddfea86fda2c3 Mon Sep 17 00:00:00 2001
From: wehub-resource-sync
+
+
+
+
+
+
+[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)
+
+
+
+[](https://badge.fury.io/py/supervision) [](https://pypistats.org/packages/supervision) [](LICENSE.md) [](https://badge.fury.io/py/supervision) [](https://codecov.io/gh/roboflow/supervision)
+
+[](https://snyk.io/advisor/python/supervision) [](https://colab.research.google.com/github/roboflow/supervision/blob/main/demo.ipynb) [](https://huggingface.co/spaces/Roboflow/Annotators) [](https://discord.gg/GbfgXGJ8Bk)
+
+
+
+📑 Table of Contents
+
+- [👋 Hello](#-hello)
+- [💻 Install](#-install)
+- [🔥 Quickstart](#-quickstart)
+ - [Models](#models)
+ - [Annotators](#annotators)
+ - [Datasets](#datasets)
+- [🎬 Tutorials](#-tutorials)
+- [💜 Built with Supervision](#-built-with-supervision)
+- [📚 Documentation](#-documentation)
+- [🏆 Contribution](#-contribution)
+
+👉 more model connectors
+
+- inference
+
+ Running with [Inference](https://github.com/roboflow/inference) requires a [Roboflow API KEY](https://docs.roboflow.com/api-reference/authentication#retrieve-an-api-key).
+
+ ```python
+ import supervision as sv
+ from PIL import Image
+ from inference import get_model
+
+ image = Image.open("path/to/image.jpg")
+ model = get_model(model_id="rfdetr-small", api_key="ROBOFLOW_API_KEY")
+ result = model.infer(image)[0]
+ detections = sv.Detections.from_inference(result)
+
+ len(detections)
+ # 5
+ ```
+
+👉 more dataset utils
+
+- load
+
+ ```python
+ dataset = sv.DetectionDataset.from_yolo(
+ images_directory_path=...,
+ annotations_directory_path=...,
+ data_yaml_path=...,
+ )
+
+ dataset = sv.DetectionDataset.from_pascal_voc(
+ images_directory_path=...,
+ annotations_directory_path=...,
+ )
+
+ dataset = sv.DetectionDataset.from_coco(
+ images_directory_path=...,
+ annotations_path=...,
+ )
+ ```
+
+- split
+
+ ```python
+ train_dataset, test_dataset = dataset.split(split_ratio=0.7)
+ test_dataset, valid_dataset = test_dataset.split(split_ratio=0.5)
+
+ len(train_dataset), len(test_dataset), len(valid_dataset)
+ # (700, 150, 150)
+ ```
+
+- merge
+
+ ```python
+ ds_1 = sv.DetectionDataset(...)
+ len(ds_1)
+ # 100
+ ds_1.classes
+ # ['dog', 'person']
+
+ ds_2 = sv.DetectionDataset(...)
+ len(ds_2)
+ # 200
+ ds_2.classes
+ # ['cat']
+
+ ds_merged = sv.DetectionDataset.merge([ds_1, ds_2])
+ len(ds_merged)
+ # 300
+ ds_merged.classes
+ # ['cat', 'dog', 'person']
+ ```
+
+- save
+
+ ```python
+ dataset.as_yolo(
+ images_directory_path=...,
+ annotations_directory_path=...,
+ data_yaml_path=...,
+ )
+
+ dataset.as_pascal_voc(
+ images_directory_path=...,
+ annotations_directory_path=...,
+ )
+
+ dataset.as_coco(
+ images_directory_path=...,
+ annotations_path=...,
+ )
+ ```
+
+- convert
+
+ ```python
+ sv.DetectionDataset.from_yolo(
+ images_directory_path=...,
+ annotations_directory_path=...,
+ data_yaml_path=...,
+ ).as_pascal_voc(
+ images_directory_path=...,
+ annotations_directory_path=...,
+ )
+ ```
+
+
+
+
+Dwell Time Analysis with Computer Vision | Real-Time Stream Processing
+
Learn how to use computer vision to analyze wait times and optimize processes. This tutorial covers object detection, tracking, and calculating time spent in designated zones. Use these techniques to improve customer experience in retail, traffic management, or other scenarios.
+
+Speed Estimation & Vehicle Tracking | Computer Vision | Open Source
+
+
+
+
+