Ocropus Error report

132 views
Skip to first unread message

Dibyayan Chakraborty

unread,
May 25, 2013, 5:21:56 PM5/25/13
to ocr...@googlegroups.com
Hi,
I am new to ocropus and encountered the following problem.
I ran "ocropus-gpageseg" on output binary image of  "ocropus-nlbin".
But i am getting the following error report.

output/0001.bin.png
scale
16.5831239518
computing segmentation
computing column separators
computing lines
propagating labels
spreading labels
number of lines
60
finding reading order
writing lines
Traceback (most recent call last):
 
File "/usr/local/bin/ocropus-gpageseg", line 364, in <module>
    process1
((f,i+1))
 
File "/usr/local/bin/ocropus-gpageseg", line 344, in process1
    ocrolib
.write_page_segmentation("%s.pseg.png"%outputdir,segmentation)
 
File "/usr/local/lib/python2.7/dist-packages/ocrolib/toplevel.py", line 211, in argument_checks
   
raise e
ocrolib
.toplevel.CheckWarning:
CheckWarning for argument image of function <function write_page_segmentation at 0x273bde8>
<ndarray-2500180 (560, 698) int32 [0,65583]> of type <type 'numpy.ndarray'>: excpect a page image (larger than 600x600)(This can happen occasionally during normal operations and isn't necessarily a bug or problem.)


And there is no line written in the subfolder.
Please explain what is the meaning of this report ?


Will Strinz

unread,
Jun 5, 2013, 2:05:09 PM6/5/13
to ocr...@googlegroups.com
I'm having this problem too. I think it means your image isn't large enough to represent a page, ie the 560 in (560, 698) should be at least 600. I'm not sure how to override this though, or what other tool to use to process images that only represent part of a page.

Will

Dibyayan Chakraborty

unread,
Jun 5, 2013, 10:10:41 PM6/5/13
to ocr...@googlegroups.com
If that indeed is the case then perhaps scaling may be a way to increase the size. But I wonder if it is a bug or it is kept for some reason.


--
You received this message because you are subscribed to a topic in the Google Groups "ocropus" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ocropus/w1djIAccwlM/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to ocropus+u...@googlegroups.com.
To post to this group, send email to ocr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ocropus/6c09d288-2feb-4f3c-bd70-24967bfbc42d%40googlegroups.com?hl=en.

For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
With Regards
Dibyayan Chakraborty
Reply all
Reply to author
Forward
0 new messages