Skip to main content
Bumped by Community user
Bumped by Community user
added 4 characters in body
Source Link

I want to compare one small part in awith full screenshot.

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

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

    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''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 me 'Match found with 0.9721086025238037100%''Match found with 0.9721086025238037100%' in console. How to make it 99%?

I want to compare one small part in a full screenshot.

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

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

    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 me 'Match found with 0.9721086025238037100%' in console. How to make it 99%?

I want to compare 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_Sikuli/", "image");

    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%?

formatting
Source Link
Bharat Mane
  • 6.8k
  • 11
  • 41
  • 69

I want to compare one small part in a full screenshot.

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

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

    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''pa1' contains a small logo and I want to check if this exact logo is present in the screen shot taken by Sikuli.

it'sIt's showing 'Match found with 0.9721086025238037100%'me 'Match found with 0.9721086025238037100%' in console. How to make it 99%?

I want to compare one small part in a full screenshot.

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

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

    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%?

I want to compare one small part in a full screenshot.

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

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

    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 me 'Match found with 0.9721086025238037100%' in console. How to make it 99%?

added 1 character in body
Source Link

I want to compare one small part within a full screenshot.

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

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

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

    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%?

I want to compare 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_Sikuli/", "image");

    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%?

I want to compare one small part in a full screenshot.

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

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

    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
Loading