← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #259094]: Fastest way to check text or image

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
-- 1. if you want speed, you have to use small search regions.
Searching the whole screen takes up to 1 second.
Searching an image in a region of 100x100 takes some (10) milliseconds.
Look for Q&A's a nd FAQs in this board for tips, tricks and solutions.

-- 2. use exists(image, 0)
... since it comes back after one search that might take some milliseconds if the image is not there and does not wait the standard  waiting time of 3 seconds.

-- 3. have a look at the Settings.WaitScanRate feature

-- 4. upgrade to version 1.1.0, that has a feature "first look at the
place where this image was found the last time", which usually takes
some milliseconds, if the image is still, where it was found the last
time.

-- 5. and version 1.1.0 has an image cache, so that images are not
reloaded from the file the second time and later, but taken from memory
(saves some (10) milliseconds.)

... and have a look at the docs
http://sikulix-2014.readthedocs.org/en/latest/index.html

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