Read stream from specific link

前端 未结 2 1359
温柔的废话
温柔的废话 2021-02-06 17:09

I need to read stream from mjpeg with OpenCV library. In more details, I need to read http://194.126.108.66:8887/. But when I try to do it with

Vide         


        
相关标签:
2条回答
  • 2021-02-06 17:33

    OpenCV expects a filename extension for its VideoCapture argument, even though one isn't always necessary (like in your case).

    You can "trick" it by passing in a dummy parameter which ends in the mjpg extension:

    ipCam.open("http://194.126.108.66:8887/?dummy=param.mjpg")
    

    This worked in my similar OpenCV Python case, so good luck!

    0 讨论(0)
  • 2021-02-06 17:38

    This is worked for me with Mjpeg streamer and OpenCV

    cap.open("http://192.168.1.206:8080/?action=stream?dummy=param.mjpg")
    
    0 讨论(0)
提交回复
热议问题