[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-ocrad] A bug discovered
From: |
Georgi Demirchev |
Subject: |
[Bug-ocrad] A bug discovered |
Date: |
Fri, 2 Sep 2005 14:50:28 +0300 |
Dear Mr. Diaz,
Your application is great.
In function:
int Bitmap::analyse_layout( std::vector< Rectangle > & rv,
const int layout_level ) const throw()
{
rv.clear();
if( layout_level >= 1 && layout_level <= 2 &&
left() == 0 && top() == 0 && width() > 200 && height() > 200 )
{
Bitmap reduced( *this, 10, 9 );
find_columns( reduced.data, reduced, reduced, rv, layout_level >= 2 );
---to be removed
if( rv.size() > 1 )
to be removed---
for( unsigned int i = 0; i < rv.size(); ++i )
rv[i].enlarge( 10 );
}
if( rv.size() == 0 ) rv.push_back( *this );
return rv.size();
The above if( rv.size() > 1 ) check causes the algoritm to behave
improperly when there is only 1 block in the page.
Regards,
Georgi
- [Bug-ocrad] A bug discovered,
Georgi Demirchev <=