Repository navigation
speedwatch v0.1.0
First release of speedwatch — a standalone, self-hosted vehicle speed-detection and ANPR service for a single fixed camera. Runs as a Windows service on AMD / DirectML; no Docker.
Pipeline
- 4K RTSPS ingest with GPU decode (ffmpeg
-hwaccel d3d11va) - YOLO11 detection on onnxruntime-DirectML + ByteTrack tracking
- Real-world speed via a lens-undistorted homography (mph)
- Number-plate recognition (fast-alpr)
- Motion-gated capture; clean 30 fps clips; empty events dropped
Vehicles & enrichment
- Per-plate vehicle registry (speeds, pass counts, representative image)
- Plate grouping / OCR-variant merging (edit-distance + appearance)
- Manual assignment of plateless / mis-read passes to a vehicle
- Local AI descriptions (colour/make/model) via Ollama — optional
- Vehicle Re-ID embeddings for visual grouping + an Unidentified review queue — optional
Review & evidence
- Web UI + REST API (FastAPI, :8765), confidence scoring and review labelling
- Confirmed-speeder flagging + evidence export (ZIP of clips/stills + CSV manifest)
Calibration
- On-screen lens-distortion tuner (plumb-line) or chessboard intrinsics
- Click-to-measure zone homography
See the README for setup (bootstrap.ps1), configuration, and calibration.
License: AGPL-3.0 (inherited from the Ultralytics YOLO11 dependency).