📜  python在图像上绘制矩形 - Python代码示例

📅  最后修改于: 2022-03-11 14:45:59.118000             🧑  作者: Mango

代码示例1
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.