tisfeng / Easydict

一个简洁优雅的词典翻译 macOS App。开箱即用,支持离线 OCR 识别,支持有道词典,🍎 苹果系统词典,🍎 苹果系统翻译,OpenAI,Gemini,DeepL,Google,Bing,腾讯,百度,阿里,小牛,彩云和火山翻译。A concise and elegant Dictionary and Translator macOS App for looking up words and translating text.
GNU General Public License v3.0
7.43k stars 374 forks source link

🚀 Feature Request: Hide cursor when screenshot is activated to avoid affecting OCR quality #736

Open grantbarrett opened 11 hours ago

grantbarrett commented 11 hours ago

Please confirm the following:

Feature description

It would be useful to have the option to automatically hide the mouse cursor when doing screenshots, as the optical character recognition sometimes misreads the cursor as a character. It happens that the cursor is often on top of the text I want to OCR and then translate because that is where my attention is focused and when in the flow of my work, I don't necessarily think to move the cursor first and then have to move it, then do the OCR + translate keyboard command a second time. macOS automatically hides the cursor when it does screenshots, as do most screenshot applications. For just one silly example, when I screenshot the text "能自动识" from the EasyDict ReadMe page, and leave the I-beam cursor over the second character, OCR interprets it as "能蘭动识"! Thank you for considering this request. I appreciate the high-quality of this app and the hard work that has gone into it. I use it constantly, every day, as I work with multilingual texts for more languages than I can easily read, and many that are scans with no selectable text, or which have been badly OCRed.

Use case

It will improve the quality of optical character recognition in the cases where the cursor is inadvertently left over the text being screenshotted.

Proposed solution (optional)

I do not know enough about coding to do this.

Are you willing to submit a PR to implement this feature

github-actions[bot] commented 11 hours ago

Hello grantbarrett, Thank you for your first issue contribution 🎉