maxenxe / HQ-Trivia-Bot-NOT-MAINTAINED-

Small NodeJS bot for HQ Trivia
24 stars 13 forks source link

How do you add tesseract to path on windows 10. #51

Open AshVan1 opened 6 years ago

AshVan1 commented 6 years ago

My path doesn't look like yours @maxenxe I'm on windows 10. I'm getting the same error and I can't find a clear answer. That's the only thing missing for me. It keeps saying tesseract not recognized as internal or external. Can someone tell me how to add it on PATH on windows 10.

paramt commented 6 years ago

Control Panel > System and Security > System > Advanced system settings > Advanced > Environment variables > PATH > New

Here's a video in case you get stuck 😃

boofmax commented 3 years ago

Hi @paramt ! Just wondering if you could help me out.

I was just trying to study pytesseract and when I ran my code and I encountered this error:

pytesseract.pytesseract.TesseractNotFoundError: C:\Program Files(x86)\Tesseract-OCR\tesseract.exe is not installed or it's not in your PATH. See README file for more information.

In my call to tesseract_cmd: pytesseract.pytesseract.tesseract_cmd = 'C:\Program Files(x86)\Tesseract-OCR\tesseract.exe'

When I remove the (x86) I encounter somewhat 'new' error: pytesseract.pytesseract.TesseractError: (1, 'Error opening data file C:\Program Files\Tesseract-OCR\tessdata/tessdata/eng.traineddata Please make sure the TESSDATA_PREFIX environment variable is set to the parent directory of your "tessdata" directory. Failed loading language \'eng\' Tesseract couldn\'t load any languages! Could not initialize tesseract.')

So I did what it said (https://user-images.githubusercontent.com/68984500/100069197-6aa13a80-2e73-11eb-922d-84eed43dee9f.png) But it still won't work. Hoping for some assistance. Thank you!

vadimcastro commented 3 years ago

hey @Rocklon2714 , i came here for some help as well but one thing i noticed in your path for the TesseractError is that both '\' and '/' are used and perhaps that is throwing something off. Not certain that is problematic but seems strange to me.

traromal commented 10 months ago

Just create a new Environment it will solve all the issues related to pytesseract