Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Requirements not working #10

Closed
versae opened this issue Feb 9, 2021 · 4 comments
Closed

Requirements not working #10

versae opened this issue Feb 9, 2021 · 4 comments

Comments

@versae
Copy link

versae commented Feb 9, 2021

Hi,

Congrats on the work! I read the paper since I am involved in a mass digitization process right now and I have found that binarization has a huge impact on how well OCR performs. I was trying to put this project to work although it's a bit dated. I set up a virtualenv using Python 3.7.5 and installed the dependencies. Tensorflow 1.x is now deprecated so I had to install it using the 1.15.5 wheel in PyPI. I also tried several versions of Keras but none worked. Is there a way to make it work so I can use the binarize CLI to test my use case?

Thanks!

@ajgallego
Copy link
Owner

Dear @versae,

Sorry for the late reply.

In the project folder you have the files requirements.txt and requirements_demo.txt to install the requirements for training and for the demo, respectively. Within your virtual environment you can install them using:

pip install -r requirements.txt

The code has been tested with Python 2.7 and Python 3. In the root folder, you also have the "setup.py" script that installs all the code.

Kind regards

@versae
Copy link
Author

versae commented Feb 23, 2021 via email

@ajgallego
Copy link
Owner

Hi,

You can find the exact versions of the dependencies in an older version of the requirements file:

https://github.com/ajgallego/document-image-binarization/blob/646fb5277112fd9b04fd317d29398dca2a5287b8/requirements.txt

Cheers

@versae
Copy link
Author

versae commented Feb 24, 2021

Awesome, thank you!

@versae versae closed this as completed Feb 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants