using OpenCvSharp; using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace IrisCtrl.Camera { public class CameraVideo { private VideoCapture leftVideo; private VideoCapture rightVideo; private bool showVideo; private Mat leftFrame; private Mat rightFrame; private Stack<Mat> leftFrameStack; private Stack<Mat> rightFrameStack; public bool ShowVideo { get { return showVideo; } set { showVideo = value; } } public Mat LeftFrame { get { return leftFrame; } set { leftFrame = value; } } public Mat RightFrame { get { return rightFrame; } set { rightFrame = value; } } public VideoCapture LeftVideo { get { return leftVideo; } set { leftVideo = value; } } public VideoCapture RightVideo { get { return rightVideo; } set { rightVideo = value; } } public CameraVideo() { showVideo = true; LeftVideo = new VideoCapture(0); RightVideo = new VideoCapture(0); leftFrame= new Mat(); rightFrame = new Mat(); } } }