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

Can it be used on Windows? #9

Closed
yzy1996 opened this issue Jun 4, 2018 · 3 comments
Closed

Can it be used on Windows? #9

yzy1996 opened this issue Jun 4, 2018 · 3 comments

Comments

@yzy1996
Copy link

yzy1996 commented Jun 4, 2018

I have try the command line on Windows, it does not work.

D:\MyGithub\ocrd-train-master>  make leptonica tesseract langdata
wget 'http://www.leptonica.org/source/leptonica-1.76.0.tar.gz'
process_begin: CreateProcess(NULL, wget http://www.leptonica.org/source/leptonica-1.76.0.tar.gz, ...) failed.
make (e=2):
Makefile:141: recipe for target 'leptonica-1.76.0.tar.gz' failed
make: *** [leptonica-1.76.0.tar.gz] Error 2

python generate_line_box.py -i "data/train/alexis_ruhe01_1852_0035_019.tif" -t "data/train/alexis_ruhe01_1852_0035_019.gt.txt" > "data/train/alexis_ruhe01_1852_0035_019.box"
Traceback (most recent call last):
  File "generate_line_box.py", line 26, in <module>
    im = Image.open(file(args.image, "r"))
NameError: name 'file' is not defined
Makefile:91: recipe for target 'data/train/alexis_ruhe01_1852_0035_019.box' failed
make: *** [data/train/alexis_ruhe01_1852_0035_019.box] Error 1
@kba
Copy link
Collaborator

kba commented Jun 4, 2018

We only develop for Ubuntu Linux at the moment. @UB-Mannheim maintains a Windows installer for tesseract 4. I'm not sure whether it bundles the training tools though.

You could try to compile this within cygwin or Win10's bash environment, not sure how compatible these are with native Linux though.

The first error is because you're missing wget in your path.

The second error is because file in Python 2 is mostly synonymous with open but is gone as a global keyword in Python 3 which you seem to be using. This we will fix, I'll open an issue.

@yzy1996
Copy link
Author

yzy1996 commented Jun 5, 2018

Thank you! I have tried with Ubuntu and it work well.

@kba
Copy link
Collaborator

kba commented Jul 27, 2018

At the moment, no plans for Windows support.

@kba kba closed this as completed Jul 27, 2018
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