Tesseract 5 support
I tried to run the "Generating PDF file from an image" example, and i get this exception:
this.build()
Traceback (most recent call last):
Input In [34] in <cell line: 1>
this.build()
File /usr/lib/python3.10/site-packages/pyocr/libtesseract/__init__.py:262 in build
handle = tesseract_raw.init(lang=self.lang)
File /usr/lib/python3.10/site-packages/pyocr/libtesseract/tesseract_raw.py:357 in init
assert(g_libtesseract)
AssertionError
Im on arch linux, having tesseract 5.1.0-1. If I add in pyocr/libtesseract/tesseract_raw.py:50
"libtesseract.so.4",
"libtesseract.so.3",
"libtesseract.so.5",
]```
it works fine
Edited by Jerome Flesch