- Python 3.8+
- FastAPI 0.104+
- YOLOv8 (Ultralytics)
- Html, Css, Js
PPE Guard is an intelligent Personal Protective Equipment detection system powered by the YOLOv8 deep learning model. It automatically identifies whether individuals are wearing required safety gear including helmets, vests, gloves, boots, and face masks.
Suitable for:
- Construction sites
- Industrial zones
- Hazardous work environments
- Reduce human error in safety monitoring
- Ensure workplace safety compliance
- Provide instant alerts for missing equipment
- Generate safety compliance reports
- Real-time Webcam Detection
- Image Upload Analysis
- High Accuracy YOLOv8 Detection
- Near Real-Time GPU/CPU Processing
- Confidence Scoring Display
- Modern Glassmorphism UI
- Fully Responsive Design
- Download Annotated Results
- Privacy First (No external data sharing)
- Custom-trained PPE model
- FastAPI Backend
- Adjustable thresholds (Confidence / IoU)
- REST API for easy integration
Screenshots:
- Python 3.8+
- pip
- Webcam (optional)
-
Clone repository git clone https://github.com/your-username/ppe-guard.git cd ppe-guard
-
Create and activate virtual environment python -m venv myenv
Windows myenv\Scripts\activate
macOS/Linux source myenv/bin/activate
-
Install dependencies pip install -r requirements.txt
-
Add Trained Model Download model: https://drive.google.com/uc?export=download&id=14jNk69dfp8qO7xJXiaFggttIzH_b6z1Q
Place as: PPE-Guard/app/model.pt
- Run Application uvicorn app.main:app --reload
Visit: http://127.0.0.1:8000
🧪 Usage
- Click Upload Image
- Choose an image
- View detection results & confidence
- Download annotated image
- Click Live Webcam
- Allow camera permissions
- Start detection
- Stop when finished
# 📂 Project Structure
PPE-GUARD/
├── app/
│ ├── main.py
│ ├── utils.py
│ ├── model.pt
│ ├── static/
│ │ └── style.css
│ └── templates/
│ ├── index.html
│ └── webcam.html
├── requirements.txt
├── README.md
└── .gitignore
🛡 Supported PPE Classes
- Safety Helmets
- Safety Vests / High-Visibility Jackets
- Safety Boots
- Safety Gloves
- Face Masks / Respirators
- FastAPI
- YOLOv8 (Ultralytics)
- OpenCV
- Uvicorn
- NumPy
- Pillow (See requirements.txt)
- Mobile App Version
- Docker Container Support
- Cloud Deployment Guide
- Multi-Camera Support
- Video File Processing
- PDF Safety Reports
- Integration With Security Systems



