Document capture in OpenCV 5: page detection, perspective dewarp, deskew, and a quality gate before OCR
November 30, 2026 · SentientSight Team
Turn a phone photo of a page into a flat, upright, evenly lit image: find the page quad, warp it with a known output size, deskew, flatten illumination, and reject captures that would poison OCR.
Read more