Update pyocr to use psm_parameter based on tesseract version
Created by: ddddavidmartin
Let's try again after https://github.com/openpaperwork/pyocr/pull/100 did not quite work. This should fix https://github.com/openpaperwork/pyocr/issues/99.
We now
- use the psm parameter based on the tesseract version
- only import the
psm_parameter
function inbuilders.py
when it is needed; this avoids circular import issues betweenbuilders.py
andtesseract.py
. This is not great, but the best/simplest solution I could come up with.
Thanks!