SiteSpectra is an end-to-end computer vision pipeline designed for modern construction monitoring. It combines deep learning-based object detection (YOLOv11) with classical computer vision frame-differencing to automate site safety compliance and quantify structural progress across time.
This project was built to simulate a lightweight construction monitoring pipeline, mirroring the reality-capture workflows used by industry leaders like Track3D.
- Site Entity & Safety Detection: Detects workers, machinery, and PPE compliance in real-time. Identifies specific hazard classes like
NO-HardhatorNO-Safety Vest. - Structural Progress Tracking: Quantifies visual site changes by computing the structural difference between timestamped before/after images.
- Interactive Dashboard: A Streamlit-based UI for real-time inference, batch image processing, and result exportation.
The project is structured as a multi-stage vision pipeline rather than a single notebook demo.
graph TD
A[Raw Site Images] --> B{Streamlit Dashboard}
subgraph Object Detection Module
B -->|Batch Inference| C[YOLOv11 PyTorch Model]
C --> D[PPE & Machinery Counts]
end
subgraph Progress Tracking Module
B -->|Timestamped Image Pairs| E[OpenCV Preprocessing]
E -->|Gaussian Blur & Grayscale| F[Absolute Diff & Thresholding]
F --> G[Morphological Masking]
G --> H[Change Contour Localization]
end
D --> I[Result Visualization & ZIP Export]
H --> I
Figure 1: YOLOv11 successfully identifying workers and PPE compliance.
Figure 2: Additional detection highlighting machinery and site entities.
pip install -r requirements.txtstreamlit run app.pyThe model was fine-tuned on the Construction Site Safety Dataset (2,800+ images) for 20 epochs. It achieved an overall mAP50 of 80.6% on the validation set, with high accuracy for critical classes like Hardhats (88.9%) and Machinery (92.0%).
To run training on a custom dataset:
python train.py(A detailed Google Colab training guide is available in the project documentation).
- Integration with 3D BIM models for spatial progress mapping.
- Extend pipeline with an optional COLMAP module for multi-view 3D scene reconstruction.
- Implement instance segmentation for specific structural elements (e.g., scaffolding, rebar).