You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# We will be capturing video stream from our webcam with OpenCV
import cv2
capture = cv2.VideoCapture(0) # 0 is the default web cam and if we want to use diff cam we have to provide with id
while True:
retBool,frame = capture.read() # Frame is just an image and retBool is a boolean values that is returned if the video is not captured properly or webcam is not started then it return retBool as false