ankush-me / SynthText

Code for generating synthetic text images as described in "Synthetic Data for Text Localisation in Natural Images", Ankush Gupta, Andrea Vedaldi, Andrew Zisserman, CVPR 2016.
http://www.robots.ox.ac.uk/~vgg/data/scenetext/
Apache License 2.0
2.02k stars 622 forks source link

how to filter this ? #48

Open argman opened 7 years ago

argman commented 7 years ago

43_0 some chars is not rightly placed(maybe the reason of font), but i cannot find how to filter this in pygame

ankush-me commented 7 years ago

I am not sure what is the cause for this. But this is most likely happening inside the render_curved function -- can you please try to reproduce this and check there what might be causing this?

argman commented 7 years ago

thanks for your reply, check must be added to make sure a char is supported by this font

text_size = font.get_metrics(text)
supported = len(filter(lambda t: t is None, text_size)) == 0
if not supported:
    continue

add before render_curved

ankush-me commented 7 years ago

@argman : Can you please create a pull request with the patch?

subramanyakrishna commented 3 years ago

@argman Hey Can you please tell me whether you are able to run or not? We are trying from 2 months we needed some help?