AForge连接摄像头
引入相关AForge库。
在工具箱引入controls里的控件。
绘图
其中视频框使用videoSourcePlayer控件。照片使用pictureBox控件。
编辑代码
这里有三个需要掌握的类或成员
public FilterInfoCollection(System.Guid category)
AForge.Video.DirectShow.FilterInfoCollection 的成员
摘要:
Initializes a new instance of the AForge.Video.DirectShow.FilterInfoCollection class.
参数:
category: Guid of DirectShow filter category. See AForge