How andyloya/safetychecker works
PPE Safety Monitor has two entry points: the browser check-in, where a user starts a local camera and receives PPE results, and the retained desktop monitor. In the web path, Flask accepts camera frames and delegates inference and check-in state to a shared worker; the worker calls Roboflow workflows, and the browser polls status and displays detections and counts. The README documents optional RapidAPI calls, disabled for Render. Source excerpts show the principal web routes and worker behavior; other internal inference details are grouped under main.py.
Main entry points: web.py Flask routes · main.py Inference worker · app.js Camera and results UI · index.html Check-in page
Components 14
Browser check-in
- Camera and results UI
static/app.js - Check-in page
templates/index.html
Web service
- Flask routes
web.py - Basic auth
web.py - Health endpoint
web.py
Inference and check-in
- Inference worker
main.py - Person workflow
main.py - PPE workflow
main.py - PPE check-in results
main.py
Desktop monitor
- Desktop monitor
main.py
External services
- Roboflow workflows
- RapidAPI services
Other components
- Check-in user
- Device camera
Connections 19
- Check-in user → Camera and results UI: starts check-in
README.md - Camera and results UI → Device camera: captures frames
static/app.js - Camera and results UI → Check-in page: uses page
README.md - Flask routes → Check-in page: renders
web.py - Camera and results UI → Flask routes: uploads frames
static/app.js - Camera and results UI → Flask routes: polls status
static/app.js - Camera and results UI → Flask routes: resets check-in
static/app.js - Flask routes → Basic auth: authenticates requests
web.py - Check-in user → Basic auth: signs in
README.md - Flask routes → Health endpoint: serves health
web.py - Flask routes → Inference worker: submits frames
web.py - Flask routes → Inference worker: resets and reads status
web.py - Inference worker → Roboflow workflows: calls workflows
main.py - Inference worker → Person workflow: runs person scan
main.py - Inference worker → PPE workflow: runs PPE scan
main.py - Inference worker → PPE check-in results: updates check-in
main.py - Desktop monitor → Inference worker: starts monitoring
main.py - Desktop monitor → Device camera: captures frames
README.md - Desktop monitor → RapidAPI services: sends optional alerts
main.py