VideoCapture
初始化
1 | cv::VideoCapture videoCapture; |
写入一帧数据
1 | videoCapture>>frame; |
释放连接
1 | if(videoCapture.isOpened()) |
跳转到指定帧
1 | videoCapture.set(cv::CAP_PROP_POS_FRAMES, pos); |
参考资料
VideoWriter
初始化
1 | cv::VideoWriter videoWriter; |
写入一帧数据
1 | videoWriter<<frame; |
释放连接
1 | if(videoWriter.isOpened()) |