← Back to team overview

sikuli-driver team mailing list archive

[Question #673627]: Does Pattern('file') cache the source file?

 

New question #673627 on Sikuli:
https://answers.launchpad.net/sikuli/+question/673627

I need to search for a sequence of images on the screen every, like, 0.1 seconds. Will something like...
img1 = Pattern('1.png')
img2 = Pattern('2.png')
imgList = [img1, img2]
while True:
    matches = findAnyList(imgList)
    for match in matches:
        DoSomething(match)

...address to the hard drive for reading the file every loop cycle, or will it cache the patterns in memory?

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.