mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-16 12:08:07 +01:00
This commit is contained in:
parent
78ed38a33a
commit
df9122b664
16 changed files with 175 additions and 197 deletions
|
|
@ -19,15 +19,12 @@ import (
|
|||
"github.com/siyuan-note/siyuan/kernel/util"
|
||||
)
|
||||
|
||||
func AutoOCRAssets() {
|
||||
func OCRAssetsJob() {
|
||||
if !util.TesseractEnabled {
|
||||
return
|
||||
}
|
||||
|
||||
for {
|
||||
task.AppendTask(task.OCRImage, autoOCRAssets)
|
||||
time.Sleep(7 * time.Second)
|
||||
}
|
||||
task.AppendTask(task.OCRImage, autoOCRAssets)
|
||||
}
|
||||
|
||||
func autoOCRAssets() {
|
||||
|
|
@ -111,11 +108,8 @@ func getUnOCRAssetsAbsPaths() (ret []string) {
|
|||
return
|
||||
}
|
||||
|
||||
func AutoFlushAssetsTexts() {
|
||||
for {
|
||||
SaveAssetsTexts()
|
||||
time.Sleep(7 * time.Second)
|
||||
}
|
||||
func FlushAssetsTextsJob() {
|
||||
SaveAssetsTexts()
|
||||
}
|
||||
|
||||
func LoadAssetsTexts() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue