简体   繁体   English

DirectShow 库-如何使用 DirectShow 库捕获图像而不在 PictureBox 或 Panel 上显示网络摄像头实时图像

[英]DirectShow Library-How to capture image using directshow library without showing the webcam live images on the PictureBox or Panel

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 ie 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 库的 WPF 应用程序,它可以很好地抓取图像或录制实时供稿,但我希望最终用户不应该看到任何网络摄像头正在拍摄他们的照片,即我想要图片框或用户应该看不到正在渲染来自网络摄像头的提要的面板,我应该能够捕获图像或记录实时提要。

Please provide me any link or suggestion as i am beginner for the DirectShow library.请为我提供任何链接或建议,因为我是 DirectShow 库的初学者。

Thanks谢谢

DirectShow does not need any visual component to grab snapshots or video. DirectShow 不需要任何视觉组件来抓取快照或视频。 It is just one of the popular methods to display video live and grabs snapshots off the video presenter.它只是实时显示视频和从视频演示者那里抓取快照的流行方法之一。

Read on using Sample Grabber to capture frames, and DxSnap sample from DirectShow.NET shows you how.继续阅读使用 Sample Grabber 捕获帧,来自 DirectShow.NET 的DxSnap示例向您展示了如何。

Use DirectShow to take snapshots from the Still pin of a capture device.使用 DirectShow 从捕获设备的 Still 引脚拍摄快照。 Note the MS encourages you to use WIA for this, but if you want to do in with DirectShow and C#, here's how.请注意,MS 鼓励您为此使用 WIA,但如果您想使用 DirectShow 和 C#,方法如下。

Note that this sample will only work with devices that output uncompressed video as RBG24.请注意,此示例仅适用于将未压缩视频输出为 RBG24 的设备。 This will include most webcams, but probably zero tv tuners.这将包括大多数网络摄像头,但可能包括零电视调谐器。

See also: Best DirectShow way to capture image from web cam preview ?另请参阅: 从网络摄像头预览捕获图像的最佳 DirectShow 方式? SampleGrabber is deprecated SampleGrabber 已弃用

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何使用DirectShow与网络摄像头断开连接? - How to disconnect from the webcam using directshow? 任何示例项目都使用DirectShow.NET库来捕获图像并在同一个项目中捕获视频? - Any sample project use DirectShow.NET library to capture image and capture video in the same project? 使用DirectShow捕获相机 - Capture camera using DirectShow 使用directshow.net捕获网络摄像头 - 性能 - Webcam capture with directshow.net - performance 如何不使用DirectShow从相机捕获数据? - How to capture data from camera NOT using DirectShow? directshow.net网络摄像头覆盖透明面板 - directshow.net webcam overlay transparent panel 如何使用directShow在WPF ImageControl内部托管来自网络摄像头的输出 - how to host output from a Webcam inside of a WPF ImageControl using directShow 使用Directshow C#如何在多个窗口中从多个USB摄像头获取实时馈送而不会崩溃 - Using Directshow C# How top get live feed from multiple USB cameras in multiple windows without crashing 在Windows应用程序中,如何使用C#.Net 2.0从PictureBox中的网络摄像头保存实时图像 - In windows application how can i save a live image from webcam in picturebox using C#.Net 2.0 使用 DirectShow.NET 从网络摄像头捕获帧 - Capturing frames from webcam using DirectShow.NET
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM