Question #258394 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/258394

RaiMan proposed the following answer:
imgWithText = Image.create("C:\Users\Admin\Desktop\resizeimg.png")
if imgWithText.isValid():
  ar= Image(imgWithText.resize(0.33))
  s = ar.text()
  print s

in your case, the imgWithText is not valid (has no BufferedImage), since it was 
not found on disk:
the \ must be doubled or you use r"filename with \"

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to