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
Auf dieser Seite können Sie das Online-Video Display Image using Matplotlib mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Decipher Technic 07 September 2016 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 9,339 Mal angesehen und es wurde von 35 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!