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

Adding support to Tesseract Layout #16

Closed vehrka closed 10 years ago

vehrka commented 10 years ago

Hello Ross,

recently I had to use it in some documents that had to be processed using the tesseract option '-psm' set to 6 (the default is 3).

Please consider adding these modifications to your code in order to allow modifying the option values.

Modifying the TextBuilder in order to accept parameters for the tesseract '-psm' option, it defaults to 3 the default tesseract configuration.

jflesch commented 10 years ago

Thanks