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

How to adjust contrast for text. #58

Closed
yash0307 opened this issue Jul 10, 2017 · 6 comments
Closed

How to adjust contrast for text. #58

yash0307 opened this issue Jul 10, 2017 · 6 comments

Comments

@yash0307
Copy link

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.
figure_1

@yash0307
Copy link
Author

Here is another such example.

figure_1

@ankush-me
Copy link
Owner

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.

@anonymous2792
Copy link

Hi @yash0307
were you able to solve this problem. Can you kindly guide what changes are required in code to fix the blending problem?

@Lane689
Copy link

Lane689 commented Nov 29, 2021

Hi @yash0307 , how did you put a different images in script?

@yash0307
Copy link
Author

@Lane689, I am not sure if I understand the question correctly. Could you please elaborate?

@Didier0
Copy link

Didier0 commented Dec 16, 2021

Hi @yash0307
Did you resolve the problem with color of text and background?

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

5 participants