text: import cv2 as cv
  
  cap = cv.VideoCapture(0)
  while True:
      ret, frame = cap.read()
      gray = cv.cvtColor(frame, cv.COLOR_BGR2GRAY)
      cv.imshow('FRAME', gray)
      if cv.waitKey(1) & 0xFF == ord('q'):
          break
  
  cap.release()
  cv.destroyAllWindows()
  