Share My Creation ImageTrans - An Image and Comic Translation Tool

xulihang

Active Member
Licensed User
Hi there,

I've spent several months on this project. Now I would like to share with you what I've achieved with B4J in a few months.

ImageTrans is an image and comics translation tool. Below is an example of translation from English to Chinese of American golden age comics from Boy Loves Girls magazine.

source.jpg


translation.jpg


It has the following major functions:

1. Localize and recognize text in images with state-of-art OCR technology provided by Tesseract, Microsoft, OCRSpace, Baidu and Youdao.
2. A homebrew comics text localization method based on connected-components grouping on binarized images and text/nontext image classification retrained on MobileNet with Tensorflow.
3. Text mask generation and text erasure using OpenCV's findContours and inpaint methods.
4. Foreground color and background color detection explained here: https://www.b4x.com/android/forum/threads/detect-dominant-colors-of-images.114547/
5. Computer-aided translation functions like translation memory, terminology management and machine translation.
6. Text reinjection utilizing controls like Pane, ImageView and Label. Use pane.snapshot to generate target images.

1.jpg
 

xulihang

Active Member
Licensed User
This is for my graduation thesis and there will be too many details to explain for each point. I think a
straightforward list of functions would be enough for now.
 

xulihang

Active Member
Licensed User
You can get it from here. It relies on opencv. Download the opencv java library from here.
The interface and documentation are in Chinese. I haven't had time to do the translation.
 
Top