Page dewarping and thresholding using a "cubic sheet" model - see full writeup at https://mzucker.github.io/2016/08/15/page-dewarping.html
Requirements: (Outdated - To be Updated)
- scipy
- OpenCV 3.0 or greater
- Image module from PIL or Pillow
Usage:
page_dewarp.dewarp(<img_path or img array - np.uint8>)