2020-08-28 12:12:32 +00:00
|
|
|
# JMTrans - Japanese Manga Translator
|
2020-09-09 03:55:20 +00:00
|
|
|
get japanese manga from url to translate manga image using SickZil(tensorflow model), google ocr and eztrans xp
|
2020-09-09 04:16:51 +00:00
|
|
|
|
|
|
|
download latest version
|
2020-09-09 04:16:14 +00:00
|
|
|
https://github.com/ttop32/JMTrans/releases/latest
|
|
|
|
/download/asset-name.zip
|
2020-09-09 04:16:51 +00:00
|
|
|
|
|
|
|
pre released colab version
|
2020-08-19 14:30:51 +00:00
|
|
|
https://colab.research.google.com/drive/1XbR7fNXtT4TGlLI1FBcCQv7Gj5mlDvwb?usp=sharing
|
2020-08-19 14:34:05 +00:00
|
|
|
|
2020-09-09 04:16:14 +00:00
|
|
|
|
2020-08-19 14:34:05 +00:00
|
|
|
# result
|
2020-08-19 17:21:24 +00:00
|
|
|
![result](doc/result1.png)
|
2020-08-19 17:21:46 +00:00
|
|
|
![result](doc/result2.png)
|
|
|
|
![result](doc/result3.png)
|
|
|
|
![result](doc/result4.png)
|
|
|
|
![result](doc/result5.png)
|
|
|
|
![result](doc/result6.png)
|
2020-08-19 17:47:36 +00:00
|
|
|
![result](doc/result7.png)
|
2020-08-19 14:39:32 +00:00
|
|
|
|
2020-08-24 02:08:26 +00:00
|
|
|
# Workflow
|
2020-08-24 02:10:15 +00:00
|
|
|
- use gallery-dl to get managa from url
|
|
|
|
- do text segmentation from manga image using SickZil
|
2020-08-24 02:11:23 +00:00
|
|
|
- use opencv to crop text image based on text segmentation results
|
2020-08-24 02:10:15 +00:00
|
|
|
- get text from image using pytesseract ocr and nhocr
|
|
|
|
- translating using googletrans
|
|
|
|
- use pil to place translated text
|
2020-08-24 02:08:26 +00:00
|
|
|
|
|
|
|
|
|
|
|
# Supported url
|
|
|
|
gallery-dl is used to download. Its support sites are:
|
2020-08-24 02:12:17 +00:00
|
|
|
- [supported site list](https://github.com/mikf/gallery-dl/blob/master/docs/supportedsites.rst)
|
2020-08-24 02:08:26 +00:00
|
|
|
|
2020-08-19 17:34:35 +00:00
|
|
|
# Acknowledgement and References
|
2020-08-19 17:35:34 +00:00
|
|
|
- [SickZil-Machine](https://github.com/KUR-creative/SickZil-Machine)
|
2020-08-19 17:34:35 +00:00
|
|
|
- [OpenCV with Python wrapper](https://pypi.org/project/opencv-python/)
|
|
|
|
- [Google Translate API for Python](https://pypi.org/project/googletrans/)
|
2020-08-19 17:35:34 +00:00
|
|
|
- [Tesseract](https://github.com/tesseract-ocr/tesseract)
|
2020-08-19 17:34:35 +00:00
|
|
|
- [Pytesseract](https://pypi.python.org/pypi/pytesseract)
|
|
|
|
- [nhocr](https://github.com/fireae/nhocr)
|
2020-08-23 15:43:14 +00:00
|
|
|
- [text-detection](https://github.com/qzane/text-detection)
|
2020-09-09 03:45:27 +00:00
|
|
|
- [ehnd](https://github.com/sokcuri/ehnd)
|
|
|
|
- [cefpython](https://github.com/cztomczak/cefpython)
|
2020-09-09 03:51:41 +00:00
|
|
|
- [google drive](https://developers.google.com/drive/api/v3/quickstart/python)
|
2020-09-09 03:45:27 +00:00
|
|
|
|
|
|
|
|
|
|
|
# pip requirements
|
2020-09-09 03:48:46 +00:00
|
|
|
python3.5
|
2020-09-09 03:48:02 +00:00
|
|
|
pip install tensorflow==1.14.0
|
|
|
|
pip install googletrans
|
|
|
|
pip install tqdm funcy PyQt5 opencv-python Pillow
|
|
|
|
pip install --upgrade google-api-python-client google-auth-httplib2 google-auth-oauthlib
|
|
|
|
pip install pyinstaller
|
|
|
|
pip install cefpython3
|
|
|
|
pip install pywin32
|
|
|
|
pip install matplotlib
|
|
|
|
pip install imageio
|
|
|
|
pip install pyinstaller
|
2020-08-23 15:43:14 +00:00
|
|
|
|
2020-08-19 17:35:34 +00:00
|
|
|
|