Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🚀 功能建议:改进 OCR 取词异常错误提示 #478

Open
4 of 5 tasks
tisfeng opened this issue Mar 30, 2024 · 1 comment
Open
4 of 5 tasks

🚀 功能建议:改进 OCR 取词异常错误提示 #478

tisfeng opened this issue Mar 30, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@tisfeng
Copy link
Owner

tisfeng commented Mar 30, 2024

请先确认以下事项

  • 已仔细阅读了 README
  • issues 页面搜索过(包括已关闭的 issue),未发现类似功能建议
  • Easydict 已升级到 最新版本
  • 我理解并认可上述内容,并理解项目维护者精力有限,不遵循规则的 issue 可能会被无视或直接关闭

功能描述

目前使用苹果系统的 OCR 识别接口,对于部分不支持的文本语言,识别结果可能为空,此时我们应显示错误信息和提示。

例如 僧伽罗语,目前错误信息直接显示在输入框,用户体验不太好,并且代码实现也很糟糕。

这个 PR #418 tips view 显示效果不错,我们可以将它扩展优化,用于显示各种场景的错误信息提示,例如当前 OCR 识别为空的提示。

image
image image

使用场景

实现方案(可选)

No response

是否愿意提交 PR 实现该功能

  • 我愿意提交 PR
@tisfeng tisfeng added the enhancement New feature or request label Mar 30, 2024
@tisfeng
Copy link
Owner Author

tisfeng commented Mar 30, 2024

注意,目前启用 beta 特性时,系统 OCR 失败会调用有道的 OCR 测试接口,但这个接口不稳定,只作为测试使用,稍后可以关闭它,或者将它作为一个额外选项添加到【设置-高级】。

if (Configuration.shared.beta) {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants