logo
Loading...

出現ModuleNotFoundError: No module named 'cv2'錯誤 - Cupoy

import cv2img3 = cv2.imread('D:\python練習\example.j...

出現ModuleNotFoundError: No module named 'cv2'錯誤

2020/02/28 03:39 PM
機器學習新手論壇
陳俊凱
觀看數:0
回答數:2
收藏數:0

import cv2

img3 = cv2.imread('D:\python練習\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-7-67b5353b85ed> in <module>
----> 1 import cv2
     2 img3 = cv2.imread('D:\python練習\example.jpg')
     3 plt.imshow(img3)
     4 plt.show()
     5

ModuleNotFoundError: No module named 'cv2'