How omkar2xt/e-cell-iitbombay works
StorePulse AI turns retail camera frames into tracked customer-flow and zone insights, serves live and queried analytics through a FastAPI backend, and presents them in a dashboard. Managers can also edit proposed layouts and compare heuristic simulations. The principal runtime path is documented in the README; some backend and UI links are supported only by the SOURCE INDEX. Unsampled implementations are represented at their exact paths without assuming unshown call details.
Main entry points: pipeline.py Frame analytics pipeline · tracker.py ID tracking · main.py Analytics CLI · App.jsx Dashboard routing
Components 22
Vision and tracking
- Person detection
detection/detector.py - ID tracking
tracking/tracker.py
Flow analytics
- Line counter
tracking/counter.py - Traffic heatmaps
analytics/heatmap.py - Queue monitoring
analytics/queue_monitor.py - Demographic estimates
analytics/demographic.py - Zone dwell and transitions
backend/zone_analytics.py - Flow friction scoring
backend/flow_friction.py - Analytics CLI
analytics/main.py
Backend service
- Frame analytics pipeline
backend/pipeline.py - Video and runtime settings
backend/settings.py - REST API routes
backend/routers - WebSocket broadcast
backend/ws_manager.py
Layout planning
- Layout simulation
backend/simulator.py - Layout API
backend/routers/layouts.py
Dashboard
- Dashboard routing
dashboard/src/App.jsx - Live and operational views
dashboard/src/pages - Layout editor
dashboard/src/pages/WhatIfSimulator.jsx - Scenario comparison
dashboard/src/pages/ScenarioComparison.jsx - WebSocket client
dashboard/src/hooks/useWebSocket.js - API endpoint configuration
dashboard/src/config.js
Other components
- Camera or video
Connections 35
- Camera or video → Frame analytics pipeline: provides frames
README.md - Frame analytics pipeline → ID tracking: tracks people
backend/pipeline.py - ID tracking → Line counter: supplies tracks
README.md - ID tracking → Traffic heatmaps: supplies tracks
backend/pipeline.py - ID tracking → Queue monitoring: supplies tracks
backend/pipeline.py - ID tracking → Demographic estimates: supplies tracks
backend/pipeline.py - ID tracking → Zone dwell and transitions: supplies tracks
backend/pipeline.py - Line counter → Frame analytics pipeline: provides counts
README.md - Traffic heatmaps → Frame analytics pipeline: provides heatmap
backend/pipeline.py - Queue monitoring → Frame analytics pipeline: provides queue data
backend/pipeline.py - Demographic estimates → Frame analytics pipeline: provides aggregates
backend/pipeline.py - Zone dwell and transitions → Frame analytics pipeline: provides zone stats
backend/pipeline.py - Frame analytics pipeline → Flow friction scoring: scores flow friction
- Video and runtime settings → Frame analytics pipeline: configures source
backend/pipeline.py - Frame analytics pipeline → WebSocket broadcast: broadcasts updates
backend/pipeline.py - REST API routes → Zone dwell and transitions: serves zone data
backend/routers/analytics.py - REST API routes → Flow friction scoring: serves friction data
backend/routers/analytics.py - REST API routes → Frame analytics pipeline: reads pipeline data
backend/routers/analytics.py - Layout API → Layout simulation: runs simulations
backend/routers/layouts.py - Layout API → Zone dwell and transitions: reads zone data
backend/routers/layouts.py - Dashboard routing → Live and operational views: routes to views
dashboard/src/App.jsx - Dashboard routing → Layout editor: routes to editor
dashboard/src/App.jsx - Dashboard routing → Scenario comparison: routes to comparison
dashboard/src/App.jsx - Dashboard routing → WebSocket client: opens live feed
dashboard/src/App.jsx - WebSocket client → WebSocket broadcast: receives updates
README.md - Dashboard routing → API endpoint configuration: uses endpoint config
dashboard/src/App.jsx - Layout editor → Layout API: submits layouts
- Scenario comparison → Layout API: requests comparisons
- Camera or video → Person detection: detects people
README.md - Person detection → ID tracking: feeds tracking
README.md - Analytics CLI → ID tracking: tracks people
analytics/main.py - Analytics CLI → Line counter: counts crossings
analytics/main.py - Analytics CLI → Traffic heatmaps: updates heatmap
analytics/main.py - Analytics CLI → Queue monitoring: updates queue
analytics/main.py - Analytics CLI → Demographic estimates: updates estimates
analytics/main.py