An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

          

# ๐Ÿ›ก๏ธ๐Ÿ“น AI-Powered Industrial Safety Surveillance System
---

**Category:** Industry Defined Problem | **Organization:** Jyoti CNC Automation, Rajkot

![AI CCTV Surveillance ยท Streamlit_page-0001](https://github.com/user-attachments/assets/58a5799f-b7a4-47f7-b165-b4078429a1ea) ![AI CCTV Surveillance ยท Streamlit2_page-0001](https://github.com/user-attachments/assets/452a0632-cbe2-4a3b-b6ee-3c876327804f)

---

## ๐Ÿ“„ 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)

image

---