Definition at line 144 of file mastertrainer_test.cc.
◆ MasterTrainerTest()
MasterTrainerTest::MasterTrainerTest |
( |
| ) |
|
|
inlineprotected |
Definition at line 159 of file mastertrainer_test.cc.
ShapeTable * shape_table_
std::unique_ptr< MasterTrainer > master_trainer_
◆ ~MasterTrainerTest()
MasterTrainerTest::~MasterTrainerTest |
( |
| ) |
|
|
inlineoverrideprotected |
◆ LoadMasterTrainer()
void MasterTrainerTest::LoadMasterTrainer |
( |
| ) |
|
|
inlineprotected |
Definition at line 170 of file mastertrainer_test.cc.
172 FLAGS_F =
file::JoinPath(LANGDATA_DIR,
"font_properties").c_str();
176 const char *filelist[] = {tr_file_name.c_str(),
nullptr};
177 std::string file_prefix;
std::unique_ptr< MasterTrainer > LoadTrainingData(const char *const *filelist, bool replication, ShapeTable **shape_table, std::string &file_prefix)
static std::string JoinPath(const std::string &s1, const std::string &s2)
std::string TestDataNameToPath(const std::string &name)
std::string TmpNameToPath(const std::string &name)
◆ SetUp()
void MasterTrainerTest::SetUp |
( |
| ) |
|
|
inlineoverrideprotected |
◆ TestDataNameToPath()
std::string MasterTrainerTest::TestDataNameToPath |
( |
const std::string & |
name | ) |
|
|
inlineprotected |
◆ TmpNameToPath()
std::string MasterTrainerTest::TmpNameToPath |
( |
const std::string & |
name | ) |
|
|
inlineprotected |
◆ VerifyIl1()
void MasterTrainerTest::VerifyIl1 |
( |
| ) |
|
|
inlineprotected |
Definition at line 187 of file mastertrainer_test.cc.
190 EXPECT_GE(font_id, 0);
193 EXPECT_GT(unichar_I, 0);
195 EXPECT_GT(unichar_l, 0);
197 EXPECT_GT(unichar_1, 0);
200 EXPECT_GE(shape_I, 0);
202 EXPECT_GE(shape_l, 0);
204 EXPECT_GE(shape_1, 0);
208 EXPECT_EQ(0.0f, dist_I_l);
211 EXPECT_EQ(0.0f, dist_l_I);
const double kMin1lDistance
int FindShape(int unichar_id, int font_id) const
◆ master_trainer_
std::unique_ptr<MasterTrainer> MasterTrainerTest::master_trainer_ |
|
protected |
◆ shape_table_
The documentation for this class was generated from the following file: