{"id":13824988,"url":"https://github.com/Azornes/ocrTranslator","last_synced_at":"2025-07-08T21:30:47.123Z","repository":{"id":149991455,"uuid":"610502282","full_name":"Azornes/ocrTranslator","owner":"Azornes","description":"Convert captured images to text using BaiduOCR, GoogleOCR, WindowsOCR, tesseractOCR, RapidOCR or Capture2Text, and translate the resulting text using Google, Chatgpt, Edgegpt, DeepL or many more. Desktop application with a nice GUI provided by customtkinter.","archived":false,"fork":false,"pushed_at":"2024-10-09T15:41:40.000Z","size":4310,"stargazers_count":59,"open_issues_count":3,"forks_count":3,"subscribers_count":6,"default_branch":"main","last_synced_at":"2024-11-20T03:32:01.716Z","etag":null,"topics":["baidu-ocr","bing","capture2text","chatgpt","deepl","edgegpt","google-ocr","google-translate","ocr","python","rapidocr","tesseract-ocr","translator","windows-ocr"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Azornes.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-03-06T22:40:49.000Z","updated_at":"2024-11-15T05:51:38.000Z","dependencies_parsed_at":"2024-01-15T18:47:04.472Z","dependency_job_id":null,"html_url":"https://github.com/Azornes/ocrTranslator","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/Azornes/ocrTranslator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Azornes%2FocrTranslator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Azornes%2FocrTranslator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Azornes%2FocrTranslator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Azornes%2FocrTranslator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Azornes","download_url":"https://codeload.github.com/Azornes/ocrTranslator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Azornes%2FocrTranslator/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264352591,"owners_count":23594926,"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":["baidu-ocr","bing","capture2text","chatgpt","deepl","edgegpt","google-ocr","google-translate","ocr","python","rapidocr","tesseract-ocr","translator","windows-ocr"],"created_at":"2024-08-04T09:01:13.132Z","updated_at":"2025-07-08T21:30:46.656Z","avatar_url":"https://github.com/Azornes.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ch1 align=\"center\"\u003eOCR Translator\u003c/h1\u003e\n  \u003cp align=\"center\"\u003e\u003ci\u003eConvert captured images into text and then translate that text.\u003c/i\u003e\u003c/p\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n   \u003ca href=\"https://github.com/Azornes/ocrTranslator/releases\"\u003e\n    \u003cimg alt=\"Downloads\" src=\"https://img.shields.io/github/downloads/Azornes/ocrTranslator/latest/total?label=Downloads\u0026style=flat-square\"\u003e\n   \u003c/a\u003e\n  \u003ca href=\"https://visitorbadge.io/status?path=https%3A%2F%2Fgithub.com%2FAzornes%2FocrTranslator\"\u003e\u003cimg src=\"https://api.visitorbadge.io/api/combined?path=https%3A%2F%2Fgithub.com%2FAzornes%2FocrTranslator\u0026countColor=%2337d67a\u0026style=flat-square\u0026labelStyle=none\" /\u003e\u003c/a\u003e\n    \u003cimg alt=\"python 3.9\" src=\"https://img.shields.io/badge/python-3.9-3776AB?logo=Python\u0026logoColor=FFFFFF\u0026style=flat-square\"\u003e\n   \u003c/a\u003e\n\u003c/p\u003e\n\n---\nWith this app, you can select your preferred OCR and translation services. After clicking on START or using the keyboard shortcut Alt+Win+T, the program will launch and you can choose the area of the screen to scan for text using OCR. If you have selected a translation service, the text will then be automatically translated.\n\npreview:\n\nhttps://user-images.githubusercontent.com/20650591/233107070-f9a14ed8-5c77-4947-8fa5-8d1c86d4a04f.mp4\n\n# 🔥 Features\n\n- Desktop application with a user-friendly graphical user interface (GUI) provided by customtkinter.\n- Ability to select preferred OCR and translation services.\n- Option to run the program using either the START button or the keyboard shortcut (Alt+Win+T or bound from options).\n- Capability to choose the area of the screen to scan for text using OCR and save the position (for example, when watching a movie and the subtitles always appear in one spot, so you don't have to select the text area again).\n- Automatic translation of the captured text if a translation service has been selected.\n- Ability to capture subtitles from movies or games by selecting the corresponding area of the screen and displaying the translated text next to them.\n- Chat with chatGPT or edgeGPT.\n- Ability to translate from the clipboard or manually entered text (similar to a typical translation app).\n- Save all selected options and settings to a file and load them when the program is launched.\n\n## Desktop App\nDownload the desktop app [here](https://github.com/Azornes/ocrTranslator/releases)\nTested only on Windows 10.\n\n---\n## Dependency\n1. [Python 3.9](https://www.python.org/downloads/release/python-390/). (If you want run from source)\n2. (optional) [Capture2Text](https://sourceforge.net/projects/capture2text/).\n3. (optional) [Tesseract](https://github.com/UB-Mannheim/tesseract/wiki).\n4. (optional) Google api generate a [service_account_creds.json](https://developers.google.com/workspace/guides/create-credentials). Then, put file into the `ocrTranslate/configs` directory.\n\u003cdetails\u003e\n\u003csummary\u003e\n\n### 5. (optional) ChatGPT\n\u003e #### [Source](https://github.com/acheong08/ChatGPT)\n\u003c/summary\u003e\n\n## Configuration\n1. Create account on [OpenAI's ChatGPT](https://chat.openai.com/)\n2. Save your email and password\n### Authentication method: (Choose 1 and paste to app settings)\n\n#### - Email/Password\n\u003e _Currently broken for free users. Do `export PUID=\"...\"` if you have a plus account. The PUID is a cookie named `_puid`_\n\u003e Not supported for Google/Microsoft accounts.\n\n#### - Access token\nhttps://chat.openai.com/api/auth/session\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n  \u003csummary\u003e\n\n### 6. (optional) EdgeGPT\n\u003e #### [Source](https://github.com/acheong08/ChatGPT)\n  \u003c/summary\u003e\n\n\u003cdetails\u003e\n  \u003csummary\u003e\n\n#### Checking access (Required)\n\n  \u003c/summary\u003e\n\n- Install the latest version of Microsoft Edge\n- Alternatively, you can use any browser and set the user-agent to look like you're using Edge (e.g., `Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36 Edg/111.0.1661.51`). You can do this easily with an extension like \"User-Agent Switcher and Manager\" for [Chrome](https://chrome.google.com/webstore/detail/user-agent-switcher-and-m/bhchdcejhohfmigjafbampogmaanbfkg) and [Firefox](https://addons.mozilla.org/en-US/firefox/addon/user-agent-string-switcher/).\n- Open [bing.com/chat](https://bing.com/chat)\n- If you see a chat feature, you are good to go\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n  \u003csummary\u003e\n\n#### Getting authentication (Required)\n\n  \u003c/summary\u003e\n\n- Install the cookie editor extension for [Chrome](https://chrome.google.com/webstore/detail/cookie-editor/hlkenndednhfkekhgcdicdfddnkalmdm) or [Firefox](https://addons.mozilla.org/en-US/firefox/addon/cookie-editor/)\n- Go to `bing.com`\n- Open the extension\n- Click \"Export\" on the bottom right, then \"Export as JSON\" (This saves your cookies to clipboard)\n- Paste your cookies into a file `cookies.json`\n- Paste your file `cookies.json` to `ocrTranslate/configs/`\n\n\u003c/details\u003e\n\n\u003c/details\u003e\n\n---\n\n# 📊 Tables with information\n\n\u003cdetails\u003e\n\u003csummary\u003e\n\n### Supported OCR Services\n\u003c/summary\u003e\n\n| ID  | OCR                                                                                                   | Internet/Local | Status |\n|-----|-------------------------------------------------------------------------------------------------------|----------------|--------|\n| 1   | [Google Vision Api](https://cloud.google.com/vision/docs/ocr)                                         | Internet       | stable |\n| 2   | [Google Vision Free Demo](https://cloud.google.com/vision/docs/drag-and-drop)                         | Internet       | stable |\n| 3   | [Baidu Api](https://intl.cloud.baidu.com/product/ocr.html)                                            | Internet       | stable |\n| 4   | [Windows OCR](https://learn.microsoft.com/en-us/uwp/api/windows.media.ocr.ocrengine?view=winrt-22621) | Local          | stable |\n| 5   | [Capture2Text](https://capture2text.sourceforge.net/)                                                 | Local          | stable |\n| 6   | [Tesseract](https://tesseract-ocr.github.io/tessdoc/)                                                 | Local          | stable |\n| 7   | [RapidOCR](https://github.com/RapidAI/RapidOCR)                                                       | Local          | stable |\n\u003c/details\u003e\n\n\n\u003cdetails\u003e\n\u003csummary\u003e\n\n### Supported Translation Services\n\u003e #### [Source](https://github.com/uliontse/translators)\n\u003c/summary\u003e\n\n| ID  | Translator                                                                        | Number of Supported Languages | Advantage                                                                                   | Service                                                                                                           | Status                          |\n|-----|-----------------------------------------------------------------------------------|-------------------------------|---------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------|---------------------------------|\n| 1   | [Niutrans](https://niutrans.com/trans)                                            | 302                           | support the most languages in the world                                                     | [Northeastern University](http://english.neu.edu.cn/) / [Niutrans](https://github.com/NiuTrans), China            | /                               |\n| 2   | [Alibaba](https://translate.alibaba.com)                                          | 221                           | support most languages, support professional field                                          | [Alibaba](https://damo.alibaba.com/about?lang=en), China                                                          | stable                          |\n| 3   | [Baidu](https://fanyi.baidu.com)                                                  | 201                           | support most languages, support professional field, support Classical Chinese               | [Baidu](https://ir.baidu.com/company-overview), China                                                             | stable                          |\n| 4   | [Iciba](https://www.iciba.com/fy)                                                 | 187                           | support the most languages in the world                                                     | [Kingsoft](https://www.wps.com/about-us/) / [Xiaomi](https://www.mi.com/us/about/), China                         | stable                          |\n| 5   | [MyMemory](https://mymemory.translated.net)                                       | 151                           | support the most languages in the world, good at Creole English, Creole French              | [Translated](https://translatedlabs.com/welcome), Italy                                                           | stable                          |\n| 6   | [Iflytek](https://fanyi.xfyun.cn/console/trans/text)                              | 140                           | support the most languages in the world                                                     | [Iflytek](https://www.iflytek.com/en/about-us.html), China                                                        | /                               |\n| 7   | [Google](https://translate.google.com)                                            | 134                           | support more languages in the world                                                         | [Google](https://about.google/), America                                                                          | stable(offline in China inland) |\n| 8   | [VolcEngine](https://translate.volcengine.com)                                    | 122                           | support more languages in the world, support professional field                             | [ByteDance](https://www.bytedance.com/en/), China                                                                 | /                               |\n| 9   | [Lingvanex](https://lingvanex.com/demo)                                           | 112                           | support translation of different regions but the same language                              | [Lingvanex](https://lingvanex.com/about-us/), Cyprus                                                              | stable                          |\n| 10  | [Bing](https://www.bing.com/Translator)                                           | 110                           | support more languages in the world                                                         | [Microsoft](https://www.microsoft.com/en-us/about), America                                                       | stable                          |\n| 11  | [Yandex](https://translate.yandex.com)                                            | 102                           | support more languages in the world, support word to emoji                                  | [Yandex](https://yandex.com/company/), Russia                                                                     | /                               |\n| 12  | [Itranslate](https://itranslate.com/webapp)                                       | 101                           | support translation of different regions but the same language, such as en-US, en-UK, en-AU | [Itranslate](https://itranslate.com/about), Austria                                                               | stable                          |\n| 13  | [Sogou](https://fanyi.sogou.com)                                                  | 61                            | support more languages in the world                                                         | [Tencent](https://www.tencent.com/en-us/about.html), China                                                        | stable                          |\n| 14  | [ModernMt](https://www.modernmt.com/translate)                                    | 56                            | open-source, support more languages in the world                                            | [Modernmt](https://github.com/modernmt) / [Translated](https://translatedlabs.com/welcome), Italy                 | stable                          |\n| 15  | [SysTran](https://www.systran.net/translate/)                                     | 52                            | support more languages in the world                                                         | [SysTran](https://www.systran.net/about/), France                                                                 | stable                          |\n| 16  | [Apertium](https://www.apertium.org/)                                             | 45                            | open-source                                                                                 | [Apertium](https://github.com/apertium)                                                                           | stable                          |\n| 17  | [Reverso](https://www.reverso.net/text-translation)                               | 42                            | popular on Mac and Iphone                                                                   | [Reverso](https://www.corporate-translation.reverso.com/about-us), France                                         | stable                          |\n| 18  | [CloudYi](https://www.cloudtranslation.com/#/translate)                           | 28                            | support main languages                                                                      | [Xiamen University](http://nlp.xmu.edu.cn/) / [CloudTranslation](https://www.cloudtranslation.com/#/about), China | stable                          |\n| 19  | [Deepl](https://www.deepl.com/translator)                                         | 27                            | high quality to translate but response slowly                                               | [Deepl](https://jobs.deepl.com/l/en), Germany                                                                     | stable                          |\n| 20  | [QQTranSmart](https://transmart.qq.com)                                           | 22                            | support main languages                                                                      | [Tencent](https://www.tencent.com/en-us/about.html), China                                                        | stable                          |\n| 21  | [TranslateCom](https://www.translate.com/machine-translation)                     | 21                            | good at English translation                                                                 | [TranslateCom](https://www.translate.com/about-us), America                                                       | stable                          |\n| 22  | [Tilde](https://translate.tilde.com/)                                             | 21                            | good at lv, de, fr translation                                                              | [Tilde](https://tilde.com/about), Latvia                                                                          | /                               |\n| 23  | [QQFanyi](https://fanyi.qq.com)                                                   | 17                            | support main languages                                                                      | [Tencent](https://www.tencent.com/en-us/about.html), China                                                        | stable                          |\n| 24  | [Argos](https://translate.argosopentech.com)                                      | 17                            | open-source                                                                                 | [Argos](https://github.com/argosopentech) / [Libre](https://github.com/LibreTranslate), America                   | stable                          |\n| 25  | [TranslateMe](https://translateme.network/)                                       | 16                            | good at English translation                                                                 | [TranslateMe](https://translateme.network/our-team/) / [Neosus](https://neosus.net/about/), Lithuania             | stable                          |\n| 26  | [Youdao](https://ai.youdao.com/product-fanyi-text.s)                              | 15                            | support main languages, high quality                                                        | [Netease](https://ir.netease.com/company-overview/corporate-profile), China                                       | stable                          |\n| 27  | [Papago](https://papago.naver.com)                                                | 15                            | good at Korean translation                                                                  | [Naver](https://www.navercorp.com/en/naver/company), South Korea                                                  | stable                          |\n| 28  | [Marai](https://miraitranslate.com/trial/)                                        | 15                            | good at Japanese translation                                                                | [MaraiTranslate](https://miraitranslate.com/en/company/), Japan                                                   | /                               |\n| 29  | [Iflyrec](https://fanyi.iflyrec.com)                                              | 12                            | good at Chinese translation                                                                 | [Iflytek](https://www.iflytek.com/en/about-us.html), China                                                        | stable                          |\n| 30  | [Yeekit](https://www.yeekit.com/site/translate)                                   | 10                            | support main languages                                                                      | [CTC](https://www.ctpc.com.cn/cms/enAboutUs.htm), China                                                           | stable                          |\n| 31  | [LanguageWire](https://www.languagewire.com/en/technology/languagewire-translate) | 8                             | good at English translation                                                                 | [LanguageWire](https://www.languagewire.com/about-us), Denmark                                                    | stable                          |\n| 32  | [Caiyun](https://fanyi.caiyunapp.com)                                             | 7                             | high quality to translate but response slowly, support professional field                   | [ColorfulClouds](http://caiyunapp.com/jobs/), China                                                               | stable                          |\n| 33  | [Elia](https://elia.eus/translator)                                               | 6                             | good at Basque translation                                                                  | [Elhuyar](https://www.elhuyar.eus/eu/nor-gara), Spain                                                             | stable                          |\n| 34  | [Judic](https://judic.io/en/translate)                                            | 4                             | good at European translation                                                                | [CrossLang](https://crosslang.com/about-us/), Belgium                                                             | stable                          |\n| 35  | [Mglip](http://fy.mglip.com/pc)                                                   | 3                             | good at Mongolia translation                                                                | [Inner Mongolia University](https://www.imu.edu.cn/yw/Home.htm), China                                            | stable                          |\n| 36  | [Utibet](http://mt.utibet.edu.cn/mt)                                              | 2                             | good at Tibet translation                                                                   | [Tibet University](http://www.utibet.edu.cn/), China                                                              | stable                          |\n\n\n\u003c/details\u003e\n\n---\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAzornes%2FocrTranslator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FAzornes%2FocrTranslator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAzornes%2FocrTranslator/lists"}