1.
2.
3.
如果出现这种错误。则按照下面这个博客进行操作:https://www.cnblogs.com/yun6853992/p/9343816.html
4.然后再
5.
我的是这个版本:
6.然后终端中输入
7.终端里输入python进入python环境或者在spyder中测试pytesseract的使用
import pytesseract
from PIL import Image
img = Image.open("./01.jpg")
code = pytesseract.image_to_string(img)
print code
8.如果code是你想要的ocr识别结果,则安装和使用成功
参考博客:
https://www.cnblogs.com/yun6853992/p/9343816.html
https://blog.csdn.net/dcrmg/article/details/78128026
https://blog.csdn.net/dcrmg/article/details/78001771