← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #227960]: How to make sikuli detect motions within a specific region?

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
the simplest method:

reg = some_region_to_observe
img = capture(reg) # take a shot
wait(1)
while reg.exists(Pattern(img).similar(0.99),0): wait(1)
print "region content changed

for usage of observe look http://doc.sikuli.org/region.html#observing-
visual-events-in-a-region and search in this Q&A's

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