From ca2a27c9648166cb97ca543129561dacda39c030 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Wed, 18 Jan 2023 00:27:11 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20macOS=20=E7=AB=AF=20Tesseract=20OCR=20?= =?UTF-8?q?=E5=AE=89=E8=A3=85=E5=90=8E=E4=B8=8D=E8=AF=86=E5=88=AB=20https:?= =?UTF-8?q?//github.com/siyuan-note/siyuan/issues/7107?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kernel/util/tesseract.go | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/util/tesseract.go b/kernel/util/tesseract.go index 333787874..2a54bba4f 100644 --- a/kernel/util/tesseract.go +++ b/kernel/util/tesseract.go @@ -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)