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

Alpha blending for better text visibility #264

Open
Lane689 opened this issue Mar 30, 2022 · 1 comment
Open

Alpha blending for better text visibility #264

Lane689 opened this issue Mar 30, 2022 · 1 comment

Comments

@Lane689
Copy link

Lane689 commented Mar 30, 2022

Hello @ankush-me,

In poisson_reconstruct.py is the:

IM_TOP -> text instance
IM_BACK -> background image

There says:

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

But what images script combines?

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?

@Lane689
Copy link
Author

Lane689 commented Apr 4, 2022

I don't understand what should I do to make text visible on image?
alpha blending

Where do I need to change something, here colorize3_poisson.py or here poisson_reconstruct.py??
I checked #14 #201 #58 and still don't understand

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

1 participant