New question #200281 on Sikuli:
https://answers.launchpad.net/sikuli/+question/200281
i want to make twi screenshots with 10 seconds difference, to test if there is
some changes on the website.
What is the best way to compare to screenshots to see if they are the same or
not?
i used
ImageIO.write(new Screen().capture().getImage(),"jpg",new
File("testImages/",i+".jpg"));
BufferedImage bfI = ImageIO.read(new
File("testImages/",i+".jpg"));
Thread.sleep(6000);
ImageIO.write(new Screen().capture().getImage(),"jpg",new
File("testImages/",(i+10)+".jpg"));
BufferedImage bfII = ImageIO.read(new
File("testImages/",(i+10)+".jpg"));
if(bfI.equals(bfII))
System.out.println("same");
else
System.out.println("not same");
but it is a bad way because the two objects are always not the same because of
the working way of equals!
i think i should do it with Finder,which gives Match back, so i can use compare
method but it doesnt work correctly ..
does anyone have an idea, how i can do it correctly with Finder?
--
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