computervisioneng / automatic-number-plate-recognition-python-yolov8

GNU Affero General Public License v3.0
347 stars 143 forks source link

AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' #8

Open ltrungkien2307 opened 1 year ago

ltrungkien2307 commented 1 year ago

image

geeker-com commented 1 year ago

Downgrade Pillow to 9.5.0 fixes would fix this issue. Try it and give feedback.

ltrungkien2307 commented 1 year ago

Downgrade Pillow to 9.5.0 fixes would fix this issue. Try it and give feedback.

it shows these things, what should i do to solve them Screenshot 2023-07-26 013846

ltrungkien2307 commented 1 year ago

Downgrade Pillow to 9.5.0 fixes would fix this issue. Try it and give feedback.

image how can i fix it

geeker-com commented 1 year ago

bro first of all downgrading for downgrading pillow you need to create new environment and then pip install pillow==9.5.0 in it and further install other things into it like ultralytics and etc , I guess here you have made changes to the existing environment and thus its causing trouble .

ltrungkien2307 commented 1 year ago

bro first of all downgrading for downgrading pillow you need to create new environment and then pip install pillow==9.5.0 in it and further install other things into it like ultralytics and etc , I guess here you have made changes to the existing environment and thus its causing trouble .

i tried but still not working .bro can you help me. my facebook : https://www.facebook.com/kien0ngu

ltrungkien2307 commented 1 year ago

bro first of all downgrading for downgrading pillow you need to create new environment and then pip install pillow==9.5.0 in it and further install other things into it like ultralytics and etc , I guess here you have made changes to the existing environment and thus its causing trouble .

image it repeats infinitely, what should i do

ltrungkien2307 commented 1 year ago

Downgrade Pillow to 9.5.0 fixes would fix this issue. Try it and give feedback.

I have to submit this project in few hours, please help me =((

AkhtarXx commented 9 months ago

Downgrade Pillow to 9.5.0 fixes would fix this issue. Try it and give feedback.

I have to submit this project in few hours, please help me =((

ANTIALIAS was removed in Pillow 10.0.0 (after being deprecated through many previous versions). Now you need to use PIL.Image.LANCZOS or PIL.Image.Resampling.LANCZOS.

(This is the exact same algorithm that ANTIALIAS referred to, you just can no longer access it through the name ANTIALIAS.)

jasuriy commented 8 months ago

@ltrungkien2307

Hi I have the same error with you: repeating infinitely Did you solve this problem? @computervisioneng Could you please help me with that? thanks in advance.

AkhtarXx commented 8 months ago

@ltrungkien2307

Hi I have the same error with you: repeating infinitely Did you solve this problem? @computervisioneng Could you please help me with that? thanks in advance.

'PIL.Image' has no attribute 'ANTIALIAS replace with this ' .Image.Resampling.LANCZOS