Autonomous Vessel Tracking & Visual Re-Identification System
Production maritime perception pipeline integrating YOLO vessel detection, OC-SORT tracking, and LoFTR + DINOv2 feature descriptors deployed on live RTSP streams via FastAPI.
01. Problem & Operational Context
Real-time vessel tracking on live maritime RTSP video feeds suffers from false-positive track fragmentation, wake interference, wave backscatter, and severe visual appearance changes as vessels change bearing.
02. Technical Approach
Engineered an end-to-end maritime vision pipeline combining YOLO detection, OC-SORT with motion-gating and per-track centroid history, coupled with a deep feature-matching identification stage using DINOv2 patch descriptors and LoFTR cross-attention.
03. System Architecture & Pipeline
End-to-End System Pipeline & Computation Flow
Continuous RTSP ingestion pipeline decoupled into fast temporal tracklet association and quality-adaptive visual descriptor matching.
Live RTSP Frame Ingestion
Multi-threaded RTSP video capture with ring-buffer frame queue to prevent packet dropping during inference spikes.
YOLO Vessel Detection
Real-time bounding box extraction with confidence thresholding tuned for maritime watercraft classes.
OC-SORT Motion-Gated Tracking
Observation-Centric SORT tracking with momentum direction gating and centroid history to suppress false tracklets.
LoFTR + DINOv2 Feature Matching
Dense descriptor extraction and RANSAC geometric verification for vessel re-identification across bearing shifts.
04. Key Implementation Details
- Engineered a vessel detection and tracking pipeline running continuously on live RTSP feeds, implementing motion-gating to suppress wave-induced false alarms.
- Extracted visual descriptors using DINOv2 vision transformer features combined with LoFTR keypoint matching for non-rigid vessel identification.
- Incorporated quality-adaptive thresholds and RANSAC inlier filtering to eliminate incorrect feature pairings in low-contrast conditions.
- Deployed inference backend as a modular FastAPI service with operator review endpoints.
05. Architectural Tradeoffs & Decisions
OC-SORT prevents error accumulation during nonlinear vessel turns and temporary target occlusions by leveraging observation trajectories.
Standard DeepSORT which frequently lost tracking lock during sharp course changes.
06. Engineering Challenges & Failures
07. Evaluation & Observations
Evaluated tracking persistence, ID switch reduction, and false-positive suppression on continuous live RTSP maritime video feeds.
LoFTR cross-attention matching established robust vessel identity correspondence even in low-contrast fog and glare conditions.
End-to-end stream ingestion, OC-SORT motion gating, and FastAPI service architecture.
Quality-adaptive thresholding and RANSAC geometric inlier filtering pipeline.