deckhearth/.convoys/improve-scan-card-detection/brief-2-wire-capture.md
varutasu c52891a6b2
feat(scanner): perspective warp card detection (Phase 2) (#158)
Add quad corner refinement and homography warp for rectified identify
crops; wire warped capture through identifyTrackedCardCapture with
validation and axis-aligned fallback; add detection frame a11y labels.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-14 20:31:45 -05:00

25 lines
746 B
Markdown

---
convoy: improve-scan-card-detection
brief_number: 2
depends_on: [1]
recommended_model: composer-2.5-fast
model_tier: fast
files:
- lib/scanner-card-identify.js
- lib/use-camera-scanner.js
- components/scanner/ScannerCamera.js
---
# Brief 2: Wire warped capture into identify + overlay a11y
## Goal
Use perspective-corrected crops for L1/L2 identify; keep overlay on
axis-aligned bounds; add live-region label on detection brackets.
## Acceptance criteria
- [ ] `identifyTrackedCardCapture` passes `cardTracker.corners` to capture
- [ ] `captureCardRegionFromVideo` warps when corners present, else fallback
- [ ] `use-camera-scanner.js` comment no longer claims OpenCV
- [ ] `DetectionFrame` exposes `role="status"` + `aria-label`