视频到帧 用于将视频转换为多个帧的Python类。 用于从视频创建CNN的数据集 基本用途 此代码段以相同的视频分辨率创建帧 raw_data_path = "/path/to/video/folder/" output_frames_folder_path = "/path/to/frames/" vc = VideoToFramesConverter( input_path=raw_data_path, output_path=output_frames_folder_path, ) vc.convert() 这将以较低的分辨率创建帧 final_resolution_x = 128 final_resolution_y = 96 vc = VideoToFramesConverter( input_path=raw_data_path, output_