Skip to content

只有在启用 Tesseract 的情况下才能进行 ocr 搜索 #12107

Closed
@2234839

Description

@2234839
Member

Is there an existing issue for this?

  • I have searched the existing issues

Can the issue be reproduced with the default theme (daylight/midnight)?

  • I was able to reproduce the issue with the default theme

Could the issue be due to extensions?

  • I've ruled out the possibility that the extension is causing the problem.

Describe the problem

这个帖子有人反馈无法搜索图片 https://ld246.com/article/1718783978167/comment/1721268978239#comments

我阅读代码

func IsNodeOCRed(node *ast.Node) (ret bool) {

发现这里似乎是只有 Tesseract 启用了才能进行 ocr 搜索,这导致插件提供的 ocr 搜索功能也还需要用户启用 Tesseract ,或者用户之前使用 Tesseract 建立了 ocr-text.json 但后面关闭的话还是不能进行搜索

Expected result

ocr 搜索只与 ocr-text.json 相关,不和 Tesseract 强绑定

Screenshot or screen recording presentation

No response

Version environment

- Version: v3.1.1
- Operating System: windows11
- Browser (if used):

Log file

none

More information

No response

Activity

self-assigned this
on Aug 28, 2024
88250

88250 commented on Aug 28, 2024

@88250
assigned and unassigned on Sep 12, 2024
88250

88250 commented on Sep 12, 2024

@88250
Member

经过分析,不启用 OCR 时也可以搜索到的,只是要等重建索引执行完才能搜索到。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @88250@2234839

      Issue actions

        只有在启用 Tesseract 的情况下才能进行 ocr 搜索 · Issue #12107 · siyuan-note/siyuan