Пример #1
0
        public Form1()
        {
            faceDetect = new FaceDetect();
            cap        = new VideoCapture();
            cap.Open(0);
            videoThread = new Thread(new ThreadStart(videoShow));

            videoThread.Start();

            //videoThread.IsBackground = true;
            //grabThread.IsBackground = true;
            InitializeComponent();
            AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException;
        }