feat(frontend): crop and rotate receipt before upload #118
Labels
No labels
area:backend
area:frontend
area:infra
area:ocr
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
phase:M1
phase:M2
phase:M3
phase:M4
phase:M5
phase:M6
phase:M7
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
TJC/bill-splitter#118
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
OCR accuracy is the stated project risk and receipt re-upload is out of scope, so a bad photo costs the whole session. Nothing in the stack owns framing, background clutter, or fine skew: the client only downscales/re-encodes, and the sidecar's angle classifier fixes crop orientation, not skew. The sidecar assembles same-row detections into one line by horizontal band (#116), so a few degrees of skew splits an item name from its price and breaks row assembly.
Capture stays on the native OS camera (
capture="environment") - no getUserMedia viewfinder; all correction is post-capture.Scope
Use photoworks immediatelypreprocess()order: crop -> rotate -> downscale -> JPEG, so cropping recovers resolution otherwise lost to the 2000px cap;MAX_EDGE/quality unchangedDocs (same PR)
docs/09-ux-flows.md§1: crop handles + rotation control in the wireframedocs/08-frontend-design.md#uploads: new preprocess shape, the depAcceptance
Rejected (with revival conditions)