[简体中文](../README.md) | English | [Русский](README_RU.md) | [日本語](README_JA.md) | [Indonesia](README_ID.md)
[简体中文](README.md) | English | [Русский](doc/README_RU.md) | [日本語](doc/README_JA.md) | [Indonesia](doc/README_ID.md)
Yet another computer-aided comic/manga translation tool powered by deep learning.
<imgsrc="./src/ui0.jpg"divalign=center>
<imgsrc="doc/src/ui0.jpg"divalign=center>
<palign=center>
preview
@@ -27,70 +27,40 @@ preview
# Installation
## Executable Binaries
**Windows users** can download Ballonstranslator-x.x.x-core.7z from [MEGA](https://mega.nz/folder/gmhmACoD#dkVlZ2nphOkU5-2ACb5dKw) or [Google Drive](https://drive.google.com/drive/folders/1uElIYRLNakJj-YS0Kd3r3HE-wzeEvrWd?usp=sharing)(note: you also need to download latest Ballonstranslator-1.3.xx from GitHub release and extract it to overwrite **Ballontranslator-1.3.0-core** or older installation to get the app updated.)
## Auto installer
Everything is simple here, go to the repository, download the file and follow the instructions.
If you don't want to install Python and Git by yourself and have access to the Internet:
Download BallonsTranslator_dev_src_with_gitpython.7z from[MEGA](https://mega.nz/folder/gmhmACoD#dkVlZ2nphOkU5-2ACb5dKw) or [Google Drive](https://drive.google.com/drive/folders/1uElIYRLNakJj-YS0Kd3r3HE-wzeEvrWd?usp=sharing), unzip it and run launch_win.bat.
Run scripts/local_gitpull.bat to get the latest update.
## Run the source code
If you're not on Windows or may want to run the latest development.
-`git clone -b dev` for dev branch, or git `checkout dev`
Install pytorch-cuda to enable GPU acceleration if you have a NVIDIA GPU.
Note the first time you launch it will install the required libraries and download models automatically. If the downloads fail, you will need to download the **data** folder (or missing files mentioned in the terminal) from [MEGA](https://mega.nz/folder/gmhmACoD#dkVlZ2nphOkU5-2ACb5dKw) or [Google Drive](https://drive.google.com/drive/folders/1uElIYRLNakJj-YS0Kd3r3HE-wzeEvrWd?usp=sharing) and save it to the corresponding path in source code folder.
## Build macOS application (compatible with both intel and apple silicon chips)
<i>Note macOS can also run the source code if it didn't work.</i>
Download the **data** folder from [MEGA](https://mega.nz/folder/gmhmACoD#dkVlZ2nphOkU5-2ACb5dKw) or [Google Drive](https://drive.google.com/drive/folders/1uElIYRLNakJj-YS0Kd3r3HE-wzeEvrWd?usp=sharing) and move it into BallonsTranslator/ballontranslator, finally run
```bash
python ballontranslator
```
For Linux or MacOS users, see [this script](ballontranslator/scripts/download_models.sh) and run to download ALL models
### Build macOS application (compatible with both intel and apple silicon chips)
- Download libopencv_world.4.4.0.dylib and libpatchmatch_inpaint.dylib.
- Download libs and models from [MEGA](https://mega.nz/folder/gmhmACoD#dkVlZ2nphOkU5-2ACb5dKw"MEGA") or [Google Drive](https://drive.google.com/drive/folders/1uElIYRLNakJj-YS0Kd3r3HE-wzeEvrWd?usp=sharing)
> 📌The dylib files in the compressed package below are fat files, compatible with both intel and apple silicon chips for Mac devices.
- Put all the downloaded resources into a folder called data, the final directory tree structure should look like:
```
data
├── libopencv_world.4.4.0.dylib
├── libpatchmatch_inpaint.dylib
├── libs
│ └── patchmatch_inpaint.dll
└── models
@@ -159,7 +129,7 @@ To use Sugoi translator(Japanese-English only), download [offline model](https:/
# Usage
**It is recommended to run the program in a terminal in case it crashed and left no information, see the following gif.**
<imgsrc="./src/run.gif">
<imgsrc="doc/src/run.gif">
- The first time you run the application, please select the translator and set the source and target languages by clicking the settings icon.
- Open a folder containing images of a comic (manga/manhua/manhwa) that need translation by clicking the folder icon.
- Click the `Run` button and wait for the process to complete.
@@ -169,13 +139,13 @@ The font formats such as font size and color are determined by the program autom
## Image Editing
### Inpaint Tool
<imgsrc="./src/imgedit_inpaint.gif">
<imgsrc="doc/src/imgedit_inpaint.gif">
<palign = "center">
Image Editing Mode, Inpainting Tool
</p>
### rect tool
<imgsrc="./src/rect_tool.gif">
<imgsrc="doc/src/rect_tool.gif">
<palign = "center">
Rect Tool
</p>
@@ -184,17 +154,17 @@ To 'erase' unwanted inpainted results, use the inpainting tool or rect tool with
The result depends on how accurately the algorithm ("method 1" and "method 2" in the gif) extracts the text mask. It could perform worse on complex text & background.