mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-06 00:38:49 +01:00
🎨 Tesseract OCR 使用用户安装的语言包 Fix https://github.com/siyuan-note/siyuan/issues/7157
This commit is contained in:
parent
4d18229320
commit
5bf2aaea05
1 changed files with 1 additions and 3 deletions
|
|
@ -118,9 +118,7 @@ func initTesseract() {
|
|||
}
|
||||
|
||||
for _, lang := range langs {
|
||||
if "eng" == lang || strings.HasPrefix(lang, "chi") {
|
||||
TesseractLangs = append(TesseractLangs, lang)
|
||||
}
|
||||
TesseractLangs = append(TesseractLangs, lang)
|
||||
}
|
||||
logging.LogInfof("tesseract-ocr enabled [ver=%s, langs=%s]", ver, strings.Join(TesseractLangs, "+"))
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue