Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Document image dewarping script on Python 3.5

I'm trying to run the following script on windows: https://github.com/mzucker/page_dewarp.

It requires scipy, numpy, pillow and OpenCV.

I have no experience with python, I have downloaded WinPython (http://winpython.github.io/), which includes scipy, numpy and pillow and also installed OpenCV 3.2 for Python 3.5 following the instructions found here: https://pythonarena.wordpress.com/2016/03/07/scientific-python-on-windows/.

Now I'm trying to run the script using the command page_dewarp.py IMAGE1, as indicated by the developer, but it results in a syntax error.

Could you explain if there is something missing or wrong and, eventually, how to do to make it work properly?

Thank you!

like image 636
qwertxyz Avatar asked Jun 11 '26 06:06

qwertxyz


1 Answers

page_dewarp.py contains print statements, so it will not work with Python 3.

like image 114
Warren Weckesser Avatar answered Jun 14 '26 07:06

Warren Weckesser



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!