Menu

Glossary

What is OCR?

OCR (optical character recognition) recognizes text in images such as scanned pages, photos and screenshots and turns it into machine-readable characters.

Copy as MarkdownOpen in ChatGPT (opens in a new tab)Open in Claude (opens in a new tab)

OCR (optical character recognition) is the technology that recognizes text in images, such as scanned pages, photos and screenshots, and converts it into machine-readable characters. It differs from document parsing: a PDF created by software carries an embedded text layer that a parser reads directly, while a scanned document is just a picture of text and needs OCR to become readable.

How OCR works

OCR takes pixels as input and produces characters as output. A classic pipeline cleans up the image (straightening it, removing noise, converting it to black and white), divides it into lines and character regions, and classifies each region against known letter shapes. Modern OCR systems replace those hand-built stages with neural networks, and increasingly with vision-language models that read a page image from start to finish. These cope much better with varied fonts, layouts and photo conditions. Output quality still depends heavily on the input: clean, high-resolution scans of printed text do well, while low-resolution photos, handwriting and dense multi-column layouts remain the harder cases.

OCR vs document parsing

The distinction comes down to whether the text exists digitally in the file:

A quick test: if you can select and copy text in a PDF viewer, the file has a text layer and a parser can read it. If you cannot, it is a scan and needs OCR. Some scans carry a text layer that earlier OCR added, and that layer is only as accurate as the OCR that made it.

When LLM pipelines need OCR, and when they don't

Documents created digitally do not need OCR, so a pipeline with solid document parsing handles them. OCR earns its place when your material includes older archives, scanned contracts and invoices, faxes or photographed pages.

It also introduces a failure mode that parsing does not have: recognition errors, such as "rn" read as "m" or digits confused in a table, which silently corrupt later retrieval and structured data extraction. Text that came from OCR usually deserves a confidence check before it enters an index.

Where MillionShort fits

MillionShort does not offer OCR. You cannot send it an image or a scanned file, and it does not search images. It is a text search API: results are snippets of text from pages and documents in our own index. If your pipeline needs OCR, it is a separate step with a separate tool, and MillionShort has nothing to add to it beyond finding the URLs.

This page as Markdown ยท llms.txt