「Please make sure the TESSDATA_PREFIX environment variable is set to your 「tessdata」 directory」

「Please make sure the TESSDATA_PREFIX environment variable is set to your 「tessdata」 directory」bash

這是由於沒有將 tesseract/tesserdata 加入到環境變量裏面。
將 TESSDATA_PREFIX 加入到用戶環境變量,步驟以下:markdown

sudo vi ~/.bash_profile

添加到文檔末尾,並保存退出ide

export TESSDATA_PREFIX=/Users/user_name/tesseract/tessdata

重啓電腦環境就會生效(source ~/.bash_profile並無論用。。。只有重啓纔會生效)atom

相關文章
相關標籤/搜索