简体   繁体   English

从网络摄像头/ IP摄像机获取视频

[英]Get Video from webcam / Ip-camera

I'm trying to implement camera security in my application. 我正在尝试在我的应用程序中实现相机安全性。 I got some SDK's from some security companys to implement there system but they all use ActiveX. 我从一些安全公司获得了一些SDK来实现该系统,但是它们都使用ActiveX。 My view right now is that ActiveX is kinda old? 我现在的观点是ActiveX有点旧了?

But what is the newest way to get video from devices and display (stream) them on a screen? 但是,从设备获取视频并将其显示(流式传输)在屏幕上的最新方法是什么? What control to use in .net 4.5 WPF (and Windows 8) 在.net 4.5 WPF(和Windows 8)中使用什么控件

I'm working on video WPF app for two years now and we had a fundamental problem with video and WPF which was never resolved, and that's variable fps-rate. 我从事视频WPF应用程序工作了两年,我们遇到了一个视频和WPF的根本问题,但从未解决过,这是可变的fps速率。 This blog post goes into details. 这篇博客文章将详细介绍。

There's also a nice library called Media Kit (by Jeremiah Morrill), it might be suitable for your problem. 还有一个很好的库,称为Media Kit (由Jeremiah Morrill编写),它可能适合您的问题。

In our solution we had no choice but to expose HWND's for our rendering DirectX engine. 在我们的解决方案中,我们别无选择,只能为渲染DirectX引擎公开HWND。 We accomplished this by using HwndHost class and extending it to our custom WPF control. 我们通过使用HwndHost类并将其扩展到我们的自定义WPF控件来实现此目的 Note this is the base class for windows forms host, so you get the same amount of problems as with WinForms-WPF inter op. 注意,这是Windows窗体宿主的基类,因此您遇到的问题与WinForms-WPF inter op相同。

Also, ActiveX is the only way to display professional camera video streams in web interfaces, it's still a defacto industry standard, you'll get it from MOXA, Acti, Vivotek and various other camera equipment manufactureres. 此外,ActiveX是在Web界面中显示专业摄像机视频流的唯一方法,它仍然是事实上的行业标准,您可以从MOXA,Acti,Vivotek和其他各种摄像机设备制造商那里获得。

One more thing, if you need to perform some advanced analysis of video, I'd suggest OpenCV . 还有一件事,如果您需要对视频进行一些高级分析,建议您使用OpenCV

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

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