Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

English translation text overlaps sometimes #2

Open
a-lgil opened this issue Dec 28, 2020 · 1 comment
Open

English translation text overlaps sometimes #2

a-lgil opened this issue Dec 28, 2020 · 1 comment

Comments

@a-lgil
Copy link

a-lgil commented Dec 28, 2020

When translating from Japanese to English, on some occasions the translated text overlaps.

Here's an example where the translation has overlaping text on the left and correctly formated text on the right:

ex1
ex2

I think that the problem may occur whenever the original text is written vertically (in languages such as with Chinese, Japanese or Korean) and the destination language only supports horizontal writing (such as English, Spanish or French).

Checking the size of the new text boxes, testing if they will overlap and displacing the text downwards could be a solution, since I think it's preferable having the text protrude from the bottom of the speech bubble than having it overlap.

@ttop32
Copy link
Owner

ttop32 commented Dec 29, 2020

The problem is opencv contour method detect the text as two boxes.
Its box detection gives too low near item grouping power to grouping together

I am still not sure about best optimization on its strength parameter that control size of grouping box.
For now, i uses image input width(height) size * 2.5% as parameter

In next version,
I will increase default opencv contour strength parameter and
i will give you manual setting box to control its parameter

Currently, I am looking for any other box clipping method and automatic parameter optimization

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants