Page dewarping and thresholding using a "cubic sheet" model - see full writeup at https://mzucker.github.io/2016/08/15/page-dewarping.html
Requirements:
Usage:
page_dewarp.py IMAGE1 [IMAGE2 ...]