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>
786 B
786 B
| convoy | brief_number | depends_on | recommended_model | model_tier | files | ||||
|---|---|---|---|---|---|---|---|---|---|
| improve-scan-card-detection | 1 | composer-2.5-fast | fast |
|
Brief 1: Quad corner detection + perspective warp
Goal
Replace axis-only Sobel box hunt with four-corner refinement and a homography warp helper that produces rectified card JPEGs.
Acceptance criteria
lib/scanner-card-warp.jsexportsorderQuadCorners,computeHomography,warpCardCaptureFromVideodetectCardShapesFromFramereturnscornersin video space- Tracker merge preserves
cornerson tracked cards - Unit tests for warp math + corner refinement