๐ผ๏ธ Object Detection System with YOLOv8 & OpenCV
An object detection system built using YOLOv8 and OpenCV, capable of detecting and tracking multiple objects in images and videos with high accuracy and real-time performance.
๐ Features
๐ง YOLOv8 Model for state-of-the-art object detection
๐ฅ Real-time Video Processing using OpenCV
โก Lightweight & Fast inference
๐ ๏ธ Installation
Clone the repository:
git clone https://github.com/your-username/Object-Detection-YOLOv8.git cd Object-Detection-YOLOv8
Create a virtual environment (optional but recommended):
python -m venv venv source venv/bin/activate # Linux / Mac venv\Scripts\activate # Windows
Install dependencies:
pip install -r requirements.txt
๐ฆ Dependencies
Python 3.8+
OpenCV
Ultralytics YOLOv8
NumPy
Install them manually if needed:
pip install opencv-python ultralytics numpy
๐น Run on a video python detect.py --video videos/sample.mp4
๐น Run on webcam python detect.py --webcam
๐ฏ Example Results ๐ธ Image Detection
๐ฅ Video Detection
Bounding boxes with labels are displayed in real time.
๐ Model Performance Model Variant Speed (ms) mAP@50 Parameters YOLOv8n 1.2 37.3 3.2M YOLOv8s 1.9 44.9 11.2M YOLOv8m 2.8 50.2 25.9M ๐๏ธ Future Improvements
โ Object tracking (DeepSORT/ByteTrack integration)
โ Custom dataset training
โ Deploy as a web app (Flask/Streamlit)
๐ค Contributing
Contributions, issues, and feature requests are welcome! Feel free to fork the repo and submit a pull request.
๐ License
This project is licensed under the MIT License.