How rishiofficial432-432/crowd-counting works
This is a crowd-safety application centered on estimating crowd size from uploaded imagery, then presenting safety status and response options. Its broader workflow adds live camera and drone monitoring, crowd-flow analysis, venue/road context, and route-based dispersal. The Streamlit entry point invokes the documented UI modules; the dashboard uses routing, alerting, and persistence capabilities. Some API, counting, segmentation, and UI implementation details are not sampled, so those links are limited to explicit documentation or shown references.
Main entry points: app.py Safety App · dashboard.py Safety Dashboard · backend.py Counting API · disperse.py Dispersal Planner
Components 17
Capture and Count
- Counting API
backend.py - Crowd Counter
crowd_safety/infra/crowd_counter.py - Density Mapping
segmentation.py - RTSP Monitor
crowd_safety/ui/rtsp_stream.py - Drone Analysis
crowd_safety/ui/drone_mode.py
Safety Analysis
- Safety Dashboard
crowd_safety/ui/dashboard.py - Crowd Flow
crowd_safety/ui/crowd_flow.py - Road Flow
crowd_safety/ui/road_crowd_flow.py - Equilibrium Analysis
crowd_safety/core/equilibrium.py
Response Planning
- Dispersal Planner
crowd_safety/ui/disperse.py - Route Engine
crowd_safety/core/routing_engine.py - Location Search
crowd_safety/core/search_algorithms.py - Alerting
crowd_safety/infra/alerting.py
Application Platform
- Safety App
app.py - Crowd Records
crowd_safety/infra/db.py
Other components
- Operator
- LWCC Service
Connections 20
- Operator → Safety App: uses
- Safety App → Counting API: submits images
app.py - Counting API → Crowd Counter: estimates counts
- Crowd Counter → LWCC Service: counts with
- Counting API → Density Mapping: produces density maps
- Safety App → Safety Dashboard: renders
app.py - Safety App → RTSP Monitor: renders
app.py - Safety App → Drone Analysis: renders
app.py - Safety App → Crowd Flow: renders
app.py - Safety App → Road Flow: renders
app.py - Safety Dashboard → Route Engine: uses routes
crowd_safety/ui/dashboard.py - Dispersal Planner → Route Engine: generates routes
crowd_safety/ui/disperse.py - Safety Dashboard → Crowd Records: reads and writes
crowd_safety/ui/dashboard.py - Safety Dashboard → Alerting: uses alerts
crowd_safety/ui/dashboard.py - Road Flow → Crowd Flow: uses flow analysis
crowd_safety/ui/road_crowd_flow.py - Operator → Dispersal Planner: plans dispersal
- Dispersal Planner → Location Search: finds locations
- Operator → Equilibrium Analysis: analyzes roads
- Operator → Drone Analysis: uploads aerial media
- Operator → RTSP Monitor: monitors streams