DaletGuard supports civilians affected by armed conflict through Families Beyond War. All sides, no political affiliation. About our humanitarian work

OCR Data Extraction and Its Limits

Recognition turns pixels into characters, and extraction turns those characters into fields like a payee, a date or a total. OCR data extraction sounds like one step, yet these are two separate jobs that many people blend together. Scanned PDF quality decides how good the recognized characters are, but it says nothing about what they mean. DaletParse runs recognition only on pages that hold no usable text, then adds classification, extraction and validation checks, so a person trusts a value only after it has been checked.

The wider discipline is mapped in the guide to intelligent document processing.

Illustration of barchart, pie, linechart for ocr data extraction
Key takeaway

OCR returns characters and positions. It does not return meaning. Reliable extraction also needs page typing, document classification, field extraction and validators that test the result.

What an ocr engine returns and what it leaves out

An ocr engine reads shapes and returns text. Many engines also return the box around each word and a score for each guess. What comes back is a flat list of strings. Thus, the ocr output is just that list, and it is all that ocr data extraction gives you by itself.

The string 04/05 is only a string. Nothing says whether it is a statement date, a due date or a birth date. Also, nothing says whether the day comes before the month.

Turning that list into a record takes three further jobs. First, something must decide what kind of document this is. Next, something must pick out the fields that matter for that kind. That is field extraction, and without it, OCR data extraction stays a pile of text.

Finally, something must test whether the values make sense together. OCR data extraction that stops early leaves all three jobs to whoever reads the output.

A quick test helps when you compare tools. Ask what happens to the text once it is recognized. If the answer is a plain text file, you are buying text recognition only.

In contrast, a full pipeline treats OCR data extraction as the opening step. DaletParse types each page first, splits the file into documents, and classifies each one.

A specialist extractor then reads the document, and a validator checks the result. Therefore, the ocr step is one link in a longer chain. Character recognition alone cannot finish the job. The specialist extractors page describes the later links.

DaletParse Queue: Ocr data extraction screen

How a pack mixes native and scanned pages in one file

Not every page needs OCR data extraction. A pdf exported from accounting software carries its text layer inside the file. That text can be read directly, which is exact because no guessing about shapes is involved. In contrast, a scanner produces a picture, and only recognition can turn that picture back into characters.

DaletParse makes this choice for each page, not for each file. Specifically, when pdfplumber finds at least 20 words, the page is native and that text is used. With fewer words, the page is scanned and goes to the ocr engine. If the scan check finds a shadow or a watermark, the page is a photo page and is cleaned first.

The split of native versus scanned pages has consequences you can predict.

For example, a native page with fewer than 20 words, such as a near-empty cover sheet, is handled as scanned. In contrast, a scan with a hidden text layer above the threshold is handled as native. The native versus scanned pages rule is simple, but its edge cases matter. Test both cases if your sources produce them.

Resolution also follows the page type. The code renders native pages at 72 DPI, scanned pages at 210 DPI and photo pages at 300 DPI. Indeed, these are settings in the pipeline, not a promise about results.

A single file can mix all three kinds, so native versus scanned pages is a choice made per page. For instance, a loan pack might hold a bank export, a lease scan and an ID photo. Page typing lets each page take its own route, which is native versus scanned pages in practice. Consequently, OCR data extraction runs on some pages of a file and not on others.

Which image flaws hurt the characters most on a scan

Scanned pdf quality fails first on a bad image. Recognition quality depends on that image. Skew is the first problem. Engines read in lines, so a page tilted by a few degrees can merge two rows into one.

A shadow is the second problem for scanned pdf quality. A phone photo taken under a desk lamp often has a darker band across one side. Characters inside that band lose contrast, and a 6 can read as an 8. Similarly, stamps over text cause the same trouble for native versus scanned pages alike.

Illustration for OCR Data Extraction and Its Limits

Why a six can turn into an eight on a scan

Resolution is the third limit. Small digits in a footnote or a transaction table need enough pixels to stay distinct. In fact, fax copies and screenshots of screenshots break this rule most often.

Therefore, test scanned pdf quality on your own worst pages, because these limits are general to recognition. Weak scanned pdf quality also lowers every later step, so scanned pdf quality deserves a place on your intake checklist.

Notably, duplicate scans add a different kind of noise. When someone scans a page twice, the pack holds a repeated page. DaletParse compares the first 300 characters of recognized text on consecutive non-native pages. It removes a page when the similarity reaches 0.95.

That comparison reads only the start of each page. Pages that open with the same long header deserve a second look.

Also, an early information view helps with this, because DaletParse builds it before the tables finish. It lists recognition quality, cropped pages and missing pages. The article on scanned document quality checks shows how to read that view.

DaletParse Checklist: Scanned pdf quality screen

Why tables and handwriting are hard for any ocr engine

Tables are harder than paragraphs. In practice, OCR data extraction gives you words with coordinates, not rows.

Rebuilding a row means grouping words by vertical position. First, the engine must agree on where each line sits. Likewise, rebuilding columns means aligning them under headers, and OCR data extraction does neither on its own.

Wrapped descriptions make that grouping unstable. Moreover, side-by-side debit and credit columns do the same, as do tables that continue on the next page. For bank statements, DaletParse uses words and coordinates on native and scanned pages, then maps the headers. On photo pages, it reads the table with a vision model and cross-checks the result against recognized text.

The bank statement route describes the phases and the balance tests that follow.

Handwriting recognition limits are a separate matter.

Specifically, DaletParse does not claim to read what a person wrote by hand. However, it can flag a missing signature on document types that require one, and it rechecks signature fields. Handwriting recognition limits therefore stay visible to every reviewer. These handwriting recognition limits are stated openly, so nobody should assume the product reads pen strokes.

If handwritten fields matter to you, include them in your first run. Indeed, handwriting recognition limits should be tested like any other claim. Therefore, write the handwriting recognition limits you find into your intake checklist.

Those handwriting recognition limits differ by vendor, so ask each one. Also, some cloud services do document handwriting support. For instance, Amazon Textract lists handwriting (opens in new tab) among its features. Language support varies by feature, so ask every vendor for the list.

The open source Tesseract documentation (opens in new tab) also states its own scope and language data. Moreover, it is a good example of an engine that returns text and leaves the meaning to you.

DaletParse Checklist: Ocr engine screen

What must run after ocr data extraction before you trust it

Classification must come first. OCR data extraction cannot name a document. A figure labeled total means one thing on a receipt and another on a balance sheet.

Until the type is known, an extractor cannot choose its fields or its rules. Therefore, OCR data extraction needs a typing step.

DaletParse classifies in two passes. A vision pass describes up to five pages, and a text pass picks one registered type.

Extraction then has its own discipline. Specifically, after the first read, DaletParse looks again at empty fields only. The rule is to return values that are actually printed. As a result, a field that is not on the page stays empty rather than being filled with a guess.

Validators come last, and they catch what an ocr engine cannot. They test sums, dates and required fields. For example, the paystub validator tests that gross pay minus deductions equals net pay within 0.01. A recognition score tells you about characters, not about whether a paystub adds up.

Flags are signals, not verdicts. Instead, a reviewer reads the flag, opens the page and decides. For simple extractors, the code sets extraction confidence to a fixed 0.8. Treat that number as a field in the record, not as a quality measure.

Corrections and decisions are recorded in your case system, next to the exported values. The validation page lists the rules and the three outcomes.

Treat the ocr output as a first step, not a result

OCR data extraction gives you characters and positions. It does not give you document types, fields or proof that the numbers agree. Treat OCR data extraction as the first step.

Indeed, OCR data extraction is the easy part of the work. Page typing, classification, field extraction and validators fill the gap, and review closes it. Every later step depends on the ocr engine output being legible.

When you assess a tool, ask how it handles native versus scanned pages and photographed pages. Also ask which resolution it uses, what happens to tables and handwriting, and which checks run after OCR data extraction. Then check the answers on your own worst pages. The article on splitting a combined PDF covers the step before reading.

A short list keeps the test honest:

  • Pages that are native, scanned and photographed, all in one pack.
  • A skewed scan, a shadowed photo and a fax copy.
  • A table that runs across two pages.
  • A page with a signature field, to check handwriting recognition limits.
A diagram with the topic at the centre and four connected parts: Ocr engine, Ocr output.

Questions and answers on this topic from the product team

Is ocr data extraction the same as field extraction?

OCR recognizes characters and usually their positions on the page, so it is not the same job. Field extraction then decides which characters form a total or an account number. It also needs the document type and its rules.

Which page types does DaletParse tell apart?

It labels each page native, scanned or photo. A page is native when pdfplumber finds at least 20 words in the file text. A scanned page with shadows or a watermark is treated as a photo page and cleaned before reading.

What DPI does DaletParse use when it renders pages?

Native pages render at 72 DPI, scanned pages at 210 DPI and photo pages at 300 DPI, each tuned for its kind of page.

How does DaletParse treat handwritten parts of a page?

It reads printed text and flags a missing signature on every document type that needs one. Include handwritten fields in your first run if they matter to you.

See how DaletParse fits the providers your team uses today

Book a short meeting for a walkthrough with your own providers in mind, or join an in-person class to learn the method first.