New question #237353 on Sikuli:
https://answers.launchpad.net/sikuli/+question/237353

I had ever written some sikuli script which using the sikuli-script-0.10.2.jar 
and it works well. Now I find sikuli-script was removed from maven repo so I 
turned to use the sikuli-java.jar introduced by raiman.

However, after the upgrade, I find the "find"method does not work any more. I 
write a simple program to find a picture on desktop and sikuli can't find that 
at all. The code is like below:

    public void findSomethingTest() throws Exception {

        Screen s = new Screen();
        s.setAutoWaitTimeout(10);
        System.out.println(s);
        Pattern p = getPattern(IMAGE_ROOT+"pps.PNG");
        Match m = s.find(p);
        m.highlight();

    }

the script will end with findfailure exception after 10 seconds. The error 
message is like below:

FindFailed: can not find P(-- BufferedImage --) S: 0.7 on the screen.
  Line 1574, in file Region.java


I am sure that p will get correct value and the pps.PNG is really on the 
desktop. It is just like that the image recognition does not work any more. 
Have any other experience with this?



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

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to