如何获取 directshw 流的快照
我正在使用 directshow.net 从相机捕获视频。该视频在表单上可见。有人可以告诉我如何将其快照作为 .NEt Image 对象。我需要间歇性地拍摄它。
I am using the directshow.net to capture video from the camera. The video is visible on a form. Can someone tell me how I can take a snap of it as an .NEt Image object. I need to take snaps of it intermittently.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我相信有一个示例应用程序可以向您展示如何使用 DirectShow.net 执行此操作。下载 SDK 时,请查找 DxSnap 演示。这展示了如何截取网络摄像头视频流的屏幕截图。您可以修改它以适合您的场景,但这应该是您所需要的。
然而,即使在此站点上,Microsoft 也建议您使用 WIA(Windows 图像采集)来完成此操作。以防万一您可以选择但以前没有遇到过这种情况,这里有一个有关如何开始的教程:
http://channel9.msdn.com/coding4fun/articles/Look-at-me-Windows-Image-Acquisition
I believe there is a sample application that shows you how to do this with DirectShow.net. When you download the SDK, look for the DxSnap demo. This shows how to take a screenshot of a webcam's video stream. You can modify it to fit your scenario but this should be all you need.
Even on this site, however, Microsoft recommends that you use WIA (Windows Image Acquisition) to accomplish this instead. Just in case you have the option and haven't come across this before, here is a tutorial on how to get started:
http://channel9.msdn.com/coding4fun/articles/Look-at-me-Windows-Image-Acquisition