如何在Windows上实时修改摄像头的视频流?
我的问题类似于这个问题。我想从 Windows 中的网络摄像头捕获和修改视频流,对使用网络摄像头的所有应用程序透明。是否应该是某种驱动程序?是否可以?是否有用于此类任务的 API?我正在阅读有关 DirectShow 过滤器的内容。我的方向正确吗?
感谢您的帮助!
My question is similar to this question. I want to capture and modify video stream from web camera in Windows transparently to all applications using web camera. Whether should it be some kind of driver? Is it possible? Is there API for such tasks? I'm reading about DirectShow filters. Am I on the right direction?
Thanks for your help!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用 DirectShow 从摄像头捕获视频流,对其进行修改,然后将其传递到 DirectShow 源过滤器(将被某些应用程序视为“网络摄像头”)或内核驱动程序(将被漂亮的应用程序看到)几乎每个应用程序)。如果您是新手,请务必意识到这是一项艰巨的工作。根据您想要执行的操作,考虑为您的开发环境购买现成的组件,甚至可以执行此操作的完整应用程序(我开发了一个)。
You can use DirectShow to capture the video stream from the camera, modify it, and then pass it on to either a DirectShow source filter (will be seen by some apps as "webcam") or to a kernel driver (will be seen by pretty much every app). If you're new to this do realize this is a lot of work. Depending on what you want to do, consider buying ready made components for your developing environment or even complete applications that can do this (I developed one).