Simple Document Scanner made with python and openCV
- Take original image and resize it.
- Perform Gaussian Blur to smooth the image.
- Apply Canny Edge Detection technique.
- Apply Contour Detection to detect largest contour/boundary.
- Apply Perspective Transform and Adaptive Thresholding.
python scan.py --image <path-to-your-file>
My sincere thanks to the article and the author here : https://www.pyimagesearch.com/2014/09/01/build-kick-ass-mobile-document-scanner-just-5-minutes/. His article really ease the process and is very well explained.