支持所有网络摄像头的.Net网络摄像头驱动程序

时间:2022-04-12 12:51:24

In our Wpf application, we need to get input from a webcam and display the video continuously. I have found a opensource driver Media Foundation .Net , which is working well with webcams having plug and play feature in windows OS. But, I also have a Logitech Pro 9000 webcam, which is not working with the above mentioned driver. But, if I install the driver CD that came along with the device, Skype and Google hangouts are able to recognize it and utilize the logitech webcam for video calls. But, the Media foundation .Net driver is still not able to read from the Logitech webcam.

在我们的Wpf应用程序中,我们需要从网络摄像头获取输入并连续显示视频。我找到了一个开源驱动程序Media Foundation .Net,它与Windows操作系统中具有即插即用功能的网络摄像头配合得很好。但是,我还有一台Logitech Pro 9000网络摄像头,它不能与上面提到的驱动程序一起使用。但是,如果我安装随设备附带的驱动程序CD,则Skype和Google环聊可以识别它并利用logitech网络摄像头进行视频通话。但是,Media Foundation .Net驱动程序仍然无法从Logitech网络摄像头读取。

I would like to understand what are the API's that Skype and Google hangouts would be using, whether I can use the same libraries in my application and also any libraries available in Wpf, that can be used in my application to work with all webcams that are available in market.

我想了解Skype和Google环聊将使用的API是什么,我是否可以在我的应用程序中使用相同的库以及Wpf中可用的任何库,可以在我的应用程序中使用它来处理所有的网络摄像头。市场上有售。

Thanks in advance!

提前致谢!

2 个解决方案

#1


3  

There are three video capture/camera APIs in Windows:

Windows中有三种视频捕获/摄像头API:

  • Video For Windows
  • 适用于Windows的视频
  • DirectShow
  • DirectShow的
  • Media Foundation
  • 媒体基金会

Webcams with WDM drivers are visible on all the three APIs and - subject to API limitations - you can access cameras using any of the three.

所有三个API都可以看到带有WDM驱动程序的网络摄像头,并且 - 根据API限制 - 您可以使用三者中的任何一个访问摄像头。

DirectShow is the most widely used, and some DirectShow devices, esp. virtual cameras, are only "visible" through DirectShow. Skype and Hangouts use DirectShow for video capture.

DirectShow是使用最广泛的,也是一些DirectShow设备,尤其是虚拟摄像机,只能通过DirectShow“可见”。 Skype和环聊使用DirectShow进行视频捕获。

All the three APIs are native, in .NET you use wrapper libraries to interface to the original APIs. MediaFoundation.NET is not a driver, it is an open source wrapper/adapter for Media Foundation API. You want DirectShow.NET instead that interfaces to DirectShow and gets you the widest choice of video capture devices.

所有这三个API都是原生的,在.NET中,您使用包装器库来连接原始API。 MediaFoundation.NET不是驱动程序,它是Media Foundation API的开源包装器/适配器。您希望DirectShow.NET与DirectShow接口,并为您提供最广泛的视频捕获设备选择。

#2


1  

You can try one of the follwoing solutions:

您可以尝试以下解决方案之一:

  1. http://www.aforgenet.com/framework/samples/video.html
  2. http://www.aforgenet.com/framework/samples/video.html
  3. http://www.codeproject.com/Articles/125478/Versatile-WebCam-C-library
  4. http://www.codeproject.com/Articles/125478/Versatile-WebCam-C-library

#1


3  

There are three video capture/camera APIs in Windows:

Windows中有三种视频捕获/摄像头API:

  • Video For Windows
  • 适用于Windows的视频
  • DirectShow
  • DirectShow的
  • Media Foundation
  • 媒体基金会

Webcams with WDM drivers are visible on all the three APIs and - subject to API limitations - you can access cameras using any of the three.

所有三个API都可以看到带有WDM驱动程序的网络摄像头,并且 - 根据API限制 - 您可以使用三者中的任何一个访问摄像头。

DirectShow is the most widely used, and some DirectShow devices, esp. virtual cameras, are only "visible" through DirectShow. Skype and Hangouts use DirectShow for video capture.

DirectShow是使用最广泛的,也是一些DirectShow设备,尤其是虚拟摄像机,只能通过DirectShow“可见”。 Skype和环聊使用DirectShow进行视频捕获。

All the three APIs are native, in .NET you use wrapper libraries to interface to the original APIs. MediaFoundation.NET is not a driver, it is an open source wrapper/adapter for Media Foundation API. You want DirectShow.NET instead that interfaces to DirectShow and gets you the widest choice of video capture devices.

所有这三个API都是原生的,在.NET中,您使用包装器库来连接原始API。 MediaFoundation.NET不是驱动程序,它是Media Foundation API的开源包装器/适配器。您希望DirectShow.NET与DirectShow接口,并为您提供最广泛的视频捕获设备选择。

#2


1  

You can try one of the follwoing solutions:

您可以尝试以下解决方案之一:

  1. http://www.aforgenet.com/framework/samples/video.html
  2. http://www.aforgenet.com/framework/samples/video.html
  3. http://www.codeproject.com/Articles/125478/Versatile-WebCam-C-library
  4. http://www.codeproject.com/Articles/125478/Versatile-WebCam-C-library