#include <ccutil.h>
Definition at line 40 of file ccutil.h.
◆ CCUtil()
tesseract::CCUtil::CCUtil |
( |
| ) |
|
Definition at line 16 of file ccutil.cpp.
21 " whether to adapt to a character", ¶ms_) {
◆ ~CCUtil()
tesseract::CCUtil::~CCUtil |
( |
| ) |
|
|
virtualdefault |
◆ main_setup()
void tesseract::CCUtil::main_setup |
( |
const char * |
argv0, |
|
|
const char * |
basename |
|
) |
| |
CCUtil::main_setup - set location of tessdata and name of image.
- Parameters
-
argv0 | - paths to the directory with language files and config files. An actual value of argv0 is used if not nullptr, otherwise TESSDATA_PREFIX is used if not nullptr, next try to use compiled in -DTESSDATA_PREFIX. If previous is not successful - use current directory. |
basename | - name of image |
< name of image
Definition at line 58 of file mainblk.cpp.
61 char* separator = std::strrchr(path,
'\\');
62 if (separator !=
nullptr) {
69 #if defined(TESSDATA_PREFIX)
73 #define _XSTR(a) _STR(a)
74 datadir = _XSTR(TESSDATA_PREFIX)
"/tessdata";
88 if ((strcmp(lastchar,
"/") != 0) && (strcmp(lastchar,
"\\") != 0))
◆ params()
◆ ambigs_debug_level
int tesseract::CCUtil::ambigs_debug_level = 0 |
"Debug level for unichar ambiguities"
Definition at line 71 of file ccutil.h.
◆ datadir
STRING tesseract::CCUtil::datadir |
◆ directory
STRING tesseract::CCUtil::directory |
◆ imagebasename
STRING tesseract::CCUtil::imagebasename |
◆ imagefile
STRING tesseract::CCUtil::imagefile |
◆ lang
STRING tesseract::CCUtil::lang |
◆ language_data_path_prefix
STRING tesseract::CCUtil::language_data_path_prefix |
◆ unichar_ambigs
◆ unicharset
◆ use_ambigs_for_adaption
bool tesseract::CCUtil::use_ambigs_for_adaption = false |
"Use ambigs for deciding whether to adapt to a character"
Definition at line 73 of file ccutil.h.
The documentation for this class was generated from the following files: