By Orch8 Engineering · Editorial policy
Why Invoice OCR Fails on Real Documents
Measure OCR and extraction field by field on a sample of real document conditions. Use labeled totals, currency, and invoice IDs to set review thresholds. Track errors that escaped review as well as the number of documents routed to a person.
What is the practical answer?
Measure OCR and extraction field by field on a sample of real document conditions. Use labeled totals, currency, and invoice IDs to set review thresholds. Track errors that escaped review as well as the number of documents routed to a person. Collect authorized samples with personal and financial identifiers redacted or synthesize representative substitutes. Include skewed scans, multi-page invoices, rotated photos, missing values, repeated layouts, and low-resolution text. Keep an untouched test split by vendor or layout where possible so near-identical invoices do not make the evaluation look easier than production. Label invoice number, vendor, total, currency, tax, and line-item references. Decide on normalization rules before measuring. Exact string agreement can penalize harmless currency formatting, but rounding the wrong amount could hide a serious error. Report metrics by document type and field instead of letting easy fields conceal low accuracy on amounts.
Evidence: Google Document AI evaluation metrics · Reddit workflow acceptance testing discussion
- Sample realistic invoicesInput
- Extract and label fieldsProcess
- Validate totals and route reviewDecision
- Record corrected valuesExternal action
Build a corpus shaped like production#
| What you find | What to do |
|---|---|
| Totals disagree with item values | route to review with the source page. |
| One vendor layout dominates the test set | split or report by layout to expose bias. |
| Model improves vendor-name accuracy and worsens total accuracy | review critical fields separately before rollout. |
Tune review against business risk#
Use deterministic checks such as totals versus line items or currency consistency alongside extraction confidence. Confidence scores need calibration on your own corpus. Keep show-your-work evidence such as page references and source snippets so reviewers can resolve uncertain values quickly and auditing can track corrections.
Show where aggregate accuracy misleads#
A hypothetical 100-invoice sample might contain 90 familiar layouts and 10 blurred photographs. If a model extracts every invoice number correctly but misses the total on eight photographs, a global average across many fields can still look strong. Report critical totals and currency separately and show how those errors affect the auto-approval path.
Track reviewer load alongside the rate of incorrect records that passed. Set targets for both before adjusting thresholds. Normalize amounts and ISO currency spelling for evaluation, but keep the original text and page attribution for evidence. Review outliers by vendor and capture method so the next improvement can address a concrete failure instead of raising a global confidence cutoff blindly.
Verify it with a failure drill#
Put a clean invoice, a rotated scan, and a scan with two plausible totals in an evaluation fixture.
- Verify that the report identifies which amount was missed, that ambiguous totals reach review, and that corrected values still point to the source page.
Sources and further reading
Official references support technical claims; community discussions are used only as problem signals.