Skip to content

Azornes/ocrTranslator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OCR Translator

Convert captured images into text and then translate that text.

Visitors python 3.9


With 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.

preview:

Dependency

  1. Python 3.9.
  2. (optional) Capture2Text.
  3. (optional) Tesseract.
  4. (optional) Google api generate a service_account_creds.json. Then, put file into the 'ocrTranslate/configs' directory.

(optional) ChatGPT

Configuration

  1. Create account on OpenAI's ChatGPT
  2. Save your email and password

Authentication method: (Choose 1 and paste to app settings)

- Email/Password

Not supported for Google/Microsoft accounts

- Session token

  1. Login in to https://chat.openai.com
  2. Open the console in Google Chrome -> Application -> Storage -> Cookies -> https://chat.openai.com -> Get the value from __Secure-next-auth.session-token

- Access token

https://chat.openai.com/api/auth/session


Supported OCR Services

ID OCR Internet/Local Status
1 Google Vision Api Internet stable
2 Google Vision Free Demo Internet stable
3 Baidu Api Internet stable
4 Windows OCR Local stable
5 Capture2Text Local stable
6 Tesseract Local stable
7 RapidOCR Local stable

Supported Translation Services

ID Translator Number of Supported Languages Advantage Service Status
1 Niutrans 302 support the most languages in the world Northeastern University / Niutrans, China /
2 Alibaba 221 support most languages, support professional field Alibaba, China stable
3 Baidu 201 support most languages, support professional field, support Classical Chinese Baidu, China stable
4 Iciba 187 support the most languages in the world Kingsoft / Xiaomi, China stable
5 MyMemory 151 support the most languages in the world, good at Creole English, Creole French Translated, Italy stable
6 Iflytek 140 support the most languages in the world Iflytek, China /
7 Google 134 support more languages in the world Google, America stable(offline in China inland)
8 VolcEngine 122 support more languages in the world, support professional field ByteDance, China /
9 Lingvanex 112 support translation of different regions but the same language Lingvanex, Cyprus stable
10 Bing 110 support more languages in the world Microsoft, America stable
11 Yandex 102 support more languages in the world, support word to emoji Yandex, Russia /
12 Itranslate 101 support translation of different regions but the same language, such as en-US, en-UK, en-AU Itranslate, Austria stable
13 Sogou 61 support more languages in the world Tencent, China stable
14 ModernMt 56 open-source, support more languages in the world Modernmt / Translated, Italy stable
15 Reverso 42 popular on Mac and Iphone Reverso, France stable
16 Deepl 27 high quality to translate but response slowly Deepl, Germany stable
17 QQTranSmart 22 support main languages Tencent, China stable
18 TranslateCom 21 good at English translation TranslateCom, America stable
19 QQFanyi 17 support main languages Tencent, China stable
20 Argos 17 open-source Argos / Libre, America stable
21 Youdao 15 support main languages, high quality Netease, China stable
22 Papago 15 good at Korean translation Naver, South Korea stable
23 Iflyrec 12 good at Chinese translation Iflytek, China stable
24 Caiyun 7 high quality to translate but response slowly, support professional field ColorfulClouds, China stable
25 Mglip 3 good at Mongolia translation Inner Mongolia University, China stable
26 Utibet 2 good at Tibet translation Tibet University, China

About

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.

Topics

Resources

License

Stars

Watchers

Forks

Packages