logo
Loading...

No module named 'cv2' - Cupoy

import cv2 img3 = cv2.imread('data/example.jpg') p...

ml100-2,faq,安裝

No module named 'cv2'

2019/04/23 09:20 下午
機器學習共學討論版
劉麗閔
觀看數:2
回答數:4
收藏數:0
ml100-2
faq
安裝

import cv2 

img3 = cv2.imread('data/example.jpg') 

plt.imshow(img3)

plt.show()  

img3 = cv2.cvtColor(img3, cv2.COLOR_BGR2RGB) 

plt.imshow(img3) 

plt.show()

---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-5-f65264d2d606> in <module>
----> 1 import cv2
     2 img3 = cv2.imread('data/example.jpg')
     3 plt.imshow(img3)
     4 plt.show()
     5

ModuleNotFoundError: No module named 'cv2'



請問如何 install cv2 到 jupyter?