ocropus-gpageseg is telling you that the characters in the image are too 
small.  These are not 10pt characters at 300dpi or larger.

As a result, it doesn't find any text lines.  And that's why the next step 
doesn't have any lines to work on.

OCRopus 0.6 works down to about 10pt at 300dpi.  OCRopus 0.7 will work at 
lower resolutions.

If you want to test with generated test, be sure to generate reasonably 
sized text or scale up the image.

Tom

On Friday, August 24, 2012 3:12:36 AM UTC-7, carolin wrote:
>
> Hi,
>
> we installed ocropus 0.6 on an virtual Ubuntu 12.04 maschine according to 
> the instructrions on your web page and got the following assertion on one 
> of our files when using the ocropus-recognize-book script:
>
> carolin@carolin-VirtualBox:~/ocrinput$ ocropus-recognize-book 
> testbild2.png -o output.html
> book directory ./_book-003266
> testbild2.png -> ./_book-003266/0001.png
>
> === preprocess
>
> # ocropus-nlbin ./_book-003266/????.png
> === ./_book-003266/0001.png 1
> flattening
> estimating skew angle
> estimating thresholds
> rescaling
> ./_book-003266/0001.png lo-hi (0.05 1.00) angle  0.0 
> writing
>
> === page segmentation
>
> # ocropus-gpageseg ./_book-003266/????.bin.png
> ./_book-003266/0001.bin.png
> ./_book-003266/0001.bin.png: scale (6.9282) less than --minscale; skipping
>
> === line recognition
>
> # ocropus-lattices ./_book-003266/????/??????.bin.png
> Traceback (most recent call last):
>   File "/usr/local/bin/ocropus-lattices", line 56, in <module>
>     args.files = ocrolib.glob_all(args.files)
>   File "/usr/local/lib/python2.7/dist-packages/ocrolib/toplevel.py", line 
> 204, in argument_checks
>     result = f(*args,**kw)
>   File "/usr/local/lib/python2.7/dist-packages/ocrolib/common.py", line 
> 509, in glob_all
>     raise Exception("%s: expansion did not yield any files"%arg)
> Exception: ./_book-003266/????/??????.bin.png: expansion did not yield any 
> files
> Traceback (most recent call last):
>   File "/usr/local/bin/ocropus-recognize-book", line 79, in <module>
>     run(args.linerec,book+"/????/??????.bin.png",m=args.model)
>   File "/usr/local/bin/ocropus-recognize-book", line 57, in run
>     assert subprocess.call(args)==0
> AssertionError
>
> We attached the sample file which we used. Is there any obvious thing that 
> we are doing wrong?
>
> Best,
>
> Carolin
>

-- 
You received this message because you are subscribed to the Google Groups 
"ocropus" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msg/ocropus/-/vot7LAWsL-QJ.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to