Compare a part of image in a source image using selenium

Asked by Varun Palani

Hi All,

I have 2 question. Please help me resolve the issue.

1. I have a source image which is 79 X 43 Pixels. I need to compare the same with another image (which I capture during execution) and check if the small portion of image exist.
2. Cont of Part 1. Will I be able to read the text inside the image or recognize the text inside the image?

Please share your thoughts.

Thanks in Advance

Varun

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
masuo
Solved:
Last query:
Last reply:
Revision history for this message
Best masuo (masuo-ohara) said :
#1

[example:]
#find smallimage.png within bigimage.png and extract text from right of smallimage.
f = Finder("c:\\work\\bigimage.png")
f.findAll("smallimage.png")

while f.hasNext():
    print f.next().right(100).text()

Revision history for this message
masuo (masuo-ohara) said :
#2

Of course #1 example is for SikuliX not for Selenium.

Revision history for this message
Varun Palani (varun52mit) said :
#3

Thanks masuo, that solved my question.