r/computervision • u/Acrobatic_Spare8400 • Sep 26 '26
Discussion Real-time drone tracking pipeline: YOLOv8 + ByteTrack + 6-state Kalman filter with coasting mode
Sharing a project that combines several CV techniques into a real-time drone tracking system:
- YOLOv8 detection with hot-swappable model weights (swap models without stopping the video feed)
- ByteTrack for maintaining track identity across frames
- 6-state Kalman filter (x, y, vx, vy, ax, ay) with dynamic dt compensation for FPS jitter
- "Coasting" mode — when the target is visually occluded, the system maintains tracking through pure prediction using accumulated acceleration for 10+ frames
The whole thing feeds into a ballistic computer and servo controller, but the CV pipeline is the core.
GitHub: https://github.com/Fayzullo637/drone_turret_v2
MIT Licensed.
Happy to discuss the tracking approach — particularly interested in how others handle occlusion recovery.
