AttributeError module PIL Image has no attribute ANTIALIAS.pptx

106 views 4 slides Sep 07, 2023
Slide 1
Slide 1 of 4
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4

About This Presentation

AttributeError module PIL Image has no attribute ANTIALIAS

https://rayups.com/attributeerror-module-pil-image-has-no-attribute-antialias


Slide Content

AttributeError module PIL Image has no attribute ANTIALIAS Error while installing EasyOCR on python environment Also Find Details at https://rayups.com/attributeerror-module-pil-image-has-no-attribute-antialias

Error -  img = cv2.resize( img ,(int( model_height *ratio), model_height ),interpolation= Image.ANTIALIAS ) AttributeError : module ' PIL.Image ' has no attribute 'ANTIALIAS' Or ERROR

ANTIALIAS is no longer supported by Pillow 10 So to solve the above error you have to downgrade your Pillow Library from Pillow 10 to Pillow 9.5

Follow below step to downgrade Pillow pip uninstall Pillow pip install Pillow==9.5.0