tesseract v5.3.3.20231005
tesseract::StructuredTableTest Class Reference
Inheritance diagram for tesseract::StructuredTableTest:
tesseract::SharedTest testing::Test

Protected Member Functions

void SetUp () override
 
- Protected Member Functions inherited from tesseract::SharedTest
void SetUp () override
 
void TearDown () override
 
void InsertPartitions ()
 
void InsertPartition (int left, int bottom, int right, int top)
 
void InsertLines ()
 
void InsertHorizontalLine (int left, int right, int y)
 
void InsertVerticalLine (int x, int bottom, int top)
 
void InsertCellsInLines ()
 
- Protected Member Functions inherited from testing::Test
 Test ()
 
virtual void SetUp ()
 
virtual void TearDown ()
 

Protected Attributes

std::unique_ptr< TestableStructuredTabletable_
 
- Protected Attributes inherited from tesseract::SharedTest
TBOX line_box_
 
std::unique_ptr< ColPartitionGridtext_grid_
 
std::unique_ptr< ColPartitionGridline_grid_
 
ColPartition_LIST allocated_parts_
 

Additional Inherited Members

- Public Member Functions inherited from testing::Test
virtual ~Test ()
 
- Static Public Member Functions inherited from testing::Test
static void SetUpTestSuite ()
 
static void TearDownTestSuite ()
 
static void TearDownTestCase ()
 
static void SetUpTestCase ()
 
static bool HasFatalFailure ()
 
static bool HasNonfatalFailure ()
 
static bool IsSkipped ()
 
static bool HasFailure ()
 
static void RecordProperty (const std::string &key, const std::string &value)
 
static void RecordProperty (const std::string &key, int value)
 

Detailed Description

Definition at line 162 of file tablerecog_test.cc.

Member Function Documentation

◆ SetUp()

void tesseract::StructuredTableTest::SetUp ( )
inlineoverrideprotectedvirtual

Reimplemented from tesseract::SharedTest.

Definition at line 164 of file tablerecog_test.cc.

164 {
166 table_ = std::make_unique<TestableStructuredTable>();
167 table_->Init();
168 table_->set_text_grid(text_grid_.get());
169 table_->set_line_grid(line_grid_.get());
170 }
void SetUp() override
std::unique_ptr< ColPartitionGrid > text_grid_
std::unique_ptr< ColPartitionGrid > line_grid_
std::unique_ptr< TestableStructuredTable > table_

Member Data Documentation

◆ table_

std::unique_ptr<TestableStructuredTable> tesseract::StructuredTableTest::table_
protected

Definition at line 172 of file tablerecog_test.cc.


The documentation for this class was generated from the following file: