← Back to projects

Particle Tracker — Object Tracking Sandbox

A physics sandbox demonstrating how object detection and tracking algorithms work — with bounding boxes, persistent IDs, trajectory trails, and occlusion handling.

JavaScript Canvas 2D Physics Sim Tracking

How It Works

Particles bounce around with realistic physics. The "detector" draws bounding boxes each frame (with simulated misses), while the "tracker" maintains persistent IDs and trajectory trails — even through occlusion.

ControlAction
Click canvasSpawn a new particle
Drag the wallMove the occlusion wall to test track persistence
Gravity sliderAdjust gravity (0-2)
Friction sliderAdjust friction
TogglesShow/hide detection boxes and trajectory trails
Pause / ClearPause simulation or remove all particles

The Concept

Real-time object tracking combines per-frame detection (e.g., YOLO) with cross-frame association (e.g., DeepSORT). The key challenge is maintaining identity through occlusion and detection failures — exactly what the draggable wall demonstrates here.