[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-ocrad] Re: Error recognising capital 'J'
From: |
Antonio Diaz Diaz |
Subject: |
Re: [Bug-ocrad] Re: Error recognising capital 'J' |
Date: |
Wed, 11 Jul 2007 20:30:40 +0200 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.7.11) Gecko/20050905 |
Here you have a quick fix. Just apply this patch to ocrad 0.17:
--- feats_test0.cc~ 2007-06-29 14:29:13.000000000 +0200
+++ feats_test0.cc 2007-07-11 20:16:59.000000000 +0200
@@ -155,7 +155,7 @@
return 0;
int row, col;
- if( 2 * lp[lp.pos(50)] >= b.width() ) col = b.hpos( 25 );
+ if( ( 2 * lp[lp.pos(50)] ) + 1 >= b.width() ) col = b.hpos( 25 );
else col = b.hpos( 75 );
row = b.seek_top( b.vcenter(), col );
if( row <= b.top() || ( row < b.vpos( 25 ) && b.escape_top( row, col
) ) )
Regards,
Antonio.