VIETPDF KNOWLEDGE

How to straighten a slightly skewed scan before OCR

A 90-degree rotation fixes a sideways photo. Slightly slanted lines need a small-angle straightening adjustment or a new photo. Align the text in an image editor first, then verify an accented Vietnamese phrase in the OCR result.

Check whether the whole page or the lines are tilted

When a page header is sideways, use a quarter turn. If each line tilts only a little, a quarter turn changes its direction while keeping the skew. Inspect text at the top and bottom of a photo.

Perspective distortion can make the page edges converge. If possible, retake the photo from above with the camera parallel to the paper.

Prepare a working image and try a short passage

Straighten or crop a copy in an image editor. Preserve the margins containing stamps and small print. Export JPG or PNG, then try OCR on a line with accents and an identifier.

VietPDF’s Image to Text rotation uses right angles. Apply small-angle corrections before importing. For multiple adjusted photos, combine them into a PDF and run PDF OCR if you need a search layer.

Use the sample to judge the rest of the batch

Compare accent marks and easily confused digits across both attempts. If straightening has little effect, check focus and lighting. Proceed with the remaining pages when the sample is accurate enough for the task.