Skip to content

Instantly share code, notes, and snippets.

@ukd1
Last active December 20, 2025 01:06
Show Gist options
  • Select an option

  • Save ukd1/204d581d70f0a044d689011b9601ab75 to your computer and use it in GitHub Desktop.

Select an option

Save ukd1/204d581d70f0a044d689011b9601ab75 to your computer and use it in GitHub Desktop.

Real-Time Drone Tracking (Learning-Free)

This project tracks a drone in real time using any learning-free approach. The tracker receives a bounding box in the first frame and must predict the box for each next frame using only visual information from previous frames.

General-purpose pre-trained models are allowed, but no drone-specific training or smoothing methods should be used. Any programming language.

Input/Output:

The script takes as input:

  • a video file
  • a bounding box for the first frame

and outputs a new video with predicted bounding boxes for all frames.

Performance goal: about 100ms per frame on a laptop, >50 FPS on Jetson Thor.

Example usage:

uv run track.py –video test_track_dron1.mp4 –bbox 120,80,60,40

Test file

The sample video: https://drive.google.com/file/d/1HJCNYOLodnfECc_sIJw9kIgjwGkzGrRi/view?usp=sharing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment