Find with text or string fails

Asked by Djg

Hi,

I am trying to find a text on the screen and facing the following problems

1. I am doing something like reg=find("User ID") but this find fails.
When i give image as an input it finds the location and then i extract the text print reg.text(). it returns the correct text which i initally used in find method.

2. There are multiple locations where the same text is used but with different font size.
So, i did
fd=findAll("XYZ")
for i in fd

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
Djg (gdeepakjain) said :
#1

2. There are multiple locations where the same text is used but with different font size.
So, i did
fd=findAll("XYZ")
for i in fd
     print i
This returned the location of only one instance and the other locations it didnt find.

3. How can a wrapped text be identified using find. If i give something like find("abc def ghi") will the OCR take care of this.
The text is wrapped as
"abc def
 ghi"

I am using RC2 in windows XP. Can RC3 help me with the above issues?

Please help me on these. thanks

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

No, rc3 will not help yet.
And if it does not work, there is nothing you can do to make it work currently.

These are all known problems and bugs (bug 710586)

The developers are currently on the road to improve the OCR feature of Sikuli.
So you have to wait.

Can you help with this problem?

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

To post a message you must log in.