question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Running results in OCR-D

See original GitHub issue

Hello 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:closed
  • Created 3 years ago
  • Comments:14 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
mikegerbercommented, Apr 23, 2021

I think this issue can be closed, now that OCR-D support is in.

1reaction
kbacommented, Mar 10, 2021

Hi, @kba . I imagine you have plenty going on. I just wanted to make a friendly check-in and see if perhaps the OCR-D bindings are in place.

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

2022 OCR World Championships - Race Results
2022 OCR World Championships - 3K Championship - Race Results. Hits : 2849. OCR World Championships Logo 2. Results Button.
Read more >
OCR OVERLOAD
Elite athletes must have 100% obstacle completion to be in the running for any points awarded to the Florida Championship Series between Hildervat...
Read more >
How to Smash an OCR “Short Course”
How to run your best spartan race sprint. ... Intervals from the 2-5 minute range should run at a “sub 5k” pace will...
Read more >
5 Good Reasons To Change The Way You Run OCR
Having discussions with many of the best athletes who run OCR, ... They found that if a runner increases stride frequency by 5%...
Read more >
Making The Jump: From Running To Obstacle Course Racing
Rutz has one more piece of advice for runners eyeing an OCR race. ... results, Valby's routine must have approximated specific running ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found