Mac下tesseract-ocr安装(用于图片识别)
程序员文章站
2022-07-06 10:40:15
...
写在最前面:
tesseract-ocr可以用来进行图片的识别
首先
brew install tesseract-ocr
发现安装了brew还是会报错
-bash: brew: command not found
然后
sudo vim .bash_profile
添加
export PATH=/usr/local/bin:$PATH
然后使生效
source .bash_profile
输入命令
brew install tesseract
等待安装
==> Installing dependencies for tesseract: jpeg, libpng, libtiff and leptonica
==> Installing tesseract dependency: jpeg
==> Downloading https://homebrew.bintray.com/bottles/jpeg-9c.mojave.bottle.tar.g
######################################################################## 100.0%
==> Pouring jpeg-9c.mojave.bottle.tar.gz
? /usr/local/Cellar/jpeg/9c: 21 files, 733.4KB
==> Installing tesseract dependency: libpng
==> Downloading https://homebrew.bintray.com/bottles/libpng-1.6.35.mojave.bottle
######################################################################## 100.0%
==> Pouring libpng-1.6.35.mojave.bottle.tar.gz
? /usr/local/Cellar/libpng/1.6.35: 26 files, 1.2MB
==> Installing tesseract dependency: libtiff
==> Downloading https://homebrew.bintray.com/bottles/libtiff-4.0.9_4.mojave.bott
######################################################################## 100.0%
==> Pouring libtiff-4.0.9_4.mojave.bottle.tar.gz
? /usr/local/Cellar/libtiff/4.0.9_4: 246 files, 3.5MB
==> Installing tesseract dependency: leptonica
==> Downloading https://homebrew.bintray.com/bottles/leptonica-1.76.0.mojave.bot
###################### 31.0%
就这样。
上一篇: Kibana 语法
下一篇: 考试成绩平台开发功能