Skip to content

Commit

Permalink
🎨 桌面端支持搜索图片 OCR 文本 #3470
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed Jan 16, 2023
1 parent f49ebee commit 6cdfde7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/util/tesseract.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ func initTesseract() {
}

for _, lang := range langs {
if "eng" == lang || "chi_sim" == lang {
if "eng" == lang || strings.HasPrefix(lang, "chi") {
TesseractLangs = append(TesseractLangs, lang)
}
}
Expand Down

0 comments on commit 6cdfde7

Please sign in to comment.