sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #23048
[Question #241861]: Bug or I'm doing something wrong trying to find image on screen?
New question #241861 on Sikuli:
https://answers.launchpad.net/sikuli/+question/241861
I was on r930, but just updated to 1.0.1. I tried the following snippet and it can't find the image:
Screen screen = new Screen();
BufferedImage image = screen.capture(50, 50, 300, 300).getImage();
Pattern pattern = new Pattern(image);
Match m = screen.exists(pattern,0);
if(m != null)
System.out.println("Found Image");
else
System.out.println("Could not Find Image");
I also tried on a clean virtualbox image with the same problem. It always displays "Could not Find Image."
Any ideas or suggestions on why this isn't working?
-scprotz
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.