compare icon in a particular region

Asked by manas

Hi,
I am stuck in a specific requirement in my project. How can i compare icon in a particular region in one image with respect to some reference image, that reference image has icon to which i want to compare.

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

I understand, that in the region reg (e.g. reg = Region(100, 100, 100, 100) ) on the screen, you want to test the existence of an icon given as "icon.png".

if reg.exists("icon.png"):
    print "icon found"
else:
    print "icon not found"

There are many more possibilities to define the Region reg: see docs: docs.sikuli.org

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.