Document extraction terms explained: OCR, ICR, IDP, parsing and more

Updated

In short

OCR turns a picture of text into text. ICR is OCR for handwriting. Parsing means reading a file's structure to get its content. Data extraction pulls named values out of that content. IDP, intelligent document processing, is not a technique but a product category that combines all of these with classification and human review.

The field of reading documents by machine has more names than ideas. Many terms mean nearly the same thing, and vendors use them loosely. These are the ones you will meet, in plain words, grouped by what they are about.

Getting text from a page

OCR (optical character recognition). Turning a picture of text into text. Needed for scans and photos, where the file holds an image and no letters. Not needed for PDFs exported from a program, which already contain their text. See how to OCR a scanned PDF.

ICR (intelligent character recognition). OCR for handwriting. The name dates from when printed and handwritten text needed separate engines. Today most engines attempt both, and handwriting remains much less accurate than print.

OMR (optical mark recognition). Detecting whether a box is ticked or a bubble is filled. It reads marks, not characters, and is used for surveys, ballots and checkbox forms.

Text layer. The text stored inside a PDF, as opposed to what is drawn. A scan has none until OCR adds one.

Searchable PDF. A PDF with a text layer: you can select, search and copy. Either exported from a program, or a scan that OCR has added invisible text to. See scanned or searchable?.

Parsing. Reading a file's structure to get at its content. "PDF parsing" usually means extracting the text and layout of a PDF. "Document parsing" is used more loosely for the whole job of turning a document into something a program can use; in writing about language models it often means turning a file into clean text or Markdown.

Reading order. The order in which a person would read the text on a page. A PDF does not store it, so tools have to work it out, and multi-column pages are where they disagree. See keeping columns and lines in order.

Bounding box. The rectangle around a character, word or line, given as coordinates on the page. See text with coordinates.

Right-to-left (RTL) and bidirectional text. Hebrew and Arabic run right to left, with numbers and Latin words running left to right inside them. Text taken from a PDF in these languages often comes out reversed. See why Hebrew text comes out backwards.

Getting data from text

Data extraction. Pulling specific values, such as an invoice number or a total, out of a document and giving them names. The step after getting the text. See four ways to extract data from a PDF.

Key-value pair extraction. Finding labels and the values that belong to them: "Invoice number" and "INV-2026-0418". Most business documents are largely key-value pairs.

Field. One named value you want from a document.

Document type. A kind of document with a consistent set of fields: "supplier invoice", "company registry extract". Extraction is set up per document type.

Template. A set of rules for extracting the fields of one document type: the value after this label, the text in that box. See template-based extraction.

Zonal OCR. A template applied to scans: OCR reads only fixed rectangles of the page, one per field.

Table extraction. Rebuilding rows and columns from text positions and drawn lines. Harder than it sounds, because a PDF does not store tables. See how to extract tables from a PDF.

Classification. Deciding what kind of document a file is, usually so the right extraction can be run on it. See how to classify documents.

Document splitting. Cutting one file that holds several documents, such as a scanned stack of mail, into its separate documents.

The umbrella terms

IDP (intelligent document processing). Not a technique but a product category: software that combines OCR, classification, extraction and human review to turn incoming documents into data. When a vendor says IDP, ask which parts they mean.

Document AI. Roughly the same category, named for its use of machine learning. Also the name of specific products from several cloud providers.

Document understanding. A research term for getting meaning, not just text, from documents; used by vendors as a synonym for the two above.

Unstructured data. Content that is not already in rows and columns: documents, emails, images. "Semi-structured" is used for documents such as invoices, which have consistent fields in inconsistent layouts.

Language models and documents

LLM (large language model). A model, such as those behind ChatGPT and Claude, that reads and writes text. It can extract fields from a document's text when asked.

VLM (vision language model). A language model that also takes images, so it can read a page as a picture, doing OCR and understanding in one step.

RAG (retrieval-augmented generation). Answering questions from your own documents by first finding the relevant passages and then giving them to a language model. The quality of the extracted text limits the quality of the answers. See clean PDF text for LLMs and RAG.

Chunking. Cutting a document's text into passages small enough to search and to fit in a model's input.

Hallucination. A model stating something that is not in its input, such as a value that does not appear in the document. See can ChatGPT extract data from PDFs?

Measuring and operating

Confidence score. A number an engine attaches to a result to say how sure it is. Useful for deciding what a person should check; not a probability you can take literally.

CER and WER. Character error rate and word error rate: the share of characters or words an OCR engine got wrong. See how to measure OCR accuracy.

Field accuracy. The share of extracted values that are exactly right. Closer to what matters than CER.

Human in the loop. A person reviews results the software is unsure of. The usual way to reach very high accuracy on documents that matter.

Straight-through processing (STP). A document handled from arrival to finished data with no person involved. The STP rate is the share of documents for which that happens.

Deterministic. Giving the same output for the same input, every time. Rules and templates are; language models, in general, are not.

Terms that sound different and are not

Thesemean roughly
Parsing, extraction, captureGetting data out of a document
IDP, document AI, document understandingProducts that do it
Template, zonal OCR, rule-based extractionReading fixed places or labels
Key-value extraction, field extractionGetting named values
Text PDF, native PDF, digital PDF, searchable PDFA PDF that contains text
Scanned PDF, image PDF, image-only PDFA PDF that contains pictures of pages

How 100sands uses these words

In 100sands a document type is a kind of document you set up once from one to five samples. Its fields are the named values you get back: text, numbers, dates, yes/no, lists and tables. The extraction is the fixed set of rules, set up with AI and checked against your samples, that reads them. Text is the plain output: the characters of a document in reading order, with a tab between cells on a line. Classification tells you which of your document types a file is. And a document, one file whatever its page count, is the unit your plan counts. 100sands reads PDFs and HTML files that contain text; it does not do OCR. The features page shows each.

Questions

What is the difference between OCR and ICR?

OCR reads printed text from images. ICR is the name for reading handwriting. Most current engines attempt both, and handwriting remains much less accurate than print.

What is document parsing?

Reading a document's structure to get at its content. For PDFs it usually means extracting text and layout. In writing about language models it often means turning a file into clean text or Markdown.

What is intelligent document processing (IDP)?

A category of software that turns incoming documents into data by combining OCR, classification, data extraction and human review. It is a name for products, not a single technique.

What is key-value pair extraction?

Finding labels in a document and the values that belong to them, such as "Invoice number" and "INV-2026-0418". Most business documents consist largely of such pairs.

Try it on your own documents

A free plan every month, no credit card. See the features.

Start free