# import the opencv library
import cv2
# define a video capture object
vid = [Link](0)
while(True):
# Capture the video frame
# by frame
ret, frame = [Link]()
# Display the resulting frame
[Link]('frame', frame)
# the 'q' button is set as the
# quitting button you may use any
# desired button of your choice
if [Link](1) & 0xFF == ord('q'):
break
# After the loop release the cap object
[Link]()
# Destroy all the windows
[Link]()