Go to the source code of this file.
|
int | main (int argc, char **argv) |
|
◆ main()
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 37 of file lstmeval.cpp.
38 tesseract::CheckSharedLibraryVersion();
40 if (FLAGS_model.empty()) {
41 tprintf(
"Must provide a --model!\n");
44 if (FLAGS_eval_listfile.empty()) {
45 tprintf(
"Must provide a --eval_listfile!\n");
49 if (!mgr.
Init(FLAGS_model.c_str())) {
50 if (FLAGS_traineddata.empty()) {
51 tprintf(
"Must supply --traineddata to eval a training checkpoint!\n");
54 tprintf(
"%s is not a recognition model, trying training checkpoint...\n",
56 if (!mgr.
Init(FLAGS_traineddata.c_str())) {
57 tprintf(
"Failed to load language model from %s!\n",
58 FLAGS_traineddata.c_str());
63 tprintf(
"Failed to load model from: %s\n", FLAGS_model.c_str());
71 if (!tester.LoadAllEvalData(FLAGS_eval_listfile.c_str())) {
72 tprintf(
"Failed to load eval data from: %s\n", FLAGS_eval_listfile.c_str());
77 tester.RunEvalSync(0, &errs, mgr,