OCR

Asked by guto

I'm new in Sikuli and Python, so I need a help over here. I need some example on how to do/use the OCR function! I think it's simple, but I don't know to do it... :(

Thks!

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
guto
Solved:
Last query:
Last reply:
Revision history for this message
guto (gmsetta) said :
#1

I find myself an example:

img = find("1430777001006.png")
img.highlight(1)
myText = img.text()
print myText

or if I want to do it from any region on the screen:

img = Region(840,25,40,20)
img.highlight(1)
myText = img.text()
print myText

Revision history for this message
guto (gmsetta) said :
#2

I find myself an example:

img = find("1430777001006.png")
img.highlight(1)
myText = img.text()
print myText

or if I want to do it from any region on the screen:

img = Region(840,25,40,20)
img.highlight(1)
myText = img.text()
print myText