-
Notifications
You must be signed in to change notification settings - Fork 152
pyocr with latest Tesseract fails with pyocr.error.TesseractError: "Error, unknown command line argument '-psm'\n") #99
Comments
"Error, unknown command line argument '-psm'\n")
Having a look through the pyocr sources this stands out to me:
Does pyocr just use |
It looks like this is the problem. I have changed the passed options in The commit in question in tesseract is the following: |
I also came across this today. I note that -psm is used not just in builders.py but also in tesseract.py. |
I haven't had a chance yet to work out the circular import statements that I introduced in https://github.com/ddddavidmartin/pyocr/tree/update_deprecated_psm_option_string. If anyone wants to step in, feel free to give it a go. For now, a quick and dirty fix is to just apply c136838. |
Good day,
I'm using pyocr through Paperless on a Ubuntu setup. I'm using the tesseract-ocr PPA [0] and on the latest version [1] pyocr throws an error.
[0]
[1]
Traceback:
Has anyone else come across this? Thanks!
The text was updated successfully, but these errors were encountered: