GhostAatrox
总有一个理由,让自己开始变强
import pytesseract
from PIL import Image
#设置tesseract安装路径
pytesseract.tesseract_cmd=r'C:\Program Files (x86)\Tesseract-OCR\tesseract.exe'
image = Image.open(r"C:\Users\Administrator\Desktop\3.jpg")
print(pytesseract.image_to_string(image))

 

posted on 2018-04-11 22:43  GhostAatrox  阅读(118)  评论(0)    收藏  举报