← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #145017]: How to extract text from an image on xRC2

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
here you are:

put exactly this web page on the screen and try to run the following
script:

r = selectRegion("capture the top of the page")
# when the prompt comes, capture the upper part of the page with the logo to the Answer menu

r.highlight(2) # highlights what you captured

r.below(30).highlight(2) # should frame the topic text
print r.below(30).text() # should read the topic and print it, adjust the 30 if needed

r.below(300).highlight(2)
m = r.below(300).find("Information")
m.highlight(2)

Hope that is enough for a first impression and motivates you to make
your own experiments.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.