- Description updated (diff)
- % Done changed from 0 to 100
link github: https://github.com/MKAC-R-D-S/IC-Detection/blob/c1ac69ec67dc2639e0d110c0fc23272fa4f77fa6/docs/multi_camera_and_record_plan.md
| Task |
Nội dung |
Trạng thái |
| A1 |
Settings: thêm field camera_2 + `multi_camera_enabled`, bump config schema version (chỉ thêm field, không đổi field cũ) |
`DONE` |
| A2 |
Khởi tạo `camera_manager_2` (dùng chung `CameraProfileStore`/`V4L2CapabilityProvider` với camera_1, thêm `legacy_controls_provider` đọc `camera_2_controls`); toàn bộ API setup nhận `camera_id` (default 1, giữ nguyên URL path): start/stop/status, controls (get/apply), capabilities, profile CRUD + apply, controls dialog, sources (cảnh báo trùng device), MJPEG stream |
`DONE` |
| A3 |
Nhân đôi reference layer: `SampleStore`/`ICReferenceClassifier` cho camera 2, embedding cache namespace riêng; API capture nhận lệnh chụp đồng thời cả 2 camera, lưu/build embedding tách riêng |
`DONE` (capture/rebuild); validation run theo camera 2 hoãn lại, xem nhật ký |
| A4 |
Combine logic trong `run_cycle()`: `available_views` -> OR -> feed `ContinuousDecisionGate`; cờ `degraded_mode` |
`DONE` |
| A5 |
History schema: score/is_ic/snapshot từng camera + `triggered_by` |
`DONE` |
| A6 |
API trạng thái theo từng camera |
`DONE` |
| A7 |
Frontend: toggle Advanced (role engineer+); Camera Settings modal dùng chung cho cả 2 camera (parameterized, không duplicate DOM); Monitor 2 khung video + verdict gộp + banner degraded + badge điểm từng camera; Samples nút capture đồng thời 2 camera; ROI camera 2 kéo trực tiếp trên video (pointer drag, giống camera 1); dual thumbnail camera 1+2 trong Recent Detections và Inspection History; layout Monitor CSS grid 3 hàng — Recent Detections luôn hiển thị; tắt multi-camera dừng hẳn camera 2 và xóa stream |
`DONE` |
| A8 |
Test + tài liệu: unit test combine/degradation đã có (A4–A6); README, kế hoạch và `product_version_plan.md` đã cập nhật; hardware-in-the-loop 2 camera thật thuộc Phase 7 (cần thiết bị) |
`DONE` |