We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
查看一下pillow的版本:10.0.0
通过在pillow官方网站,release notes中找到了问题: 原来是在pillow的10.0.0版本中,ANTIALIAS方法被删除了,改为10.0版本许可的参数即可。
解决办法:(推荐方案二)
方案一,修改ddddocr的_init_.py文件,将其中的ANTIALIAS替换为新方法:
image = image.resize((int(image.size[0] * (64 / image.size[1])), 64), Image.LANCZOS).convert('L')
方案二,降级Pillow的版本,比如使用9.5.0版本
先卸载,再重新安装
pip uninstall -y Pillowpip install Pillow==9.5.0 两种方案都亲测可用
The text was updated successfully, but these errors were encountered:
同样遇到了这种问题
Sorry, something went wrong.
pip install Pillow==9.5.0
两个方法都没用的,我都试过了
pip install Pillow==9.5.0 两个方法都没用的,我都试过了
我重新更新了下代码好了
感谢! 解决了问题
我直接升级到10.2.0解决了 pip install --upgrade pillow
No branches or pull requests
查看一下pillow的版本:10.0.0
通过在pillow官方网站,release notes中找到了问题:
原来是在pillow的10.0.0版本中,ANTIALIAS方法被删除了,改为10.0版本许可的参数即可。
解决办法:(推荐方案二)
方案一,修改ddddocr的_init_.py文件,将其中的ANTIALIAS替换为新方法:
image = image.resize((int(image.size[0] * (64 / image.size[1])), 64), Image.ANTIALIAS).convert('L')
image = image.resize((int(image.size[0] * (64 / image.size[1])), 64), Image.LANCZOS).convert('L')
方案二,降级Pillow的版本,比如使用9.5.0版本
先卸载,再重新安装
pip uninstall -y Pillowpip install Pillow==9.5.0
两种方案都亲测可用
The text was updated successfully, but these errors were encountered: