Data and retrieval

Optical character recognition (OCR)

Optical character recognition is technology that reads printed or handwritten text from images and scanned documents and turns it into machine-readable text that software can search, extract from or pass to a language model.

Optical character recognition, or OCR, is how a computer reads a picture of text. A scanned invoice, a photographed receipt or a PDF made from a fax is just pixels until OCR turns it into characters. For a business buyer it is the quiet first step behind invoice processing, contract search and any assistant that answers questions from paper records.

How it works

OCR finds regions of an image that contain text, works out the reading order, and recognises each character or word. Modern OCR engines use computer vision models rather than character templates, so they cope better with varied fonts and skewed scans. Many also return layout information: where each word sits on the page, which lines form a table, and which text belongs to a heading.

A typical build chains several steps. An invoice arrives by email, OCR extracts the text and layout, a data extraction step pulls supplier, date, total and line items into fields, and validation checks that the line items add up before anything is posted to the accounts system. Some multimodal language models can now read images directly, which blurs the line between OCR and extraction, but a dedicated OCR pass is still common when documents are long or volumes are high.

What it means for cost

The OCR call is usually a small share of the budget. The work that moves a quote is:

  • Input quality. Clean digital PDFs need little or no OCR; low-resolution scans, phone photos and handwriting need pre-processing and more testing.
  • Tables and layout. Reading a paragraph is easy. Reading a multi-page table with merged cells is not, and errors there break downstream totals.
  • Variety. Ten supplier formats behave very differently from a thousand.
  • Review. Any build where a misread number causes a wrong payment needs a confidence threshold and a human in the loop for low-confidence pages.

Ask a builder to run a sample of your worst documents, not your best, before quoting. Live figures for builds of this kind are on the document data extraction cost page.

When it is the wrong tool

If documents already arrive as digital PDFs with a text layer, or the data exists in a system with an API, OCR adds error for no gain. Read the text layer or call the system directly instead.

Common questions

Is OCR the same as intelligent document processing?

No. OCR only turns images into text. Intelligent document processing is the wider pipeline that classifies documents, extracts specific fields, validates them and routes exceptions, with OCR as one stage.

Can OCR read handwriting?

Some engines handle neat handwriting reasonably well, but accuracy is noticeably lower than for print and varies by writer. Builds that depend on handwritten forms should plan for human review of uncertain fields.

Does OCR work in languages other than English?

Most major OCR engines support many languages and scripts, though accuracy differs between them. Right-to-left scripts, mixed-language pages and unusual fonts deserve their own test set.

Related terms

Pricing a build that involves Optical character recognition? Send the brief and get a fixed price set next to the market range.Get a quote