pypdfocr icon indicating copy to clipboard operation
pypdfocr copied to clipboard

Could not execute tesseract

Open iiitmahesh opened this issue 8 years ago • 7 comments

How to slove this problem , I tried both python2 and 3 uuntu 16.04.

ERROR:
Could not execute tesseract Please make sure you have Tesseract installed correctly

iiitmahesh avatar Dec 01 '16 19:12 iiitmahesh

I have the same issue and Tesseract is installed correctly.

asifali22 avatar Feb 01 '17 11:02 asifali22

Please see the advanced options in the online usage guide to specify the tesseract location.

If you can send me more details on where your tesseract binary is located, I can try to improve the binary auto location.

virantha avatar Feb 15 '17 15:02 virantha

Do a which tesseract to see if it can be found. It might have to do with exporting it to your path.

tranhungt avatar Aug 30 '17 23:08 tranhungt

I was having the same issue this can be because of you have installed pytesseract but not tesseract you can install it sudo apt install tesseract-ocr if you are using ubuntu

vvksingh24 avatar Mar 07 '18 08:03 vvksingh24

Had this, too. looks like the command line for tesseract invocation needs another dash. Search for -psm and replace with --psm

f0rdprefect avatar Nov 23 '18 13:11 f0rdprefect

where do i search for that @f0rdprefect ? to replace with --psm ?

pidugusundeep avatar Nov 29 '18 04:11 pidugusundeep

pypdfocr_tesseract.py -- I forked this repo and tried to put it into a .snap. Need more time to figure out how to properly expose other commands inside the snap. Anyhow I fixed the --psm switch and the requirements to reportlab version 3.4.0.

Would be good to know either how to make it run with an up to date reportlab / how to create a snap which will properly work...

f0rdprefect avatar Nov 29 '18 06:11 f0rdprefect