#!/usr/bin/env python
# -*- coding: utf-8 -*-
import matplotlib.pyplot as plt
from scipy import misc
face = misc.face()
misc.imsave('face.png', face) # First we need to create the PNG file
face = misc.imread('face.png')
print type(face)
print face.shape,face.dtype
plt.imshow(face)
plt.show()
Related posts
-
AI算法工程师学习路线总结之Python篇 | 粉丝福利
【磐创AI导读】从本周开始,磐创...