How arpitdevgoswami/ppe-safety-monitoring-system works
This repository presents a PPE safety-monitoring and industrial digital-twin product. Its documented operational flow takes video through frame processing and vision detection to safety status, then presents monitoring and spatial views; the React dashboard also exposes workforce, access, asset, incident, analytics, and settings modules. The frontend excerpts show navigation and page composition, while backend source is indexed as read but not excerpted. The README documents the vision pipeline, but does not establish a runtime connection from Python processing to the dashboard; that relationship is therefore dashed and unverified.
Main entry points: App.tsx Dashboard App · ppe_worker_status.py Worker Status · index.ts Safety Domain Types · main.py Frame Processing
Components 23
Vision Pipeline
- Video Sources
- Frame Processing
main.py - PPE Detection
main.py - Fire Smoke Detection
main.py - Spatial Matching
ppe_matching.py - Worker Tracking
ppe_tracking.py - Worker Status
ppe_worker_status.py
Dashboard Experience
- Dashboard App
src/App.tsx - Navigation
src/components/AppSidebar.tsx - Safety Overview
src/components/MetricsStrip.tsx - 3D Factory Twin
src/components/FactoryScene.tsx - Context Inspector
src/components/ContextualInspector.tsx - Incident Queue
src/components/IncidentQueue.tsx
Safety Operations
- Live Monitoring
src/pages/LiveMonitoringPage.tsx - Workforce Directory
src/pages/WorkforceDirectoryPage.tsx - Gate Attendance
src/pages/GateAccessAttendancePage.tsx - PPE Asset Vault
src/pages/PpeAssetVaultPage.tsx - Spatial Zones
src/pages/SpatialZonesPage.tsx - Incident Investigation
src/pages/IncidentInvestigationPage.tsx - Predictive Analytics
src/pages/PredictiveAnalyticsPage.tsx - Vision Settings
src/pages/NeuralSettingsPage.tsx
Shared UI Data
- Demo Safety Data
src/data/demoData.ts - Safety Domain Types
src/types/index.ts
Connections 28
- Video Sources → Frame Processing: feeds frames
README.md - Frame Processing → PPE Detection: processes PPE
README.md - Frame Processing → Fire Smoke Detection: processes hazards
README.md - PPE Detection → Worker Status: detection results
README.md - Fire Smoke Detection → Worker Status: detection results
README.md - Spatial Matching → Worker Status: supports assessment
- Worker Tracking → Worker Status: supports assessment
- Worker Status → Dashboard App: status to dashboard
- Dashboard App → Navigation: renders navigation
src/App.tsx - Dashboard App → Safety Overview: renders overview
src/App.tsx - Dashboard App → 3D Factory Twin: renders twin
src/App.tsx - Dashboard App → Context Inspector: renders inspector
src/App.tsx - Dashboard App → Incident Queue: renders queue
src/App.tsx - Navigation → Dashboard App: selects page
src/App.tsx - Dashboard App → Live Monitoring: routes to
src/App.tsx - Dashboard App → Workforce Directory: routes to
src/App.tsx - Dashboard App → Gate Attendance: routes to
src/App.tsx - Dashboard App → PPE Asset Vault: routes to
src/App.tsx - Dashboard App → Spatial Zones: routes to
src/App.tsx - Dashboard App → Incident Investigation: routes to
src/App.tsx - Dashboard App → Predictive Analytics: routes to
src/App.tsx - Dashboard App → Vision Settings: routes to
src/App.tsx - Dashboard App → Demo Safety Data: loads demo data
src/App.tsx - Demo Safety Data → Safety Domain Types: uses domain types
src/data/demoData.ts - Incident Queue → Safety Domain Types: uses incident type
src/components/IncidentQueue.tsx - 3D Factory Twin → Safety Domain Types: uses zone types
src/components/FactoryScene.tsx - Context Inspector → Safety Domain Types: uses worker types
src/components/ContextualInspector.tsx - Live Monitoring → Incident Investigation: incident selection