mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🐛 macOS 端 Tesseract OCR 安装后不识别 https://github.com/siyuan-note/siyuan/issues/7107
This commit is contained in:
parent
958c570eb9
commit
ca2a27c964
1 changed files with 1 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue