Practical thinking about AI tools and everyday work.

Straighten a scanned page before asking OCR to read it

A scanned paper page placed at a slight angle beside a straightened digital page on a laptop, no readable personal data.
AI-generated photographic illustration; not documentary photography.

A page can be readable to a person while its tilted lines make automated text recognition harder. Straightening the scan before OCR can give the software a clearer arrangement of the text it needs to interpret.

The Tesseract documentation on improving recognition quality identifies skew as a problem for line segmentation and recommends deskewing. That does not mean every scan needs the same rotation or that preprocessing will correct missing, blurred or damaged text.

Keep an untouched original

Work on a copy and label the processed version. If an automatic adjustment clips a margin or bends a table, you need a reliable source to return to. Avoid overwriting the only image because the preview looks cleaner.

Start with a representative page rather than processing a large collection immediately. Include difficult features from the real material: narrow columns, footnotes, tables or faint print. A clean title page may make the workflow look better than it performs on the rest of the document.

Compare words, not just appearance

Choose a short passage and transcribe it carefully as a reference. Run OCR on the original and the deskewed copy with otherwise comparable settings. Count or inspect substitutions, missing words and reading-order problems. A visually straighter page is useful only if it supports the output you need.

For a table, check which value belongs to which row and column. Text can be recognised correctly yet attached to the wrong heading. For names or reference numbers, compare characters directly instead of allowing a language model to silently guess what an unclear string ought to say.

Record the preprocessing step with the output so another person can reproduce the result. Where text remains uncertain, mark it for review. OCR is a way to make documents searchable and workable; preserving the evidence and its uncertainties is part of making that convenience trustworthy.