Running results in OCR-D
See original GitHub issueHello again. 😃
In this closed issue , @kba kindly recommended the following workflow to use eynollah results in an OCR-D workflow:
ocrd workspace init
ocrd workspace add -G IMG -i IMG_1 -g page1 image1.png
ocrd workspace add -G SEG -i SEG_1 -g page1 image1.xml
ocrd-tesserocr-recognize -P segmentation_level none -P textequiv_level line
I’m having some challenges implementing this. It may just have to do with folders and paths, or maybe some “blanks” I failed to fill in…
Everything goes smoothly until the last line. (I believe it wants an input parameter?) The output is:
Input fileGrp[@USE='INPUT'] not in METS!
If I try adding -I SEG
, output includes the following:
Traceback (most recent call last):
File "/home/scott/src/github/OCR-D/ocrd_all/venv/lib/python3.6/site-packages/ocrd/workspace.py", line 111, in download_file
raise Exception("Not already downloaded, moving on")
Exception: Not already downloaded, moving on
and
FileNotFoundError: File path passed as 'url' to download_to_directory does not exist: C:/Users/Scott/Desktop/Python2/K/eyn_test2/F073r.jpg
and
FileNotFoundError: File path passed as 'url' to download_to_directory does not exist: /mnt/c/users/scott/desktop/python2/k/eyn_test2/C:/Users/Scott/Desktop/Python2/K/eyn_test2/F073r.jpg
and
Exception: Already tried prepending baseurl '/mnt/c/users/scott/desktop/python2/k/eyn_test2'. Cannot retrieve '/mnt/c/users/scott/desktop/python2/k/eyn_test2/C:/Users/Scott/Desktop/Python2/K/eyn_test2/F073r.jpg'
If I try adding -I SEG_1
, the output is:
Input fileGrp[@USE='SEG_1'] not in METS!
Any suggestions welcome and appreciated!
Issue Analytics
- State:
- Created 3 years ago
- Comments:14 (7 by maintainers)
I think this issue can be closed, now that OCR-D support is in.
Not yet, I was flummoxed by an issue with the reading order in my refactoring, solved yesterday and now back on the bindings. I’ll update this issue once there is something testable. Thanks for checking in.