Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

In opencv, you can simply try to open VideoCapture instance with the stream URL. For the instance if we have ip cam that stream with URL tcp://192.168.1.1:8080 do:

...
cv::VideoCapture _videocapture("tcp://192.168.1.1:8080");
if(_videocapture.open()) {
  //Your processing code
} else {
    std::cerr << "Can not open video stream!"
}
...