Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

cap.open URL video or image is not working if ...mjpg?resolution

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"...