Closed valentinitnelav closed 2 years ago
I noticed that ImageDraw.Draw.text() needs the text to be a string. In my first tests, the values from id_box happen to be strings, but often they will be read as integer or 'numpy.float64' types.
ImageDraw.Draw.text()
id_box
Replace
id_box = df['id_box'][0]
with:
id_box = str(int(df['id_box'][0]))
I noticed that
ImageDraw.Draw.text()
needs the text to be a string. In my first tests, the values fromid_box
happen to be strings, but often they will be read as integer or 'numpy.float64' types.