https://github.com/darshan1654/ai-ppe-detection
An AI-powered CCTV surveillance system for real-time detection of PPE compliance, including helmet and mask violations, using YOLO and computer vision.
https://github.com/darshan1654/ai-ppe-detection
cctv-surveillance industrial-safety opencv ppe-detection python streamlit yolo
Last synced: about 2 months ago
JSON representation
An AI-powered CCTV surveillance system for real-time detection of PPE compliance, including helmet and mask violations, using YOLO and computer vision.
- Host: GitHub
- URL: https://github.com/darshan1654/ai-ppe-detection
- Owner: darshan1654
- License: mit
- Created: 2025-07-14T15:08:17.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2025-07-14T19:34:01.000Z (12 months ago)
- Last Synced: 2025-07-14T22:18:37.965Z (12 months ago)
- Topics: cctv-surveillance, industrial-safety, opencv, ppe-detection, python, streamlit, yolo
- Language: Python
- Homepage: https://ai-ppe-detection-dp.streamlit.app/
- Size: 17 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ๐ก๏ธ๐น AI-Powered Industrial Safety Surveillance System
---
**Category:** Industry Defined Problem | **Organization:** Jyoti CNC Automation, Rajkot
 
---
## ๐ Project Overview
This project integrates **AI-powered Personal Protective Equipment (PPE) detection** and **CCTV-based Anomaly Surveillance** into a single real-time system. It is designed to improve **Workplace Safety**, **Regulatory Compliance**, and **Operational Efficiency** in industrial environments.
Using advanced **Deep Learning models** and **Computer Vision**, the system ensures that workers adhere to safety protocols and that unusual or unsafe activities are promptly flagged.
---
## โ
Key Features
### ๐ท PPE Detection Module
- Real-time detection of:
- ๐ช Helmets
- ๐ท Face Masks
- ๐ท Safety Vests
- ๐งค Gloves
- Supports live feed from **Webcam/IP Camera**
- Upload and analyze **Video/Image files**
- Detection logs with timestamps and confidence scores
### ๐น CCTV Anomaly Detection Module
- Real-time detection of:
- ๐ซ Entry into restricted zones
- โ ๏ธ Safety violations (e.g., no helmet, improper behavior)
- ๐ท Suspicious or unsafe movements
- Continuous monitoring via CCTV/IP camera
- Alert generation on detection
### ๐ Dashboard (Built with Streamlit)
- Live status feed with detection results
- Real-time preview of camera feed
- Violation and compliance logs
- Summary statistics and compliance reports
---
## ๐ฆ Tech Stack
| Component | Technology |
|----------------|--------------------|
| ๐ก AI Model | YOLOv8 (Ultralytics) |
| ๐ง Backend | Python, OpenCV |
| ๐ Frontend/UI | Streamlit |
| ๐ฅ Video Input | Webcam/IP Camera |
| ๐ Data Logging | Pandas, CSV Logs |
---
## ๐ญ Industrial Benefits
- โ
Automated compliance with PPE policies
- ๐ Real-time safety monitoring
- ๐ Reduced accident risk and manual supervision
- ๐ Actionable insights from safety data
---
## ๐ธ Sample Outputs
- ๐ท Detected image with PPE boxes
- ๐งพ Logs with timestamp and violation type
- ๐ Streamlit dashboard with real-time updates
---
## ๐ง Installation & Setup
```bash
# 1. Clone the repository
git clone https://github.com/darshan1654/AI-PPE-Detection.git
# 2. Create and activate a virtual environment
python -m venv venv
source venv/bin/activate # or venv\Scripts\activate on Windows
# 3. Install required dependencies
pip install -r requirements.txt
# 4. Run the application
streamlit run app.py
```
---
## ๐ Project Structure
```
โโโ app.py # Streamlit app
โโโ best.pt # YOLOv8 model files
โโโ yolov8n.pt # YOLOv8 model files
โโโ violation_logs.csv # Detection logs CSV file
โโโ requirements.txt # Dependencies
โโโ packages.txt # packages
โโโ runtime.txt # For deployment (e.g., Heroku)
```
---
## ๐จโ๐ป Team Details
**Group ID:** G00171
| Name | Email |
| ---------------- | --------------------------------------------------------------------------- |
| Kushal A. Parekh | [22ce113@svitvasad.ac.in](mailto:22ce113@svitvasad.ac.in) |
| Darshan Pardeshi | [darshanpardeshi1654@gmail.com](mailto:darshanpardeshi1654@gmail.com) |
| Param V. Jani | [janiparam61@gmail.com](mailto:janiparam61@gmail.com) |
| Darshan Panchal | [mpdarshanpanchal001031@gmail.com](mailto:mpdarshanpanchal001031@gmail.com) |
| Jaymin Raval | [ravaljaymin2908@gmail.com](mailto:ravaljaymin2908@gmail.com) |
---
## ๐ฎ Future Scope
* ๐ Voice/Email/SMS alert system
* ๐ Integration with ERP systems
* ๐ Admin dashboard with analytics
* ๐ค Auto-upload violation clips
* ๐ก Multi-location camera support
---
## ๐ Achievements
* โ
Used in **Real Industrial setup** at Jyoti CNC
* ๐ Presented at **College-level expo**
* ๐ก Successfully tested with **Live Camera feeds**
---
## ๐ License
For **Academic and Research use** only.
---
## ๐ Acknowledgements
* [Ultralytics YOLOv8](https://github.com/ultralytics/ultralytics)
* [OpenCV](https://opencv.org)
* [Streamlit](https://streamlit.io)
* Jyoti CNC Automation Pvt. Ltd.
* SVIT Vasad
---
## ๐ฌ Contact
๐ง [janiparam61@gmail.com](mailto:janiparam61@gmail.com)
๐ง [darshanpardeshi1654@gmail.com](mailto:darshanpardeshi1654@gmail.com)
๐ง [22ce113@svitvasad.ac.in](mailto:22ce113@svitvasad.ac.in)
๐ง [mpdarshanpanchal001031@gmail.com](mailto:mpdarshanpanchal001031@gmail.com)
๐ง [ravaljaymin2908@gmail.com](mailto:ravaljaymin2908@gmail.com)

---