sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #34676
Re: [Question #271428]: I would like to compare an image to the screen
Question #271428 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/271428
Nikki posted a new comment:
What you suggested did not work so i tried this:
focusWindow = App.focusedWindow()
regionImage = capture(focusWindow)
img2=(regionImage)
file=open(r"C:\Sikuli\Test.txt",'a')
file.write(img2 + "\n")
img = (Pattern("1442500840276.png").similar(0.66))
if img == img2:
file.write('Structures rolled correctly.\n')
file.close()
else:
file.write("Structure screen doesn't match.\n")
file.close()
Even thought the images are exactly the same I still receive: ("Structure screen doesn't match.\n")
I want to capture what is on screen(img2) and compare it to a saved image(img).
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.