TextRecognitionDataGenerator
TextRecognitionDataGenerator copied to clipboard
How to use single font while using GeneratorFromStrings
generator = GeneratorFromStrings(["Test1","Test2"],fonts=[],background_type=3)
How to assign font name in this...??? Thanks in advance.
Just put a single font path in the fonts
list.
For example, with ~/my_font.ttf
you would do
generator = GeneratorFromStrings(
["Test1","Test2"],
fonts=['~/my_font.ttf',],
background_type=3
)
~/
Thanks, it worked for me...