Closed Do1e closed 10 months ago
使用最新的Pillow 10.0.0报错:
".../ddddocr/__init__.py", line 1614, in classification image = image.resize((int(image.size[0] * (64 / image.size[1])), 64), Image.ANTIALIAS).convert('L') AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS'
应该为Image.LANCZOS,或修改install_requires 参考Pillow文档
Image.LANCZOS
pip install Pillow==9.2.0
pip3 install --force-reinstall -v "Pillow==9.5.0"
使用最新的Pillow 10.0.0报错:
应该为
Image.LANCZOS
,或修改install_requires 参考Pillow文档