[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-ocrad] bad parameter building a Rectangle
From: |
Tilman Hausherr |
Subject: |
[Bug-ocrad] bad parameter building a Rectangle |
Date: |
Thu, 12 Aug 2010 11:02:21 +0200 (CEST) |
Hello Antonio,
I get this:
bad parameter building a Rectangle
l = 742, t = 691, r = 741, b = 706
It happens both in Visual C++ and with gcc.
In Textline::recognize2(), in the segment
// separate merged characters recognized by recognize1
in the loop
for( int g = 1; g < c.guesses(); ++g )
the error happens at
Rectangle re( left, b.top(), c.guess( g ).value, b.bottom() );
g is 2
c.gv[0] code 0, value 738
c.gv[1] code 102, value 741
c.gv[2] code 105, value 741
Btw, when g is 1, these are the values:
l = 738, t = 691, r = 741, b = 706
so when you do
left = re.right() + 1;
at the end of the loop, left gets too high.
The bitmap of blob b has 16 rows. The rows are all 0,0,0,1.
I can't send you the image, sadly, because as soon as I remove anything
meaningful, the error no longer happens. But I can offer you more trace
output if needed.
Tilman
- [Bug-ocrad] bad parameter building a Rectangle,
Tilman Hausherr <=