SynthText icon indicating copy to clipboard operation
SynthText copied to clipboard

Text visibility on image

Open RGBmatrix3 opened this issue 3 years ago • 5 comments

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

RGBmatrix3 avatar Feb 10 '22 11:02 RGBmatrix3

For text contrast check here and here.

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

ankush-me avatar Feb 12 '22 00:02 ankush-me

邮件已收到,谢谢。。。I have received your email. Thank you.

92xianshen avatar Feb 12 '22 00:02 92xianshen

@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 avatar Feb 15 '22 07:02 RGBmatrix3

@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?

RGBmatrix3 avatar Feb 23 '22 08:02 RGBmatrix3

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.

ankush-me avatar Apr 12 '22 20:04 ankush-me