Sikuli slow to match images

Asked by stephane

I am using this code to find if three images exist in a region of my screen:

myImages = {"1495288187584.png": '1', "1495288204650.png": '2', "1495289361407.png": '3'}

for key, value in myImages.items():
    if Region.inside().exists(key):
        print value

It's taking approximately 12s to complete, which is way to slow for my purpose.

I haven't been using Sikuli for a while, but from what I remember it used to be way faster. Am I missing something? If it's a "normal" running time are there some parameters or things I can change to speed it up?

I'm running the script from the Sikuli IDE 1.1.0 on Windows 10.
Thanks

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
RaiMan
Solved:
Last query:
Last reply:
Revision history for this message
Best RaiMan (raimund-hocke) said :
#1

it is the minimum waittime of 3 seconds, that offends here.

try this:
if exists(key, 0):

Revision history for this message
stephane (su1) said :
#2

Thanks RaiMan, that solved my question.