← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #236652]: match pictures

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
reg1 = Region() # somehow define the first region
reg2 = Region() # somehow define the second region
img = "some_picture.png"

if reg1.exists(img):
    print "found in reg2"
    if reg2.exists(img):
        print "found in reg2"
   else:
        print "not found in reg2"
else:
    print "not found in reg1"

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