Example #1
0
def get_video(video_path=
             path_gray , total_frame_num=200):
    loader = VideoLoader(video_path)
    loader.set_frame_property(total_frame_num=total_frame_num)
    frame_matrix = loader.video_to_frame(to_gray=True)

    return frame_matrix
def get_video(
        video_path="G:/pycharm/data/Hollywood2_format/AVIClips/actionclipautoautotrain00078.avi",
        total_frame_num=200):
    loader = VideoLoader(video_path)
    loader.set_frame_property(total_frame_num=total_frame_num)
    frame_matrix = loader.video_to_frame()

    return frame_matrix
Example #3
0
def get_video(
        video_path="G:/pycharm/data/gray1/person16_handclapping_d1_uncomp.avi",
        total_frame_num=200):
    loader = VideoLoader(video_path)
    loader.set_frame_property(total_frame_num=total_frame_num)
    frame_matrix = loader.video_to_frame(to_gray=True)

    return frame_matrix
Example #4
0
    def video_to_frame(self, video_path, total_frame_num):
        loader = VideoLoader(video_path)
        loader.set_frame_property(total_frame_num=total_frame_num)
        frames_matrix = loader.video_to_frame(to_gray=self.to_gray)

        return frames_matrix