← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #177994]: Comparing screenshots dynamically

 

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

    Status: Answered => Open

Hari Kiran Vankayala is still having a problem:
Hi Raiman,

The above issue is resolved but when i execute the below code.


# settings
import os
import shutil
dir = "/Users/hari/Desktop"
savedir = os.path.join(dir, "savedimages")

# action

baseimg = os.path.join(dir, "desktopimage.png")

capreg = Region(887,85,512,384)
img = capture(capreg)
shutil.move(img, os.path.join(savedir, str(int(time.time())))+".png")

f = Finder(baseimg)
        
f.find(img) # find all matches
if f.hasNext():
        print "Image is matching"
else:
        print "Image is not matching"
f.destroy()

I am facing below error.

[error] /var/folders/7O/7OYo3pwNFseqmd9waLgz3E+++TI/-Tmp-/sikuli-scr-472915460619067946.png looks like a file, but can't be found on the disk. Assume it's text.
Image is not matching

Actually I should be getting "Image is matching", actual image and expected image are identical but still my result is negative.
Can you please let me know what is the issue.

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