GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - SalmanFarizN/drone-nl-tracker: Drone-based object tracking that responds to human queries like "track all blue cars" or "find damaged vehicles" using fine-tuned YOLOv8 + Qwen 2.5 VLM.

BranchesTags
Open more actions menu

Latest commit

 

History

27 Commits
27 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
assets
assets
 
 
data
data
 
 
docs
docs
 
 
models
models
 
 
src
src
 
 
.gitignore
.gitignore
 
 
.python-version
.python-version
 
 
README.md
README.md
 
 
main.py
main.py
 
 
pyproject.toml
pyproject.toml
 
 
requirements.txt
requirements.txt
 
 
uv.lock
uv.lock
 
 

Repository files navigation

🚁 Drone Natural Language Tracker

Documentation Python 3.13+ Streamlit License

Natural Language-Powered Drone Tracking: Combine the precision of computer vision with the intuition of human language to track specific objects in drone footage.

🌟 Overview

The Drone Natural Language Tracker demonstrates how Vision Language Models (VLMs) can revolutionize autonomous systems by enabling natural language control of complex computer vision tasks. This project showcases drone-based object tracking that responds to human queries like "track all blue cars" or "find damaged vehicles" using state-of-the-art AI models.

Built with a fine-tuned YOLOv8n model on the VisDrone dataset, BotSORT tracking, and Qwen2.5-VL for natural language understanding, this system bridges the gap between human intuition and machine precision.

šŸŽ„ Live Demonstrations

Standard Object Detection & Tracking

No Query Tracking

Baseline tracking using YOLOv8n fine-tuned on VisDrone dataset with BotSORT and ReID for persistent object tracking across frames.

Natural Language-Guided Tracking

Query-Based Tracking

Natural language query-based filtering: "Track red cars" - The system uses Qwen2.5-VL to analyze each detected vehicle and filter results based on the text description.

✨ Key Features

  • šŸŽÆ Natural Language Queries: Filter objects using intuitive text descriptions
  • šŸ”„ Real-time Processing: Live video analysis with immediate visual feedback
  • šŸ“Š Interactive Dashboard: Streamlit-based UI with dual video displays and live statistics
  • šŸ’¾ Experiment Logging: Automatic CSV logging with timestamped experiment sessions
  • šŸŽØ Multi-tab Interface: Separate views for tracking and data analysis
  • šŸ” Persistent Tracking: BotSORT algorithm maintains object identity across frames
  • 🧠 Vision-Language Integration: Qwen2.5-VL model for intelligent object categorization

šŸ—ļø Architecture

graph TD
    A[Drone Video Feed] --> B[YOLOv8n Detection]
    B --> C[BotSORT Tracking]
    C --> D{Natural Language Query?}
    D -->|Yes| E[Qwen2.5-VL Analysis]
    D -->|No| F[Standard Visualization]
    E --> G[Query-Filtered Results]
    G --> H[Annotated Video Output]
    F --> H
    H --> I[CSV Logging]
    I --> J[Live Dashboard Updates]
Loading

šŸš€ Quick Start

Prerequisites

  • Python 3.13 or higher
  • Ollama installed locally
  • CUDA-compatible GPU (recommended for optimal performance)

Installation

  1. Clone the repository

    git clone https://github.com/SalmanFarizN/drone-nl-tracker.git
    cd drone-nl-tracker
  2. Install dependencies (choose one method):

    Using uv (recommended):

    uv sync
    uv run streamlit run main.py

    Using pip:

    pip install -r requirements.txt
    streamlit run main.py
  3. Setup Qwen2.5-VL model

    ollama pull qwen2.5vl:7b
  4. Launch the application

    streamlit run main.py

    The dashboard will open at http://localhost:8501

šŸ“ Project Structure

drone-nl-tracker/
ā”œā”€ā”€ šŸ“„ main.py                 # Streamlit application entry point
ā”œā”€ā”€ šŸ“ src/                    # Core application modules
│   ā”œā”€ā”€ utils.py              # Computer vision utilities
│   ā”œā”€ā”€ tab_tracking.py       # Main tracking interface
│   ā”œā”€ā”€ tab_logs.py           # Data analysis interface
│   └── file_io.py            # CSV logging utilities
ā”œā”€ā”€ šŸ“ models/                 # Pre-trained models
│   ā”œā”€ā”€ yolov8n-VisDrone.pt   # Fine-tuned YOLO model
│   └── botsort.yaml          # BotSORT configuration
ā”œā”€ā”€ šŸ“ data/                   # Video files and logs
ā”œā”€ā”€ šŸ“ assets/                 # Demo GIFs and documentation
ā”œā”€ā”€ šŸ“ docs/                   # Sphinx documentation
ā”œā”€ā”€ šŸ“„ pyproject.toml          # Project dependencies (uv format)
└── šŸ“„ requirements.txt        # Dependencies (pip format)

šŸŽ® Usage Guide

Basic Tracking

  1. Launch the application
  2. Navigate to the šŸŽ„ Tracking tab
  3. Click ā–¶ļø Start Detection to begin processing
  4. View live results in the dual video display

Natural Language Queries

  1. Enter your query in the text input (e.g., "blue cars", "red vehicles", "trucks")
  2. Click šŸ” Apply Query or press Enter
  3. The system will filter detections based on your description
  4. View filtered results in the annotated video feed

Experiment Management

  • šŸ“ New Log File: Create a new timestamped experiment session
  • āŒ Stop: Halt processing and clear current query
  • šŸ“‘ Logs: View live tracking statistics and data

šŸ”§ Technical Details

Models & Algorithms

  • Object Detection: YOLOv8n fine-tuned on VisDrone dataset
  • Object Tracking: BotSORT with Re-Identification (ReID)
  • Vision-Language: Qwen2.5-VL 7B model via Ollama
  • Video Source: CARLA 0.9.15 simulation environment

Performance Considerations

  • GPU Acceleration: CUDA support for YOLOv8n inference
  • Memory Management: Efficient frame processing with OpenCV
  • Real-time Processing: Optimized pipeline for live video analysis

šŸ“Š Data & Logging

The system automatically logs tracking data to timestamped CSV files:

  • Track ID: Unique identifier for each detected object
  • Class Information: Object type and confidence scores
  • Bounding Boxes: Spatial coordinates for each detection
  • Natural Language Masks: Query-based filtering results

šŸ¤ Contributing

We welcome contributions! Please see our documentation for detailed development guidelines.

Development Setup

git clone https://github.com/SalmanFarizN/drone-nl-tracker.git
cd drone-nl-tracker
uv sync --dev
pre-commit install

šŸ“š Documentation

Comprehensive documentation is available at: salmanfarizn.github.io/drone-nl-tracker

šŸ”® Future Enhancements

  • Multi-drone coordination support
  • Advanced query syntax (temporal, spatial constraints)
  • Real-time streaming from live drone feeds
  • Cloud deployment with WebRTC support
  • Integration with additional VLM providers
  • Custom model fine-tuning pipeline

šŸ“ License

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

šŸ™ Acknowledgments

  • VisDrone Dataset: For providing comprehensive drone imagery data
  • Ultralytics: For the excellent YOLOv8 implementation
  • Ollama Team: For making local LLM deployment accessible
  • CARLA Simulator: For realistic drone simulation environment
  • Qwen Team: For the powerful vision-language model

⭐ Star this repository if you find it useful!

Documentation • Issues • Discussions

About

Drone-based object tracking that responds to human queries like "track all blue cars" or "find damaged vehicles" using fine-tuned YOLOv8 + Qwen 2.5 VLM.

Resources

Readme
Activity

Stars

6 stars

Watchers

0 watching

Forks

3 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800Ɨ600. No cookies required.