1. 程式人生 > >mac 安裝tesseract-ocr

mac 安裝tesseract-ocr

  1. 利用brew安裝tesseract-ocr
brew install tesseract

安裝過程

==> Installing dependencies for tesseract: libpng, jpeg, libtiff, leptonica
==> Installing tesseract dependency: libpng
==> Downloading https://homebrew.bintray.com/bottles/libpng-1.6.26.yosemite.bott
##########################################
############################## 100.0% ==> Pouring libpng-1.6.26.yosemite.bottle.tar.gz �� /usr/local/Cellar/libpng/1.6.26: 26 files, 1.2M ==> Installing tesseract dependency: jpeg ==> Downloading https://homebrew.bintray.com/bottles/jpeg-8d.yosemite.bottle.2.t ##########################################
############################## 100.0% ==> Pouring jpeg-8d.yosemite.bottle.2.tar.gz �� /usr/local/Cellar/jpeg/8d: 19 files, 731K ==> Installing tesseract dependency: libtiff ==> Downloading https://homebrew.bintray.com/bottles/libtiff-4.0.7.yosemite.bott ######################################################
################## 100.0% ==> Pouring libtiff-4.0.7.yosemite.bottle.tar.gz �� /usr/local/Cellar/libtiff/4.0.7: 248 files, 3.3M ==> Installing tesseract dependency: leptonica ==> Downloading https://homebrew.bintray.com/bottles/leptonica-1.73.yosemite.bottle.tar.gz ######################################################################## 100.0% ==> Pouring leptonica-1.73.yosemite.bottle.tar.gz �� /usr/local/Cellar/leptonica/1.73: 50 files, 5.5M ==> Installing tesseract ==> Downloading https://homebrew.bintray.com/bottles/tesseract-3.04.01_2.yosemite.bottle.tar.gz ######################################################################## 100.0% ==> Pouring tesseract-3.04.01_2.yosemite.bottle.tar.gz �� /usr/local/Cellar/tesseract/3.04.01_2: 76 files, 39M

使用brew安裝tesseract會自動安裝依賴的包,避免安裝過程中出現各種錯誤