Mac OS安装Tesseract

  • 安装homebrew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  • 使用homebrew安装tesseract
brew install tesseract
  • 测试tesseract
tesseract abc.png result
  • 安装数据集
wget -P /usr/local/Cellar/tesseract/4.1.1/share/tessdata https://raw.githubusercontent.com/tesseract-ocr/tessdata/master/chi_sim.traineddata
如果觉得我的文章对你有用,请随意赞赏