Error codes

31 views
Skip to first unread message

Massimo Redaelli

unread,
May 9, 2019, 5:49:38 AM5/9/19
to tesseract-ocr
I'm running tesseract via the python interface pytesseract, and sometimes I get something like this:

pytesseract.pytesseract.TesseractError: (-9, 'Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica Warning. Invalid resolution 0 dpi. Using 70 instead.')

The error code returned by tesseract seems to be non-zero even if there's only a warning.

If so, what are the possible values of the return code, and which ones can be assumed to be only warnings?
Reply all
Reply to author
Forward
0 new messages