各版本系統安裝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
相關文章
相關標籤/搜索