Extract string from image that contains spaces between words and then print the extracted text
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:
Can you help with this problem?
Provide an answer of your own, or ask Maryam for more information if necessary.