AR
aryansengar007/Object-Detection-and-Tracking
Real-time object detection and tracking using YOLOv8 and Deep SORT with a professional Streamlit interface.
π― Object Detection and Tracking (YOLOv8 + Deep SORT)
This project is a real-time object detection and tracking system built using the Ultralytics YOLOv8 models and Deep SORT tracking. It includes a clean and interactive Streamlit interface with webcam, video, and image input support.
π Features
- β
YOLOv8 Model Variant Selection (
n,s,m,l,x) - β Webcam, video file, and image input support
- β Deep SORT tracking (toggleable)
- β Real-time FPS counter
- β Class-wise object count summary
- β Filter detection by object classes
- β Confidence threshold control
- β Detection log console
- β Download processed video and CSV summary
- β Fully interactive and professional Streamlit GUI
πΈ Sample Classes Supported
- person
- car
- dog
- cat
- truck
- bicycle
- motorcycle
- bus
- bottle
(based on COCO dataset classes)
π οΈ Technologies Used
- Python
- OpenCV
- Ultralytics YOLOv8
- Deep SORT tracking
- Streamlit
π Project Structure
Object-Detection-and-Tracking/
β
βββvenv/
βββ main.py # Streamlit GUI logic
βββ detect_and_track.py # Core detection/tracking logic
βββ utils.py # Model descriptions and class list
βΆοΈ How to Run
- Clone this repository
git clone https://github.com/aryansengar007/Object-Detection-and-Tracking.git
cd Object-Detection-and-Tracking- Install dependencies
pip install -r requirements.txt-
Download YOLOv8 model weights (e.g.
yolov8n.pt)
From: https://github.com/ultralytics/ultralytics -
If using virtual environment, activate it
venv\Scripts\activate- Install necessary libraries
pip install ultralytics opencv-python deep_sort_realtime streamlit- Run the app
streamlit run main.pyπ₯οΈ Demo Screenshots
Dashboard
Result
Generated File and Video
πββοΈ Developed By
Aryan Sengar
π» Passionate about AI, Computer Vision, and Intelligent Systems
π Gurgaon, India
Β© 2025 Aryan Sengar β All Rights Reserved
Unauthorized copying is strictly prohibited.
π¬ Feel free to drop a β if you find this helpful!