matplotlib
Manipulación de imagen
Buscar..
Abriendo imagenes
Matplotlib incluye la image módulo para la manipulación de imágenes
import matplotlib.image as mpimg
import matplotlib.pyplot as plt
Las imágenes se leen desde un archivo ( .png solamente) con la función imread :
img = mpimg.imread('my_image.png')
y son representados por la función imshow :
plt.imshow(img)
Vamos a trazar el logotipo de desbordamiento de pila :
import matplotlib.image as mpimg
import matplotlib.pyplot as plt
img = mpimg.imread('so-logo.png')
plt.imshow(img)
plt.show()
Modified text is an extract of the original Stack Overflow Documentation
Licenciado bajo CC BY-SA 3.0
No afiliado a Stack Overflow
