1、安装tesseract
2、安装tesserocr
windows环境直接pip install tesserocr 安装失败!
https://github.com/sirfz/tesserocr
conda install -c simonflueckiger tesserocr
用上面这条指令可以成功安装tesserocr,,检验是否成功安装:import一下,没报错即可
3、代码调试:
# -*- coding: utf-8 -*-
"""
Created on Wed Aug 8 10:52:03 2018
@author:
"""
from PIL import Image
import tesserocr, requests
if __name__ == '__main__':
ima