← Back to team overview

sikuli-driver team mailing list archive

[Question #280972]: Spacing issue when using .text() feature

 

New question #280972 on Sikuli:
https://answers.launchpad.net/sikuli/+question/280972

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)

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.