Question #671159 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/671159

    Status: Open => Answered

RaiMan proposed the following answer:
not sure, but I guess, this is to open the document:
click("1532589375522.png")
click("1532589388724.png")
doubleClick("testingdocx-1.png")

if yes, then you have to wait until the doc is really visible on the screen.
either with a timed wait or by waiting for some image, that signals that the 
doc is readable on the screen.

... then
reg = Region(499,201,329,201)

is the region on the screen containing the text to be read.
use this while testing:
reg = Region(499,201,329,201)
reg.highlight(2)

so you can see, wether your region is really, what you want.

For testing, what OCR can really do for you I suggest, to open the document 
manually and then run a script like so:
reg = selectRegion() # manually select the region 
text = reg.text()
print text

For options, to get the document window as region look at the App class
features.

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

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to