#include <tablerecog.h>
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) |
StructuredTable * | RecognizeTable (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 | |
ColPartitionGrid * | text_grid_ |
ColPartitionGrid * | line_grid_ |
int | min_height_ |
int | min_width_ |
int | max_text_height_ |
tesseract::TableRecognizer::TableRecognizer | ( | ) |
tesseract::TableRecognizer::~TableRecognizer | ( | ) |
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 | ) |
ColPartitionGrid* tesseract::TableRecognizer::line_grid_ [protected] |
int tesseract::TableRecognizer::max_text_height_ [protected] |
int tesseract::TableRecognizer::min_height_ [protected] |
int tesseract::TableRecognizer::min_width_ [protected] |
ColPartitionGrid* tesseract::TableRecognizer::text_grid_ [protected] |