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

Text visibility on image #253

Open
RGBmatrix3 opened this issue Feb 10, 2022 · 5 comments
Open

Text visibility on image #253

RGBmatrix3 opened this issue Feb 10, 2022 · 5 comments

Comments

@RGBmatrix3
Copy link

RGBmatrix3 commented Feb 10, 2022

Hi @ankush-me ,

when I load other photos from Synthtext dataset, on some images color of text is similar to background (see on top of the image).
What I need to change?
Figure_1

And one more question: Can script generate text shape something like this (snake shape text):

Snake shape text

@ankush-me
Copy link
Owner

For text contrast check here and here.

There's support for a single semicircle here, but not for a 'snake' shape as shown.

@92xianshen
Copy link

92xianshen commented Feb 12, 2022 via email

@RGBmatrix3
Copy link
Author

RGBmatrix3 commented Feb 15, 2022

@ankush-me
IM_TOP and IM_BACK , is that background image and text instance?? In poisson_reconstruct.py

There says:
combine images using poission editing.
IM_TOP and IM_BACK should be of the same size.

But what images script combines?

@RGBmatrix3
Copy link
Author

RGBmatrix3 commented Feb 23, 2022

@ankush-me

Also in the poisson_reconstruct.py

What is these gxs,gys,gxd,gyd? This is X and Y coordinates of something?

[gxs,gys] = get_grads(ims)
[gxd,gyd] = get_grads(imd)

Is the alpha blend done here?

 elif mode=='blend': # from recursive call:
            # just do an alpha blend
            gx = gxs+gxd
            gy = gys+gyd

When I replace 'blend' instead 'max' in function blit_images(), nothing happens?

@ankush-me
Copy link
Owner

Poisson blending is based on the code here: http://web.media.mit.edu/~raskar/photo/code.pdf
May be check there for comments to understand it better.

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

3 participants