Ring Light Bounces Off a Mirror Finish: Will Coaxial Help?
A coaxial illuminator is a light source coupled into the lens axis by a beam splitter, and the splitter is where the cost hides....
read more…
At 300 dpi, an A4 page is about 2480 by 3508 pixels. OCR can tolerate some skew and blur, but it is less forgiving of lens distortion that bends a line or changes character spacing across the page. The distortion budget is not a single catalog number; it is the amount of positional error the OCR engine can absorb at the edge of the page, minus the margin for paper curl, illumination, and mechanical alignment. This article turns 300 dpi into an object pixel size, separates lens distortion from perspective and paper warp, and shows how to specify a line-scan or area lens for document capture.
300 dots per inch is 300 divided by 25.4, or about 11.8 pixels per millimetre. An A4 page is 210 by 297 millimetres, so the image is about 2480 by 3508 pixels. The object pixel size is the reciprocal: about 0.085 millimetres. A document scanner can be a flatbed, a sheet-fed transport, or a camera over a platen; the optical budget changes with the form. That is the scale at which the lens must deliver contrast, and the scale at which a distortion of a few pixels becomes a visible shift in a character stroke.
The page is not a sensor. A line-scan camera builds the image line by line as the page moves, so the along-page pixel size is set by the line rate and the transport speed, while the across-page pixel size is set by the lens and the sensor line. If the transport speed varies, the page stretches or compresses even with a perfect lens. The optical budget and the motion budget must be separated before either is specified.
Lens distortion bends straight lines in a way that depends on the field height. Perspective makes the page trapezoidal when the camera is not square to the platen. Paper warp lifts the page out of the object plane, so the magnification changes across the page. Roller slip stretches the image along the transport direction. These are different errors, and a lens with low distortion cannot fix a warped page or a slipping roller.
A grid target separates them. Lens distortion shows as curved lines that are symmetric about the center. Perspective shows as a trapezoid with straight sides. Paper warp shows as a local bulge or a focus change, not a global line bend. Roller slip shows as a scale error along the transport direction that changes with speed. If the grid is not straight after the lens, do not try to correct it with OCR settings; fix the optical or mechanical cause first.
OCR engines segment characters and compare stroke shapes. The OCR process is tolerant of some variation, but not of a systematic distortion that changes spacing across the page. At the edge of the page, the lens distortion is largest, the relative illumination is lowest, and the focus may be softest. A character that is sharp in the center can lose its stroke contrast at the edge, and the recognizer either merges it with a neighbor or rejects it. The failure is not a single bad pixel; it is a change in the character’s shape and spacing that crosses the engine’s tolerance.
The page edge is also where the mechanical alignment is least controlled. A page that is slightly rotated or lifted at the corner moves the character relative to the sensor. The optical budget should leave margin for that movement; if the lens uses the entire tolerance, the mechanical error has nowhere to go.
Start with the smallest character stroke and the smallest character spacing you must recognize. At 300 dpi, a 0.2 millimetre stroke is about 2.4 pixels. If the lens distortion adds half a pixel of positional error at the edge, that is about 20 percent of the stroke width; the OCR engine may still work, but the margin is thin. A tighter budget leaves room for paper curl and illumination. The exact limit depends on the engine and the font, so test with your engine and your page, not with a generic number.
Express the budget as a positional error at the worst-case field point, in pixels or millimetres, not as a percentage of the field. A percentage is useful for a lens datasheet, but the OCR decision needs the error at the character. If the page is 2480 pixels wide and the lens distortion is 0.1 percent, the edge shift is about 2.5 pixels; that is a useful conversion, but only if the distortion is measured at the same image height and the same working distance.
| Error | Signature | Fix |
|---|---|---|
| Lens distortion | Symmetric line bend, worse at the edge | Lower-distortion lens, calibration, or a narrower field. |
| Perspective | Trapezoid with straight sides | Square the camera to the platen; use a longer working distance. |
| Paper warp | Local bulge, focus change, not a global bend | Hold the page flat; add a glass platen or a vacuum hold-down. |
| Roller slip | Scale error along the transport, changes with speed | Encoder-locked line rate; check the roller and the paper path. |
A line-scan camera is the natural fit for a moving page: it builds a high-resolution image with a long sensor line and a lens that covers that line. The page must be held flat and moved at a constant speed, and the line rate must be encoder-locked. An area camera is simpler for a platen scanner: one exposure, no transport, but the lens must cover the full page at the working distance, and the sensor must have enough pixels for 300 dpi. A 2480-pixel line is enough for A4 width at 300 dpi; an 8K line gives margin and a smaller object pixel.
The lens choice follows the camera. For line scan, the image circle must cover the sensor line with margin, and the lens must be sharp across the line, not just in the center. For area, the lens must cover the page diagonal and keep the corners sharp. A low-distortion FA or line-scan lens is the starting point; a telecentric lens is not usually required for OCR unless the page height varies enough to change magnification. Our line-scan lens selection guide covers the image circle math.

Ask for the distortion at the image height you use, not a generic percentage at the full field. For a line-scan lens, ask for the MTF across the line and the image circle for the sensor line. For an area lens, ask for the corner MTF and the distortion at the page corners. The MTF guide explains how to read the curve, and the machine vision lens selection guide covers the five inputs.
Lighting should be even across the page and free of specular glare from the paper or a glass platen. A diffuse bar or a dome over the page reduces shadows from curl. If the page is glossy, a polarizer can help, but it also reduces the light; test the OCR result, not just the visual image. A line-scan light must be uniform along the line and synchronized with the exposure.
Image a grid target that covers the full page, with lines at the edges and corners. Measure the positional error at the corners relative to the center, and compare it with the budget. Then image a real OCR page with small text at the edges, and run the OCR engine you will use in production. Record the character accuracy at the center and the corners, and repeat at the start and end of a shift.
Include a page with a slight curl and a page with a fold, because those are the pages that fail in production. If the OCR accuracy at the edge is lower than the center, check the lens distortion, the focus, and the illumination in that order. The smear decision pack is a useful cross-check when the page moves and the image stretches along the transport.
There is no universal number. Derive it from the smallest character stroke and the OCR engine’s tolerance at the page edge, then leave margin for paper curl and alignment. Test with your engine and your page.
It is a common standard for printed documents. The result depends on the font size, the contrast, the distortion, and the OCR engine. A clean 300 dpi page is usually better than a distorted 600 dpi page.
For a moving page, line scan is a good fit. For a flatbed or platen, an area camera is simpler. The lens choice follows the camera and the page path.
You can, but the correction interpolates pixels and can soften the edge characters. If the lens is close to the budget, calibration is useful; if it is far outside, fix the optics or the field of view.
It can be lens field curvature, a page that is not flat, or illumination falloff. Check the focus at the edge with a flat target before changing the lens.
If you are building a document capture station and need a line-scan lens with a known distortion and image circle for your sensor line, start with our line-scan lenses and send the page, camera, and OCR data. The lens is one part of the chain; the page path and the line rate are the other two.
Related reading: Line Scan Lens Selection: Image Circle Math for 4K, 8K and 16K Sensors, Line Scan Camera vs Area Scan: How to Choose for Your Inspection