🐛 macOS 端 Tesseract OCR 安装后不识别 https://github.com/siyuan-note/siyuan/issues/7107

This commit is contained in:
Liang Ding 2023-01-18 00:27:11 +08:00
parent 958c570eb9
commit ca2a27c964
No known key found for this signature in database
GPG key ID: 136F30F901A2231D

View file

@ -147,6 +147,7 @@ func getTesseractVer() (ret string) {
data, err := cmd.CombinedOutput()
if nil != err {
if strings.Contains(err.Error(), "executable file not found") {
// macOS 端 Tesseract OCR 安装后不识别 https://github.com/siyuan-note/siyuan/issues/7107
TesseractBin = "/usr/local/bin/tesseract"
cmd = exec.Command(TesseractBin, "--version")
gulu.CmdAttr(cmd)