Yamakaze-chan/MangaLens

Translate manga direct from your screen

Python

7

34 commits

updated May 31, 2026

See the code

README

MangaLens

Read Manga directly on your screen

This project is real-time application that can OCR your screen and detect text in page of your manga.

Demo

https://github.com/user-attachments/assets/3b693bc5-8470-48cb-8f22-1a31f5d85b84

Key Combination Usage

  • ` (Key Code: 192) : detect and translate again
  • Shift + ` : Clear screen
  • Ctrl + Alt : Quit
  • Shift + W: Get specific area of your screen to translate

How to use

Wait until your terminal show OCR ready then press ` to start (Re-press if it not detect and show translation)

Installation

You can install and run (and modify) with these steps:

  • Step 1: Clone this repository
git clone https://github.com/Yamakaze-chan/MangaLens.git
  • Step 2: Change working directory
cd MangaLens
  • Step 3: Install require packages
pip install -r requirements.txt
  • Step 4: Download YOLO weight
git clone https://huggingface.co/Yamakaze/MangaLens  
  • Step 5: create .env file
cd . > .env
  • Step 6: Open .env and add this
#Yolo weight
YOLO_weight = MangaLens/best2.pt

#MangaOCR weight
MangaOCR_weight = ""
MANGA_LANGUAGE_DETECTION_MODEL = MangaLens/manga_effnet_b0.onnx

#Translation pretrained models
JA_TRANS_MODEL = LiquidAI/LFM2-350M-ENJP-MT-GGUF
ZH_TRANS_MODEL = quickmt/quickmt-zh-en
ZH_READ_MODEL = jzhang533/PaddleOCR-VL-For-Manga
KR_TRANS_MODEL = Helsinki-NLP/opus-mt-ko-en
en_vi_weight = vinai/vinai-translate-en2vi-v2
en_vi_token = vinai/vinai-translate-en2vi-v2
  • Step 7: Run and enjoy
python app.py

Models

If you see this project is useful, don't forget to give star to these projects

Contact

For any inquiries, please feel free to contact me at [email protected]

Citation

@article{tiedemann2023democratizing,
  title={Democratizing neural machine translation with {OPUS-MT}},
  author={Tiedemann, J{\"o}rg and Aulamo, Mikko and Bakshandaeva, Daria and Boggia, Michele and Gr{\"o}nroos, Stig-Arne and Nieminen, Tommi and Raganato\
, Alessandro and Scherrer, Yves and Vazquez, Raul and Virpioja, Sami},
  journal={Language Resources and Evaluation},
  number={58},
  pages={713--755},
  year={2023},
  publisher={Springer Nature},
  issn={1574-0218},
  doi={10.1007/s10579-023-09704-w}
}

@InProceedings{TiedemannThottingal:EAMT2020,
  author = {J{\"o}rg Tiedemann and Santhosh Thottingal},
  title = {{OPUS-MT} — {B}uilding open translation services for the {W}orld},
  booktitle = {Proceedings of the 22nd Annual Conferenec of the European Association for Machine Translation (EAMT)},
  year = {2020},
  address = {Lisbon, Portugal}
 }
@inproceedings{vinaitranslate,
title     = {{A Vietnamese-English Neural Machine Translation System}},
author    = {Thien Hai Nguyen and 
             Tuan-Duy H. Nguyen and 
             Duy Phung and 
             Duy Tran-Cong Nguyen and 
             Hieu Minh Tran and 
             Manh Luong and 
             Tin Duy Vo and 
             Hung Hai Bui and 
             Dinh Phung and 
             Dat Quoc Nguyen},
booktitle = {Proceedings of the 23rd Annual Conference of the International Speech Communication Association: Show and Tell (INTERSPEECH)},
year      = {2022}
}

Convert to desktop app

You can convert to desktop app with PyInstaller

Disclaimer

This is a personal, non-profit project developed completely independently. This project is not affiliated, associated, authorized, endorsed by, or in any way officially connected with mangalens.app or any other third-party organizations or individuals.

Yamakaze-chan/MangaLens

Translate manga direct from your screen

Python

7

34 commits

updated May 31, 2026

See the code

README

MangaLens

Read Manga directly on your screen

This project is real-time application that can OCR your screen and detect text in page of your manga.

Demo

https://github.com/user-attachments/assets/3b693bc5-8470-48cb-8f22-1a31f5d85b84

Key Combination Usage

  • ` (Key Code: 192) : detect and translate again
  • Shift + ` : Clear screen
  • Ctrl + Alt : Quit
  • Shift + W: Get specific area of your screen to translate

How to use

Wait until your terminal show OCR ready then press ` to start (Re-press if it not detect and show translation)

Installation

You can install and run (and modify) with these steps:

  • Step 1: Clone this repository
git clone https://github.com/Yamakaze-chan/MangaLens.git
  • Step 2: Change working directory
cd MangaLens
  • Step 3: Install require packages
pip install -r requirements.txt
  • Step 4: Download YOLO weight
git clone https://huggingface.co/Yamakaze/MangaLens  
  • Step 5: create .env file
cd . > .env
  • Step 6: Open .env and add this
#Yolo weight
YOLO_weight = MangaLens/best2.pt

#MangaOCR weight
MangaOCR_weight = ""
MANGA_LANGUAGE_DETECTION_MODEL = MangaLens/manga_effnet_b0.onnx

#Translation pretrained models
JA_TRANS_MODEL = LiquidAI/LFM2-350M-ENJP-MT-GGUF
ZH_TRANS_MODEL = quickmt/quickmt-zh-en
ZH_READ_MODEL = jzhang533/PaddleOCR-VL-For-Manga
KR_TRANS_MODEL = Helsinki-NLP/opus-mt-ko-en
en_vi_weight = vinai/vinai-translate-en2vi-v2
en_vi_token = vinai/vinai-translate-en2vi-v2
  • Step 7: Run and enjoy
python app.py

Models

If you see this project is useful, don't forget to give star to these projects

Contact

For any inquiries, please feel free to contact me at [email protected]

Citation

@article{tiedemann2023democratizing,
  title={Democratizing neural machine translation with {OPUS-MT}},
  author={Tiedemann, J{\"o}rg and Aulamo, Mikko and Bakshandaeva, Daria and Boggia, Michele and Gr{\"o}nroos, Stig-Arne and Nieminen, Tommi and Raganato\
, Alessandro and Scherrer, Yves and Vazquez, Raul and Virpioja, Sami},
  journal={Language Resources and Evaluation},
  number={58},
  pages={713--755},
  year={2023},
  publisher={Springer Nature},
  issn={1574-0218},
  doi={10.1007/s10579-023-09704-w}
}

@InProceedings{TiedemannThottingal:EAMT2020,
  author = {J{\"o}rg Tiedemann and Santhosh Thottingal},
  title = {{OPUS-MT} — {B}uilding open translation services for the {W}orld},
  booktitle = {Proceedings of the 22nd Annual Conferenec of the European Association for Machine Translation (EAMT)},
  year = {2020},
  address = {Lisbon, Portugal}
 }
@inproceedings{vinaitranslate,
title     = {{A Vietnamese-English Neural Machine Translation System}},
author    = {Thien Hai Nguyen and 
             Tuan-Duy H. Nguyen and 
             Duy Phung and 
             Duy Tran-Cong Nguyen and 
             Hieu Minh Tran and 
             Manh Luong and 
             Tin Duy Vo and 
             Hung Hai Bui and 
             Dinh Phung and 
             Dat Quoc Nguyen},
booktitle = {Proceedings of the 23rd Annual Conference of the International Speech Communication Association: Show and Tell (INTERSPEECH)},
year      = {2022}
}

Convert to desktop app

You can convert to desktop app with PyInstaller

Disclaimer

This is a personal, non-profit project developed completely independently. This project is not affiliated, associated, authorized, endorsed by, or in any way officially connected with mangalens.app or any other third-party organizations or individuals.