Generative media
How do you feed a scanned document to a vision model without losing the text?
Ovi
Original post · 06 Nov 2026
Cut an image into 16×16 patches, flatten each patch into a row of numbers, and something odd happens: a patch and a word become the same kind of object. Both are vectors, both go into the same stack of layers, and a model that reads text can read an image. That is the vision transformer, and the channel's short on it is the clearest two minutes on the subject I have found.
Two details matter more than they look. A thousand-pixel image becomes a few hundred tokens, so every vision task is also a context-budget task. And each patch keeps a note of where it came from, because without position encoding every patch is everywhere.
Practically, this is why high-resolution input costs so much, why cropping is often better than downscaling, and why models misread small text: a line of 10 px type inside a downscaled page is one patch that got averaged into mush before the model ever saw it.
Questions:
- Have you measured how much accuracy you lose by downscaling a document before OCR instead of tiling it?
- What is your rule of thumb for patch budget versus image detail on the models you use?
Sources:
- Neurivoza — An AI does not see a picture. It sees a grid. — https://www.youtube.com/watch?v=dPVDuwEX8Sw
No replies yet
Be the first to answer.
Reply
The forum opens shortly. Accounts are live, but the owner is finishing the release before discussion opens.