tesseract 5.2.0
|
Public Member Functions | |
void | InjectCellY (int y) |
void | InjectCellX (int x) |
void | ExpectCellX (int x_min, int second, int add, int almost_done, int x_max) |
void | ExpectSortedX () |
int | CountHorizontalIntersections (int y) |
int | CountVerticalIntersections (int x) |
bool | FindLinedStructure () |
void | FindWhitespacedColumns () |
bool | FindWhitespacedStructure () |
bool | VerifyLinedTableCells () |
![]() | |
StructuredTable () | |
~StructuredTable ()=default | |
void | Init () |
void | set_text_grid (ColPartitionGrid *text) |
void | set_line_grid (ColPartitionGrid *lines) |
void | set_max_text_height (int height) |
bool | is_lined () const |
unsigned | row_count () const |
unsigned | column_count () const |
unsigned | cell_count () const |
void | set_bounding_box (const TBOX &box) |
const TBOX & | bounding_box () const |
int | median_cell_height () |
int | median_cell_width () |
int | row_height (unsigned row) const |
int | column_width (unsigned column) const |
int | space_above () const |
int | space_below () const |
bool | FindLinedStructure () |
bool | FindWhitespacedStructure () |
bool | DoesPartitionFit (const ColPartition &part) const |
int | CountFilledCells () |
int | CountFilledCellsInRow (int row) |
int | CountFilledCellsInColumn (int column) |
int | CountFilledCells (unsigned row_start, unsigned row_end, unsigned column_start, unsigned column_end) |
bool | VerifyRowFilled (int row) |
double | CalculateCellFilledPercentage (unsigned row, unsigned column) |
void | Display (ScrollView *window, ScrollView::Color color) |
Additional Inherited Members | |
![]() | |
void | ClearStructure () |
bool | VerifyLinedTableCells () |
bool | VerifyWhitespacedTable () |
void | FindWhitespacedColumns () |
void | FindWhitespacedRows () |
void | CalculateMargins () |
void | UpdateMargins (ColPartitionGrid *grid) |
int | FindVerticalMargin (ColPartitionGrid *grid, int start_x, bool decrease) const |
int | FindHorizontalMargin (ColPartitionGrid *grid, int start_y, bool decrease) const |
void | CalculateStats () |
void | AbsorbNearbyLines () |
int | CountVerticalIntersections (int x) |
int | CountHorizontalIntersections (int y) |
int | CountPartitions (const TBOX &box) |
![]() | |
static void | FindCellSplitLocations (const std::vector< int > &min_list, const std::vector< int > &max_list, int max_merged, std::vector< int > *locations) |
![]() | |
ColPartitionGrid * | text_grid_ |
ColPartitionGrid * | line_grid_ |
TBOX | bounding_box_ |
std::vector< int > | cell_x_ |
std::vector< int > | cell_y_ |
bool | is_lined_ |
int | space_above_ |
int | space_below_ |
int | space_left_ |
int | space_right_ |
int | median_cell_height_ |
int | median_cell_width_ |
int | max_text_height_ |
Definition at line 31 of file tablerecog_test.cc.
int tesseract::StructuredTable::CountHorizontalIntersections | ( | int | y | ) |
Definition at line 221 of file tablerecog.cpp.
int tesseract::StructuredTable::CountVerticalIntersections | ( | int | x | ) |
Definition at line 220 of file tablerecog.cpp.
|
inline |
Definition at line 49 of file tablerecog_test.cc.
|
inline |
bool tesseract::StructuredTable::FindLinedStructure | ( | ) |
Definition at line 105 of file tablerecog.cpp.
void tesseract::StructuredTable::FindWhitespacedColumns | ( | ) |
Definition at line 160 of file tablerecog.cpp.
bool tesseract::StructuredTable::FindWhitespacedStructure | ( | ) |
Definition at line 110 of file tablerecog.cpp.
|
inline |
Definition at line 44 of file tablerecog_test.cc.
|
inline |
Definition at line 40 of file tablerecog_test.cc.
bool tesseract::StructuredTable::VerifyLinedTableCells | ( | ) |
Definition at line 148 of file tablerecog.cpp.