sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #11161
Re: [Question #200281]: screenshot compare in java
Question #200281 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/200281
j posted a new comment:
Sorry, I missed that you use java only. Still, if a pixel-exact comparison is not neccessary, you can maybe use libCV somehow.
Another possibilty would be to use a vdict object if this is possible in java sikuli.
1. capture first image and save it in vdict with the image as key and some value
2. wait 10 seconds
3. use second image as key of the vdict and check if the vdict-value of the first image is returned
in python it would look like this, do not know about java:
dict = VDict()
img1 = capture()
dict[img1] = True
wait(10)
img2 = capture()
hasChanged = dict[img2] == dict[img1]
maybe this helps
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.