sml2h3 / ddddocr

带带弟弟 通用验证码识别OCR pypi版
https://ddddocr.com/
MIT License
8.94k stars 1.63k forks source link

i have got error!!!1.5.4 #198

Open chengriyue opened 2 weeks ago

chengriyue commented 2 weeks ago

A module that was compiled using NumPy 1.x cannot be run in NumPy 2.0.0 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.

If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2.

我的环境是python3.12.3 ,用的ddddocr 1.5.4

chengriyue commented 2 weeks ago

example.py

import ddddocr

ocr = ddddocr.DdddOcr() 文件里面才就写了这两句

chengriyue commented 2 weeks ago

除了降级numpy包没有别的办法吗

sml2h3 commented 2 weeks ago

目前看可能只能等降级,等待相关依赖更新~

chengriyue commented 2 weeks ago

降级到 numpy = 1.26.4 对您的包不会有什么影响吗,就针对于ddddocr1.5.4来说

ArcticLampyrid commented 1 week ago

应该需要等 onnxruntime 支持 NumPy 2.0 https://github.com/microsoft/onnxruntime/pull/21085