how to get video from ip camera using emgucv

半城伤御伤魂 提交于 2019-11-28 12:53:08
Kerberos
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

If you are using Emgu 3.1 then try this:

Capture cameraCapture
cameraCapture = new Capture("http://user:passwd@http://169.254.255.253");
Mat frame = cameraCapture.QueryFrame();
imageBox1.Image = frame;

here is the Capture Class Reference:

http://www.emgu.com/wiki/files/3.1.0/document/html/5edc4ff8-cec3-c5ee-8e62-629cf4c7940a.htm

Hope it helps.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!