{"id":20975858,"url":"https://github.com/banyc/screenshot-ocr","last_synced_at":"2025-05-14T14:31:07.776Z","repository":{"id":117847403,"uuid":"147368421","full_name":"Banyc/Screenshot-OCR","owner":"Banyc","description":"Capture Screen for OCR. ---------- (Make sure to make yourself informed the warnings below before kicking off.) ","archived":false,"fork":false,"pushed_at":"2021-02-20T03:38:24.000Z","size":170,"stargazers_count":9,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-24T04:27:39.886Z","etag":null,"topics":["app","ocr-recognition","screenshot","software","vbnet","visual-basic","windows"],"latest_commit_sha":null,"homepage":"","language":"Visual Basic .NET","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Banyc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-09-04T15:33:44.000Z","updated_at":"2024-02-27T01:54:54.000Z","dependencies_parsed_at":"2023-07-12T16:45:13.367Z","dependency_job_id":null,"html_url":"https://github.com/Banyc/Screenshot-OCR","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Banyc%2FScreenshot-OCR","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Banyc%2FScreenshot-OCR/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Banyc%2FScreenshot-OCR/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Banyc%2FScreenshot-OCR/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Banyc","download_url":"https://codeload.github.com/Banyc/Screenshot-OCR/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225297754,"owners_count":17452010,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["app","ocr-recognition","screenshot","software","vbnet","visual-basic","windows"],"created_at":"2024-11-19T04:47:51.109Z","updated_at":"2024-11-19T04:47:51.586Z","avatar_url":"https://github.com/Banyc.png","language":"Visual Basic .NET","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Screenshot OCR\n\nApply **OCR** or **Reverse Image Search** to Real-Time Screenshot in a Single Key Pressing and a Mouse Dragging.\n\n## Warnings\n\nMake sure to make yourself informed the warnings below before kicking off.\n\n- Screenshots within the red rectangle are sent to a third-party website to do OCR processing. No privacy guarantee.\n- BUGs may occasionally occur, which might mistaken the range of the red rectangle leading to an extra screenshot sending. No privacy guarantee for your computer's full-size screenshot.\n- Your IP address may be exposed to the screenshots receiving websites (servers).\n- Your screenshot and your IP address might be used in analysis use to the receiving websites (servers).\n- Chances are, though little, files downloaded from the download link might be swapped. No file integrity guarantee.\n- some POST links are using unsafe HTTP Communications Protocol, rather than HTTPs.\n\n## Introduction to Different APIs\n\n- A9T9 can identify as many as 25 languages;\n- Sogou OCR API has a better recognition for English and Chinese but with size restriction for uploaded image; sizing problem solved;\n- SauceNAO includes uploaded files storage and redirection to other image reverse search engine. This source is not stable.\n\n## Prerequisite\n\n- **Windows** system\n- [Install **Microsoft .NET Framework 4.5**](https://www.microsoft.com/en-us/download/details.aspx?id=30653) OR(maybe) higher version\n- (Optional) [Register an **API key**](https://us11.list-manage.com/subscribe?u=ce17e59f5b68a2fd3542801fd\u0026id=252aee70a1)\n\n## How to use\n\n### For Screenshot OCR Now\n\n1. Run executive file;\n2. Press `F4` when you need to convert letters on the screen to editable with OCR;\n3. Press `F4` again or right click to undo;\n4. Drag a rectangle to select the letters-contained region while pressing left key;\n5. Wait for a yellow message box to pop up. The recognized letters shown in the box are in your clipboard;\n6. Double click the message box to copy them again, right click to close it;\n7. Go to step *2*.\n\nHint: In screenshot mode, press `Ctrl` while left click to re-capture the previous region.\n\n### For Image Reverse Search\n\n- Goto settings and choose SauceNAO mode.\n\n### For Uploading Images\n\n1. Right click the tray icon;\n2. Left click \"Upload\" item;\n3. Choose an image to upload;\n4. Wait for a message box to pop up after clicking \"OK\". Clipboard updates at the same time;\n5. Click \"OK\" to copy them again, \"Cancel\" to close the message box.\n\n**Hint**: API that is used is based on the mode you chose at settings.\n\n### For Settings\n\n1. Right click tray icon to list out menu and click \"Settings\"; or simply left click the icon;\n2. All settings save after the option \"Exit\" in the menu is clicked.\n\n## Note\n\n### WPF Window Overview\n\n[Window_Lifetime_Events](https://docs.microsoft.com/en-us/previous-versions/dotnet/netframework-4.0/ms748948(v=vs.100)#Window_Lifetime_Events)\n\n### ActualWidth and ActualHeight Updating Lag of TextBlock\n\nReasons\n\n- [The process cycle](https://www.codeproject.com/Questions/181118/WPF-TextBlock-Width-and-Height)\n- [Calculation of Double](https://stackoverflow.com/questions/9008525/why-actualsize-is-not-updating-its-value-on-wpf)\n\n[Solution](https://stackoverflow.com/questions/10556019/how-to-calculate-the-textbock-height-and-width-in-on-load-if-i-create-textblock)\n\n### Data Binding\n\n[Model-View Binding](https://rachel53461.wordpress.com/2012/07/14/what-is-this-datacontext-you-speak-of/)\n\n## Appreciation\n\n- [天若OCR文字识别工具](https://www.52pojie.cn/thread-692917-1-1.html) - Source of Inspiration;\n- [Free-OCR-API](https://github.com/A9T9/Free-OCR-API-CSharp) - Free OCR API;\n- [Sogou API for OCR](https://ocr.shouji.sogou.com/v2/ocr/json) - High Quality OCR API without Documentation;\n- [SauceNAO](https://saucenao.com/) - an image reverse search site and also an image host;\n- [icon8](https://icons8.com/) - Free Icons site;\n- [ConvertICO](https://convertico.com/) - site for Converting PNG to ICO;\n- [Kelly](https://github.com/guo40020) - a pro giving me technical advice;\n- and authors whose original code is at the website whose links were written between my codes.\n\n## TODO\n\n- [X] Add [Sogou API for OCR](http://ai.sogou.com/ai-docs/api/ocr)(link here with documentation is different from the former one)\n- [X] Add a Search-by-Image feature. Redirect from SauceNAO\n- [X] Allow hotkey customization.\n- [X] Fix BUG: pressing Alt + F4 kills the program though it does not activated.\n- [X] Break limitation for minimum image size by Sogou API\n- [X] Perfect UI\n- [X] fix resolution issue in some desktops\n- [ ] Auto fixs the grammar mistakes on OCR results\n  - https://textgears.com/api/\n  - https://www.afterthedeadline.com/api.slp\n  - https://docs.microsoft.com/en-us/windows/desktop/intl/about-the-spell-checker-api\n  - https://stackoverflow.com/a/38128912/9920172\n- [ ] Add feature: Notes Display\n- [X] Adapt MVC pattern\n- [X] Replace the draw board from Winform to WPF\n- [X] Reduce startup flickering\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbanyc%2Fscreenshot-ocr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbanyc%2Fscreenshot-ocr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbanyc%2Fscreenshot-ocr/lists"}