//#include "opencv\stdafx.h"
#include "opencv\cv.h"
#include "opencv\highgui.h"
int main(int argc, char** argv)
{
CvCapture* capture = cvCaptureFromFile("http://172.20.10.8:8080/?action=stream?dummy=param.mjpg");
IplImage* frame = cvQueryFrame(capture);
cvNamedWindow("Monitor");
//while (frame = cvQueryFrame(capture))
//{
// cvShowImage("Monitor", frame);
//cvWaitKey(33);
//}
//选择视频流格式
#include "opencv\cv.h"
#include "opencv\highgui.h"
int main(int argc, char** argv)
{
CvCapture* capture = cvCaptureFromFile("http://172.20.10.8:8080/?action=stream?dummy=param.mjpg");
IplImage* frame = cvQueryFrame(capture);
cvNamedWindow("Monitor");
//while (frame = cvQueryFrame(capture))
//{
// cvShowImage("Monitor", frame);
//cvWaitKey(33);
//}
//选择视频流格式