Computer Vision & AI demos / 03
Vehicle Detection, Tracking & Counting
Detect vehicles in traffic footage, follow each one across frames with a tracking ID, and count what is visible, what is unique and what crosses a line.
What you can do in the demo
- Upload a video or an image, or open the bundled sample traffic clip (licence and source shown)
- Real detection of cars, motorcycles, buses and trucks with a pretrained YOLOX model, with class, confidence and a bounding box per vehicle
- Real multi-object tracking (ByteTrack): a tracking ID per vehicle that stays while it remains trackable
- Counts per frame: vehicles visible now, unique tracks, detection instances (kept separate and explained) and per-class totals
- Optional virtual counting line with its own line-crossing count
- Overlay on the original, the server-rendered processed video, or both side by side; play, seek, speed and overlay toggles
- Run on a FastAPI server engine or fully in your browser; measured processing speed; download the processed video, JSON or CSV
Technology focus
- Object detection
- Multi-object tracking
- Vehicle counting
- FastAPI
- ONNX Runtime
What it really does, and does not do
Prototype. Detection uses a small pretrained model (YOLOX-tiny, COCO classes) and tracking uses ByteTrack without appearance features or camera-motion compensation, so distant, small or occluded vehicles are missed, classes can be wrong (vans appear as car or truck), and IDs can switch or split after occlusion or with a moving camera. Unique track counts estimate, not equal, the number of physical vehicles. No accuracy benchmark is claimed. The server engine needs the Python service to be running; the browser engine works without it. No number plates are read.
Demonstrations use fictional, synthetic or user-supplied footage. Each demo states exactly what it runs (real model inference, reference annotations or simulation). They do not represent a completed client deployment.
Have a similar project? Let's talk.
Tell us about the workflow, the data and the systems involved. We'll respond with an honest view of scope and approach.
Start a Project