Types of Document Photo Alignment Problems
There are two distinct alignment issues that affect document photography: rotation (the document is upright but rotated clockwise or counterclockwise in the frame) and perspective distortion (the camera is angled relative to the document plane). DocuScanPro corrects both simultaneously.
Rotation vs. Perspective Distortion
- Rotation: Paper laid flat but photo taken at a slight angle — produces a rotated rectangle
- Skew/Perspective: Paper flat but camera angled overhead — produces a trapezoid shape
- Combined: Both issues present simultaneously — most common in handheld photography
Most of these photos start on a phone — the guide on how to scan documents with iPhone covers the three capture routes and which one leaves you with the least to fix afterwards.
Automatic Straightening with DocuScanPro
DocuScanPro detects document corners using contour detection, computes the rotation angle, and applies a combined affine and perspective transform. The output is a flat, upright, rectangular document image regardless of the original capture angle.
How to Straighten Your Document
- Navigate to docuscan.pro/editor
- Upload your tilted or skewed document photo
- The AI automatically detects and straightens the document
- The output image is rectangular, level, and ready to use
- Download the result — first 3 are free in HD quality
When Automatic Straightening May Not Work Perfectly
Edge detection relies on contrast between the document and its background. Low-contrast situations — white paper on a white desk, or very dark paper on a dark surface — may cause imprecise corner detection. For best results, always place your document on a contrasting background before photographing.