tisfeng / Raycast-Easydict

A Raycast Extension for looking up words or translating text in an easy way. Support 48+ languages, support Linguee and Youdao dictionary, support OpenAI, DeepL, Google, Bing, Apple, Baidu, Tencent, Volcano, Youdao and Caiyun translation.
https://www.raycast.com/isfeng/easydict
MIT License
404 stars 23 forks source link

feat: add OCR recognition #41

Closed aidevjoe closed 1 year ago

aidevjoe commented 1 year ago

参考 https://www.raycast.com/huzef44/screenocr 插件添加了OCR识别功能。 由于不是很了解Raycast的开发,不知道如何将识别出来的内容结合扩展使用,希望作者帮忙看一下。 谢谢

34

aidevjoe commented 1 year ago

研究了下,通过 deeplink 来实现了OCR文本的翻译

tisfeng commented 1 year ago

太棒了!初步看了下,这个思路很不错,稍后再详细看看,值得学习。

抱歉,前几天有点忙 😮‍💨

tisfeng commented 1 year ago

优化了一下代码,主要把编译后的执行可执行文件删了,改成直接 execa 执行 swift 代码,方便调试,以及后面对 swift 这部份代码的优化。

稍后我向商店提交 PR,发布一个新版本。

tisfeng commented 1 year ago

@aidevjoe 你好,有兴趣参与维护这个项目吗?

tisfeng commented 1 year ago

提交了 PR https://github.com/raycast/extensions/pull/6613

tisfeng commented 1 year ago

你好,你有 Raycast 账号吗,我准备把你添加到 contributor

https://github.com/raycast/extensions/actions/runs/5004544773/jobs/8967253983?pr=6613