Re: [Sikuli-driver] [Question #709589]: Tesseract not working

2024-03-18 Thread MR HSNNN
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.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #138419]: How to take a screenshot of a local folder's context menu?

2024-02-06 Thread MR HSNNN
Question #138419 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/138419

MR HSNNN posted a new comment:
Capturing a screenshot of a context menu, like the one that appears when you 
right-click a folder and select "copy," can pose challenges in Sikuli. 
To address this, you can introduce a brief delay before taking the screenshot 
to allow the context menu to fully appear. This can be achieved with the wait() 
function, specifying a short delay period such as one second. 
Additionally, instead of targeting just the "copy" item, consider capturing a 
slightly larger area that encompasses the entire context menu. This approach 
increases the likelihood of successfully capturing the "copy" item. By 
incorporating these strategies, you can improve the effectiveness of capturing 
context menus in Sikuli. You can also use snipping tools as well https://screenpixel.org/;>learn more

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

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp