我想要从ip捕获视频流。我已经看到了这一点,但是在EMGU3.0的cvInvoke中,类型名称cvCreateFileCapture不存在,有什么方法可以从ip捕获视频吗?
我试过使用它,它不起作用,但消息框显示这意味着捕获不为空。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,视频流就在那里。
我已经看过this了,但是在EMGU3.0的cvInvoke上不存在类型名称cvCreateFileCapture,有没有什么方法可以从ip中捕获视频?
尝试输入http://uname:pass@10.16.33.158/axis-cgi/mjpg/video.cgi到VLC ->媒体->网络流,它工作得很好。但是为什么我在捕获的时候看不到呢?
发布于 2016-03-09 21:35:12
Retrieve()要求您首先使用Grab()。如果只需要一个图像,也可以尝试使用QueryFrame()。
var image = _capture.QueryFrame();https://stackoverflow.com/questions/35860273
复制相似问题