img = matplotlib. image. imread("./kite_logo.png")
figure, ax = pyplot. subplots(1)
rect = patches. Rectangle((125,100),50,25, edgecolor='r', facecolor="none")
ax. imshow(img) Displays an image.
ax. add_patch(rect) Add rectangle to image.
from PIL import ImageDraw
draw = ImageDraw.Draw(<your_image>)
draw.rectangle(((20, 30), (10, 10)), fill="white") # (x1, y1), (x2, y2)
plt.imshow(test)