File tree 1 file changed +0
-8
lines changed
1 file changed +0
-8
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,6 @@ const int kNumPagesPerBatch = 100;
73
73
int main (int argc, char **argv) {
74
74
tesseract::CheckSharedLibraryVersion ();
75
75
ParseArguments (&argc, &argv);
76
- // Purify the model name in case it is based on the network string.
77
76
if (FLAGS_model_output.empty ()) {
78
77
tprintf (" Must provide a --model_output!\n " );
79
78
return EXIT_FAILURE;
@@ -82,13 +81,6 @@ int main(int argc, char **argv) {
82
81
tprintf (" Must provide a --traineddata see training wiki\n " );
83
82
return EXIT_FAILURE;
84
83
}
85
- STRING model_output = FLAGS_model_output.c_str ();
86
- for (int i = 0 ; i < model_output.length (); ++i) {
87
- if (model_output[i] == ' [' || model_output[i] == ' ]' )
88
- model_output[i] = ' -' ;
89
- if (model_output[i] == ' (' || model_output[i] == ' )' )
90
- model_output[i] = ' _' ;
91
- }
92
84
93
85
// Check write permissions.
94
86
STRING test_file = FLAGS_model_output.c_str ();
You can’t perform that action at this time.
0 commit comments