Case Study [03] // Computer Vision & Public Safety Systems

Anvesha: Autonomous Railway CCTV Computer Vision & Crowd Safety

An intelligent surveillance engine designed to run over existing railway station CCTV networks, detecting hazardous crowd surge densities, platform bottlenecks, and track trespass incidents in real time.

Context
Institute-level Smart India Hackathon (SIH)
Neel's Role
Computer Vision Pipeline & Density Estimation
Key Stack
Python, OpenCV, Computer Vision, NumPy, RTSP
Implementation Status
Functional Concept Prototype (Verified)

1. The Problem

Major railway hubs across India handle hundreds of thousands of commuters daily. During peak festival seasons, unannounced platform changes, or sudden train delays, localized crowd density on narrow footbridges and platform edges can escalate into life-threatening surges within seconds.

Station control rooms already have hundreds of CCTV cameras, but human operators cannot monitor 50+ video screens simultaneously without severe attention degradation. An automated, zero-hardware-overhaul computer vision solution is critically needed.

2. Target Operators & Real-World Stakeholders

Station Master & RPF (Railway Protection Force)

Receives instant audio-visual alerts when platform sector crowd density exceeds safety limits (e.g., >3 persons/m²).

Platform Safety Staff

Identifies localized bottlenecks before stampede risks develop, allowing proactive crowd redirection before trains arrive.

Operations Dispatchers

Historical density trends inform platform allocation schedules to avoid simultaneous high-density arrivals on adjacent tracks.

3. Architecture & Vision Pipeline

Anvesha ingests standard RTSP IP video streams directly from existing fixed station cameras. The image pipeline applies perspective projection correction to compensate for camera mounting tilt, separates background infrastructure, and generates a real-time crowd heat density map.

ANVESHA CCTV VISION PIPELINE RTSP STREAM → PERSPECTIVE WARP → HEATMAP & SURGE TRIGGER
STATION RTSP CAM 1080p @ 15-25fps Existing Station Infra PERSPECTIVE MAPPING Homography Transform Virtual Metric Grid (m²) DENSITY & DETECTION Head Detection & Blob Analysis Per-Sector Count Vectors STATION DESK ALERT Red Surge Threshold Alarm RPF Dispatch Coordinate Architecture Focus: Zero specialized hardware needed; compatible with legacy coax/IP analog converters.

4. Neel's Role & Technical Choices

5. Challenges & Trade-offs

Severe Occlusion in Crowds

In tightly packed platforms, human bodies overlap heavily, making standard bounding boxes inaccurate. Prioritized head detection and blob density centroids rather than full-body silhouette tracking.

Varying Illumination & Camera Angles

Station cameras face direct sunlight during morning and sodium-vapor yellow lighting at night. Implemented adaptive histogram equalization (CLAHE) to normalize contrast across light cycles.

6. Current Status & Substantiated Evidence

Honest Status Disclosure

Anvesha was developed as a solution concept for the internal institute-level Smart India Hackathon problem statement at CHARUSAT. The core detection and density alert scripts exist in the verified GitHub repository. It is a proof-of-concept prototype rather than a production-deployed railway software.