各版本系统安装tesseract-ocr

Mac版本html

1.tesseract-ocr安装 linux

brew install tesseract-ocr

 

注意:若是未安装brew命令,能够输入命令: 
brew官网:http://brew.shgit

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

 

2.pytesseract安装 github

sudo pip install pytesseract

 

3.Pillow 安装 windows

sudo pip install pillow

 

Ubuntu版本centos

1.tesseract-ocr安装 ruby

sudo apt-get install tesseract-ocr

 

2.pytesseract安装 curl

sudo pip install pytesseract

 

3.Pillow 安装 url

sudo pip install pillow

 

其余linux版本(如centos)spa

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
相关文章
相关标签/搜索