Python, Machine Learning, Artificial Intelligence, Data Science, Data Analytics.
misc >>> f=misc.face() >>> misc.imsave(‘demo.png’,f) imsave needs you to have the library PIL installed in your system. It lets you save an array as an image. This creates an image on our Desktop. Now, we import pyplot from matplotlib. >>> import matplotlib.pyplot as plt >>> plt.imshow(f)