// ConsoleApplication63.cpp : 定义控制台应用程序的入口点。
//
#include "stdafx.h"
//#include "stdafx.h"
#include<iostream>
#include <opencv2/opencv.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <string>
using namespace cv;
int main()
{
//std::string RTSP;
//RTSP = "rtsp://root:lbhxaxis@[169.254.216.140]/axis-media/media.amp?";
//const std::string videoStreamAddress = RTSP;
VideoCapture capture;
capture.open("rtsp://root:lbhxaxis@[169.254.216.139]/axis-media/media.amp?",0);
//capture.open("challenge.mp4");
if (!capture.isOpened())
{
printf("can not open ...\n");
return -1;
}
Size size = Size(capture.get(CV_CAP_PROP_FRAME_WIDTH), capture.get(CV_CAP_PROP_FRAME_HEIGHT));
int f