You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OpenCV's inpainting cannot handle transparency. So ImageTrans will convert the color space from BGRA to BGR for inpainting. This works well for text with a colored background. But if the text has a transparent background, it does not work.
Possible solution:
If the percent of pixels with a 0 alpha value of a text area is over 25%, then set the part of the image corresponding to the text mask to transparent.
The text was updated successfully, but these errors were encountered:
OpenCV's inpainting cannot handle transparency. So ImageTrans will convert the color space from BGRA to BGR for inpainting. This works well for text with a colored background. But if the text has a transparent background, it does not work.
Possible solution:
If the percent of pixels with a 0 alpha value of a text area is over 25%, then set the part of the image corresponding to the text mask to transparent.
The text was updated successfully, but these errors were encountered: