def shape(self): w = int(self.vid.get(cv2.CAP_PROP_FRAME_WIDTH)) h = int(self.vid.get(cv2.CAP_PROP_FRAME_HEIGHT)) return (h, w)