|
| PageSegModeTest ()=default |
|
| ~PageSegModeTest () override |
|
void | SetUp () override |
|
void | SetImage (const char *filename) |
|
void | VerifyRectText (tesseract::PageSegMode mode, const char *str, int left, int top, int width, int height) |
|
void | NotRectText (tesseract::PageSegMode mode, const char *str, int left, int top, int width, int height) |
|
| Test () |
|
virtual void | SetUp () |
|
virtual void | TearDown () |
|
Definition at line 37 of file pagesegmode_test.cc.
◆ PageSegModeTest()
tesseract::PageSegModeTest::PageSegModeTest |
( |
| ) |
|
|
protecteddefault |
◆ ~PageSegModeTest()
tesseract::PageSegModeTest::~PageSegModeTest |
( |
| ) |
|
|
inlineoverrideprotected |
◆ NotRectText()
void tesseract::PageSegModeTest::NotRectText |
( |
tesseract::PageSegMode |
mode, |
|
|
const char * |
str, |
|
|
int |
left, |
|
|
int |
top, |
|
|
int |
width, |
|
|
int |
height |
|
) |
| |
|
inlineprotected |
Definition at line 71 of file pagesegmode_test.cc.
72 {
77 delete[] result;
78 }
#define EXPECT_STRNE(s1, s2)
void SetPageSegMode(PageSegMode mode)
void SetRectangle(int left, int top, int width, int height)
tesseract::TessBaseAPI api_
◆ SetImage()
void tesseract::PageSegModeTest::SetImage |
( |
const char * |
filename | ) |
|
|
inlineprotected |
Definition at line 49 of file pagesegmode_test.cc.
49 {
54 }
int Init(const char *datapath, const char *language, OcrEngineMode mode, char **configs, int configs_size, const std::vector< std::string > *vars_vec, const std::vector< std::string > *vars_values, bool set_only_non_debug_params)
void SetImage(const unsigned char *imagedata, int width, int height, int bytes_per_pixel, int bytes_per_line)
◆ SetUp()
void tesseract::PageSegModeTest::SetUp |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
Reimplemented from testing::Test.
Definition at line 44 of file pagesegmode_test.cc.
44 {
45 static std::locale system_locale("");
46 std::locale::global(system_locale);
47 }
◆ VerifyRectText()
void tesseract::PageSegModeTest::VerifyRectText |
( |
tesseract::PageSegMode |
mode, |
|
|
const char * |
str, |
|
|
int |
left, |
|
|
int |
top, |
|
|
int |
width, |
|
|
int |
height |
|
) |
| |
|
inlineprotected |
Definition at line 58 of file pagesegmode_test.cc.
59 {
66 delete[] result;
67 }
#define EXPECT_STREQ(s1, s2)
void chomp_string(char *str)
◆ api_
◆ ocr_text_
std::string tesseract::PageSegModeTest::ocr_text_ |
|
protected |
◆ src_pix_
Image tesseract::PageSegModeTest::src_pix_ = nullptr |
|
protected |
The documentation for this class was generated from the following file: