module based on deskew https://github.com/kakul/Alyn
dewarp https://github.com/mzucker/page_dewarp
textcleaner http://www.fmwconcepts.com/imagemagick/textcleaner/index.php
To run, :
virtualenv -p python2.7 venv
. venv/bin/activate
sh text_prep.sh