How 0buloy/yolov8uniformdetection works
This repository implements a webcam-based student uniform checker. Student records can be seeded in Firebase; a separate preparation script uploads student images and generates face encodings. The live application recognizes a student, retrieves their record, checks detected uniform items against gender-specific requirements, and emails an alert for an incomplete uniform. The excerpts show these responsibilities, but omit parts of the live model setup and do not establish how the generated encoding file is loaded.
Main entry points: final.py Recognize and Screen · AddDatatoDatabase.py Seed Student Records · EncodeGenerator.py Build Face Encodings · v8.pt Detection Weights
Components 9
Student Setup
- Seed Student Records
AddDatatoDatabase.py - Build Face Encodings
EncodeGenerator.py
Live Screening
- Recognize and Screen
final.py - Detection Weights
v8.pt
External Services
- Firebase Students
- Firebase Image Storage
- Webcam
- SMTP Email
Other components
- Operator
Connections 9
- Operator → Seed Student Records: seeds records
AddDatatoDatabase.py - Seed Student Records → Firebase Students: writes records
AddDatatoDatabase.py - Operator → Build Face Encodings: prepares images
EncodeGenerator.py - Build Face Encodings → Firebase Image Storage: uploads images
EncodeGenerator.py - Operator → Recognize and Screen: starts checker
final.py - Webcam → Recognize and Screen: provides frames
final.py - Recognize and Screen → Firebase Students: reads student
final.py - Recognize and Screen → SMTP Email: sends alerts
final.py - Recognize and Screen → Detection Weights: loads weights