I want to one small part with full screenshot.

Screen screen=new Screen();
    Pattern pa1=new Pattern("/Users/37397/Desktop/Screen Shot 2018-03-27 at 6.02.42 PM.png");

    String img=screen.capture().save("/Users/1234/Desktop/Automation/Test_/", "");

    Finder f1=new Finder(screen.capture().getImage());
    f1.find(pa1);
    if(f1.hasNext()){

        Match m=f1.next();
        System.out.println("Match found with "+(m.getScore())+"100"+"%");
        f1.destroy();

    }
    else{

        System.out.println("No Match Found");
    }

In the above code ‘pa1’ contains a small logo and I want to check if this exact logo is present in the screen shot taken by Sikuli.

It’s showing ‘Match found with 0.9721086025238037100%’ in console. How to make it 99%?



Source link https://sqa.stackexchange.com/questions/32745/how-to-compare-image-in-sikuli

LEAVE A REPLY

Please enter your comment!
Please enter your name here