Image comparison using Sikuli | Selenium Forum
M
Posted on 19/02/2016
Hi,

I have to perform image comparison using Sikuli and give result in terms of % of match found between the 2 images.
one image is the stored image and another one will be runtime screen shot.

Any available code or link to good practical reading material is appreciated!

Thanks,
Anju

M
Replied on 19/02/2016

i have not worked on the tool but try these

https://answers.launchpad.net/sikuli/+question/167056
http://nightly.sikuli.de/docs/org/sikuli/script/ImageFinder.html
http://doc.sikuli.org/finder.html


M
Replied on 24/02/2016

Thank you for the response, I was able to perform comparison using following code:

Finder f = new Finder(<<filepath of expected image>>);
f.find(actual); //actual is an object of Pattern class
if(f.hasNext())
{
System.out.println("Matching");
f.next();
}
else
{
System.out.println("Not matching");
}


M
Replied on 24/02/2016

can you upload the jar file for finder too.