← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #251785]: compare two screenshots without know the path

 

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

RaiMan proposed the following answer:
match = region1.find(Pattern(some_image).similar(0.5)) # find something similar but might not be exact
matchImage = capture(match).getFile() # get the real image of the matched area
if region2.exists(Pattern(matchImage).exact()): # check in region2, wether this real image exists being exactly the same
    print "whatever we found in region1 is in region2 also"
else:
    print "whatever we found in region1 is not in region2"

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