Hiding Tesseract debug output

This commit is contained in:
Matt Hill
2015-08-03 18:52:58 -04:00
parent 840df39cc8
commit eb9d2fd5b4

View File

@@ -42,6 +42,7 @@ namespace alpr
// Tesseract requires the prefix directory to be set as an env variable
tesseract.Init(config->getTessdataPrefix().c_str(), config->ocrLanguage.c_str() );
tesseract.SetVariable("save_blob_choices", "T");
tesseract.SetVariable("debug_file", "/dev/null");
tesseract.SetPageSegMode(PSM_SINGLE_CHAR);
}