~ubuntu-branches/ubuntu/utopic/tesseract/utopic-proposed

« back to all changes in this revision

Viewing changes to training/ambiguous_words.cpp

  • Committer: Package Import Robot
  • Author(s): Jeff Breidenbach
  • Date: 2012-10-23 23:25:05 UTC
  • mfrom: (1.1.7)
  • Revision ID: package-import@ubuntu.com-20121023232505-01pfq6trlgqtagwj
Tags: 3.02.02-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
58
58
  api.Init(tessdata_dir, lang.string(), tesseract::OEM_TESSERACT_ONLY,
59
59
           NULL, NULL, &vars_vec, &vars_values, false);
60
60
  tesseract::Dict &dict = api.tesseract()->getDict();
61
 
  FILE *input_file = fopen(input_file_str, "r");
 
61
  FILE *input_file = fopen(input_file_str, "rb");
62
62
  if (input_file == NULL) {
63
63
    tprintf("Failed to open input wordlist file %s\n", input_file_str);
64
64
    exit(1);