AttributeError: 'numpy.ndarray' Object Has No Attribute 'getdraw'
Okay so i'm trying to add an indian/nepali font for a gesture recognition system and i'm struggling a bit with the Pillow library. I followed the documentation for pillow and i'm g
Solution 1:
What you need to do is change this line:
draw = ImageDraw.Draw(blackboard)
to
draw = ImageDraw.Draw(Image.fromarray(blackboard))
Which give ImageDraw an Image which it can understand not a numpy array which it can't.
Post a Comment for "AttributeError: 'numpy.ndarray' Object Has No Attribute 'getdraw'"