美文网首页
win10下EasyOCR部署

win10下EasyOCR部署

作者: david9 | 来源:发表于2023-05-02 10:51 被阅读0次

安装Anaconda

下载并安装:Anaconda

部署EasyOCR

新建OCR环境,激活

conda create -n ocr python=3.6
conda activate ocr

安装pytorch(cpuonly 模式)

conda install pytorch torchvision torchaudio cpuonly -c pytorch

安装easyocr等依赖

pip install easyocr -i https://pypi.tuna.tsinghua.edu.cn/simple
pip install packaging -i https://pypi.tuna.tsinghua.edu.cn/simple

安装EasyOCR

pip install git+https://github.com/JaidedAI/EasyOCR.git

测试

在ocr环境中,打开python命令行

conda activate ocr
python

验证

import easyocr
#this needs to run only once to load the model into memory
reader = easyocr.Reader(['ch_sim','en'])
result = reader.readtext('chinese.jpg')
print(result)

相关文章

网友评论

      本文标题:win10下EasyOCR部署

      本文链接:https://www.haomeiwen.com/subject/ramajdtx.html