This project was inspired by a hobby of enjoying foreign comics with the issue of not able to enjoy it because of the language barrier. This is a tool that can also be used to translate any image you desire, it includes all Tesseract OCR supported language library.
Tesseract OCR library's supports other languages within its library besides the Korean language shown in the demo for text recognition, users can translate images with the free rapid google translate API's to any supported languages.
Tesseract.js: total of 101 Languages
Rapid Google API Translator: total of 104 Languages
- Assamese
- Tibetan
- Cherokee
- Dzongkha
- Inuktitut
- Oriya
- Sanskrit
- Syriac
- Tigrinya
- Uighur; Uyghur
List of complete Tesseract.js Supported Languages HERE
- Armenian
- Corsican
- Frisian
- Hausa
- Hawaiian
- Hmong
- Igbo
- Luxembourgish
- Malagasy
- Maori
- Mongolian
- Nyanja(Chichewa)
- Samoan
- Scots Gaelic
- Sesotho
- Shona
- Sindhi
- Somali
- Sundanese
- Xhosa
- Yoruba
- Zulu
List of complete Google Rapid API Supported Languages HERE
-
Install Visual Studio Code and node.js.
-
Create an account with CropGuide for free with a 7 days trial, users will be able to crop the uploaded image targetting the text only.
a) Create a domain name and the settings for the cropping size.
b) Go to the dashboard and click details.
c) Copy the script code that includes your unique Key provided and replace the existing expired code in the index.html file.
-
Create an account with RapidApi for the Google Translate Api, it's also free but limited to translate 500 characters per month.
a) Go to Endpoints, select POST translate and go to Request Body to set up testing.
b) At the 'q' input box, place the text you want to translate, 'target' will be the language you desire to be translated to.
c) Down to 'source' input box, should be the language of the text pasted.
d) Click Test Endpoint to check that the settings are correct, the text will be translated under Results tab.
e) Make sure that on line 10 in the translate controller inside the 'Back-end Folder' has the same information as your code Snippets (In this case, encodedParams.set for target and your X-RapidAPI-Key).
-
Set up and replace the Bootstrap src links as well. (Feel free to style it as you desire).
-
Open the index.html local file on your computer to run the app, follow the Demo.
