显示图像的关键代码:
plt.figure("dog") #标题
plt.imshow(img) #显示图像
plt.show()#点击关闭,程序才可以继续运行
显示多张图像
plt.figure("dog")
plt.imshow(img)
plt.figure("dog2")
plt.imshow(img2)
plt.figure("dog3")
plt.imshow(img3)
plt.show() #显示第三张图像,终止
参考链接:
https://www.cnblogs.com/denny402/p/5096001.html