python 识别简单图片里面的文字

安装:

https://digi.bib.uni-mannheim.de/tesseract/tesseract-ocr-setup-4.00.00dev.exe

并将安装目录:C:\Program Files (x86)\Tesseract-OCR

添加至

C:\Python35\Lib\site-packages\pytesseract\pytesseract.py

文件

如下:

# CHANGE THIS IF TESSERACT IS NOT IN YOUR PATH, OR IS NAMED DIFFERENTLY
tesseract_cmd = 'tesseract'
tesseract_cmd = 'C:/Program Files (x86)/Tesseract-OCR/tesseract.exe'

发表评论

电子邮件地址不会被公开。 必填项已用*标注