如何使用aforge.net获取摄像机ID? [英] How to get camera id using aforge.net..?
本文介绍了如何使用aforge.net获取摄像机ID?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想使用Aforge.net视频获取随附的Camera ID,我不知道该怎么做.
我正在使用DisplayPropertyPages获取属性页,并且我还希望它不显示的Camera ID.
请帮忙.
谢谢
解决方案
尝试类似的方法-它应返回所有当前连接的摄像机ID:
过滤器= 新 FilterInfoCollection(FilterCategory.VideoInputDevice); 如果(过滤器.计数> 0 ) { for ( int i = 0 ; i < filter.Count; i ++) { System.Diagnostics.Debug.WriteLine(filters [i] .MonikerString); } }
请参阅此线程,可能会指导您
http://stackoverflow. com/questions/6138423/help-needed-in-getting-webcam-stream-using-aforge-net-in-c-and-wpf [ 解决方案
Try something like this - it should return all the currently connected camera ids:
filters = new FilterInfoCollection(FilterCategory.VideoInputDevice); if (filters.Count > 0) { for (int i = 0; i < filters.Count; i++) { System.Diagnostics.Debug.WriteLine(filters[i].MonikerString); } }
Refer this thread, might guide you
http://stackoverflow.com/questions/6138423/help-needed-in-getting-webcam-stream-using-aforge-net-in-c-and-wpf[^]
这篇关于如何使用aforge.net获取摄像机ID?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文