首页 > 未分类

Python Tesseract图像处理之图片文字识别(OCR)

2021年4月26日

安装Python,Tesseract,Pillow
下载安装Python
https://www.python.org/ftp/python/3.8.9/python-3.8.9-amd64.exe
安装pytesseract
pip install pytesseract
安装Pillow
pip install Pillow
Tesseract下载安装https://digi.bib.uni-mannheim.de/tesseract/
将Tesseract添加到系统变量中。在CMD中输入tesseract -v,
识别简体中文先下载
https://github.com/tesseract-ocr/tessdata/find/master/chi_sim.traineddata
将chi_sim.traineddata复制到
(X):\Program Files (x86)\Tesseract-OCR\tessdata目录下
tesseract D://figures/test.jpg D://figures/test.txt -l chi_sim

声明: 本文采用 BY-NC-SA 协议进行授权. 转载请注明转自: Python Tesseract图像处理之图片文字识别(OCR)
本文的评论功能被关闭了.