text: import cv2
  
  cap = cv2.VideoCapture(0 + cv2.CAP_DSHOW)
  cap.set(cv2.CAP_PROP_AUTOFOCUS, 0)
  cap.set(cv2.CAP_PROP_FOCUS, 40)
  cap.set(cv2.CAP_PROP_FPS, 30)
  cap.set(cv2.CAP_PROP_FRAME_WIDTH, 640)
  cap.set(cv2.CAP_PROP_FRAME_HEIGHT, 480)
  while(True):
      ret, frame = cap.read()
      cv2.imshow('frame',frame)
      if cv2.waitKey(1) & 0xFF == ord('q'):
          break
  cap.release()
  cv2.destroyAllWindows()