mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 15:10:12 +01:00
🎨 OCR logging
This commit is contained in:
parent
fb3a6c3059
commit
8c83ea6a52
1 changed files with 2 additions and 0 deletions
|
|
@ -69,6 +69,8 @@ func Tesseract(imgAbsPath string) string {
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
|
defer logging.Recover()
|
||||||
|
|
||||||
if !IsTesseractExtractable(imgAbsPath) {
|
if !IsTesseractExtractable(imgAbsPath) {
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue