1 | initial version |
Out put of capture.read() is a bool and an image you should separate them ; and you should use waitKey.
import cv2
capture=cv2.VideoCapture(0)
while True:
b,frame=capture.read()
cv2.imshow("image", frame)
cv2.waitKey(1)