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 notebookimport cv2testim = imread('butterfly.jpg')figure()imshow(testim)plt.show()Screenshot:Link to my Colab Notebook 解决方案 Found one workaround. We can use %matplotlib inline in the code to use imshow. Used as example here in In[28] - link 这篇关于使用imshow()时图像未显示在Google Colab中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
07-23 04:44
查看更多