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.03k stars 622 forks source link

Straight text #239

Closed sandrachuk3 closed 2 years ago

sandrachuk3 commented 2 years ago

Are you able to provide direction on how to ensure text appears straight (not at a slant/angle)? I've tried to search existing issues but haven't been able to come up with many hints (other that it's related to the segment it's printed on, but also can't seem to figure out how to override that).

ankush-me commented 2 years ago

The text shape is influenced by the segment image, and the depth image --- text is warped so that it appears to be "on the surface" (as dictated by the segment's depth). If you don't want any such distortions, then you can just input "fake" segment and depth images --- with one segment (constant value), and a constant valued depth image; these two wouldn't impose the above constraints on the text.

woans0104 commented 1 year ago

@ankush-me Please explain more about the fake image.