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 mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-ocrad