def vid_length(path): vid = cv_compat.open_vid(path) return cv_compat.get_vid_length(vid)
def vid_dims(path): vid = cv_compat.open_vid(path) im = cv_compat.get_gray_frame(vid) h, w = im.shape[:2] return w, h
def vid_dims(path): vid = cv_compat.open_vid(path) im = cv_compat.get_gray_frame(vid) h,w = im.shape[:2] return w, h