← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #709589]: Tesseract not working

 

Question #709589 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/709589

MR HSNNN posted a new comment:
First, ensure that Tesseract is correctly installed on your system. You
can follow these steps:

Install Tesseract using the Windows installer available at this link
(even though you’re on MacOS, this installer works for both Windows and
MacOS).

Note the Tesseract path from the installation. The default installation
path (as of my last update) is:

C:\Users\USER\AppData\Local\Tesseract-OCR. However, please verify the actual installation path on your system.
Install the Python package pytesseract using pip install pytesseract.

Set the Tesseract path in your script before calling image_to_string

import pytesseract
pytesseract.pytesseract.tesseract_cmd = r'C:\Users\USER\AppData\Local\Tesseract-OCR\tesseract.exe'

Confirm that SikuliX 2.0.5T is the right version for your setup.

Remember to replace C:\Users\USER\AppData\Local\Tesseract-
OCR\tesseract.exe with the actual path to your Tesseract installation.
If you encounter any further issues, feel free to ask for more
assistance at https://zikenlabs.com/

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for SikuliX.