![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
matplotlib
西工大苗苗
这个作者很懒,什么都没留下…
展开
-
matplotlib-持续一定时间后自动关闭figure
plt.figure(1) plt.subplot(211) plt.imshow(out1) plt.subplot(212) plt.imshow(out2) plt.show() plt.pause(2) ...原创 2019-02-28 11:43:08 · 4291 阅读 · 1 评论 -
python图像处理-如何存储用plt或者Image打开的图像
用PIL存储如果用PIL存储的话需要一个image类来调用save函数一般需要先使用Image的open方法来新建一个image对象,然后用这个对象.save来存储但是如果我们只有一个numpy array的话就只需要调用Image.fromarray来建立一个image对象,再savefor img,label in zip(train_data.train_data,train_dat...原创 2019-02-28 18:54:19 · 7935 阅读 · 2 评论