昆山网站建设电话,iis如何建立网站,网站上传后如何设置首页,海口手机端建站模板简介
pytesseract是基于谷歌的tesseract的OCR包#xff0c;支持识别一些简单的数字、字母、中文。
安装
安装引擎
下载地址#xff1a;https://digi.bib.uni-mannheim.de/tesseract/ 一般是Windows 64位系统最新版#xff1a;
如果要识别中文#xff0c;注意选中中文…简介
pytesseract是基于谷歌的tesseract的OCR包支持识别一些简单的数字、字母、中文。
安装
安装引擎
下载地址https://digi.bib.uni-mannheim.de/tesseract/ 一般是Windows 64位系统最新版
如果要识别中文注意选中中文模块。 把tesseract.exe目录加入Path如D:\Program Files\Tesseract-OCR。
安装pytesseract包
pip install Pillow
pip install pytesseract测试代码 from PIL import Image
import pytesseractres pytesseract.image_to_string(Image.open(test.jpg), langchi_sim)
print(res)相关链接
https://github.com/tesseract-ocr/tesseract