Skip to content

Commit

Permalink
improved usage description (issue http://code.google.com/p/tesseract-…
Browse files Browse the repository at this point in the history
  • Loading branch information
zdenop@gmail.com committed Sep 27, 2010
1 parent 68baf25 commit fd07d93
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions training/combine_tessdata.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -119,14 +119,20 @@ int main(int argc, char **argv) {
tm.End();
} else {
printf("Usage for combining tessdata components:\n"
"%s language_data_path_prefix (e.g. tessdata/eng.)\n", argv[0]);
printf("Usage for extracting tessdata components:\n"
"%s -e traineddata_file [output_component_file...]\n", argv[0]);
printf("Usage for overwriting tessdata components:\n"
"%s -o traineddata_file [input_component_file...]\n", argv[0]);
printf("Usage for unpacking all tessdata components:\n"
"%s -u traineddata_file output_path_prefix"
" (e.g. /tmp/eng.)\n", argv[0]);
" %s language_data_path_prefix\n"
" (e.g. %s tessdata/my_lang.)\n"
" Warning: Do not forget dot at the end of language_data_path_prefix!\n", argv[0], argv[0]);
printf("\nUsage for extracting tessdata components:\n"
" %s -e traineddata_file output_component_file\n"
" (e.g. %s -e tessdata/eng.traineddata eng.unicharambigs)\n", argv[0], argv[0]);
printf("\nUsage for overwriting tessdata components:\n"
" %s -o traineddata_file input_component_file\n"
" (e.g. %s -o tessdata/eng.traineddata eng.config)\n"
" Warning: (input_)component_file must already exists in traineddata_file!\n", argv[0], argv[0]);
printf("\nUsage for unpacking all tessdata components:\n"
" %s -u traineddata_file output_path_prefix\n"
" (e.g. %s -u tessdata/eng.traineddata /tmp/eng.)\n"
" Warning: Do not forget dot at the end of output_path_prefix!\n", argv[0], argv[0]);
return 1;
}
}

0 comments on commit fd07d93

Please sign in to comment.