Spaces:
Runtime error
Runtime error
A newer version of the Gradio SDK is available:
5.43.1
metadata
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
- Go to the "Image Analysis" tab
- Upload an image or drag & drop
- Click "Analyze Safety Compliance"
- View detection results with bounding boxes
πΉ Live Camera Monitoring
- Go to the "Live Camera Monitoring" tab
- Click "Start Monitoring"
- Allow camera access when prompted
- Watch real-time safety detection
π View Violations
- Go to the "Violation Log" tab
- See recent safety violations
- 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.