I am working on a project which requires functions from OpenCV to plot images.
I am trying to display image using the below code in Google Colab. But nothing shows up in the output. Can anybody help me with this?
%pylab notebook
import cv2
testim = imread('butterfly.jpg')
figure()
imshow(testim)
plt.show()
Screenshot:
Link to my Colab Notebook
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…