sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #04969
Re: [Question #169664]: picture cross refencing: find an image in many others
Question #169664 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/169664
alex rosenberg gave more information on the question:
also i looks like i was using some other of you code to compare to pictures but since i didnt test it last night it appears its not working ethier
so my question is the sys.argv what excatly is it?
i was using img1= "the link to my file"
could that be my problem?
import sys
img1 = sys.argv[1] # contains the absolute-path-to-image-file-1
img2 = sys.argv[2] # contains the absolute-path-to-image-file-2
f = Finder(img1)
f.find(img2) # searches and stores the matches in the Finder object f
if f.hasNext(): # is None if nothing found
print("we found it")
else:
print("we did not find it")
f.destroy()
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.