利用python进行文字识别

import easyocr
reader = easyocr.Reader(['ch_sim','en']) 
result = reader.readtext('test.jpg')
for i in result:
    word = i[1]
    print(word)

补充:

先安装好easyocr:

pip install easyocr

扫描的文件名为test.jpg

你可能感兴趣的:(python)