Upload a traffic video and the model (YOLOv5 via ONNX Runtime Web, with OpenCV.js) detects, tracks and counts vehicles crossing the line. Nothing is uploaded to a server: your video is processed locally.
EagleEye (the repo is called vehicle-counter) takes a traffic video, finds the vehicles in every frame, follows each one from frame to frame, sorts it into light, medium or heavy, and counts it once as it crosses a line. There is no server and no upload: the video plays locally, each frame is drawn to a canvas, and the neural network runs in your browser through WebAssembly.
Weight class is a heuristic, not a measurement: it combines what the model says the object is with how much of the frame its box covers.
| Detected as | Rule | Bucket |
|---|---|---|
| Bus | Always | Heavy |
| Truck | Box covers more than 4% of the frame, otherwise… | Heavy / Medium |
| Car | Box covers more than 2.5% of the frame, otherwise… | Medium / Light |
| Motorcycle, bicycle | Always | Light |
Built with YOLOv5 by Ultralytics, ONNX Runtime Web and OpenCV.js. The model file is served from this site, so the page needs to be opened over HTTP, not as a local file.