How dyaus2/dashboard-warning-light-detector works
Telltale is a local two-page dashboard-warning detector: users inspect model metrics or upload a dashboard photo, which the app decodes and sends through a CPU YOLO detector before showing detections in an interactive overlay. The metrics page presents model comparisons, training stages, per-class outcomes, size results, and limitations from JSON data; the demo also supports optional sample photos. The graph separates routes, inference, shared page utilities, and the two page experiences. Relationships are based on the README and shown source; templates and data-file contents were not sampled.
Main entry points: demo.js Upload workflow · main.py FastAPI routes · metrics.js Metrics dashboard · common.js Shared UI helpers
Components 16
Web service
- FastAPI routes
app/main.py - Page templates
app/templates - Static assets
app/static
Detection runtime
- Image prediction
app/main.py - Image validation
app/main.py - YOLO detector
app/main.py - Model weights
best_R4.pt
Photo demo
- Upload workflow
app/static/js/demo.js - Detection overlay
app/static/js/demo.js - Shared UI helpers
app/static/js/common.js - Class symbols
app/static/js/icons.js - Warning classes
app/static/data/classes.json - Optional samples
app/static/samples
Model metrics
- Metrics dashboard
app/static/js/metrics.js - Metrics source data
app/static/data/metrics.json
Other components
- Visitor
Connections 19
- Visitor → FastAPI routes: opens pages
README.md - FastAPI routes → Page templates: serves pages
app/main.py - FastAPI routes → Static assets: mounts assets
app/main.py - Visitor → Upload workflow: chooses photo
README.md - Upload workflow → FastAPI routes: posts image
README.md - FastAPI routes → Image prediction: dispatches request
app/main.py - Image prediction → Image validation: decodes image
app/main.py - Image prediction → YOLO detector: runs inference
app/main.py - YOLO detector → Model weights: loads weights
app/main.py - Image prediction → Upload workflow: returns detections
README.md - Upload workflow → Detection overlay: renders results
app/static/js/demo.js - Upload workflow → Shared UI helpers: uses helpers
app/static/js/demo.js - Metrics dashboard → Shared UI helpers: uses helpers
app/static/js/metrics.js - Upload workflow → Class symbols: uses symbols
app/static/js/demo.js - Metrics dashboard → Class symbols: uses symbols
app/static/js/metrics.js - Shared UI helpers → Warning classes: loads classes
app/static/js/common.js - Upload workflow → Optional samples: loads optional samples
app/static/js/demo.js - Metrics dashboard → Metrics source data: loads metrics
app/static/js/metrics.js - Visitor → Metrics dashboard: views results
README.md