code: def get_capture_dimensions(capture):
      
      width = int(capture.get(cv2.CAP_PROP_FRAME_WIDTH))
      height = int(capture.get(cv2.CAP_PROP_FRAME_HEIGHT))
      return width, height
docs: Get the dimensions of a capture