← Back to team overview

sikuli-driver team mailing list archive

[Question #672967]: [1.1.4]Is the masked pattern valid for findAll()?

 

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

code1: worked
code2: FindFailed exception occurred

[code1:]
maskImg = Pattern("cone-mask.png").asMask()
maskedPtn = Pattern("safety-cone.png").withMask(maskImg)
find(maskedPtn).highlight(1,"green")

[code2:]
maskImg = Pattern("cone-mask.png").asMask()
maskedPtn = Pattern("safety-cone.png").withMask(maskImg)
res = findAll(maskedPtn)
while True:
    if res.hasNext():
        m = res.next()
        m.highlight(1,"blue")
    else:
        break

https://photos.app.goo.gl/zj9JQLE8dfi9Wr9w8

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