tesseract
5.0.0-alpha-619-ge9db
|
Go to the documentation of this file.
19 #ifndef TESSERACT_TEXTORD_TABLEFIND_H_
20 #define TESSERACT_TEXTORD_TABLEFIND_H_
37 class ColPartitionSet;
56 bounding_box_.set_top(y);
60 bounding_box_.set_bottom(y);
64 bounding_box_.set_left(x);
68 bounding_box_.set_right(x);
72 bounding_box_ = other;
76 return num_table_cells_;
85 return num_text_cells_;
105 void InsertBox(
const TBOX& other);
109 int num_table_cells_;
144 void Init(
int grid_size,
const ICOORD& bottom_left,
const ICOORD& top_right);
281 ColSegment_LIST *col_segments);
285 ColSegment_LIST *col_segments);
315 ColSegment_LIST *table_regions);
338 const TBOX& search_range,
429 #endif // TESSERACT_TEXTORD_TABLEFIND_H_
void InsertImagePartition(ColPartition *part)
void FilterHeaderAndFooter()
void GroupColumnBlocks(ColSegment_LIST *current_segments, ColSegment_LIST *col_segments)
void set_global_median_xheight(int xheight)
void set_resolution(int resolution)
void InsertFragmentedTextPartition(ColPartition *part)
void DisplayColSegmentGrid(ScrollView *win, ColSegmentGrid *grid, ScrollView::Color color)
bool left_to_right_language_
ColSegmentGrid table_grid_
void GridMergeColumnBlocks()
BBGrid< ColSegment, ColSegment_CLIST, ColSegment_C_IT > ColSegmentGrid
void set_global_median_ledding(int ledding)
void set_num_text_cells(int n)
bool AllowBlob(const BLOBNBOX &blob) const
std::function< bool(int)> WidthCallback
void DisplayColPartitionConnections(ScrollView *win, ColPartitionGrid *grid, ScrollView::Color default_color)
int get_num_text_cells() const
void set_global_median_blob_width(int width)
void DisplayColSegments(ScrollView *win, ColSegment_LIST *cols, ScrollView::Color color)
bool HasLeaderAdjacent(const ColPartition &part)
void AdjustTableBoundaries()
void set_bounding_box(const TBOX &other)
bool ConsecutiveBoxes(const TBOX &b1, const TBOX &b2)
void InsertLeaderPartition(ColPartition *part)
void SplitAndInsertFragmentedTextPartition(ColPartition *part)
const ICOORD & bleft() const
#define ELISTIZEH(CLASSNAME)
void IncludeLeftOutColumnHeaders(TBOX *table_box)
bool AllowTextPartition(const ColPartition &part) const
const ICOORD & tright() const
void FilterParagraphEndings()
ColPartitionGrid leader_and_ruling_grid_
void GrowTableToIncludePartials(const TBOX &table_box, const TBOX &search_range, TBOX *result_box)
void InsertRulingPartition(ColPartition *part)
void MarkPartitionsUsingLocalInformation()
ColPartitionGrid clean_part_grid_
CLISTIZEH(STRING) CLISTIZE(STRING) namespace tesseract
void GetTableColumns(ColSegment_LIST *table_columns)
void DeleteSingleColumnTables()
bool HasWideOrNoInterWordGap(ColPartition *part) const
void GridMergeTableRegions()
void GrowTableBox(const TBOX &table_box, TBOX *result_box)
void set_num_table_cells(int n)
void GrowTableToIncludeLines(const TBOX &table_box, const TBOX &search_range, TBOX *result_box)
ColSegmentGrid col_seg_grid_
void InsertCleanPartitions(ColPartitionGrid *grid, TO_BLOCK *block)
bool HLineBelongsToTable(const ColPartition &part, const TBOX &table_box)
void SetVerticalSpacing(ColPartition *part)
void set_left_to_right_language(bool order)
void SetColumnsType(ColSegment_LIST *col_segments)
int global_median_blob_width_
void MarkTablePartitions()
void SmoothTablePartitionRuns()
void Init(int grid_size, const ICOORD &bottom_left, const ICOORD &top_right)
void DisplayColPartitions(ScrollView *win, ColPartitionGrid *grid, ScrollView::Color text_color, ScrollView::Color table_color)
static void SetPartitionSpacings(ColPartitionGrid *grid, ColPartitionSet **all_columns)
void SetGlobalSpacings(ColPartitionGrid *grid)
const TBOX & bounding_box() const
int global_median_ledding_
int global_median_xheight_
ColPartitionGrid fragmented_text_grid_
void InsertTextPartition(ColPartition *part)
void MoveColSegmentsToGrid(ColSegment_LIST *segments, ColSegmentGrid *col_seg_grid)
ScrollView * MakeWindow(int x, int y, const char *window_name)
bool BelongToOneTable(const TBOX &box1, const TBOX &box2)
bool GapInXProjection(int *xprojection, int length)
void MakeTableBlocks(ColPartitionGrid *grid, ColPartitionSet **columns, WidthCallback width_cb)
void LocateTables(ColPartitionGrid *grid, ColPartitionSet **columns, WidthCallback width_cb, const FCOORD &reskew)
void InitializePartitions(ColPartitionSet **all_columns)
void GetTableRegions(ColSegment_LIST *table_columns, ColSegment_LIST *table_regions)
void GetColumnBlocks(ColPartitionSet **columns, ColSegment_LIST *col_segments)
int get_num_table_cells() const