|
tesseract v5.3.3.20231005
|
#include <boxchar.h>
Public Member Functions | |
| BoxChar (const char *utf8_str, int len) | |
| ~BoxChar () | |
| const std::string & | ch () const |
| const Box * | box () const |
| const int & | page () const |
| void | set_rtl_index (int index) |
| const int & | rtl_index () const |
| void | AddBox (int x, int y, int width, int height) |
| void | set_page (int page) |
| std::string * | mutable_ch () |
| Box * | mutable_box () |
| bool | operator< (const BoxChar &other) const |
| void | GetDirection (int *num_rtl, int *num_ltr) const |
| void | ReverseUnicodesInBox () |
Static Public Member Functions | |
| static void | TranslateBoxes (int xshift, int yshift, std::vector< BoxChar * > *boxes) |
| static void | PrepareToWrite (std::vector< BoxChar * > *boxes) |
| static void | InsertNewlines (bool rtl_rules, bool vertical_rules, std::vector< BoxChar * > *boxes) |
| static void | InsertSpaces (bool rtl_rules, bool vertical_rules, std::vector< BoxChar * > *boxes) |
| static void | ReorderRTLText (std::vector< BoxChar * > *boxes) |
| static bool | ContainsMostlyRTL (const std::vector< BoxChar * > &boxes) |
| static bool | MostlyVertical (const std::vector< BoxChar * > &boxes) |
| static int | TotalByteLength (const std::vector< BoxChar * > &boxes) |
| static void | RotateBoxes (float rotation, int xcenter, int ycenter, int start_box, int end_box, std::vector< BoxChar * > *boxes) |
| static void | WriteTesseractBoxFile (const std::string &name, int height, const std::vector< BoxChar * > &boxes) |
| static std::string | GetTesseractBoxStr (int height, const std::vector< BoxChar * > &boxes) |
| tesseract::BoxChar::BoxChar | ( | const char * | utf8_str, |
| int | len | ||
| ) |
Definition at line 39 of file boxchar.cpp.
| tesseract::BoxChar::~BoxChar | ( | ) |
Definition at line 42 of file boxchar.cpp.
| void tesseract::BoxChar::AddBox | ( | int | x, |
| int | y, | ||
| int | width, | ||
| int | height | ||
| ) |
Definition at line 46 of file boxchar.cpp.
|
inline |
|
inline |
|
static |
Definition at line 263 of file boxchar.cpp.
| void tesseract::BoxChar::GetDirection | ( | int * | num_rtl, |
| int * | num_ltr | ||
| ) | const |
Definition at line 52 of file boxchar.cpp.
|
static |
Definition at line 331 of file boxchar.cpp.
|
static |
Definition at line 113 of file boxchar.cpp.
|
static |
Definition at line 179 of file boxchar.cpp.
|
static |
Definition at line 273 of file boxchar.cpp.
|
inline |
|
inline |
|
inline |
|
inline |
|
static |
Definition at line 96 of file boxchar.cpp.
|
static |
Definition at line 236 of file boxchar.cpp.
| void tesseract::BoxChar::ReverseUnicodesInBox | ( | ) |
Definition at line 76 of file boxchar.cpp.
|
static |
Definition at line 302 of file boxchar.cpp.
|
inline |
|
inline |
|
inline |
|
static |
Definition at line 291 of file boxchar.cpp.
|
static |
|
static |
Definition at line 324 of file boxchar.cpp.