Commit Graph

10 Commits

Author SHA1 Message Date
12a75e65d8 docs: sync README layout with new backend/frontend modules, add roadmap
- Expand project layout tree with backend/{storage,events,alerting,main}.py
  and the modular frontend (main.js + modules/ + views/)
- Add docs/roadmap.md with the three-phase development direction and link
  it from the README
- List YOLO_DB_PATH in the settings view environment reference
2026-08-13 16:59:37 +08:00
25fa0c5825 feat: SQLite persistence, non-blocking inference, modular frontend
Backend:
- Persist alert events and robot delivery counters in SQLite (data/app.db,
  YOLO_DB_PATH override); EventStore keeps its interface, DeliveryStatsStore
  uses read/write-through UPSERT; in-memory fallback remains for standalone
  AlertManager use
- Serve /api/detect from a sync endpoint and serialize YOLO inference with a
  lock, so concurrent requests no longer block the event loop
- Unify single-image and session detection: requests without session_id
  share the fixed single-image session and run full frame confirmation
- Store UTC Z-suffixed timestamps for sortable string comparison; close
  executor and database on shutdown via FastAPI lifespan

Frontend:
- Split app.js into ES modules (main.js + modules/{dom,api,ui,charts,store}
  + views/{dashboard,inspection,events,robots,robotCards}), no build step
- Escape all server data interpolated into innerHTML; guard missing
  event.classes; replace lazy element ID list with memoized qs()
- Remove hardcoded fake stats (trend badge, device donut segment)

Docs:
- Rewrite README: accurate weight policy (only trained best.pt committed,
  no Git LFS), SQLite persistence, single-worker note, data asset inventory
- Align models/pretrained/README.md with actual files; add YOLO_DB_PATH to
  .env.example; add persistence unit tests; ruff clean
2026-08-13 16:50:23 +08:00
4dee7f664d chore: untrack pretrained/checkpoint weights and server logs, fix yolo26n run path
- Track only trained best.pt under runs/*/weights; ignore epoch/last
  checkpoints, downloaded base weights, and server logs (.gitignore)
- Move runs/detect/runs/detect/smoke_fire_yolo26n_v2-3 to
  runs/detect/smoke_fire_yolo26n_v2-3 and update docs/model_comparison.md
- Replace the Git LFS claim with an accurate plain-file statement
2026-08-13 16:37:45 +08:00
ca61c132f2 this is a push 2026-08-13 15:03:34 +08:00
0f55259fff feat: enhance dashboard and robot management 2026-08-13 13:56:05 +08:00
9a1788fe8f feat: add fire prevention management platform 2026-08-12 17:35:03 +08:00
bb395e3d9a feat: add video detection and robot alerts 2026-08-12 17:15:11 +08:00
67d5b40736 feat: add fire detection training pipeline 2026-08-10 17:04:06 +08:00
c71e0be5cc add packages 2026-08-07 16:52:10 +08:00
2b80e3d380 init yolo repo 2026-08-07 16:04:13 +08:00