예제 #1
0
        private void 远程视频ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            stop_capture();                    //停止摄像头
            VideoForm Form4 = new VideoForm(); //

            Form4.Show();                      //启动训练窗体
        }
예제 #2
0
 public Training_Form(VideoForm _Parent1)
 {
     InitializeComponent();
     Parent1 = _Parent1;
     Face = Parent1.Face;
    // Face = new CascadeClassifier(Application.StartupPath + "\\Cascades\\haarcascade_frontalface_alt2.xml");
     ENC_Parameters.Param[0] = ENC;
     Image_Encoder_JPG = GetEncoder(ImageFormat.Jpeg);
     initialise_capture();
 }