I want to capture text from an image and assert the value. please help

Asked by Isha

I am trying to enable
Settings.OcrTextRead = true;

and then use Region.text()

Could you please tell me how to use Region.text function.

I have to extract the text from image and then assert it with specified value.

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
masuo (masuo-ohara) said :
#1

I recommend that you will confirm what font and size of strings are recognized SikuliX OCR feature on your environment.
You can confirm it easily by using SikuliX IDE.
Try this code.

Settings.OcrTextRead = True
while True:
    r = selectRegion()
    popup(r.text())

Can you help with this problem?

Provide an answer of your own, or ask Isha for more information if necessary.

To post a message you must log in.