Skip to content

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 in builders.py when it is needed; this avoids circular import issues between builders.py and tesseract.py. This is not great, but the best/simplest solution I could come up with.

Thanks!

Merge request reports