26 ,
INT_INIT_MEMBER(ambigs_debug_level, 0,
"Debug level for unichar ambiguities", ¶ms_)
28 "Use ambigs for deciding"
29 " whether to adapt to a character",
49 char *tessdata_prefix = getenv(
"TESSDATA_PREFIX");
54 }
else if (tessdata_prefix) {
61 DWORD length = GetModuleFileName(
nullptr, path,
sizeof(path));
62 if (length > 0 && length <
sizeof(path)) {
63 char *separator = std::strrchr(path,
'\\');
64 if (separator !=
nullptr) {
66 std::string subdir = path;
67 subdir +=
"/tessdata";
68 if (_access(subdir.c_str(), 0) == 0) {
78#if defined(TESSDATA_PREFIX)
80 datadir = TESSDATA_PREFIX
"/tessdata";
87 const char *lastchar =
datadir.c_str();
88 lastchar +=
datadir.length() - 1;
89 if ((strcmp(lastchar,
"/") != 0) && (strcmp(lastchar,
"\\") != 0)) {
#define INT_INIT_MEMBER(name, val, comment, vec)
#define BOOL_MEMBER(name, val, comment, vec)
std::string imagebasename
void main_setup(const std::string &argv0, const std::string &basename)
CCUtil::main_setup - set location of tessdata and name of image.