import cv2 as cv

capture = cv.VideoCapture(0)

while True:
    isTrue, frames = capture.read()
    cv.imshow('Frames', frames)

    if(cv.waitKey(20) and 0xFF==ord('d')):
        break
capture.release()
cv.destroyAllWindows()
c973bb178d3529725892762b4526ee1c95e7bc0e
<mask token>

<mask token>
while True:
    isTrue, frames = capture.read()
    cv.imshow('Frames', frames)
    if cv.waitKey(20) and 255 == ord('d'):
        break
capture.release()
cv.destroyAllWindows()

<mask token>
capture = cv.VideoCapture(0)
while True:
    isTrue, frames = capture.read()
    cv.imshow('Frames', frames)
    if cv.waitKey(20) and 255 == ord('d'):
        break
capture.release()
cv.destroyAllWindows()

import cv2 as cv
capture = cv.VideoCapture(0)
while True:
    isTrue, frames = capture.read()
    cv.imshow('Frames', frames)
    if cv.waitKey(20) and 255 == ord('d'):
        break
capture.release()
cv.destroyAllWindows()

import cv2 as cv

capture = cv.VideoCapture(0)

while True:
    isTrue, frames = capture.read()
    cv.imshow('Frames', frames)

    if(cv.waitKey(20) and 0xFF==ord('d')):
        break
capture.release()
cv.destroyAllWindows()