#include <ccutil.h>
Definition at line 52 of file ccutil.h.
◆ CCUtil()
tesseract::CCUtil::CCUtil |
( |
| ) |
|
Definition at line 16 of file ccutil.cpp.
19 "tessdata/",
"Directory for data files", ¶ms_),
22 "Module colocated with tessdata dir", ¶ms_),
27 " ambiguities when running character classifier", ¶ms_),
29 " whether to adapt to a character", ¶ms_) {
bool use_ambigs_for_adaption
#define INT_INIT_MEMBER(name, val, comment, vec)
#define STRING_INIT_MEMBER(name, val, comment, vec)
#define BOOL_MEMBER(name, val, comment, vec)
bool use_definite_ambigs_for_classifier
◆ ~CCUtil()
tesseract::CCUtil::~CCUtil |
( |
| ) |
|
|
virtual |
◆ 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 NULL, otherwise TESSDATA_PREFIX is used if not NULL, next try to use compiled in -DTESSDATA_PREFIX. If previous is not successful - use current directory. |
basename | - name of image |
< name of image
< data directory
Definition at line 53 of file mainblk.cpp.
56 char *tessdata_prefix = getenv(
"TESSDATA_PREFIX");
61 }
else if (tessdata_prefix) {
69 DWORD length = GetModuleFileName(NULL, exe,
sizeof(exe));
70 if (length > 0 && length <
sizeof(exe)) {
71 _splitpath(exe, NULL, dir, NULL, NULL);
75 #if defined(TESSDATA_PREFIX) 79 #define _XSTR(a) _STR(a) 92 if (length >= 8 && strcmp(&
datadir[length - 8],
"tessdata") == 0)
94 else if (length >= 9 && strcmp(&
datadir[length - 9],
"tessdata/") == 0)
101 if ((strcmp(lastchar,
"/") != 0) && (strcmp(lastchar,
"\\") != 0))
void truncate_at(inT32 index)
const char * string() const
◆ params()
◆ ambigs_debug_level
int tesseract::CCUtil::ambigs_debug_level = 0 |
"Debug level for unichar ambiguities"
Definition at line 87 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 |
◆ m_data_sub_dir
char* tesseract::CCUtil::m_data_sub_dir = "tessdata/" |
"Directory for data files"
Definition at line 82 of file ccutil.h.
◆ tessdata_manager
◆ unichar_ambigs
◆ unicharset
◆ use_ambigs_for_adaption
bool tesseract::CCUtil::use_ambigs_for_adaption = 0 |
"Use ambigs for deciding whether to adapt to a character"
Definition at line 91 of file ccutil.h.
◆ use_definite_ambigs_for_classifier
bool tesseract::CCUtil::use_definite_ambigs_for_classifier = 0 |
"Use definite ambiguities when running character classifier"
Definition at line 89 of file ccutil.h.
The documentation for this class was generated from the following files: