Spacing issue when using .text() feature

Asked by TooFanHasArrived

Hello,

I am using the .text() feature to extract text from an image. In the image, the wording is as follows:

"I have a red apple and 2 oranges"

When I extract the wording and paste it in notepad, the wording appears slightly off as shown below:

"Ih ave ar ed apple and 2o ranges"

How can I fix this so that the wording appears without the spacing issues shown? Below is my code:

words = find(img.png).text()
#code for opening notepad and clicking in it
paste(words)

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
Katy (katymagowan) said :
#1

In reference to Sikuli OCR:

Please note the OCR technology is not perfect, especially for screen text. We believe there is still much space for tuning its performance and we are working hard to improve it. Please look forward to it.

Revision history for this message
TooFanHasArrived (rkhan) said :
#2

Any ETA on the improvement?

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

Sorry no.
Sometime during second half this year (possibly earlier in nightly builds of version 2)

Can you help with this problem?

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

To post a message you must log in.