← Back to projects
RoadSpeed — Vehicle Tracking & Speed logo
YOLO11 · Tracking

RoadSpeed — Vehicle Tracking & Speed

Detects and tracks vehicles with YOLO11s and ByteTrack, estimating speeds using road-plane homography.

YOLO11ByteTrackOpenCV

Overview

RoadSpeed is a computer-vision pipeline that detects vehicles in road footage, follows them across frames, and estimates their speeds. It combines Ultralytics YOLO11s for vehicle detection, ByteTrack for consistent object identities, and OpenCV homography to relate image positions to a calibrated road plane. The workflow produces an annotated video alongside frame-level tracking data in CSV format. By integrating detection, multi-object tracking, and geometric speed estimation, the project demonstrates an applied video-analytics system for traffic-scene analysis. Speed estimates depend on appropriate scene calibration.

Technical details

A four-point road-plane homography projects vehicle positions from image pixels into ground coordinates, allowing displacement over a configurable time window to be expressed in km/h. Each CSV record includes timestamp, vehicle class, detection confidence, persistent track ID, bounding-box coordinates, and speed. The system withholds speed estimates when calibration or tracking history is insufficient, and includes dedicated calibration and video-pipeline tests.