Glossary
OCR vs intelligent document processing
OCR converts images of text into machine-readable characters, while intelligent document processing (IDP) uses OCR as one step in a pipeline that classifies documents, extracts specific fields, validates them and routes the results.
OCR reads text; intelligent document processing understands documents. Optical character recognition takes an image, such as a scanned page, a photo of a receipt or a PDF without a text layer, and outputs the characters it contains, often with their positions on the page. Intelligent document processing (IDP) is a wider pipeline that uses OCR where needed, then works out what kind of document it is, finds the specific values a business cares about (an invoice number, a due date, line items, a contract’s governing law), checks them, and passes structured data to the next system, with a person reviewing anything uncertain. OCR answers “what does this page say?”. IDP answers “what is this document, what are its key facts, and are they right?”.
What OCR does
OCR converts pixels into text. Modern engines detect regions of text on the page, recognise the characters in each line, and return the text with bounding boxes and a confidence score per word or line. Good engines handle many fonts and languages, skewed scans and low contrast; handwriting recognition is a harder variant that has improved considerably with neural models.
The output is text, sometimes with coordinates, and nothing more. OCR does not know that “INV-20419” is an invoice number, that the figure at the bottom right is the total, or that a table continues on the next page. It also does not fix a bad input: OCR accuracy depends heavily on image quality, and resolution below roughly 300 DPI is a common cause of errors.
OCR is only needed when a document has no usable text layer. A digitally generated PDF already contains its text, which can be read directly by PDF parsing; running OCR over it adds errors rather than removing them. A scanned PDF is a set of images and needs OCR, and the result is often saved as a searchable PDF with an invisible text layer added. Real document collections contain both, which is why pipelines need to detect which path each file needs.
What IDP adds
IDP wraps several stages around text recognition. The exact list varies by vendor, but most pipelines include:
Ingestion and pre-processing, which accepts files from email, uploads or scanners, splits multi-document batches and cleans up images. Classification, which decides whether a file is an invoice, a purchase order, a bank statement or an ID document, because each type needs different handling. Layout analysis, which finds headings, paragraphs, columns, tables and form fields so that text is read in the right order. Extraction, which pulls specific values into a schema: key-value extraction for labelled fields, table extraction for line items, and entity extraction for names, dates and amounts. Validation, which checks the results against rules (line items sum to the total, the VAT number has the right format, the supplier exists in the ERP). Human review, which sends low-confidence or failed fields to a person, usually through a review screen. And export, which sends clean data to the accounting system, CRM or database.
Classification and extraction were once built from templates and rules per document layout. Most current IDP uses machine learning models trained on document types, and increasingly large language and vision-language models that can extract fields from layouts they have not seen before. OCR vs vision-language models covers how those models are changing the OCR step itself.
Side by side
| OCR | IDP |
|---|---|---|
Input | An image or scanned page | Any document: scans, digital PDFs, emails, photos |
Output | Raw text, often with positions and confidence | Structured fields in a schema, plus document type |
Understands document type | No | Yes, through classification |
Handles layout and tables | Reads text only, sometimes in the wrong order | Uses layout analysis and table structure |
Validation | None | Business rules and cross-checks |
Human review | Not included | Built in for low-confidence fields |
Digital PDFs | Not needed, can add errors | Reads the text layer directly |
Typical users | Developers digitising text | Operations teams automating document workflows |
Cost and complexity | Low | Higher, with setup per document type |
A worked example
An accounts payable team receives 3,000 supplier invoices a month as PDFs and photos.
With OCR alone, each file becomes a block of text. “Invoice No: INV-20419 Date: 03/11/2026 … Total due £4,812.50” is all there, mixed with addresses, terms and footers, and the reading order of a two-column layout may be scrambled. Someone still has to find the invoice number, decide whether 03/11/2026 means 3 November or 11 March, type the line items into the finance system and check the totals. OCR has made the documents searchable but has not removed the data entry.
With IDP, the same file is classified as an invoice, the supplier, invoice number, dates, line items, tax and total are extracted into fixed fields, the line items are checked against the total, the supplier is matched to the vendor list and the purchase order number is matched to an open order. Invoices that pass go straight to approval. Perhaps one in ten fails a check, for example a total that does not reconcile or a supplier the system has not seen, and lands in a review queue with the uncertain fields highlighted. The team reviews 300 invoices instead of keying 3,000.
The difference is the gap between text and data. The invoice OCR step is the same in both; what changes is everything around it.
Measuring each one
OCR and IDP are measured differently, and mixing the two leads to misleading comparisons. OCR is judged at the character or word level: character error rate and word error rate against a hand-checked transcript of the same pages. A 98% character accuracy sounds high, but on an invoice it can still mean a wrong digit in the total.
IDP is judged at the field and document level. The useful questions are how often each field is extracted exactly right, how often the whole document is correct, how well confidence scores predict errors (so that review effort goes to the right documents), and what share of documents passes straight through. A pipeline with slightly weaker OCR but strong validation can outperform one with better OCR and no checks, because it catches its own mistakes before they reach the ledger. Build a test set of real documents, including poor scans and unusual layouts, before comparing tools.
When OCR alone is enough
OCR is enough when the goal is to read or search text rather than to capture specific values: digitising an archive so it can be searched, making scanned books accessible, extracting text from images for a search index, or feeding page text into a RAG pipeline where a model will read it later. In these cases, the structure that IDP adds is either unnecessary or will be inferred downstream by another model. The blog post OCR is solved, document understanding isn’t argues where the hard problems now sit.
When you need IDP
You need IDP, or something that does its job, when documents drive transactions or decisions and the output must be specific, structured and correct: accounts payable, insurance claims, lending and KYC checks, logistics paperwork, healthcare forms and contract review. The signals are a fixed schema the data must fit, a downstream system that rejects bad values, a cost to errors, and a volume that makes manual keying expensive.
IDP brings its own costs. Each new document type needs setup, whether that is templates, training examples or prompt and schema design. Validation rules need maintaining as suppliers and formats change. And the review step needs staff and a measurement of how often it is used, because straight-through processing rates are what determine the savings. Human in the loop review should be designed in from the start rather than added once errors appear.
Related distinctions
OCR versus IDP is one of several extraction distinctions. Document extraction is the general term for turning files into usable text and data. Structured data extraction is the step that maps content onto a schema. Function calling vs structured output is relevant when a language model performs the extraction, since structured output is how it returns fields reliably. Hosted options are compared in best OCR API and best document extraction API, and two of the large cloud offerings are compared in Textract vs Google Document AI.
Where Exabase fits
Exabase Extract covers the OCR and extraction stages of this pipeline through one endpoint. Submit a file or URL to the extract endpoint and it detects the content type, including scanned PDFs, digital PDFs, Word documents and images, and applies OCR where it is needed. Images return OCR text, and documents return text chunks with page numbers along with metadata such as page count, author and title. Invoices, resumes and contracts are recognised automatically: the result includes a documentType and a structured object with fields such as vendor, invoice number, issue and due dates, line items and total for invoices, or parties, effective and expiration dates, governing law and clauses for contracts.
Results arrive by polling or by webhook, with every delivery attempt logged, and adding ?format=markdown returns the same result as readable Markdown with structured fields laid out as labelled sections, which is convenient to pass to a model. The extraction guide covers job states, retention and reprocessing. Single-purpose tools on the same endpoint include invoice to JSON, contract to JSON and image to text.
Exabase is the extraction layer rather than a full IDP suite. It does not provide business-rule validation, matching against your ERP or vendor list, or a reviewer interface; those sit on top in your own application or workflow tool, using Extract’s structured output as input. Extracted documents can also be stored as Resources so their contents become searchable through Deep Search, which is useful when the same documents later need to answer questions. The file extraction solution page and the invoice processing use case show how teams put these pieces together.
Frequently asked questions
What is the difference between OCR and IDP?
OCR converts images of text into machine-readable characters. Intelligent document processing uses OCR as one step, then classifies the document, extracts specific fields into a schema, validates them and routes exceptions to people. OCR produces text; IDP produces checked, structured data.
Is IDP just better OCR?
No. Better OCR improves character accuracy, while IDP adds classification, layout understanding, field extraction, validation and review around it. A perfect OCR engine would still leave someone to find and check the values in the text.
Does IDP always use OCR?
Only for documents without a usable text layer, such as scans and photos. Digitally generated PDFs and Word files already contain their text, which IDP reads directly; running OCR on them can introduce errors.
Can large language models replace IDP?
They can replace parts of it. Language and vision-language models are good at extracting fields from varied layouts without templates. A production pipeline still needs classification, validation against business rules, confidence handling and human review, so models usually sit inside an IDP-style process rather than replacing it.
How accurate is OCR?
On clean, high-resolution printed text, modern OCR is very accurate. Accuracy falls with low resolution, skew, unusual fonts, handwriting, stamps and complex layouts. Measuring accuracy on your own documents is more useful than any general figure.
What is straight-through processing in IDP?
It is the share of documents that pass extraction and validation without a person touching them. It is the main measure of an IDP system’s value, because reviewed documents still cost staff time.
Does Exabase do OCR?
Yes. OCR is built into Exabase Extract, so scanned PDFs and images are processed the same way as digital files, and invoices, resumes and contracts also return structured fields. Validation rules and review workflows are left to your own application.
Related pages: OCR, intelligent document processing, document extraction, OCR vs vision-language models, table extraction, scanned PDF, file extraction, best OCR API, contract analysis, scanned vs digital PDFs