openpaperwork / pyocr

A Python wrapper for Tesseract and Cuneiform -- Moved to Gnome's Gitlab
https://gitlab.gnome.org/World/OpenPaperwork/pyocr
930 stars 152 forks source link

Orientation detection failed on Tesseract (C-API) #57

Closed lubo closed 7 years ago

lubo commented 7 years ago

Hello, when using Tesseract (C-API) with Tesseract 3.05.00, I get PyocrException with this message when trying to use orientation detection:

('detect_orientation failed', 'TessBaseAPIDetectOS() failed')

Reason: TessBaseAPIDetectOS() is considered unsafe and always returns false. It's also deprecated and may be removed soon.

jflesch commented 7 years ago

Darn.

Note to myself: https://github.com/tesseract-ocr/tesseract/issues/424 https://github.com/tesseract-ocr/tesseract/commit/3a47adcbe13e34f7a1c9ba14e716c8c696077710 ^ the new recommended function is not available on all the versions 3.x ... I'll have to handle both APIs ...

jflesch commented 7 years ago

Fixed by https://github.com/openpaperwork/pyocr/pull/62