OpenCV合成视频
主要用到VideoCapture, VideoWriter
/*
* Demo制作,将原始视频与该视频跟踪轨迹合并为一个视频。
* 用法:s键将将改合成帧加入到输出视频中
*/
#include <iostream>
#include <string>
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
using namespace std;
using namespace cv;
int main()
{
const string originalFramePath = "/home/corfox/Data/GOPR/7"; // 原始视频帧路径
string originalFrameName; // 原始视频帧图像名
ostringstream numToStr;
Mat originalFrame; // 原始视频帧图像
const