Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PPE-detection-kit: YOLOv11 PPE Detection Dashboard

Python YOLOv11 PyTorch OpenCV

PPE-detection-kit is a realtime computer vision system designed to monitor construction environments and ensure compliance with safety regulations. Powered by YOLOv11 and wrapped in a responsive Streamlit dashboard, it actively detects whether personnel are wearing mandatory Personal Protective Equipment (PPE) such as hardhats and high visibility vests.

✨ Features

Interactive Admin Dashboard: A full-featured Streamlit web app that gives you two ways to view things — a detailed Admin Dashboard and a clean, Full Screen Site View. Live Violation Logging: Whenever a safety violation is spotted (like someone missing a hardhat), the system automatically grabs a snapshot and drops it into a verification sidebar so an admin can review it. Smart Filtering: Instead of using one blanket confidence level, the system applies separate thresholds for regular detections and actual violations — this helps cut down on false alarms out on site. Dynamic Sensitivity: Need to fine-tune things? Just drag the slider on the dashboard to adjust the model's confidence threshold in real time — no restart required. High-Speed Object Detection: Powered by YOLOv11, the system delivers fast, accurate detections straight from live camera feeds.

🛠️ Prerequisites

Ensure you have Python 3.8+ installed. If you intend to run inference on a GPU for maximum frames per second (FPS), ensure you have the appropriate NVIDIA drivers and CUDA toolkit installed for PyTorch.

🚀 Installation & Setup

  1. Clone the repository--->

    cmd/bash:

    git clone https://github.com/frakxzo/PPE-detection-kit.git

    cd PPE detection kit

  2. Install the required dependencies--->

    cmd/bash:

    pip install r requirements.txt

  3. Model Weights--->

    Ensure your custom trained YOLOv11 weights file (best.pt) is placed in the root directory before running the application.

🎮 Usage Guide

To launch the interactive dashboard, use the Streamlit CLI command in your terminal:

streamlit run dashboard.py

Once the local server starts, your web browser will automatically open the dashboard. Use the Navigator in the sidebar to toggle between the Admin View and the Live Site Monitor, and click START SYSTEM to initialize the camera feed.

🗺️ Roadmap & Future Development

Multi Camera Integration: Expanding the video capture logic to process parallel RTSP streams from multiple IP cameras simultaneously.

UI Enhancements: Refining the Streamlit layout for better mobile responsiveness and optimizing the verification queue rendering.

Database Integration: Moving the session state alert logging to a persistent SQLite or PostgreSQL database for long term compliance tracking.

About

This a ML based computer vision project.An automated construction site safety monitor using YOLOv11 to detect Personal Protective Equipment (PPE) in real-time.

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages