#include <tablefind.h>
Definition at line 39 of file tablefind.h.
◆ ColSegment()
tesseract::ColSegment::ColSegment |
( |
| ) |
|
Definition at line 2111 of file tablefind.cpp.
2113 num_table_cells_(0),
2114 num_text_cells_(0),
◆ ~ColSegment()
tesseract::ColSegment::~ColSegment |
( |
| ) |
|
|
default |
◆ bounding_box()
const TBOX & tesseract::ColSegment::bounding_box |
( |
| ) |
const |
|
inline |
Definition at line 45 of file tablefind.h.
45 {
46 return bounding_box_;
47 }
◆ BoxColor()
Definition at line 2118 of file tablefind.cpp.
2118 {
2124 };
2125 return kBoxColors[type_];
2126}
◆ get_num_table_cells()
int tesseract::ColSegment::get_num_table_cells |
( |
| ) |
const |
|
inline |
Definition at line 69 of file tablefind.h.
69 {
70 return num_table_cells_;
71 }
◆ get_num_text_cells()
int tesseract::ColSegment::get_num_text_cells |
( |
| ) |
const |
|
inline |
Definition at line 78 of file tablefind.h.
78 {
79 return num_text_cells_;
80 }
◆ InsertBox()
void tesseract::ColSegment::InsertBox |
( |
const TBOX & |
other | ) |
|
Definition at line 2129 of file tablefind.cpp.
2129 {
2131}
TBOX bounding_union(const TBOX &box) const
◆ set_bottom()
void tesseract::ColSegment::set_bottom |
( |
int |
y | ) |
|
|
inline |
◆ set_bounding_box()
void tesseract::ColSegment::set_bounding_box |
( |
const TBOX & |
other | ) |
|
|
inline |
Definition at line 65 of file tablefind.h.
65 {
66 bounding_box_ = other;
67 }
◆ set_left()
void tesseract::ColSegment::set_left |
( |
int |
x | ) |
|
|
inline |
◆ set_num_table_cells()
void tesseract::ColSegment::set_num_table_cells |
( |
int |
n | ) |
|
|
inline |
Definition at line 74 of file tablefind.h.
74 {
75 num_table_cells_ = n;
76 }
◆ set_num_text_cells()
void tesseract::ColSegment::set_num_text_cells |
( |
int |
n | ) |
|
|
inline |
Definition at line 83 of file tablefind.h.
83 {
84 num_text_cells_ = n;
85 }
◆ set_right()
void tesseract::ColSegment::set_right |
( |
int |
x | ) |
|
|
inline |
◆ set_top()
void tesseract::ColSegment::set_top |
( |
int |
y | ) |
|
|
inline |
◆ set_type()
void tesseract::ColSegment::set_type |
( |
| ) |
|
Definition at line 2135 of file tablefind.cpp.
2135 {
2138 } else if (num_text_cells_ > num_table_cells_) {
2140 } else {
2142 }
2143}
const double kTableColumnThreshold
◆ type()
Definition at line 87 of file tablefind.h.
87 {
88 return type_;
89 }
The documentation for this class was generated from the following files:
- /media/home/debian/src/github/tesseract-ocr/tesseract/src/textord/tablefind.h
- /media/home/debian/src/github/tesseract-ocr/tesseract/src/textord/tablefind.cpp