This application allows you to remove text from images (e.g., manga pages) using EasyOCR and OpenCV. It processes an entire manga folder by detecting and removing text from images within subfolders (chapters) and saves the output in a specified directory.
- Python 3.x
- Required libraries:
opencv-python
numpy
easyocr
os
(standard Python library)
Run the following command to install the necessary dependencies:
pip install opencv-python numpy easyocr
- Input Folder: The app takes a path to a folder containing manga chapters. Each chapter should be a subfolder containing image files.
- Text Removal: The app detects text on each image in the folder, creates a mask over the detected text areas, and removes the text using inpainting techniques.
- Output Folder: The processed images are saved in a newly created output folder, preserving the structure of the original input folder.
manga_folder/
├── chapter1/
│ ├── page1.jpg
│ ├── page2.jpg
│ └── ...
└── chapter2/
├── page1.jpg
└── ...
The output folder will have a similar structure to the input folder but will contain the processed images with text removed:
output_folder/
├── chapter1/
│ ├── page1.jpg
│ ├── page2.jpg
│ └── ...
└── chapter2/
├── page1.jpg
└── ...
You can run the app by executing the following commands in your terminal:
python app.py
- Enter the Manga Folder Path: The path to the folder containing your manga (with chapters as subfolders).
- Enter the Output Folder Path: The folder where the processed images (with text removed) will be saved.
The app will process each chapter folder in the input manga folder and save the images with text removed in the corresponding output folder.
-
Input:
- Manga folder:
/path/to/manga
- Chapter folders:
/path/to/manga/chapter1/
,/path/to/manga/chapter2/
, etc.
- Manga folder:
-
Output:
- Processed images will be saved to
/path/to/output/chapter1/
,/path/to/output/chapter2/
, etc.
- Processed images will be saved to
This project is open-source and free to use for non-commercial purposes.
Kaung Thant Tun - Developer of the Manga Text Removal App
This README provides a brief overview and usage instructions for running the manga text removal app.