From d7e855cd683c5d354248ea8503c04d4237bd24ab Mon Sep 17 00:00:00 2001 From: sirfz Date: Mon, 26 Aug 2024 20:26:56 +0300 Subject: [PATCH] revert tesseract default logging level (fixes #353) --- tesserocr/tesserocr.pyx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tesserocr/tesserocr.pyx b/tesserocr/tesserocr.pyx index 053f55e..892e35a 100644 --- a/tesserocr/tesserocr.pyx +++ b/tesserocr/tesserocr.pyx @@ -18,7 +18,7 @@ tesseract 3.04.00 ['eng', 'osd', 'equ']) """ -__version__ = '2.7.0' +__version__ = '2.7.1' import os from io import BytesIO @@ -62,7 +62,6 @@ _init_lang = _api.GetInitLanguagesAsString() if _init_lang == '': _init_lang = 'eng' cdef _DEFAULT_LANG = _init_lang -_api.SetVariable('debug_file', '') _api.End() TessBaseAPI.ClearPersistentCache() @@ -2768,7 +2767,7 @@ def get_languages(path=_DEFAULT_PATH): return path, langs -def set_leptonica_log_level(LeptLogLevel level): +def set_leptonica_log_level(int level): """Set Leptonica's emitted log messages level. See :class:`LeptLogLevel` for available options.