IP Camera access using OpenCV

前端 未结 3 1614
失恋的感觉
失恋的感觉 2020-12-14 12:54

The code given below is for accessing an Axis IP camera using OpenCV. On running the program it first displays \"Error in opening cap_ffmpeg_impl...\" and then it displays <

3条回答
  •  星月不相逢
    2020-12-14 13:16

    I installed "Mini WebCam" app on my iphone and used it as an ip camera with "http://192.168.1.103" as it's address. In addition I used this piece of code:

    VideoCapture capture;
    Mat image;
    if (!capture.open("http://192.168.1.103/video.cgi?.mjpg")) {
        cout << "Error opening video stream or file" << endl;
        return -1;
    }
    ....
    

    it works.(http://192.168.1.103/video.cgi?.mjpg)

提交回复
热议问题