Added requirements.txt to state a set of libraries that are up to date and work (at least on my Mac, with MacOS 10.15.4 Catalina)
Fixed floating-point vs. int division issues that changed when using Python 3
Replaced hard-coded constant in RANSAC with 50% of all samples + 1 and subset for finding model
I created a new conda environment (with Python 3.7) for testing this. With the exception of numpy (which had to be installed with conda install numpy, you should be able to run pip install -r requirements.txt to install all necessary packages and perform page dewarping and binarization with Python 3.7. Other functionality than dewarping and binarization has not been tested.
I'm using the script with python batch.py -f IMG_0118.PNG --dewarp . Might be interesting for #8.
Upgraded to Python 3.7 for page dewarping:
I created a new conda environment (with Python 3.7) for testing this. With the exception of numpy (which had to be installed with
conda install numpy
, you should be able to runpip install -r requirements.txt
to install all necessary packages and perform page dewarping and binarization with Python 3.7. Other functionality than dewarping and binarization has not been tested.I'm using the script with
python batch.py -f IMG_0118.PNG --dewarp .
Might be interesting for #8.