mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-31 05:48:49 +01:00
🎨 桌面端支持搜索图片 OCR 文本 https://github.com/siyuan-note/siyuan/issues/3470
This commit is contained in:
parent
aa6f7c8793
commit
8dd5903887
1 changed files with 9 additions and 1 deletions
|
|
@ -116,7 +116,15 @@ func initTesseract() {
|
|||
logging.LogWarnf("no eng tesseract lang found")
|
||||
return
|
||||
}
|
||||
if !gulu.Str.Contains("chi_", langs) {
|
||||
|
||||
foundChi := false
|
||||
for _, lang := range langs {
|
||||
if strings.Contains(lang, "chi") {
|
||||
foundChi = true
|
||||
break
|
||||
}
|
||||
}
|
||||
if !foundChi {
|
||||
logging.LogWarnf("no chi_* tesseract lang found")
|
||||
return
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue