How mnalsaleh/ppe-safety-monitor works
PPE Safety Monitor is a local, anonymous camera/video monitor for helmets, reflective vests, goggles, and a pilot glove check. The main workflow selects an ROI, detects equipment, associates detections with people, and previews per-frame status; optional visibility confirmation enables timed alerts and SQLite history. The glove pilot has a separate hand-detection and glove-classification path, alongside data capture and training utilities. Relationships are limited to README statements and indexed references or excerpts shown here; unsampled implementation details are not inferred.
Main entry points: stage4_webcam_wear_status.py Live Monitor · kamera_eldiven_el_bolgesi.py Hand-Localized Preview · stage4_glove_gate.py Hand-Glove Association · kamera_eldiven_nokta.py Glove Model Comparison
Components 17
PPE Monitoring
- Live Monitor
scripts/stage4_webcam_wear_status.py - PPE Detection
scripts/stage4_webcam_wear_status.py
Decision And Alerts
- Person Candidate Gate
scripts/stage4_candidate_gate.py - Frame Decisions
scripts/stage4_decision.py - Timed Alerts
scripts/stage4_alerts.py - Event History
scripts/stage4_alerts.py
Glove Pilot
- Glove Preview
scripts/stage4_webcam_wear_status.py - Hand-Localized Preview
scripts/kamera_eldiven_el_bolgesi.py - Glove Model Comparison
scripts/kamera_eldiven_nokta.py - MediaPipe Worker
scripts/el_nokta_isci.py - Hand Landmark Detector
outputs/eldiven_v3_veri/pilot_el_noktalari_20261130_01/el_noktalari.py - Hand-Glove Association
scripts/stage4_glove_gate.py - Controlled Glove Test
scripts/kamera_eldiven_v2.py
Glove Data
- Glove Data Capture
scripts/eldiven_v3_veri_topla.py - Classifier Training
outputs/eldiven_v3_veri/pilot_el_siniflandirma_20261130_01/egit.py
Other components
- Operator
- Camera Or Video
Connections 17
- Operator → Live Monitor: starts
README.md - Camera Or Video → Live Monitor: provides frames
README.md - Live Monitor → PPE Detection: runs detection
scripts/stage4_webcam_wear_status.py - Live Monitor → Person Candidate Gate: filters candidates
scripts/stage4_webcam_wear_status.py - Live Monitor → Frame Decisions: evaluates detections
scripts/stage4_webcam_wear_status.py - Live Monitor → Timed Alerts: updates alerts
scripts/stage4_webcam_wear_status.py - Timed Alerts → Event History: stores events
scripts/stage4_alerts.py - Operator → Live Monitor: confirms visibility
README.md - Live Monitor → Hand-Glove Association: evaluates hands
scripts/stage4_webcam_wear_status.py - Live Monitor → Hand-Localized Preview: opens pilot
- Hand-Localized Preview → Hand-Glove Association: associates detections
scripts/kamera_eldiven_el_bolgesi.py - Glove Model Comparison → Hand-Glove Association: evaluates hands
scripts/kamera_eldiven_nokta.py - Glove Model Comparison → MediaPipe Worker: requests hand inference
scripts/el_nokta_isci.py - MediaPipe Worker → Hand Landmark Detector: runs landmarks
scripts/el_nokta_isci.py - Hand-Localized Preview → Controlled Glove Test: uses frame helpers
scripts/kamera_eldiven_el_bolgesi.py - Glove Data Capture → Controlled Glove Test: uses camera helpers
scripts/eldiven_v3_veri_topla.py - Classifier Training → Glove Data Capture: trains from captured data