Sanjaya Smart Traffic Vision

Every second at a signal counts.

In the Mahabharata, Sanjaya watches a distant battlefield and reports what he sees. This prototype does the same for a junction: camera-based adaptive traffic control for Indian intersections.

Watch model replay
Scroll to explore

The same schedule, as traffic changes.

A fixed-time signal can keep giving a quiet approach its allotted green while another approach is jammed. Drivers wait at red for traffic that isn’t there.

Divya Drishti · Vehicle Detection

It sees the junction.

YOLO11s identifies six classes of vehicle in recorded lane footage. The boxes in this scroll scene illustrate the idea.

Pehchaan · Vehicle Classes
CarBusMotorcycleTruckAuto-rickshawPriority Vehicle
Pravah · Traffic Flow

Then it decides.

Each class carries a weight, so a bus counts for more than a scooter. The weighted total sets the green time for that approach.

10 s
Clear
Weighted vehicle count ÷ 3, rounded up and clamped to 10–60 s.
Prathmikta · Priority Vehicles

When an ambulance is stuck, minutes matter.

The prototype flags priority vehicles at confidence ≥ 0.65. Priority on a red approach is a planned extension.

PRIORITY VEHICLE

Vehicle detectionDivya Drishti · Model replay

Watch the trained YOLO11s model’s output on a recorded approach. Play or scrub the footage to see the boxes, counts and estimated green time update together.

Recorded right approach

Frame observations

Visible vehicles
–
Congestion
–
Estimated green
–

Five lenses on one junction.The Sanjaya dashboard modules

Divya Drishti

दिव्य दृष्टिVehicle Detection

YOLO11s supplies class labels, confidence scores and bounding boxes for sampled frames.

Pehchaan

पहचानVehicle Classes

Car, bus, motorcycle, truck, auto-rickshaw and priority vehicle.

Pravah

प्रवाहTraffic Flow

Per-approach load and class-weighted green time, clamped to 10–60 s.

Prathmikta

प्राथमिकताPriority Vehicles

Priority detections are flagged at confidence ≥ 0.65.

Parikshan

परीक्षणModel Experiments

Validation metrics for the detector, below.

ParikshanModel Experiments

6vehicle classes
4approaches per junction
83.41%mAP@0.50
64.34%mAP@0.50–0.95
YOLO11sdetection model

Detection metrics are from model validation. The signal controller has not yet been benchmarked against fixed-time control, so we make no claim about congestion or travel-time gains.

MargVehicle Navigation

Drive from West Gate to East Gate. Change the vehicle, junction demand or departure signal to see how the fastest route changes.

Stack and roadmap.

YOLO11sOpenCVPyTorchPygameONNX export

SUMO evaluation

Compare adaptive timing against fixed-time control in simulation.

Live cameras

Move from recorded footage to real camera feeds.

Shared controller

One controller coordinating all four approaches.