cv2 videocapture

cv2 videocapture | OpenCV Video Capture

In this OpenCV Tutorial, you’ll learn how to capture video from a camera in OpenCV Python. If you want to capture video from your laptop camera then use this cv2.VideoCapture(0). I highly recommend you get the “Computer Vision: Models, Learning, and Inference Book” to learn computer vision.