sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #29493
Re: [Question #258394]: Preprocess Image before applying OCR .text() fn
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.