我们有没有办法模拟网络摄像头驱动程序,它会在输出时提供实时捕获的屏幕(每秒 30 帧)?
3 回答
这是ManyCam(免费)的几个功能之一。它是一个虚拟网络摄像头驱动程序,您可以通过它流式传输您的真实网络摄像头视频(带有可选的实时视频效果)、视频或图像文件,或您的完整/部分桌面。
是的,只是谷歌 video2webcam。它工作得很好,可以循环播放视频或图片作为输出。
The driver's job is to provide a level of abstraction between the software and hardware. The driver is supposed to issue commands to the hardware. It's not responsible for taking pictures and turning it into an animated GIF for instance. It's going to do low level stuff like, turn the device on and off, send raw data to a socket.
That being said, if you need to create a virtual device driver. Here's an overview of VDD's. Windows Programming/Device Driver Introduction
Generally these are not written in higher-level languages such as C#. Rather, they are written in languages such as C/C++. You will need the KMDF, or Kernel-Mode Driver Framework.
If you just need to access a webcam from a .NET application on a system with a webcam, you just need an API.
Open your browser.. go to google.com and type ".NET webcam API"
You will see something like this:
Webcam in your own application
It appears that this is a wrapper for the DirectShow class.