Search code examples
emgucvip-camera

how to get video from ip camera using emgucv


Summary:

I'm trying to get video from IP camera in emgu, I could display video in the browser from an ip like "http://169.254.255.253".

Question:

How could I display this from emgu?


Solution

  • Capture _Capture = new Emgu.CV.CvInvoke.cvCreateFileCapture("http://username:pass@cam_address/axis-cgi/mjpg/video.cgi?resolution=640x480&req_fps=30&.mjpg");
    

    I didn't test but may be this code snippet or approach can help you. For OpenCV example you can examine this page: OpenCV with Network Cameras

    And you can examine this method's wiki page: http://www.emgu.com/wiki/files/2.3.0/document/html/a26a5e9d-53d7-633a-5d50-508aa22dd1fd.htm