#include "stdafx.h"
#include "opencv2/core/core.hpp"
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/contrib/contrib.hpp"
#include "omp.h"
#define CAM_NUM 16//32路太多,w32不行,x64可以
using namespace cv;
int _tmain(int argc, _TCHAR* argv[])
{
Mat img;
VideoCapture vc[CAM_NUM];
int i;
string str;
int left;
int top;
bool run = true;
TickMeter tm;
int count = 0;
#pragma omp parallel for private(str)
for(i=0; i<CAM_NUM; i++)
{
if(i < 16)
str = format("rtsp://xx:xx@1xx.xx.xx.xx/h264/ch%d/sub/av_stream", i+1);
else if(i < 32)
str = format("rtsp://xx:xx@
利用OpenCV和OpenMP的多路视频融合显示
最新推荐文章于 2024-06-08 16:34:15 发布