DirectShow库-如何使用DirectShow库捕获图像而不在PictureBox或Panel上显示网络实时图像 [英] DirectShow Library-How to capture image using directshow library without showing the webcam live images on the PictureBox or Panel

查看:84
本文介绍了DirectShow库-如何使用DirectShow库捕获图像而不在PictureBox或Panel上显示网络实时图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用WPF应用程序,该应用程序使用DirectShow库,并且可以很好地捕获图像或记录实时供稿,但我希望最终用户不能看到任何网络摄像头在拍照,即我想要图片框或从网络摄像头渲染提要的面板对用户不可见,我应该能够捕获图像或记录实时提要。

I am using WPF application which is using DirectShow library and it is working fine for grabbing images or recording the live feed,but i wants that end user should not be able to see that any web cam is taking their picture i.e. i wants picture box or panel which is rendering the feed from the webcam should not be visible to the user and i should be able to capture the images or record the live feed.

请为我提供DirectShow库的初学者的任何链接或建议。

Please provide me any link or suggestion as i am beginner for the DirectShow library.

谢谢

推荐答案

DirectShow不需要任何可视组件即可捕获快照或视频。

DirectShow does not need any visual component to grab snapshots or video. It is just one of the popular methods to display video live and grabs snapshots off the video presenter.

请继续使用Sample Grabber捕获帧,然后 DxSnap 示例向您展示了如何操作。

Read on using Sample Grabber to capture frames, and DxSnap sample from DirectShow.NET shows you how.


使用DirectShow从静态引脚的快照捕获
设备。请注意,MS鼓励您为此使用WIA,但是如果您想在DirectShow和C#中使用WIA,请按以下步骤操作。

Use DirectShow to take snapshots from the Still pin of a capture device. Note the MS encourages you to use WIA for this, but if you want to do in with DirectShow and C#, here's how.

请注意,此示例仅适用于将
未压缩视频输出为RBG24的设备。这将包括大多数网络摄像头,但
可能是零电视调谐器。

Note that this sample will only work with devices that output uncompressed video as RBG24. This will include most webcams, but probably zero tv tuners.

另请参见:从网络摄像头预览中捕获图像的最佳DirectShow方法?不推荐使用SampleGrabber

这篇关于DirectShow库-如何使用DirectShow库捕获图像而不在PictureBox或Panel上显示网络实时图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆