本程序可以将视频转换成单张RGB图像和其时间戳信息,因为现在的许多程序不是直接读取视频进行处理,使用该程序可以将视频转换成相应的一帧帧图像,该程序图片保存在文件名为rgb的文件夹中,在其之外会有一个rgb.txt的文件,这个文件则是时间戳信息,注意视频拍摄时可以是尺寸比较大的,但是转换之后,程序会将其最大像素边变成640像素大小,另一边按比例缩小。
启动方式:./MovToImage ../IMG_3681.MOV ./File1/ 第一项地址为在build下面的启动文件 第二项地址为需要转换的视频的地址及其名称,注意文件形式也要加上 第三项地址为数据需要储存的地址("File2"可自由更改,但是必须以“/”结束)
使用步骤: 第一步:在VideoToImage目录下新建一个名为build的文件夹 第二步:cd build 第三步:cmake .. 第四步:make 第五步:将需要转成rgb数据形式的数据集存入你想放置的文件夹,然后在终端中输入启动方式