1. 程式人生 > >各版本系統安裝tesseract-ocr

各版本系統安裝tesseract-ocr

安裝包 blog raw ubunt alt digi down .org pan

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