各版本系統安裝tesseract-ocr
阿新 • • 發佈:2018-07-27
安裝包 blog raw ubunt alt digi down .org pan
http://digi.bib.uni-mannheim.de/tesseract/tesseract-ocr-setup-3.05.00dev.exe
下載,並安裝。
註意:如果是64位的用戶,在安裝的時需要改變安裝目錄,如下圖所示:
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