视频读取
视频读取,主要利用VideoCapture类下的方法打开视频并获取视频中的帧,具体示例如下:
#include<iostream>
#include<opencv2>
using namespace cv;
int main()
{
VideoCapture capture;
Mat frame;
frame= capture.open(E:/image/a1.avi);
if(!capture.isOpened())
{
printf(can not open ...\n);
return -1;
}
na