Я пытаюсь запустить OpenCV в моей системе. Ниже приведен код, который я использую, но по какой-то причине я получаю Module not found
ошибки
import numpy as np
import cv2
cap = cv2.VideoCapture(0)
while(True):
ret, frame = cap.read()
cv2.imshow('frame', frame)
if cv2.waitKey(20) & 0xFF == ord('q'):
break
cap.release()
cv2.destroyAllWindows()
Ошибки:
Module 'cv2' has no 'VideoCapture' member
Module 'cv2' has no 'imshow' member
Module 'cv2' has no 'waitKey' member
Module 'cv2' has no 'destroyAllWindows' member