Python使用EasyOCR实现图片文字识别
Python使用EasyOCR实现图片文字识别
·
项目git地址
1.安装easyocr
pip install easyocr
2.使用easyocr
word.png
python代码:
import easyocr
import ssl
ssl._create_default_https_context = ssl._create_unverified_context
reader = easyocr.Reader(['ch_sim','en']) # this needs to run only once to load the model into memory
result = reader.readtext('word.png')
for i ,val in enumerate(result):
print(val[1])
输出结果:
更多推荐
所有评论(0)