ImageTrans-docs icon indicating copy to clipboard operation
ImageTrans-docs copied to clipboard

Adding the ability to detect bubbles and color them

Open NANAREDFISH opened this issue 1 year ago • 6 comments

is it possible to add a clean function based on the bubble and color it with the appropriate color instead of using a text mask? https://drive.google.com/file/d/1wun_d53Bp-aVneKkzpFuT_kJ4sH77vRe/view?usp=drive_link

NANAREDFISH avatar Aug 25 '24 15:08 NANAREDFISH

Also, in the video sent, a Photoshop action has been used that, in addition to colorization, utilizes some other Photoshop features, which result in the removal of text and prevent the pixelation around the bubble. I will also send you these actions so that you can test them in Photoshop. https://drive.google.com/file/d/1A1CQ4NVlngdboGrzTG9r9dD8lWCTtZ8-/view?usp=sharing

NANAREDFISH avatar Aug 25 '24 15:08 NANAREDFISH

Which mode do you prefer? To fill in the bubbles with a background color or restore the background?

Fill in with the background color.

image

Restore the background:

image

The latter one is called inpainting which ImageTrans supports. The first one is a bit difficult as I have to do bubble segmentation.

Check out this blog to know more about inpainting: https://www.basiccat.org/details-about-image-text-removal-using-imagetrans/

xulihang avatar Aug 26 '24 04:08 xulihang

@NANAREDFISH It is not normal that there are so many spam comments. You can unsubscribe this issue to avoid being notified.

xulihang avatar Aug 26 '24 13:08 xulihang

I did it. Also, I think it would be great if we could have both features together, and also have the ability to color the bubble with the background color.

NANAREDFISH avatar Aug 26 '24 16:08 NANAREDFISH

Of course, the results achieved by working on the inpainting feature are excellent, but it would be great if all the bubbles could easily turn white without worrying about which method's results might work better.

NANAREDFISH avatar Aug 26 '24 16:08 NANAREDFISH

I decided not to add this feature for now. You can use Photoshop to create the image with the balloon filled and then add "-original.jpg" to the files to use them in ImageTrans.

Example:

image.jpg
image.jpg-original.jpg

Related issue: https://github.com/xulihang/ImageTrans-docs/issues/199

xulihang avatar Aug 30 '24 10:08 xulihang