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
На этой странице сайта вы можете посмотреть видео онлайн Display Image using Matplotlib длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Decipher Technic 07 Сентябрь 2016, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 9,339 раз и оно понравилось 35 зрителям. Приятного просмотра!