That is working
cv::VideoCapture cap("http://myIP:1102/mjpg/video.mjpg");
cv::Mat img;
cap.open("http://myIP:1102/mjpg/video.mjpg");
if (cap.isOpened())
{
cap.read(img);
}
But not that, why?
cv::VideoCapture cap("http://myIP:1102/mjpg/video.mjpg?resolution=1280x960&compression=0&rotation=270");
cv::Mat img;
cap.open("http://myIP:1102/mjpg/video.mjpg?resolution=1280x960&compression=0&rotation=270");
if (cap.isOpened())
{
cap.read(img);
}
Same with "/axis-cgi/jpg/image.cgi"...