0
我IPCAM的IP http://admin:@192.168.1.124:80/
誰可以教我如何使用opencv2.4.3寫的真正程序連接到IPCAM 我希望能給我完整的程序來引用 非常感謝很多捕捉畫面
我IPCAM的IP http://admin:@192.168.1.124:80/
誰可以教我如何使用opencv2.4.3寫的真正程序連接到IPCAM 我希望能給我完整的程序來引用 非常感謝很多捕捉畫面
相機基本樣板,無論什麼輸入:
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/core/core.hpp"
using namespace cv;
int main()
{
VideoCapture cap("http://admin:@192.168.1.124:80/"); // connect to an ip-cam (might need some additional dummy param like: '?type=mjpeg' at the end
//VideoCapture cap("/home/me/some.avi"); // load a video file
//VideoCapture cap(-1); // get the 1st 'local' usb webcam
while(cap.isOpened())
{
Mat frame;
if (! cap.read(frame))
break;
//
// your processing here
//
imshow("lalala",frame);
int k = waitKey(10);
if (k==27)
break;
}
return 0;
}
非常感謝你和我完成它 – itrobot2013