openpaperwork / pyocr

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

suppress debug messages in libtesseract's image_to_string() #68

Closed ashkulz closed 7 years ago

ashkulz commented 7 years ago

Any users of the libtesseract API are unlikely to want debug messages getting printed on stderr, which is what happens right now.

This required introducing set_debug_file() in the raw Tesseract API.

jflesch commented 7 years ago

Looks good to me. Thank you for your contribution :-)