Mac下tesseract-ocr安装(用于图片识别)

写在最前面:

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%

 就这样。

  • 1
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值