#include "highgui.h"
using namespace cv;
int _tmain(int argc, _TCHAR* argv[])
{
VideoCapture cap("E:\\华为项目\\【项目】周界\\video\\PEA-22047-白天停车场-树叶拂动 .avi");
VideoWriter writer("save.avi",CV_FOURCC('M','J','P','G'),25,Size(364,298));
Mat frame;
while (cap.isOpened())
{
cap>>frame;
writer<<frame;
imshow("Frame",frame);
if (waitKey(20) == 27)
{
break;
}
}
return 0;
}
opencv读写视频
最新推荐文章于 2024-03-20 15:30:00 发布