上次说到TextRenderer 出了新版
https://github.com/oh-my-ocr/text_rendererhttps://github.com/oh-my-ocr/text_renderer新版项目地址如上
这个项目完全可以用上次旧版的TextRenderer虚拟环境
先编译项目
python setup.py develop
然后
pip install -r docker/requirements.txt -i https://pypi.douban.com/simple
中间会爆这个错误:
ValueError: numpy.ufunc size changed, may indicate binary incompatibility. Expected 216 from C header, got 192 from PyObject
原因是numpy版本过低,升级numpy就可以
pip install --upgrade numpy