sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #15807
Re: [Question #220671]: Image recognition slow in linux when the image is not found
Question #220671 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/220671
Status: Open => Answered
RaiMan proposed the following answer:
Sometimes a look into the docs might help ;-) doc.sikuli.org
I dare to say this because I am RaiMan :-)
the 3 seconds are the so called standard waiting time.
There are some possibilities to influence that:
- http://doc.sikuli.org/region.html#Region.setAutoWaitTimeout
- http://doc.sikuli.org/region.html#Region.wait (same is for exists()
and waitVanish())
e.g. exists(image, 0) returns instantly, if the image is not found in
the respective region with the first try.
Currently there is a "bug": the minimum wait time will always be >= the waiting time given by the scan rates (http://doc.sikuli.org/globals.html#Settings.WaitScanRate) which is in the standard about 0.3 seconds.
So in special situations, where the search might take 0.1 secs, it will in fact be 0.3 secs.
If you want to get the 0.1, you have set the scan rate to 10.
Be aware: speeding up scripts this way costs cpu!
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.