Hackathon Project | WIET Hackverse 2.0 | Team: Stranger Strings
Industrial worksites frequently suffer accidents due to failure in PPE compliance, unauthorized zone access, and lack of real-time worker monitoring. SafeSight addresses this using computer vision and AI to:
- Detect PPE compliance (helmet, boots, vest, goggles)
- Manage worker attendance via QR code scanning
- Monitor restricted zones and alert supervisors in real time
| Member | Role | Responsibilities |
|---|---|---|
| Tanaya | Product & Pitch Lead | Prepare presentation, train models, collect PPE datasets |
| Varun | Backend Developer | Build API, connect MongoDB, manage authentication |
| Atharva | AI Engineer | Integrate PPE detection and run real-time monitoring |
| Archit | Frontend Developer | Build dashboard UI and camera grid interface |
- โ๏ธ React โ UI framework
- ๐จ Tailwind CSS โ Utility-first styling
- ๐ React Router โ Client-side routing
- ๐ Recharts โ Dashboard charts and visualization
- ๐งญ Lucide React โ Icon set
- ๐ React Hot Toast โ Toast notifications
- ๐ react-qr-reader / html5-qrcode โ QR scanner support
- ๐ฎ three.js โ 3D graphics and scene rendering
- ๐ข Node.js โ Runtime
- ๐ Express.js โ REST API framework
- ๐ MongoDB โ NoSQL database (via Mongoose ODM)
- ๐ Python โ Core language
- ๐๏ธ OpenCV โ Computer vision
- ๐ฏ YOLOv8 โ Object detection model
- ๐ JWT โ JSON Web Tokens for supervisor login
Real-time detection of personal protective equipment using YOLOv8:
| PPE Item | Detection |
|---|---|
| Helmet | โ |
| Safety Boots | โ |
| Safety Vest | โ |
| Safety Goggles | โ |
- Input: Webcam / IP camera stream
- Output: Bounding boxes + violation alerts sent to dashboard
For MVP, 4 laptops act as 4 camera feeds.
โโโโโโโโโโโโฌโโโโโโโโโโโ
โ CAM 1 โ CAM 2 โ
โโโโโโโโโโโโผโโโโโโโโโโโค
โ CAM 3 โ CAM 4 โ
โโโโโโโโโโโโดโโโโโโโโโโโ
Each feed runs PPE detection independently and streams results to the central dashboard.
Each worker is assigned:
- Unique ID
- Name and Role
- QR Code for scanning
Entry Flow:
- Worker scans QR code
- Camera captures photo
- System saves entry timestamp
Exit Flow:
- Worker scans QR code
- System saves exit timestamp
Restricted zones require supervisor authorization:
Worker scans QR
โ
Camera checks PPE compliance
โ
If PPE valid โ Alert sent to supervisor
"Akhil has entered Welding Zone. Approve access?"
โ
Supervisor: [Approve] or [Reject]
Workers on Site
| Worker | Role | Entry Time | Photo |
|---|
Restricted Zone Workers
| Worker | Zone | Entry Time | Status |
|---|
Supervisors can assign worker roles and zone permissions from the dashboard.
- Node.js >= 18
- MongoDB (local or Atlas)
- Python >= 3.8
- pip
git clone <your-repo-url>
cd SafeSightcp .env.example .env
# Edit .env with your valuescd server
npm install
npm run devcd client
npm install
npm run devcd ai-engine
pip install -r requirements.txt
python detect_ppe_webcam.pyMONGO_URI=mongodb://localhost:27017/safesight
JWT_SECRET=your_super_secret_jwt_key
PORT=5000SafeSight/
โโโ client/ # React frontend
โ โโโ src/
โ โโโ components/ # Reusable UI components
โ โโโ pages/ # Route pages
โ โโโ services/ # API service layer
โโโ server/ # Express backend
โ โโโ config/ # DB connection
โ โโโ models/ # MongoDB schemas
โ โโโ routes/ # API routes
โ โโโ controllers/ # Business logic
โโโ ai-engine/ # Python PPE detection
โโโ docs/ # Architecture & planning docs
| Hour | Tasks |
|---|---|
| Hour 1 | Create repo, project structure, push to GitHub, setup MongoDB |
| Hour 2 | Run PPE detection on webcam |
| Hour 3 | Create dashboard with 4 camera feeds |
| Hour 4 | Implement worker entry system with QR scanning |
- Build dashboard layout
- Implement 4-camera grid
- Build worker attendance tables
- Implement QR scanner UI
- Build restricted zone table
- Create REST APIs (workers, attendance, zones)
- Connect MongoDB with Mongoose
- Implement JWT authentication
- Create supervisor notification endpoint
- Build WebSocket for real-time alerts
- Run YOLOv8 PPE detection on webcam
- Integrate webcam stream processing
- Build Flask/FastAPI endpoint for violation alerts
- Test detection accuracy
- Prepare demo video
- Train improved PPE detection model
- Prepare architecture diagrams
- Create presentation slides
| Service | URL |
|---|---|
| Frontend | (To be added) |
| Backend | (To be added) |
| Dataset | (To be added) |
MIT License โ Built for WIET Hackverse 2.0
Built with โค๏ธ by Team Stranger Strings