See https://github.com/xulihang/manga-image-translator
What does the plugin do:
- Detect the text lines as a scene text detector.
- Detect the text lines and recognize the text as an OCR engine.
- Detect the color of the text. #issue478
- Create the text mask and remove the text using inpainting. (You need to have the ExternalInpaint and ExternalMaskGen plugins as well. They are included in ImageTrans by default.)
Installation:
- Download the Windows package of manga-image-translator: manga-image-translator.zip and unzip it into a folder.
- Download the model files into the folder in the previous step: detect.ckpt , ocr.ckpt, inpainting.ckpt
- Download and unzip the OCR CTC model into the same folder: ocr-ctc.zip. This OCR model supports Korean while the OCR model in the previous step only supports English, Chinese and Japanese. Its speed is also higher.
- Download the OCR 48px model and its dictionary into the same folder. This OCR model has a higher accuracy but requires GPU.
- Start the server by running
run.bat
. - Put the
mangaTranslatorOCR
plugin files into theplugins
folder. Get the plugins files: mangaTranslatorOCRPlugin.zip.
If you are using macOS or Linux, please configure the environment by yourself.
If you need to enable GPU, please follow this guide.
Usage:
-
It can work as an OCR engine.
Select
db_detector
to detect text lines only and selectdb+OCR
to detect text lines and recognize the text as well. If you need to detect the text color, select the one withcolordetection
. If you need to detect the rotation, select the one withrotationdetection
. -
It can work as a scene text detector.
-
It can be used to generate the text mask and the text-removed image through the external mask generation and inpainting plugins.
-
If you enable text mask generation through OCR and scene text detection in the project settings, it will automatically save the text mask if there has not been a text mask image.