sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #45244
Re: [Question #662286]: same image different colour
Question #662286 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/662286
Status: Needs information => Open
Maniraj gave more information on the question:
yes using later 1.1.2,
i am using like this, (Both are same) i think so
String imagePath = "/Users/aathi/Desktop/websitestab/temp/"+imageName;
Thread.sleep(2000);
BufferedImage regionsetimage = ScreenCapture(driver,imageName);
Finder window = new Finder(regionsetimage);
Pattern testImage = new Pattern(imagePath);
window.find(testImage.similar((float) 0.9));
Match found = null;
if (window.hasNext())
{
found = window.next();
System.out.println(imageName + " Image found");
}
else
{
System.out.println(imageName + " Image Not found");
}
}
Thanks
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.