Skip to content

Commit

Permalink
🐛 OCR function cannot be used normally on Linux siyuan-note#12960
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed Oct 31, 2024
1 parent 59bb202 commit 92504ab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kernel/util/ocr.go
Original file line number Diff line number Diff line change
Expand Up @@ -228,9 +228,10 @@ func Tesseract(imgAbsPath string) (ret []map[string]interface{}) {
}

tsv := string(output)
logging.LogInfof("tesseract [path=%s] success [%s]", imgAbsPath, tsv)
//logging.LogInfof("tesseract [path=%s] success [%s]", imgAbsPath, tsv)

// 按行分割 TSV 数据
tsv = strings.ReplaceAll(tsv, "\r", "")
lines := strings.Split(tsv, "\n")

// 解析 TSV 数据 跳过标题行,从第二行开始处理
Expand Down

0 comments on commit 92504ab

Please sign in to comment.