This project demonstrates object detection using the YOLOv8 model with video annotation, utilizing supervision
for tracking and labeling, and opencv
for video processing.
-
Clone the repository:
git clone https://github.com/alihassanml/Object-Detection-Yolov8-Supervision.git cd Object-Detection-Yolov8-Supervision
-
Install the required dependencies:
pip install -r requirements.txt
Ensure you have
opencv-python
,supervision
, andultralytics
installed.
-
Place your input video in the root directory of the project (e.g.,
Shopping.mp4
). -
Run the object detection script:
python detect.py
-
The annotated video will be saved as
Annotated_Shopping.mp4
.
- Object Detection: YOLOv8 is used to detect objects in a video.
- Tracking:
ByteTrack
is used for tracking objects across frames. - Annotation: Bounding ellipses and labels are drawn for detected objects.
- Output: Annotated video is saved to a file.