#include "base/commandlineflags.h"
#include "baseapi.h"
#include "commontraining.h"
#include "cubeclassifier.h"
#include "mastertrainer.h"
#include "params.h"
#include "strngs.h"
#include "tessclassifier.h"
Go to the source code of this file.
Variables |
const char * | names [] = {"pruner", "full", "cube", "cubetess", NULL } |
Enumeration Type Documentation
Function Documentation
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Public Function Prototypes —————————————————————————-
Definition at line 65 of file classifier_tester.cpp.
{
if (strcmp(FLAGS_classifier.c_str(),
names[c]) == 0) {
break;
}
}
if (classifier == CN_COUNT) {
fprintf(stderr, "Invalid classifier name:%s\n", FLAGS_classifier.c_str());
return 1;
}
argc, argv,
true,
NULL, &file_prefix);
if (api.
Init(FLAGS_tessdata_dir.c_str(), FLAGS_lang.c_str(),
engine_mode) < 0) {
fprintf(stderr, "Tesseract initialization failed!\n");
return 1;
}
}
else if (classifier ==
CN_FULL) {
}
else if (classifier ==
CN_CUBE) {
} else {
fprintf(stderr, "%s tester not yet implemented\n",
FLAGS_classifier.c_str());
return 1;
}
tprintf(
"Testing classifier %s:\n", FLAGS_classifier.c_str());
}
delete shape_classifier;
delete trainer;
return 0;
}
STRING_PARAM_FLAG |
( |
classifier |
, |
|
|
"" |
, |
|
|
"Classifier to test" |
|
|
) |
| |
STRING_PARAM_FLAG |
( |
lang |
, |
|
|
"eng" |
, |
|
|
"Language to test" |
|
|
) |
| |
STRING_PARAM_FLAG |
( |
tessdata_dir |
, |
|
|
"" |
, |
|
|
"Directory of traineddata files" |
|
|
) |
| |
Variable Documentation
const char* names[] = {"pruner", "full", "cube", "cubetess", NULL } |