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

Hi,

I am Trying to Find Exact image from the image which i captured for Testing 
purpose i Edited image little In this case sikuli needs to show not Found  but 
is proceeding in positive case(image Founded) like that it is showing. It 
should not be.

See below code Request you to suggest better way to find image exactly.. for 
below code.. 

                  String imagePath = 
"/Users/aathi/Desktop/websitestab/temp/"+imageName;
                  
System.out.println("/Users/aathi/Desktop/websitestab/temp/"+imageName);
                  Thread.sleep(2000);
                  BufferedImage regionsetimage = 
ScreenCapture(driver,imageName); // In this ScreenCapture will capture full 
page screenshot
                  //ImageIO.write(regionsetimage, "PNG", new 
File("/Users/aathi/Desktop/testimage3.png"));
                  //Finder has a constructor with a buffered image
                  Finder window = new Finder(regionsetimage);// where to search 
in
                  Pattern testImage = new Pattern(imagePath); // what to search
                  window.find(testImage); // search and prepare Finder for 
revealing result
                  Match found = null;
                  if (window.hasNext())
                  {
                    found = window.next();
                    System.out.println(imageName + " Image found");
                  }
                  else
                  {
                    System.out.println(imageName + " Image Not found");
                  }


Help me out... 

-- 
You received this question notification because your team Sikuli Drivers
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