Extract string from image that contains spaces between words and then print the extracted text

Asked by Maryam

I am using sikuli ide 1.1.1 and I want to extract string from image that contains spaces between words and then print the extracted text from image. I am using the following code for extraction of text
a = find (image).text ( )
print a
But it couldn't extract spaces between words correctly. For example if an image contains following text:
Text Recognition Example
Then by applying the above mentioned code I got an output: TextRecognition Example
Note: There is no space extracted between Text and Recognition.
The above mentioned script works well for extraction of word from some images not all.
I use the above mentioned script on sikuli ide 1.1.1 and sikuli-X-1.0RC3 but faced same problem. Will you please give me some solution to resolve these problems?

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

Sikuli(X) text feature has not changed since 1.0RC3:
we have to live with its weaknesses and odds.
No chance currently: take it as is or leave it, sorry.

Only version 2 should bring improvements later this year.

Can you help with this problem?

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

To post a message you must log in.