示例#1
0
        private void WindowClose(object sender, EventArgs e)
        {
            FRC = null;

            FRE.WindowClosed();
            FRE = null;
        }
示例#2
0
        private void MianWindowLoad(object sender, RoutedEventArgs e)
        {
            FRC = new FaceRecognitionControl();

            FRE = new FaceRecognizeEngine();

            FRE.FRC = FRC;//fr control 传入至fr Engine中

            FRC.MainView = this;

            FRE.InitCamera();

            this._rgbVideoSource.PlayingFinished += new AForge.Video.PlayingFinishedEventHandler(FRE.VideoSource_PlayingFinished);
            this._irVideoSource.PlayingFinished  += new AForge.Video.PlayingFinishedEventHandler(FRE.VideoSource_PlayingFinished);
            this._rgbVideoSource.Paint           += FRE.VideoSource_Paint;
            this._irVideoSource.Paint            += FRE.IrVideoSource_Paint;

            this.DataContext = FRC.MainVM;
        }