← Back to team overview

sikuli-driver team mailing list archive

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:
uuups, you got me ;-)

Image.resize() returns a BufferedImage, that has to be made an Image
first:

imgWithText = Image.create("C:\Users\Admin\Desktop\resizeimg.png")
ar= Image(imgWithText.resize(0.33))
s = ar.text()
print s

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