Better OCR usually starts before recognition. This document preprocessing checklist shows how to improve OCR accuracy by correcting image quality, page structure, language, and file-handling issues before a scan reaches your OCR software or OCR API.
Overview
OCR accuracy depends on more than the recognition model. A clear, correctly oriented page with consistent contrast and enough detail gives the system better evidence to interpret. A poor input can produce missing characters, merged words, incorrect numbers, and unreliable fields even when the underlying OCR technology is capable.
Use this workflow whenever you process a new document source, add a scanner or mobile capture method, prepare a batch for document OCR, or see an increase in manual-review exceptions.
- Capture: Scan or photograph the document with sufficient detail and even lighting.
- Normalize: Crop empty borders, correct rotation and skew, and standardize image properties.
- Enhance: Reduce noise, improve contrast, and remove distracting backgrounds without erasing characters.
- Configure: Select the correct language, script, page layout, and document type where your OCR tool supports those options.
- Validate: Compare recognized text or extracted fields against the source before processing the full batch.
Preprocessing should be consistent, but it should not be aggressive by default. Every enhancement changes the image. Keep an untouched original and compare a processed sample with it before applying a setting across invoices, receipts, forms, IDs, or scanned PDFs.
Checklist by scenario
For scanned documents and searchable PDFs
- Use a clean scan with enough resolution to preserve small print, punctuation, and superscripts. As a practical starting point, test standard office documents at approximately 300 pixels per inch, then adjust for unusually small type or poor originals.
- Scan in grayscale when color does not carry meaning. Retain color when it distinguishes annotations, stamps, security features, or form elements.
- Crop excessive margins while leaving a safe boundary around the text. Do not trim page numbers, footnotes, or characters close to the edge.
- Deskew pages that are slightly tilted. Even a modest angle can affect line detection and column separation.
- Rotate pages so text is upright and consistent throughout the file.
- Remove blank pages and duplicate images when they are not part of the intended record.
- Use a lossless or minimally compressed working image when possible. Repeatedly saving a scan as a heavily compressed image can create artifacts around letters.
For a complete conversion workflow, see how to make scanned PDFs searchable.
For invoices, receipts, and financial documents
- Capture the entire page, including supplier details, invoice numbers, totals, tax lines, and payment information.
- Preserve enough detail to distinguish similar characters in amounts and identifiers, such as 0 and O, 1 and I, or decimal points and commas.
- Correct shadows and folds, especially on receipts photographed under uneven light.
- Keep tables and line items aligned. Do not crop each field independently unless your workflow is specifically designed for fixed regions.
- Test documents with different layouts rather than validating only one familiar supplier or receipt format.
- Check whether the OCR workflow expects a full page, a document image, or separate field regions. The wrong input structure can look like an accuracy problem.
Teams processing expense records can also review this guide to receipt OCR for accounting, while accounts payable teams may benefit from the invoice OCR automation workflow.
For forms and structured documents
- Use page segmentation or layout settings suited to forms, columns, checkboxes, and repeated labels.
- Keep form lines visible if the recognition system uses them to locate fields, but remove heavy rules if they are being interpreted as letters or digits.
- Separate handwriting from printed text when the workflow supports different recognition modes. Handwriting often requires different expectations and review rules.
- Preserve checkbox states and mark locations. A text-only OCR pass may not capture selections accurately.
- Use a representative sample containing blank fields, filled fields, stamps, corrections, and handwritten notes.
For identity documents and mobile images
- Photograph the document straight on rather than at an angle.
- Avoid glare, fingers, shadows, and patterned backgrounds.
- Ensure all corners and required zones are visible.
- Use the language and document type settings appropriate to the ID.
- Do not assume that text recognition alone verifies authenticity. Identification workflows may require separate checks and human review.
For multilingual documents or mixed scripts, review the multilingual OCR API guide before choosing language settings.
What to double-check
Before running a large batch, process a small sample and inspect both the image and the output. Use this quality checklist:
| Check | What to look for | Corrective action |
|---|---|---|
| Resolution | Small characters look soft or broken. | Recapture at a higher setting or use a clearer source. |
| Orientation | Pages are sideways, upside down, or inconsistent. | Rotate pages before recognition. |
| Skew | Text baselines slope or columns drift. | Deskew and retest line detection. |
| Contrast | Text blends into a gray or colored background. | Improve contrast or use grayscale, while checking that thin strokes remain. |
| Noise | Speckles resemble punctuation or characters. | Apply moderate denoising and compare against the original. |
| Layout | Columns read across each other or table cells merge. | Choose a suitable page-segmentation mode or use layout-aware extraction. |
| Language | Accents, symbols, or words are consistently misread. | Select the correct language or script configuration. |
| Compression | Blocky artifacts appear around text. | Use a cleaner source or less aggressive compression. |
| Output | Text appears correct, but fields or reading order are wrong. | Validate coordinates, layout, tables, and structured fields separately. |
Measure more than character accuracy. For business workflows, check the fields that drive decisions: invoice totals, dates, account numbers, receipt amounts, names, and document identifiers. A batch can contain readable paragraphs while still producing unacceptable errors in critical fields. The OCR accuracy benchmark guide can help structure this testing.
Common mistakes
- Scanning everything in color: Color can help some documents, but it may add file size and background variation without improving recognition. Test grayscale when color is not meaningful.
- Overprocessing the image: Excessive sharpening, thresholding, or noise removal can erase punctuation and thin strokes. Compare every enhancement with the original.
- Using one setting for every document: A receipt, a two-column report, and a structured form need not share the same segmentation or capture settings.
- Ignoring the source device: A scanner, phone camera, email attachment, and photocopy may introduce different problems. Create a small profile for each recurring source.
- Validating only plain text: Structured extraction also depends on reading order, coordinates, tables, and field relationships.
- Skipping representative samples: Testing a clean sample does not reveal how the workflow handles folds, stamps, handwriting, low contrast, or unusual layouts.
- Discarding originals: Keep the source image or PDF according to your organization’s retention and security requirements so errors can be investigated and corrected.
Preprocessing is also part of document security and operations. Limit access to source files, avoid unnecessary copies, and confirm how your selected document capture software handles uploaded images and extracted text. See the OCR data security checklist when reviewing a vendor or API workflow.
When to revisit
Revisit this checklist before seasonal planning cycles, after changing scanners or mobile capture tools, when a supplier or customer introduces a new document template, and whenever manual-review rates rise. It is also worth reviewing when you change OCR software, switch an OCR API, add a language, enable table extraction, or alter image compression.
Use a simple change routine:
- Save a small, representative test set covering normal and difficult documents.
- Record the current preprocessing settings and the fields that matter most.
- Compare the new output with the previous workflow, including critical numbers and layout.
- Adjust one variable at a time where possible, such as resolution, contrast, or segmentation.
- Document the approved settings and define which errors require human review.
Start with one batch rather than changing the entire pipeline at once. A controlled before-and-after test will show whether an adjustment genuinely improves OCR accuracy or merely changes the type of error. When the input changes, return to the checklist, update the sample set, and confirm that your document automation workflow still produces reliable, reviewable data.