38 Commits

Author SHA1 Message Date
Jeffrey Chen 5c674d7249 ♻️ Replace interface{} with any (#17415) 2026-04-05 16:48:32 +08:00
Jeffrey Chen 71342abe99 ♻️ Code style: Omit explicit types and remove unused (blank identifier) parameters (#17310) 2026-03-22 11:30:20 +08:00
Jeffrey Chen e7914f99f6 🎨 Avoid creating empty ocr-texts.json when OCR is disabled (#16597)
- Skip file creation when OCR is disabled, file doesn't exist, and assetsTexts is empty
- Fix potential deadlock by releasing lock when marshal fails
2025-12-16 10:46:38 +08:00
Daniel a5a82795ad 🎨 Image OCR supports setting the timeout via the environment variable SIYUAN_TESSERACT_TIMEOUT https://github.com/siyuan-note/siyuan/issues/16419
Signed-off-by: Daniel <845765@qq.com>
2025-11-22 14:43:03 +08:00
Daniel bebf8c8e9b 🎨 Image OCR supports setting the timeout via the environment variable SIYUAN_TESSERACT_TIMEOUT https://github.com/siyuan-note/siyuan/issues/16419
Signed-off-by: Daniel <845765@qq.com>
2025-11-22 14:42:18 +08:00
Daniel d06b370077 🎨 Image OCR supports more formats https://github.com/siyuan-note/siyuan/issues/16418
Signed-off-by: Daniel <845765@qq.com>
2025-11-22 10:55:08 +08:00
Daniel 8e9cc60909 🎨 Improve ocr bin detect https://github.com/siyuan-note/siyuan/issues/7107#issuecomment-3541763667
Signed-off-by: Daniel <845765@qq.com>
2025-11-17 21:37:07 +08:00
Daniel a756ca2dde 🐛 Image OCR may not work in some cases https://github.com/siyuan-note/siyuan/issues/16287
Signed-off-by: Daniel <845765@qq.com>
2025-11-05 11:29:51 +08:00
Daniel 70741fffcc 🎨 Re OCR popup prompt when Tesseract is not enabled https://github.com/siyuan-note/siyuan/issues/15367 2025-07-25 19:34:35 +08:00
Daniel ac5c49579c 🎨 Tesseract langs support jpn https://github.com/siyuan-note/siyuan/issues/14986 2025-06-07 22:13:26 +08:00
Daniel 5cd46fd7a6 🐛 Fix a NPE in OCR 2025-04-04 19:34:17 +08:00
Daniel 7446599c0f 🎨 Remove Unicode PUA characters https://github.com/siyuan-note/siyuan/issues/13291 2024-11-27 20:15:37 +08:00
Daniel 141374b7c1 🐛 Fix ocr-texts.json unexpected write 2024-11-05 08:35:25 +08:00
Daniel 92504ab280 🐛 OCR function cannot be used normally on Linux https://github.com/siyuan-note/siyuan/issues/12960 2024-10-31 11:52:41 +08:00
Daniel 59bb202b13 🎨 Add logging https://github.com/siyuan-note/siyuan/issues/12960 2024-10-31 11:08:25 +08:00
Daniel cb16e5781e 🎨 Add logging https://github.com/siyuan-note/siyuan/issues/12960 2024-10-31 11:02:30 +08:00
Daniel b844ff5503 🎨 Add logging https://github.com/siyuan-note/siyuan/issues/12960 2024-10-31 10:51:26 +08:00
Daniel aab6131945 🎨 Improve asset rename ocr text https://github.com/siyuan-note/siyuan/issues/12974 2024-10-30 23:17:55 +08:00
Oleksandr Redko b100721fee ♻️ Refactor Go to err != nil, err == nil (#12385) 2024-09-04 09:40:50 +08:00
崮生 c0bd645048 Kernel API OCR returns text coordinate information (#11738)
* 优化setImageOCRText接口调用

* 扩展 ocr 接口,添加 ocrJSON 返回字段

* 过滤不可见字符

* 返回的ocr文本添加空格
2024-06-16 22:55:22 +08:00
崮生 b590091c9e 🎨 Remove the check for !TesseractEnabled when saving OCR recognition results (#11708)
* 去除保存ocr识别结果时对 !TesseractEnabled 的检测

* 🐛 https://github.com/siyuan-note/siyuan/issues/11709

* https://github.com/siyuan-note/siyuan/pull/11708

修改ocr相关接口

* https://github.com/siyuan-note/siyuan/pull/11708

修改前端相关代码

* Update router.go

* Update router.go

---------

Co-authored-by: Vanessa <lly219@gmail.com>
2024-06-15 17:51:48 +08:00
Daniel e050f760de 🎨 OCR 未启用时不保存 ocr-texts.json https://github.com/siyuan-note/siyuan/issues/11171 2024-04-29 16:30:46 +08:00
Daniel af694f6301 🎨 OCR 未启用时不保存 ocr-texts.json https://github.com/siyuan-note/siyuan/issues/11171 2024-04-29 16:28:43 +08:00
Liang Ding c4208596e4 🎨 桌面端支持搜索图片 OCR 文本 https://github.com/siyuan-note/siyuan/issues/3470 2023-01-16 22:26:38 +08:00
Liang Ding f40f9b6b2f 🎨 桌面端支持搜索图片 OCR 文本 https://github.com/siyuan-note/siyuan/issues/3470 2023-01-16 21:03:12 +08:00
Liang Ding c50f231d81 🎨 桌面端支持搜索图片 OCR 文本 https://github.com/siyuan-note/siyuan/issues/3470 2023-01-16 21:00:52 +08:00
Liang Ding 1befd3fc47 🎨 桌面端支持搜索图片 OCR 文本 https://github.com/siyuan-note/siyuan/issues/3470 2023-01-16 17:26:13 +08:00
Liang Ding 0e5d2dc87c 🎨 桌面端支持搜索图片 OCR 文本 https://github.com/siyuan-note/siyuan/issues/3470 2023-01-16 17:25:13 +08:00
Liang Ding 15cd499f56 ⬆️ 数据仓库迁出时忽略 .tmp 临时文件 https://github.com/siyuan-note/siyuan/issues/7087 2023-01-16 16:55:00 +08:00
Liang Ding d53e7cbee3 🎨 桌面端支持搜索图片 OCR 文本 https://github.com/siyuan-note/siyuan/issues/3470 2023-01-16 16:18:32 +08:00
Liang Ding 9788cce4b0 🎨 桌面端支持搜索图片 OCR 文本 https://github.com/siyuan-note/siyuan/issues/3470 2023-01-16 16:16:34 +08:00
Liang Ding 5593542f73 🎨 桌面端支持搜索图片 OCR 文本 https://github.com/siyuan-note/siyuan/issues/3470 2023-01-16 15:39:31 +08:00
Liang Ding daa30de3c9 🎨 桌面端支持搜索图片 OCR 文本 https://github.com/siyuan-note/siyuan/issues/3470 2023-01-16 15:21:11 +08:00
Liang Ding 9da8192567 🎨 桌面端支持搜索图片 OCR 文本 https://github.com/siyuan-note/siyuan/issues/3470 2023-01-16 14:45:31 +08:00
Liang Ding 92ed2f38e7 🎨 桌面端支持搜索图片中的文本 Fix https://github.com/siyuan-note/siyuan/issues/3470 2023-01-16 11:50:11 +08:00
Liang Ding 938e5c677a 🎨 桌面端支持搜索图片中的文本 Fix https://github.com/siyuan-note/siyuan/issues/3470 2023-01-16 11:50:10 +08:00
Liang Ding 5ae14c48f3 🎨 桌面端支持搜索图片中的文本 Fix https://github.com/siyuan-note/siyuan/issues/3470 2023-01-15 23:54:13 +08:00
Liang Ding db810d6a4b 🎨 桌面端支持搜索图片中的文本 Fix https://github.com/siyuan-note/siyuan/issues/3470 2023-01-15 23:50:12 +08:00