In [1]:
# Create a VideoCapture object and pass 0

cap = cv2.VideoCapture(0)