1.安装 

pip install easyocr

 

2.运行

 第一次运行会安装需要词库

import easyocr
reader = easyocr.Reader(['ch_sim', 'en'])
result = reader.readtext('test2.png')
print(result)

优点识别率高,但是需要高的硬件支持,我的低端机g3250t直接不支持

CUDA not available - defaulting to CPU. Note: This module is much faster with a GPU.
[W NNPACK.cpp:79] Could not initialize NNPACK! Reason: Unsupported hardware.
Segmentation fault (core dumped)