cv_vision_tracker

🤖 AI Vision Tracker - YOLOv8 DeepSORT Streamlit

A powerful, user-friendly web application for real-time object detection, tracking, and counting using state-of-the-art YOLOv8 models with DeepSORT tracking algorithm. Built with Streamlit for an intuitive interface.

🚀 Live Demo & Resources

Live Application

Quick Access

🎯 Project Overview

AI Vision Tracker combines cutting-edge computer vision technologies to provide:

🖥️ Computer Vision in Project

This project demonstrates advanced computer vision techniques through real-world applications:

📸 Vision Pipeline Architecture

The system processes visual data through multiple stages:

📊 Computer Vision Impact

📈 Visual Intelligence Features

📸 Application Interface

Streamlit Interface

Live Detection Demo

Detection Demo 1

Model Configuration and Results

Detection Demo 2

The web interface provides real-time visualization with:

Key interface features:

YOLOv8 Banner

🏗️ Project Architecture

ai-vision-tracker/
├── app.py                    # 🎯 Main Streamlit application
├── config.py                 # ⚙️ Configuration settings
├── utils.py                  # 🔧 Utility functions
├── requirements.txt          # 📦 Python dependencies
├── packages.txt             # 🖥️ System dependencies
├── weights/detection/        # 🧠 Pre-trained YOLOv8 models
│   ├── yolov8n.pt           # 📱 Nano model (fastest)
│   └── yolov8s.pt           # 🚀 Small model (balanced)
├── videos/                   # 🎬 Sample video files
│   └── videoplayback.mp4    # 📹 Demo video
├── images/                   # 🖼️ Sample images
└── README.md                # 📚 Documentation

🔧 How It Works

1. Object Detection Engine (YOLOv8)

2. Tracking System (DeepSORT)

3. Counting Algorithm

4. Web Interface (Streamlit)

🎮 Features & Capabilities

📊 Detection Capabilities

🎯 Tracking Features

📈 Counting System

🎨 User Interface

🚀 Supported Input Formats

📸 Image Processing

🎬 Video Analysis

📹 Webcam Integration

🧠 YOLOv8 Model Variants

Model Size (pixels) mAPval50-95 Speed (CPU) Speed (GPU) Parameters FLOPs
YOLOv8n 640 37.3 80.4ms 0.99ms 3.2M 8.7B
YOLOv8s 640 44.9 128.4ms 1.20ms 11.2M 28.6B
YOLOv8m 640 50.2 234.7ms 1.83ms 25.9M 78.9B
YOLOv8l 640 52.9 375.2ms 2.39ms 43.7M 165.2B
YOLOv8x 640 53.9 479.1ms 3.53ms 68.2M 257.8B

🛠️ Technical Stack

Core Technologies

Dependencies

📦 Installation & Setup

1. Clone Repository

git clone https://github.com/Shreyansh123185655/ai-vision-tracker.git
cd ai-vision-tracker

2. Create Virtual Environment

python -m venv ai-vision-env
source ai-vision-env/bin/activate  # On Windows: ai-vision-env\Scripts\activate

3. Install Dependencies

pip install -r requirements.txt
pip install streamlit ultralytics

4. Run Application

streamlit run app.py

🌐 Deployment Options

Hugging Face Spaces

Render

Docker Deployment

docker build -t ai-vision-tracker .
docker run -p 8501:8501 ai-vision-tracker

🎯 Use Cases & Applications

🚗 Traffic Management

🏪 Retail Analytics

🏭 Industrial Monitoring

🔒 Security & Surveillance

🎮 How to Use

1. Select Model

2. Choose Input Source

3. Configure Settings

4. Run Analysis

📊 Performance Metrics

Detection Accuracy

Tracking Performance

🔧 Configuration Options

Model Settings

# Model selection
MODEL_TYPE = "yolov8s"  # n, s, m, l, x

# Detection confidence
CONFIDENCE_THRESHOLD = 0.5  # 0.3 - 1.0

# Input resolution
INPUT_SIZE = 640  # 320, 416, 512, 640, 1280

Tracking Parameters

# DeepSORT settings
MAX_DISAPPEARANCE = 30  # frames
MAX_TRACK_AGE = 100     # frames
N_INIT = 3             # consecutive detections

🐛 Troubleshooting

Common Issues

1. Model Loading Error

2. GPU Not Detected

3. Webcam Access Denied

Performance Optimization

1. Increase Speed

2. Improve Accuracy

🤝 Contributing

Development Setup

git clone https://github.com/Shreyansh123185655/ai-vision-tracker.git
cd ai-vision-tracker
git checkout -b feature/your-feature-name
# Make changes
git commit -m "Add your feature"
git push origin feature/your-feature-name

Code Style

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

🙏 Acknowledgments

📞 Contact & Support


🚀 Quick Start

# Clone and run in one command
git clone https://github.com/Shreyansh123185655/ai-vision-tracker.git && cd ai-vision-tracker && pip install -r requirements.txt && streamlit run app.py

🎉 Your AI Vision Tracker will be running at http://localhost:8501!