← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #266829]: if exists(img, 0) takes over 10 seconds to execute

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
I just checked on my Win7 64-Bit / 2.4 GHz / 4GB with a region of 1400 x 900
with 1.0.1 (12Nov2013)

img = capture(reg)
start = time.time()
reg.exists(img, 0)
print time.time() - start

which reveals elapsed times of about 1 second (which is expected), if
the image is still there and about 2+ seconds, if the image is not there
(which I have to check why)

The behaviour in 1.1.0 is comparable.

So the 10 secs can only be due to a very large monitor.
In this case, you should restrict the region to the middle part of the screen (about 1000 x 800) and try again.

Might be, that even the sequential checking of 2 - 3 spots of 300 x 300
is faster.

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