OCR-D / ocrd_tesserocr

Run tesseract with the tesserocr bindings with @OCR-D's interfaces
MIT License
38 stars 11 forks source link

Set path to TESSDATA_PREFIX for get_languages #130

Closed kba closed 4 years ago

kba commented 4 years ago

Wraps tesserocr.get_languages with path set to TESSDATA_PREFIX.

bertsky commented 4 years ago

I don't know about the Dockerhub CI failure, and cannot get access to details

kba commented 4 years ago

dockerhub is apparently having issues today, I'm having a hard time logging in all day. will investigate later.

codecov[bot] commented 4 years ago

Codecov Report

Merging #130 into master will increase coverage by 0.12%. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #130      +/-   ##
==========================================
+ Coverage   36.15%   36.28%   +0.12%     
==========================================
  Files           9        9              
  Lines         993      995       +2     
  Branches      219      219              
==========================================
+ Hits          359      361       +2     
  Misses        567      567              
  Partials       67       67              
Impacted Files Coverage Δ
ocrd_tesserocr/recognize.py 46.94% <100.00%> (+0.34%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 9d2253e...0c614e3. Read the comment docs.

kba commented 4 years ago

Dockerfile did not add ocrd-tool.json which lead to

    ERROR: Command errored out with exit status 1:                                                                                                
     command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-mg9yuapk/setup.py'"'"'; __file__='"'"'/
tmp/pip-req-build-mg9yuapk/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f
.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-ergrtt4c                                        
         cwd: /tmp/pip-req-build-mg9yuapk/                                                                                                        
    Complete output (5 lines):                                                                                                                    
    Traceback (most recent call last):                                                                                                            
      File "<string>", line 1, in <module>                                                                                    
      File "/tmp/pip-req-build-mg9yuapk/setup.py", line 18, in <module>                                                                           
        with open('./ocrd-tool.json', 'r') as f:                                                                                        
    FileNotFoundError: [Errno 2] No such file or directory: './ocrd-tool.json'                                                                    
    ----------------------------------------                                                                                                      
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.                                   
Makefile:75: recipe for target 'install' failed

Fixed now.