# SciCam TODO ## Evaluated: BoofCV integration into SciCam - **BoofCV integrates with SciCam** — it augments the existing CameraX + storage architecture. - **Integration targets:** 1. Replace ZXing with BoofCV in-preview QR/barcode detection (no Activity hop). 2. Add scientific image processing: calibration, distortion correction, edge overlays, feature checking. 3. Generate QR/fiducial labels natively (BoofCV + `boofcv-pdf`). ## Next Steps - [x] Reframe from "replacement" to "integration". - [x] Add `org.boofcv:boofcv-core:1.3.0` to `app/build.gradle`. - [x] Wire `ImageAnalysis` use case in CameraX to feed frames to BoofCV detectors. - [x] Replace ZXing Activity launcher with BoofCV `QrCodeDetector` running on preview frames. - [x] Verify build compiles. - [x] API-first rewrite: fullscreen preview + IP text only. - [x] NanoHTTPD REST API (`/status`, `/settings`, `/capture`). - [ ] Prototype a `PreviewView` overlay for barcode region feedback. - [ ] Consider BoofCV camera calibration for lens distortion metadata in sidecars. - [x] Keep CameraX + MediaStore storage architecture unchanged.