Ask Your Question

Revision history [back]

This works for my two IP cams:

const std::string videoStreamAddress = "http://admin:password>>@10.1.1.5/video.cgi?.mjpg"; //D-Link IP camera @ Port 80 OR const std::string videoStreamAddress = "http://root:[email protected]/mjpg/video.mjpg"; // Axis IP Camera @ Port 80

followed by.. VideoCapture capture(videoStreamAddress);
int process(VideoCapture& capture);

if(!capture.isOpened()) { cerr << "Cannnot Init Webcam" << endl; return 1; } capture >> frame; etc.

This works for my two IP cams:

const std::string videoStreamAddress = "http://admin:password>>@10.1.1.5/video.cgi?.mjpg"; //D-Link IP camera @ Port 80 80

OR const std::string videoStreamAddress = "http://root:[email protected]/mjpg/video.mjpg"; // Axis IP Camera @ Port 80

followed by.. by..

VideoCapture capture(videoStreamAddress);
capture(videoStreamAddress);

int process(VideoCapture& capture);

if(!capture.isOpened()) { {

    cerr << "Cannnot Init Webcam" << endl; return 1;
}

}

capture >> frame; frame;

etc.

This works for my two IP cams:

const std::string videoStreamAddress = "http://admin:password>>@10.1.1.5/video.cgi?.mjpg";  //D-Link IP camera @ Port 8080

OR

OR

const std::string videoStreamAddress = "http://root:[email protected]/mjpg/video.mjpg"; // Axis IP Camera @ Port 80    

80

followed by..

VideoCapture   capture(videoStreamAddress);

capture(videoStreamAddress);

int process(VideoCapture& capture);

capture); if(!capture.isOpened()) {

if(!capture.isOpened()) {

     cerr << "Cannnot Init Webcam" << endl; return 1;

}

capture >> frame;

}

capture >> frame;

etc.