public VideoRecord() { InitializeComponent(); CvInvoke.UseOpenCL = false; try { _capture0 = new VideoCapture(0); _capture0.ImageGrabbed += ProcessFrame; _capture1 = new VideoCapture(1); _capture1.ImageGrabbed += ProcessFrame1; visComm = new VisComm(this); } catch (NullReferenceException excpt) { MessageBox.Show(excpt.Message); } _frame0 = new Mat(); _frame1 = new Mat(); _grayFrame = new Mat(); _smallGrayFrame = new Mat(); _smoothedGrayFrame = new Mat(); _cannyFrame = new Mat(); }
public CameraCapture2() { InitializeComponent(); // 通信 visComm = new VisComm(this); // 日志 visLog = new VisLog3(); // 监控 visMonitor = new VisMonitor(); // 视觉 theVisEmguVision = new VisEmguVision2(this); theVisMindVision = new VisMindVision2(this); }