ocropus-archive / DUP-ocropy

Python-based tools for document analysis and OCR
Apache License 2.0
3.41k stars 590 forks source link

EOFError in return unpickler.load() #311

Closed ricardobnjunior closed 6 years ago

ricardobnjunior commented 6 years ago

Expected Behavior

Dear @tmbdev , I am having an error when I try to run the archive ocropus-rpred.py on Windows. I downloaded the archive \en-default.pyrnn.gz, and I send by parse the directory where they are the images (tests\testpage).

Current Behavior

C:\Users\suporte\Desktop\OCR_TEST\ocropy-master>python2 ocropus-rpred.py --files=tests\testpage INFO: INFO: ########## ocropus-rpred.py --files=tests\testpage INFO: INFO: #inputs: 1 INFO: en-default.pyrnn.gz loading object ..\en-default.pyrnn.gz Traceback (most recent call last): File "ocropus-rpred.py", line 121, in network = ocrolib.load_object(args.model,verbose=1) File "C:\Users\suporte\Desktop\OCR_TEST\ocropy-master\ocrolib\common.py", line 446, in load_object return unpickler.load() EOFError

Possible Solution

Steps to Reproduce (for bugs)

1. image

2. 3. 4.

Your Environment

kba commented 6 years ago

I recommend running ocropy on linux in a virtual machine, but see https://github.com/tmbdev/ocropy/issues/12. Might be gunzip is not in your path, maybe try @csteelatgburg's advice.

ricardobnjunior commented 6 years ago

Thank you. I solved the problem with this answer.