Skip to content

Commit

Permalink
Merge pull request #543 from stweil/leptonica
Browse files Browse the repository at this point in the history
tesseract: Disable Leptonica messages
  • Loading branch information
zdenop authored Dec 7, 2016
2 parents 929d25c + 217a4dd commit 94aebb1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions api/tesseractmain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,11 @@ int main(int argc, char** argv) {
static GenericVector<STRING> vars_vec;
static GenericVector<STRING> vars_values;

#if !defined(DEBUG)
// Disable debugging and informational messages from Leptonica.
setMsgSeverity(L_SEVERITY_WARNING);
#endif

#if defined(HAVE_TIFFIO_H) && defined(_WIN32)
/* Show libtiff warnings on console (not in GUI). */
TIFFSetWarningHandler(Win32WarningHandler);
Expand Down

0 comments on commit 94aebb1

Please sign in to comment.