Display Image using Matplotlib

Publicado el: 07 septiembre 2016
en el canal de: Decipher Technic
9,339
35

Using Matplotlib, display images.

Code:
import cv2#opencv library
from matplotlib import pyplot as plt #import the plotting function

#read the image
img=cv2.imread('messi.jpg',0)#reads in BGR format
#img=cv2.cvtColor(img,cv2.COLOR_BGR2RGB)#CONVERT BGR TO RGB FORMAT
#display this image
plt.imshow(img,cmap='gray',interpolation='BICUBIC') #displays in the RGB format
plt.xticks([]), plt.yticks([]) #hide the tick values on both axes
plt.show()

Smooth Sailing (with Guitar) by Audionautix is licensed under a Creative Commons Attribution license (https://creativecommons.org/licenses/...)
Artist: http://audionautix.com/

You are welcome to visit my technical blog:
https://www.deciphertechnic.com

Comment below for any queries or suggestions


En esta página del sitio puede ver el video en línea Display Image using Matplotlib de Duración hora minuto segunda en buena calidad , que subió el usuario Decipher Technic 07 septiembre 2016, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 9,339 veces y le gustó 35 a los espectadores. Disfruta viendo!