Compare two image excluding the particular region

Asked by manas

I have a problem statement where some region in an image is dynamic between two image. During compare i want to exclude the particular region in both the images during comparison.How to do that? Please provide some clue

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

what version?

Revision history for this message
manas (mandalmanas786) said :
#2

Latest version.

Revision history for this message
RaiMan (raimund-hocke) said :
#3

We still have no feature to exclude parts of an image from compare.

Are you really comparing images using Finder or are you checking the screen about an image in some region using exists()?

Revision history for this message
manas (mandalmanas786) said :
#4

I am checking the screen about an image in some region using exists()

Revision history for this message
Eugene Maslov (emaslov1) said :
#5

Raimund, I also sometimes feel the need in this feature. For example, recognizing some characters in a dense string, adjacent characters intrude from the sides and prevent the recognition. In another case, the mouse, displayed in OpenGL viewer, moves a couple of pixels from time to time and warns that the images are different. I crop png's to exclude the mouse, but sometimes the mouse is in the middle and it is impossible.
I'd suggest to consider some particular color in png as transparent during the image comparison.
The user would fill in png the areas, that he wants to exclude, with this color.

Revision history for this message
manas (mandalmanas786) said :
#6

Yes you are right

Can you help with this problem?

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

To post a message you must log in.