Spaces:
Runtime error
Runtime error
title: SafetyMaster Pro | |
emoji: π‘οΈ | |
colorFrom: blue | |
colorTo: red | |
sdk: gradio | |
sdk_version: 4.0.0 | |
app_file: app.py | |
pinned: false | |
license: mit | |
# π‘οΈ SafetyMaster Pro - AI Safety Monitoring | |
**Real-time PPE detection and safety compliance monitoring using YOLOv8** | |
## π― Features | |
- **π Hard Hat Detection** - Identifies workers wearing/missing hard hats | |
- **π¦Ί Safety Vest Detection** - Detects high-visibility safety vests | |
- **π· Face Mask Detection** - Monitors mask compliance | |
- **π Safety Glasses Detection** - Identifies protective eyewear | |
- **πΉ Real-time Monitoring** - Live camera feed analysis | |
- **π Violation Logging** - Track safety compliance history | |
- **π¨ Instant Alerts** - Immediate violation notifications | |
## π How to Use | |
### π· Image Analysis | |
1. Go to the "Image Analysis" tab | |
2. Upload an image or drag & drop | |
3. Click "Analyze Safety Compliance" | |
4. View detection results with bounding boxes | |
### πΉ Live Camera Monitoring | |
1. Go to the "Live Camera Monitoring" tab | |
2. Click "Start Monitoring" | |
3. Allow camera access when prompted | |
4. Watch real-time safety detection | |
### π View Violations | |
1. Go to the "Violation Log" tab | |
2. See recent safety violations | |
3. Monitor compliance trends | |
## π€ AI Technology | |
- **Model**: YOLOv8 specialized for PPE detection | |
- **Detection Classes**: Person, Hard Hat, Safety Vest, Face Mask, Safety Glasses | |
- **Violation Detection**: Missing PPE identification | |
- **Performance**: Real-time inference on CPU | |
## π‘οΈ Safety Equipment Detected | |
- β **Hard Hats / Helmets** | |
- β **Safety Vests / High-Vis Clothing** | |
- β **Face Masks / Respirators** | |
- β **Safety Glasses / Goggles** | |
- β **Hearing Protection** | |
- β **Safety Gloves** | |
## β οΈ Violations Detected | |
- π΄ **Missing Hard Hat** | |
- π΄ **Missing Safety Vest** | |
- π΄ **Missing Face Mask** | |
- π΄ **Person without Required PPE** | |
## π¨ Interface | |
The app features a modern, tabbed interface: | |
- **Image Analysis**: Upload and analyze photos | |
- **Live Monitoring**: Real-time camera detection | |
- **Violation Log**: Safety compliance history | |
- **Model Info**: AI model details and capabilities | |
## π§ Technical Details | |
- **Framework**: Gradio + YOLOv8 | |
- **Languages**: Python, OpenCV | |
- **Deployment**: Hugging Face Spaces | |
- **License**: MIT | |
## π Support | |
Built with β€οΈ for workplace safety. This tool helps ensure workers are properly equipped with safety gear to prevent accidents and maintain compliance. | |
--- | |
**β οΈ Note**: For camera monitoring, please allow camera access when prompted by your browser. |