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

746 B

convoy brief_number depends_on recommended_model model_tier files
improve-scan-card-detection 2
1
composer-2.5-fast fast
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