I want to create a synthetic dataset for character recognition from images. I have a list of words or sequences as text data that I want to draw as images with different fonts and font sizes.
I am using PIL python library for drawing text on images. But the problem is, when the text is drawn in different font sizes, I got stuck to get the coordinates of individual character for drawing the bounding box.
[![enter image description here][2]][2]
Any idea, code chunk or suggestion of any convenient resource would be very helpful.