fix(ocr): assemble same-row detections into one line #116
No reviewers
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!116
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/ocr-line-assembly"
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?
Summary
recognizer._response_from_raw), so every price reached the parser nameless and every name reached it amount-less.docs/06documents); it never did.x, text joined, boxes unioned, confidence taken from the weakest fragment.docs/06/ocrcontract to spell out the assembly.Test plan
ocr/tests/test_recognizer.py: columns on one row assemble into a single line (box union, weakest-fragment confidence); vertically separated rows stay apart.hotel-bar-balance/receipt.jpgthrough live OCR, assembled the raw fragments with the new algorithm, and fed the result to the actualReceiptParser- yields the 4 items + tax 476 + total 6076 (whole corpus green, 54/54).ruff checkclean.