Value comparison of Screenshots using Sikuli

Asked by reena shukla

There are two quite similar reports having some categories.The reports have graphs based on category selection. We need to compare those graphs by taking there screenshots. But there may be a possibility that the graph of both the reports match by value but their Color may be different.In that case also it should not fail.That is comparison should be independent of color of graph. As well as my requirement is to get image difference in pixels if they do not match.

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

For this case SikuliX does not have features currently.

To solve this, you have to do some image processing yourself (e.g. convert to grayscale) and then use the class Finder to "compare" the images.

To get the pixel differences is rather complex, but a possible track is to use the onChange() feature of observe by displaying the 2 images one after the other in the same region on the screen.

Both approaches need some experience in programming (preferably in Java, which is the base of SikuliX).

Can you help with this problem?

Provide an answer of your own, or ask reena shukla for more information if necessary.

To post a message you must log in.