am trying to capture video from my web cam and display it on my screen my code is import cv2 import numpy as np from matplotlib import pyplot as plt
capture = cv2.VideoCapture(0) def repeat(): if(capture): frame = cv2.VideoCapture.read(capture) cv2.imshow("w1",frame) while True: repeat()
am getting this error frame = cv2.VideoCapture.read(capture) AttributeError: 'builtin_function_or_method' object has no attribute 'read'