PROJECT 02 / 9 — COMPUTER VISIONSmart Traffic.
Vehicle detection and reinforcement-learning experiments for adaptive traffic signals.
PythonYOLOv8OpenCVDQNExperimental prototype
Generated prototype · sample data
A generated, interactive workbench demonstrates the problem-to-result flow using sample data. It does not claim to run the original backend, trained model, payments or hardware.
CONTEXT & IMPLEMENTATIONThe problem.
The approach.
Smart Traffic investigates adaptive signal timing when queues change across approaches to an intersection. The repository combines vehicle-detection work with experiments in reinforcement-learning control.
Fixed signals cannot adapt to a changing queue.
01 / DEVELOPMENT SCOPEComputer vision and reinforcement-learning experimentation
Python, OpenCV and YOLOv8 support video-based vehicle observations; a DQN experiment explores signal control in simulation. Detection and control are separate steps: observations describe traffic, while a policy chooses a phase.
02 / KEY FEATURESWhat the project covers
- Vehicle-detection experiments on traffic footage
- Lane-density observations for a four-approach scenario
- Simulation-oriented signal-control exploration with DQN
03 / ENGINEERING DECISIONWhy this approach
Simulation allows repeatable control experiments without operating a road intersection. The browser demonstration uses an understandable density-based sample policy so its phase choice can be inspected.
EVIDENCE & NEXT STEPSExplore it.
Know the scope.
Change the sample lane observations in the workbench and inspect the chosen phase. The film shows the generated controller flow; original model experiments are available in the source.
IMPLEMENTED STATUS / Experimental prototypeLimits and unfinished work
The sample controller is not the trained DQN model. Recorded detections and simulated phases do not demonstrate safe real-road control or measured congestion reduction.
DEMONSTRATION PROVENANCEGenerated sample workbench
The film and linked workbench were created for this portfolio using sample data. They explain a workflow; they do not execute the original project's backend, trained model, payment service or hardware.
The source repository is the reference for original implementation details and setup instructions.