use case Β· practical
A single-line reader becomes a document scanner when you feed it one line at a time. Box a line, read it, and it drops into a list you can edit and copy β the workflow behind expense capture and paperwork digitisation, running entirely on your device with nothing uploaded.
Drag a box around one line, then click Read line. Repeat down the receipt.
Why line-by-line? TrOCR reads one line per call, which keeps each read fast and lets you skip noise. A full layout-aware document model (see Donut) takes the whole page at once β different trade-off, same on-device privacy.
The accuracy play: serials, SKUs, and licence keys are small, dense, and unforgiving β one wrong
character is a wrong part. Box the code on the label, read it with the base model, and the page
checks it against the expected format SN 4B7X-9021-KD (letters/digits, grouped).
Drag a tight box around the code.
β Basics Β· Back to TrOCR Base Β· Next: Wild β