繁体   English   中英

IP Camera在Emgu Capture中的集成

[英]IP Camera integration in Emgu Capture

我想从IP捕获视频流。 我已经看到了,但是在Emgu 3.0中的cvInvoke上不存在类型名称cvCreateFileCapture,有什么方法可以从ip捕获视频吗?

我试过使用它,它不起作用,但是消息框显示这表示捕获不为null。 imageCamera为空

 _capture = new Capture("http://uname:pass@10.16.33.158/axis-cgi/mjpg/video.cgi");here
 if (_capture != null) //if camera capture has been successfully created
        {
            MessageBox.Show("Capture success");
            _capture.ImageGrabbed += ProcessFrame;
            _capture.Start();
        }

 _capture.Retrieve(frame, 0);
 Image<Bgra, Byte> newFrame = new Image<Bgra, Byte>(frame.Bitmap);
 imageCamera.Image = newFrame;

我在浏览器中输入了http:// uname:pass@10.16.33.158/axis-cgi/mjpg/video.cgi ,视频流在那里。

我见过我见过这个 ,但类型名cvCreateFileCapture不Emgu 3.0 cvInvoke存在有什么办法,我可以从IP捕捉视频?

尝试将http:// uname:pass@10.16.33.158/axis-cgi/mjpg/video.cgi输入到VLC- >媒体->网络流中,它可以完美运行。 但是为什么我看不到它呢?

Retrieve()要求您首先使用Grab()。 如果您只需要一张图片,也可以尝试使用QueryFrame()代替。

var image = _capture.QueryFrame();

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM