matplotlib读取图片并显示
程序员文章站
2022-02-05 19:28:59
...
import matplotlib.image as imgplt
import matplotlib.pyplot as plt
x = imgplt.imread('Faces/0805personali01.jpg')
plt.imshow(x)
plt.waitforbuttonpress(0)