windows下tesseract-ocr的安装及使用

windows下tesseract-ocr的安装及使用
强烈推介IDEA2021.1.3破解激活,IntelliJ IDEA 注册码,2021.1.3IDEA 激活码  

大家好,我是架构君,一个会写代码吟诗的架构师。今天说一说windows下tesseract-ocr的安装及使用,希望能够帮助大家进步!!!

For CentOS 7 run the following as root:

yum-config-manager --add-repo https://download.opensuse.org/repositories/home:/Alexander_Pozdnyakov/CentOS_7/
sudo rpm --import https://build.opensuse.org/projects/home:Alexander_Pozdnyakov/public_key
yum update
yum install tesseract 
yum install tesseract-langpack-deu


windows下载地址:https://github.com/UB-Mannheim/tesseract/wiki

2.python安装:

  pip install pytesseract

  pip install PILLOW
 
3.使用代码:
  

import pytesseract
from PIL import Image

image = Image.open('timg.jpg')
code = pytesseract.image_to_string(image)
print(code)

 

 

 

参考网址:https://blog.csdn.net/qq_37193537/article/details/81335165

https://blog.csdn.net/qq_14998713/article/details/78824859

转载于:https://www.cnblogs.com/jingzaixin/p/11532655.html

本文来源weixin_30595035,由架构君转载发布,观点不代表Java架构师必看的立场,转载请标明来源出处:https://javajgs.com/archives/29274

发表评论