Problem with ocropus-recognize-book

51 views
Skip to first unread message

Angelica

unread,
Mar 1, 2013, 4:50:37 AM3/1/13
to ocr...@googlegroups.com
Hi,

When I'm trying to run the ocropus-recognixe-book command I get an AssertionError and I can't figure out why. OCRopus works fine when I'm running run_tests. I also looked at the run_test file and tried to do each stepa manually, but it doesn't work, it fails when I'm running ocropus-gpageseg. I tried some different images (including one of OCRopus' images) but same thing happens om each of the images.
This is the error output I get:

writing lines
Traceback (most recent call last):
  File "/usr/local/bin/ocropus-gpageseg", line 331, in <module>
    process1((f,i+1))
  File "/usr/local/bin/ocropus-gpageseg", line 307, in process1
    ocrolib.write_page_segmentation("%s.pseg.png"%outputdir,segmentation)
  File "/usr/local/lib/python2.7/dist-packages/ocrolib/toplevel.py", line 200, in argument_checks
    raise e
ocrolib.toplevel.CheckWarning
Traceback (most recent call last):
  File "/usr/local/bin/ocropus-recognize-book", line 76, in <module>
    run(args.pageseg,book+"/????.bin.png")
  File "/usr/local/bin/ocropus-recognize-book", line 57, in run
    assert subprocess.call(args)==0
AssertionError


Does anyone know what the problem is, and how I can get it to work?

//Angelica

Tom

unread,
Apr 10, 2013, 1:38:31 AM4/10/13
to ocr...@googlegroups.com
I think that probably means that there were no pages at all in the input. We got rid of the ocropus-recognize-book command in 0.7 because it's a lot of work to have it give good error messages. Just run ocropus-nlbin, ocropus-gpageseg, and ocropus-rpred individually, and it will generally be clear where the error is.

Tom
Reply all
Reply to author
Forward
0 new messages