Ask Your Question

Held22's profile - activity

2015-01-14 06:32:10 -0600 received badge  Enthusiast
2015-01-05 13:40:04 -0600 asked a question 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"...