sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #45343
Re: [Question #251158]: Finding an image inside another image
Question #251158 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/251158
Juliana Xiao requested more information:
I have the similar issue by using java. Which I want to find if image1.png contains image2.png by using sikuli. The code is as below:
*********************************************************
Pattern btnImage = new Pattern("path/to/image2.png").similar((float) 0.70);
Finder finder = new Finder(ImageIO.read("path/to/image1.png"));
finder.find(btnImage);
if (finder.hasNext()) {
System.out.println("find");
} else {
System.out.println("not find");
}
********************************************************
I always see "not find" in the console output but I am expecting "find" since image2.png was taken by sikuli IDE from image1.png. I don't know how to debug on it. Could you please let me know why?
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.