Pulled fresh from Snowflake via local Flask proxy each time you open this tab
0
Crossed Today
0
Jaywalkers
0
Mobility Assists
--s
Avg Cross Time
Not loadedlocalhost:5050
🚨 Jaywalking Violations—
Timestamp
Severity
Pedestrian ID
Description
Image
Location
Click Refresh to load data
🚶 Crossing Log—
Timestamp
Type
Duration (s)
Extended
Count
Confidence
Notes
Click Refresh to load data
Traffic FlowSpeed1×DensityMed-Low
Signal Status
VEH
🛑
--
Vehicle Green
VEH
Queue Length
→
0
←
0
↓
0
↑
0
0
Cars Passed
0
Total Stops
0s
Avg Wait
0
Active Cars
Simulation Log
Start simulation to begin
⏱ Timing
👁 Detection
🔊 Voice / Alerts
📐 Crossing Zones
🚦 Signal Config
🗺 Simulation View
❄ Snowflake DB
Timing Configuration
Control crossing durations and adaptive adjustment settings
Base Timings
Default Crossing Time
Standard green phase for pedestrians
20s
Mobility Aid Extension
Extra time added when wheelchair/cane detected
15s
Warning Countdown Start
Seconds before end to flash warning
7s
Minimum Wait Reduction
Max % that smart timing can cut the wait time
40%
Adaptive Timing
Smart Queue Detection
Trigger crossing earlier when queue > 3 persons
Extend for Slow Crossers
Add time if person is still in road near end
Peak Hour Boost
Auto-increase crossing time 7-9am & 5-7pm
Detection Settings
Configure AI detection thresholds and person classification
Confidence Thresholds
Person Detection Threshold
Min confidence to count as a person
55%
Mobility Aid Sensitivity
How aggressively to flag wheelchair/cane
Medium
Jaywalking Detection
Enable Jaywalker Logging
Log crossings that occur outside crossing zone
Jaywalker Alert Sound
Play alert when jaywalker detected
Red-phase Detection Buffer
Seconds after light change before flagging
3s
Voice & Alerts
Configure verbal announcements and audio alerts
Text-to-Speech
Enable Voice Announcements
Verbally instruct pedestrians using TTS
Speech Rate
0.9
Voice Volume
0.9
Announcement Messages
Walk Signal Message
Mobility Aid Message
Warning Message (last 7s)
Do Not Cross Message
Crossing Zones
Define detection zones on the street-level camera view. The horizon line divides the pavement (top) from the road (bottom). Jaywalker detection triggers when a person enters the road region during a red phase.
Zone Editor — Street-Level View0 zones defined
Crosswalk Zone Wait Zone Crossing LineClick and drag to draw • Double-click to delete
Signal Configuration
Configure traffic light phases and pedestrian signal behavior
Signal Timing
Vehicle Red Phase
How long vehicles stop (pedestrians walk)
30s
Yellow Transition Phase
4s
Vehicle Green Phase
45s
Pedestrian Signal Options
Flashing Don't Walk (last 5s)
Audible Beep on Walk Signal
Demand-Responsive Mode
Only cycle pedestrian phase when persons waiting
Simulation View
Choose how the traffic simulation is displayed — intersection view, single road, or side-on street view
Road Layout
Changes take effect immediately. Simulation will restart with the new view.
Snowflake Integration
Connect Hen-Tersection to your Snowflake data warehouse for persistent event logging
SQL Schema (copy into Snowflake)
-- 1. Tell Snowflake WHERE to work
USE WAREHOUSE CROSSWALK_WH;
USE DATABASE SMART_CITY;
USE SCHEMA TRAFFIC_LOGS;
-- 2. Create the tables
CREATE TABLE IF NOT EXISTS CROSSING_LOGS (
event_id STRING NOT NULL DEFAULT uuid_string(),
timestamp TIMESTAMP_NTZ NOT NULL DEFAULT current_timestamp(),
pedestrian_type STRING,
duration_seconds FLOAT,
was_light_extended BOOLEAN,
persons_count INT,
confidence_pct FLOAT,
notes TEXT
);
CREATE TABLE IF NOT EXISTS JAYWALKING_VIOLATIONS (
violation_id STRING NOT NULL DEFAULT uuid_string(),
timestamp TIMESTAMP_NTZ NOT NULL DEFAULT current_timestamp(),
severity STRING, -- WARNING | VIOLATION | INFO
description TEXT,
image_data TEXT, -- base-64 encoded PNG frame
image_filename STRING, -- suggested download filename
pedestrian_id STRING,
location STRING DEFAULT 'Hen-Tersection Unit'
);
Query: Recent Integration Tests
SELECT timestamp, severity, description
FROM SMART_CITY.TRAFFIC_LOGS.JAYWALKING_VIOLATIONS
WHERE description LIKE 'INTEGRATION_TEST%'
ORDER BY timestamp DESC
LIMIT 5;
Connection Settings
Snowflake Account
e.g. xy12345.us-east-1 (requires backend proxy for CORS)
Enable Real Logging
Send events to Snowflake (requires /api/snowflake proxy)
Not configured
Event Log Buffer (local preview of what gets sent)