All projects ·

Smart Document Scanner in Python

A real-time, local Python computer vision pipeline and interactive scanner studio using OpenCV, NumPy, and local OCR.

A real-time, local Python computer vision pipeline and interactive scanner studio using OpenCV, NumPy, and local OCR. Automatically detects document boundaries, orders quadrilateral corners clockwise, flattens slanted perspective distortions, crops desk backgrounds, cleans readability using adaptive thresholding, extracts structured text via OCR, and compiles multi-page sessions into consolidated PDFs.

Built with: Python 3.12, OpenCV, NumPy, Pillow, Douglas-Peucker Polygon Approximation, Homography Perspective Transform, Four-Corner Coordinate Ordering, Adaptive Gaussian Thresholding, Local On-Device OCR, Multi-Page Session Management, Consolidated PDF Compilation, HTML5 / Canvas / Vanilla JS

Open the live demo

Have something like this built