← Back to team overview

sikuli-driver team mailing list archive

[Question #273792]: OCR 'java.awt.image.BufferedImage' object has no attribute 'resize'

 

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

I've tried the following code from your suggestion in another OCR question

img = capture(SCREEN) # get the image from the screen (in memory)
img1 = Image.create(img) # create an with the new Image class (still in memory)
imgGrey = img1.convertImageToGrayscale(img1.get()) # does what it says (still in memory)
imgGreyResized = imgGrey.resize(3) # resize the image to about 300dpi (usually 3 as factor is sufficient) (still in memory)

got this error...

[error] AttributeError ( 'java.awt.image.BufferedImage' object has no attribute 'resize' )

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