← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #188383]: Need to Compare two images stored at a location in PC without opening the images.

 

Question #188383 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/188383

RaiMan proposed the following answer:
This is exactly, what class Finder supports:

f = Finder(server-image)
f.find(client-image)
if f.hasNext():
    print "same"
else:
    print "different"

Should be no problem to transpose this to Java based on Sikuli's Jav API
docs.

Restrictions: images must have same resolution and client-image must be
max equal size as server image and must be .png.

If some of these do not be true, there are graphics features in Java to
resize/crop images and convert them to .png.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.