Did you manage to solve the assertion problem? I'm getting the same output..


Den onsdagen den 23:e januari 2013 kl. 11:01:17 UTC+1 skrev Daniel Dalton:
>
> On Tue, Jan 22, 2013 at 12:32:59PM +0530, Sriranga(78yrsold) wrote: 
> >    Have you checked with the "Issues"� of 
> >    [1]http://code.google.com/p/ocropus/issues/list ? 
> >    Presumed� you are testing with English lang or else?� Better to post 
> under 
> >    "issues" with attached sample image. 
>
> Thanks. Ok, I solved that first problem. Now I either get a blank 
> output.html file for some images or assertion errors in other 
> cases. I'll examine that page again though. 
> Here are the assertion errors: 
> daniel@vostro-3350:~/Documents$ ocropus-recognize-book letter_monash.png 
> -o output1.html 
> book directory ./_book-008701 
> letter_monash.png -> ./_book-008701/0001.png 
>
> === preprocess 
>
> # ocropus-nlbin ./_book-008701/????.png 
> === ./_book-008701/0001.png 1 
> estimating skew angle 
> estimating thresholds 
> rescaling 
> ./_book-008701/0001.png lo-hi (0.00 1.00) angle  0.0  no-normalization 
> writing 
>
> === page segmentation 
>
> # ocropus-gpageseg ./_book-008701/????.bin.png 
> ./_book-008701/0001.bin.png 
> ./_book-008701/0001.bin.png: scale (5.91608) less than --minscale; 
> skipping 
>
> === line recognition 
>
> # ocropus-lattices ./_book-008701/????/??????.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-008701/????/??????.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 
>
>
> Thanks for your help. 
>
> Dan 
>

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


Reply via email to