Tesseract 3.01
tesseract::TableRecognizer Class Reference

#include <tablerecog.h>

List of all members.

Public Member Functions

 TableRecognizer ()
 ~TableRecognizer ()
void Init ()
void set_text_grid (ColPartitionGrid *text)
void set_line_grid (ColPartitionGrid *lines)
void set_min_height (int height)
void set_min_width (int width)
void set_max_text_height (int height)
StructuredTableRecognizeTable (const TBOX &guess_box)

Protected Member Functions

bool RecognizeLinedTable (const TBOX &guess_box, StructuredTable *table)
bool HasSignificantLines (const TBOX &guess)
bool FindLinesBoundingBox (TBOX *bounding_box)
bool FindLinesBoundingBoxIteration (TBOX *bounding_box)
bool RecognizeWhitespacedTable (const TBOX &guess_box, StructuredTable *table)
int NextHorizontalSplit (int left, int right, int y, bool top_to_bottom)

Static Protected Member Functions

static bool IsWeakTableRow (StructuredTable *table, int row)

Protected Attributes

ColPartitionGridtext_grid_
ColPartitionGridline_grid_
int min_height_
int min_width_
int max_text_height_

Constructor & Destructor Documentation

tesseract::TableRecognizer::TableRecognizer ( )
tesseract::TableRecognizer::~TableRecognizer ( )

Member Function Documentation

bool tesseract::TableRecognizer::FindLinesBoundingBox ( TBOX bounding_box) [protected]
bool tesseract::TableRecognizer::FindLinesBoundingBoxIteration ( TBOX bounding_box) [protected]
bool tesseract::TableRecognizer::HasSignificantLines ( const TBOX guess) [protected]
void tesseract::TableRecognizer::Init ( )
bool tesseract::TableRecognizer::IsWeakTableRow ( StructuredTable table,
int  row 
) [static, protected]
int tesseract::TableRecognizer::NextHorizontalSplit ( int  left,
int  right,
int  y,
bool  top_to_bottom 
) [protected]
bool tesseract::TableRecognizer::RecognizeLinedTable ( const TBOX guess_box,
StructuredTable table 
) [protected]
StructuredTable * tesseract::TableRecognizer::RecognizeTable ( const TBOX guess_box)
bool tesseract::TableRecognizer::RecognizeWhitespacedTable ( const TBOX guess_box,
StructuredTable table 
) [protected]
void tesseract::TableRecognizer::set_line_grid ( ColPartitionGrid lines)
void tesseract::TableRecognizer::set_max_text_height ( int  height)
void tesseract::TableRecognizer::set_min_height ( int  height)
void tesseract::TableRecognizer::set_min_width ( int  width)
void tesseract::TableRecognizer::set_text_grid ( ColPartitionGrid text)

Member Data Documentation


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines