Giter Site home page Giter Site logo

ttop32 / jmtrans Goto Github PK

View Code? Open in Web Editor NEW
75.0 4.0 9.0 181 MB

manga translator - get japanese manga from url to translate manga image

License: GNU Affero General Public License v3.0

Python 58.87% HTML 18.48% QML 21.53% C# 1.11%
manga translator comics comic ocr automization fully-automated translation google-ocr google-translator manga-translator window-ocr google-drive cartoon translate

jmtrans's Introduction

JMTrans - Japanese Manga Translator

get japanese manga from url to translate manga image using SickZil(text segmentation model), google ocr(or window ocr) and eztrans xp(or google translator)

download latest version (using eztrans xp and google translator), support multi lang)
https://github.com/ttop32/JMTrans/releases/latest/download/JMTrans.zip

pre released colab version (using google translator only, support multi lang)
https://colab.research.google.com/drive/1XbR7fNXtT4TGlLI1FBcCQv7Gj5mlDvwb?usp=sharing

Result

result result result result result result result

gui

gui

Required environment to run

  • google ocr : google drive permission(credential file and scope file)
  • window ocr : Microsoft.NET v4.0.30319,net core 3.1 runtime and window japanese ocr
  • ez trans xp korea translator : ez trans xp program and ehnd

How to use

  • open the program and type manga site url then press enter
  • It process translation (it takes time)
  • it will create zip file on user's window download folder

Supported URL

gallery-dl is used to download. Its support sites are:

Workflow

  • use gallery-dl to get managa from inputted url
  • do text segmentation from manga image using SickZil
  • use opencv contour technique to detect text to crop text image based on text segmentation results
  • get text from image using google ocr(or window ocr)
  • convert japanese text to translated text using eztrans xp(or google translator)
  • use pil to place translated text

Run python

python gui.py

pip install

pip install tensorflow-gpu==1.14.0
pip install requests
pip install PyQt5
pip install tqdm funcy opencv-python Pillow
pip install --upgrade google-api-python-client google-auth-httplib2 google-auth-oauthlib
pip install --upgrade pyinstaller==3.2.1
pip install cefpython3
pip install pywin32
pip install matplotlib
pip install imageio
pip install google_trans_new
pip install beautifulsoup4
pip install wget
pip install pyperclip
pip install astor==0.8.0
pip uninstall h5py

or
conda remove --name py35 --all
conda create --name py35 python=3.5
activate py35
pip install -r requirements.txt
pip freeze > requirements.txt

Acknowledgement and References

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.