← 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

deva requested more information:
tried the below code:

imgWithText = Image.create("C:\Users\Admin\Desktop\resizeimg.png") # creates in memory image of the given region
ar= imgWithText.resize(0.33) # resizes the image with the given factor as decimal number
s = ar.text()
print s

ERROR:

[error] script [ testresize ] stopped with error in line 2
[error] java.lang.NullPointerException ( java.lang.NullPointerException )


Please help to resolve it

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