sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #06666
[Question #177994]: Comparing screenshots dynamically
New question #177994 on Sikuli:
https://answers.launchpad.net/sikuli/+question/177994
Hi Raiman,
I would like to compare screenshots one is static (on my desktop) and second is from a website (after couple of operations)
Can sikuli do clear and precise image comparision?
Please check my code.
The issue here is the image with which i am comparing to the image from web page, i have knowingly did small change so that sikuli can capture but I am always getting 'Matching Image'
f = Finder("/Users/hari/Desktop/DesktopImage.png")## Expected Image, did small change so that case will Fail
setX(888)
setY(87)
setW(500)
setH(380)
x = getX()
y = getY()
w = getW()
h = getH()
img = capture(x,y,w,h)
print img
f.find(img) # find all matches
if f.hasNext():
print "Image is matching"
else:
print "Image is not matching"
f.destroy()
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.