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

主宰稳场 提交于 2020-01-11 06:52:07

问题


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.

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

Thanks


回答1:


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.

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

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.

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.

See also: Best DirectShow way to capture image from web cam preview ? SampleGrabber is deprecated



来源:https://stackoverflow.com/questions/13295667/directshow-library-how-to-capture-image-using-directshow-library-without-showing

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!