-
Notifications
You must be signed in to change notification settings - Fork 623
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
How to adjust contrast for text. #58
Comments
This is due to poisson blending -- the problem arises due to the background having higher magnitude of gradients than the foreground (text), as pointed out in #14. You could just do a simple alpha-blend when blitting text on "high-texture" backgrounds (can define "high-textureness" as being having high magnitude of gradients), or force the magnitude of gradients of the foreground to be higher than background's. |
Hi @yash0307 |
Hi @yash0307 , how did you put a different images in script? |
@Lane689, I am not sure if I understand the question correctly. Could you please elaborate? |
Hi @yash0307 |
Dear Ankush ( @ankush-me ),
I'm trying to generate synthetic scene text images for Bangla language. However, the generated images have text with poor contrast or lot of blending, which makes it hard to detect even for humans. I think this could be possibly because of alpha-blending ? Could you please provide some insight on this ?
Here is an example of generated image.

The text was updated successfully, but these errors were encountered: