How omarleel/mangatranslate works
MangaTranslate is a manga-page cleanup and translation application. In the Windows workflow, a user configures processing in the GUI, which starts a processor that handles image folders and produces cleaned and/or translated pages, with PDF and structured JSON export. The Colab variant adds parallel processing and Google Drive folder handling. The README also documents ZIP input, OCR, inpainting, and output organization. Some subsystem links rely on the SOURCE INDEX or README; unsampled implementation details are not assumed.
Main entry points: ProcessorWindows.py Windows processor · ProcessorColab.py Colab processor · inference.py Model inference · Utilities.py Translation and utilities
Components 23
User interfaces
- Windows GUI
Widgets/AppWindow.py - Colab UI
Widgets/AppColab.py
Processing workflow
- Windows processor
Applications/ProcessorWindows.py - Colab processor
Applications/ProcessorColab.py - Parallel processing
Applications/ParallelProcessor.py - Translation and utilities
Applications/Utilities.py - Paths and settings
Utils/Constantes.py
Image and text processing
- OCR engines
Applications/OCRManager.py - Bubble detection
Applications/BubbleDetector.py - Image and text rendering
Applications/TextImageProcessor.py - LaMa inpainting
Applications/inpainting/lama/inpainting_lama_mpe.py - Model inference
Applications/inpainting/lama/inference.py - Inpainting utilities
Applications/inpainting/lama/generic.py - Model helpers
Applications/inpainting/lama/common.py - Inference logging
Applications/inpainting/lama/log.py
Exports and storage
- JSON export
Applications/JsonGenerator.py - Text export
Applications/TxtGenerator.py - Local file manager
Applications/FileManager.py
Colab integrations
- Google Drive manager
Applications/GoogleDriveManager.py
Other components
- Manga user
- Google Drive
- Image folder
- Outputs folder
Connections 28
- Manga user → Windows GUI: configures
Widgets/AppWindow.py - Windows GUI → Windows processor: starts processing
Widgets/AppWindow.py - Windows processor → OCR engines: recognizes text
Applications/ProcessorWindows.py - Windows processor → Bubble detection: detects bubbles
Applications/ProcessorWindows.py - Windows processor → Image and text rendering: processes pages
Applications/ProcessorWindows.py - Image and text rendering → LaMa inpainting: inpaints
Applications/TextImageProcessor.py - LaMa inpainting → Model inference: uses inference
- Model inference → Inpainting utilities: uses utilities
Applications/inpainting/lama/inference.py - Model inference → Inference logging: uses logging
Applications/inpainting/lama/inference.py - Model helpers → Model inference: supports inference
Applications/inpainting/lama/common.py - Windows processor → Translation and utilities: uses utilities
Applications/ProcessorWindows.py - Windows processor → JSON export: writes transcription
Applications/ProcessorWindows.py - Colab processor → JSON export: writes JSON
Applications/ProcessorColab.py - Colab processor → Text export: writes text
Applications/ProcessorColab.py - Windows processor → Local file manager: creates output folders
Applications/ProcessorWindows.py - Windows processor → Image folder: reads pages
- Windows processor → Outputs folder: stores results
- Colab UI → Colab processor: starts processing
Widgets/AppColab.py - Colab processor → Parallel processing: uses parallel processing
Applications/ProcessorColab.py - Colab processor → Image and text rendering: processes pages
Applications/ProcessorColab.py - Colab processor → OCR engines: recognizes text
Applications/ProcessorColab.py - Colab processor → Bubble detection: detects bubbles
Applications/ProcessorColab.py - Colab processor → Google Drive manager: manages Drive folders
Applications/ProcessorColab.py - Google Drive manager → Google Drive: downloads and uploads
Applications/GoogleDriveManager.py - Colab UI → Translation and utilities: downloads ZIP input
Widgets/AppColab.py - Translation and utilities → Google Drive: downloads model assets
Applications/Utilities.py - Windows processor → Paths and settings: uses configured paths
Applications/ProcessorWindows.py - Colab processor → Paths and settings: uses configured paths
Applications/ProcessorColab.py