How harshflodata/ppe-detection works
PPE Detection System provides two main workflows: construction-site monitoring that turns camera/video frames into tracked PPE-compliance results and recorded session artifacts, and model development that prepares datasets and trains detection models. The README documents the monitoring capabilities and five-phase training pipeline; sampled training code confirms phase dispatch and dataset transformations. Monitoring implementation details were not excerpted, so those relationships are based on README statements rather than inspected call sites.
Main entry points: ppe_ptz_monitor.py PTZ Monitor · run_pipeline.py Pipeline Runner · 1_download Dataset Download · helpers.py Training Utilities
Components 25
Live Monitoring
- PTZ Monitor
scripts/monitoring/ppe_ptz_monitor.py - Person Tracking
scripts/monitoring/ppe_ptz_monitor.py - PPE Compliance
scripts/monitoring/ppe_ptz_monitor.py - Helmet Detector
scripts/monitoring/helmet_detector.py - Session Videos
data/sessions - Session Logs
data/sessions - Person Snapshots
data/sessions
Model Training
- Pipeline Runner
training/run_pipeline.py - Dataset Download
training/1_download - Format Conversion
training/2_convert/convert_formats.py - Dataset Merge
training/3_merge/merge_datasets.py - Dataset Augmentation
training/4_augment/augment_dataset.py - Model Training
training/5_train/train_model.py - Training Utilities
training/utils/helpers.py
Models and Evaluation
- Fine-tuned Models
models/finetuned - Tracked Inference
scripts/inference/tracked_inference.py - Model Analysis
scripts/evaluation/analyze_model.py - Dataset Diagnosis
scripts/evaluation/diagnose_dataset.py - Inference Log Analysis
scripts/evaluation/log_analyzer.py
Dataset Inputs
- Source Datasets
datasets
Other components
- Site Operator
- Camera or Video
- Kaggle
- Roboflow
- GitHub Datasets
Connections 29
- Site Operator → PTZ Monitor: starts monitoring
README.md - Camera or Video → PTZ Monitor: provides video
README.md - PTZ Monitor → Person Tracking: tracks people
README.md - PTZ Monitor → PPE Compliance: checks compliance
README.md - PTZ Monitor → Session Videos: records streams
README.md - PTZ Monitor → Session Logs: writes session log
README.md - PTZ Monitor → Person Snapshots: captures people
README.md - Site Operator → Helmet Detector: uses detector
README.md - Pipeline Runner → Dataset Download: dispatches phase
README.md - Pipeline Runner → Format Conversion: dispatches phase
training/run_pipeline.py - Pipeline Runner → Dataset Merge: dispatches phase
training/run_pipeline.py - Pipeline Runner → Dataset Augmentation: dispatches phase
training/run_pipeline.py - Pipeline Runner → Model Training: dispatches phase
training/run_pipeline.py - Dataset Download → Kaggle: downloads from
README.md - Dataset Download → Roboflow: downloads from
README.md - Dataset Download → GitHub Datasets: clones from
README.md - Dataset Download → Source Datasets: creates inputs
README.md - Format Conversion → Source Datasets: converts annotations
training/2_convert/convert_formats.py - Dataset Merge → Source Datasets: merges datasets
training/3_merge/merge_datasets.py - Dataset Augmentation → Dataset Merge: augments merged data
README.md - Model Training → Fine-tuned Models: saves weights
README.md - Training Utilities → Format Conversion: supports conversion
training/2_convert/convert_formats.py - Training Utilities → Dataset Merge: supports merging
training/3_merge/merge_datasets.py - Training Utilities → Dataset Augmentation: supports augmentation
training/4_augment/augment_dataset.py - Training Utilities → Model Training: loads configuration
training/5_train/train_model.py - Tracked Inference → Fine-tuned Models: loads model
README.md - Model Analysis → Fine-tuned Models: exports and validates
README.md - Dataset Diagnosis → Source Datasets: analyzes splits
README.md - Inference Log Analysis → Session Logs: analyzes inference logs
README.md