Topic 3 of 5 · 4 min read
Vision models versus classic OCR pipelines
Goal: Choose OCR, a document parser or a vision model for a document workload and justify it on accuracy, cost per page and auditability.
Pick the cheapest tool that reads the page faithfully, and use a vision model where the page needs understanding rather than copying. OCR copies characters. A vision model interprets a page. They fail in different ways.
Check yourself · 1 of 3
A reviewer must click any extracted value and see it highlighted on the original page. Which output makes that possible?
Why it matters
A bill of lading, a bank statement and a handwritten form are not the same workload. Sending all of them to a general vision model is simple, but it can cost more per page, and it can return text that looks right and is not on the page. Classic OCR makes more visible mistakes, but it rarely makes up whole phrases.
The options
- Classic OCR such as Tesseract or a cloud OCR service. Reads characters and returns text with word positions (bounding boxes) and a confidence score. Output is repeatable: the same image gives the same text. It struggles with messy layouts and handwriting.
- Document parsers such as Docling or olmOCR. Convert a PDF into structured text with reading order, tables and headings. They can run on your own hardware, which matters for private documents and for cost at volume.
- General vision models such as Claude, Gemini or GPT. Handle odd layouts, handwriting, and questions about meaning ("Which clause sets the payment term?"). Output can change between runs and can include text that is not on the page.
How to choose
- What do you need back? Raw text with positions points to OCR. A table or reading order points to a parser. A judgement or a field mapped from a messy form points to a vision model.
- What must be auditable? If a reviewer must click a value and see it highlighted on the page, you need bounding boxes. OCR and parsers give them. Vision models may not.
- How many pages? Estimate cost per page for each option with a sample of your own pages, and multiply by your volume. Prices change, so check the current price lists.
- How clean are the pages? Clean printed text suits OCR. Handwriting and stamps need a vision model, with a human check.
- Combine them. A common pattern: OCR or a parser for text and boxes, then a model to map the text to a schema, and a check that every extracted value actually appears in the OCR text.
Before and after
Before: every page, including clean printed receipts, goes to a vision model, and a reviewer cannot see where a value came from.
After: a parser reads the clean pages and returns text with boxes, the model only maps text to fields, and only pages with low confidence or handwriting go to the vision model.
What goes wrong
A vision model completes a smudged word with a likely one. OCR reads a "5" as "S" and says so with low confidence. The first error is hidden, the second can be flagged.
Examples
Receipts and a handwritten form
A team processes clean printed receipts and a few handwritten delivery notes. Printed receipts go through a parser with word boxes at low cost. Handwritten notes go to a vision model and always to a human reviewer. Each tool handles the pages it is good at.
The completed word
An invoice number is smudged and reads "INV-20_41". Tesseract returns "INV-2041" with low confidence and the field is flagged. A vision model returns "INV-20041" with no flag. The real number was INV-20841. Check extracted values against the OCR text, and send low-confidence cases to a person.
Key points
- OCR copies characters and is repeatable; vision models interpret a page and can be wrong in a fluent way.
- Bounding boxes let a reviewer see exactly where a value came from, which supports audit.
- Parsers like Docling and olmOCR can run on your own hardware, which helps with private documents.
- Estimate cost per page with a sample of your own pages instead of assuming one tool is cheaper.
- A strong pattern is OCR for text and positions, a model for mapping to fields, and a check that values appear in the OCR text.
Common mistakes
- Sending every page to a vision model because it is easiest, without checking cost or audit needs.
- Assuming OCR output is wrong because it is old, when it is repeatable and comes with positions and confidence.
- Comparing tools on three sample pages instead of a sample that includes your worst scans.
- Ignoring where private documents are processed when choosing a hosted service.
Check yourself · 2 of 3
Which workload is the best fit for a general vision model rather than plain OCR?
Check yourself · 3 of 3
What is a specific risk of a vision model compared to OCR on a smudged scan?
Practice items, not counted towards your mastery.
Start here
- Vision (Claude docs) (opens in a new tab)DocsFree
Image size limits, token cost per image, and tips for prompt placement and resizing.
- Document understanding (Gemini API) (opens in a new tab)DocsFree
How a model reads PDFs as pages and layout, with extraction examples and file limits.
- Images and vision (OpenAI docs) (opens in a new tab)DocsFree
Image input formats, detail levels and the stated limits of vision models.
More for this topic
- Docling: document parsing for generative AI (opens in a new tab)ToolFree
An open-source parser that turns PDFs and scans into structured text with layout and tables.
- Tesseract OCR (opens in a new tab)ToolFree
The long-running open-source OCR engine: deterministic, local, with word boxes and confidences.
- olmOCR (Allen Institute for AI) (opens in a new tab)ToolFree
An open vision-language model pipeline for converting PDFs to clean text at scale.