首页 > 其他 > 详细

各版本系统安装tesseract-ocr

时间:2018-07-27 20:20:51      阅读:238      评论:0      收藏:0      [点我收藏+]

Mac版本

1.tesseract-ocr安装 

brew install tesseract-ocr

 

注意:如果未安装brew命令,可以输入命令: 
brew官网:http://brew.sh

/usr/bin/ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)”

 

2.pytesseract安装 

sudo pip install pytesseract

 

3.Pillow 安装 

sudo pip install pillow

 

Ubuntu版本

1.tesseract-ocr安装 

sudo apt-get install tesseract-ocr

 

2.pytesseract安装 

sudo pip install pytesseract

 

3.Pillow 安装 

sudo pip install pillow

 

其他linux版本(如centos)

1.tesseract-ocr安装 
  没找到直接命令安装,所以需要手动下载安装包。 
       https://github.com/tesseract-ocr/tesseract 
  在上述地址中下载最新的tesseract-ocr的安装包,并解压。 
  通过以下命令安装: 
    (1)cd tesseract-3.04.01

    (2)./autogen.sh

    (3)./configure 
    注意,如果出现error: leptonica not found,需要下载安装leptonica 
       http://www.leptonica.org/download.html

    (4)make

    (5)make install

    (6)ldconfig

2.pytesseract安装 

sudo pip install pytesseract

 

3.Pillow 安装 

sudo pip install pillow

 

 windows版本

1.tesseract-ocr安装 
      http://digi.bib.uni-mannheim.de/tesseract/tesseract-ocr-setup-3.05.00dev.exe 
  下载,并安装。 
  注意:如果是64位的用户,在安装的时需要改变安装目录,如下图所示: 
技术分享图片

 

2.pytesseract安装 

pip install pytesseract

 

3.Pillow 安装 

pip install pillow

 

 

          

 

各版本系统安装tesseract-ocr

原文:https://www.cnblogs.com/zhuminghui/p/9379333.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!