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
ENG
Since there is no place to render on transparent images unless a background is actively added, I have an idea:
First, detect whether the image has a transparency Alpha channel. If it does, use the OCR to detect the font color and then invert that color. Automatically add a background with the inverted color, and then proceed to render the text.
Can set the corresponding parameters:
Enable/Disable processing for transparent images.
Automatic/Custom setting for the background color on transparent images.
If anyone has the ability and is interested, you can help try modifying the code.
Issue
如图

原图

Command Line Arguments
Console logs
The text was updated successfully, but these errors were encountered: