Skip to content

Commit

Permalink
revert tesseract default logging level (fixes #353)
Browse files Browse the repository at this point in the history
  • Loading branch information
sirfz committed Aug 26, 2024
1 parent 0d4e94c commit d7e855c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tesserocr/tesserocr.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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()

Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit d7e855c

Please sign in to comment.