public FormRecognizer()
        {
            InitializeComponent();

            Instance = this;

            haar = new CascadeClassifier(@"haarcascade_frontalface_default.xml");

            InitializeCapture();
        }
 private void ReleaseData()
 {
     if (Instance != null)
     {
         Instance = null;
     }
     if (capture != null)
     {
         StopCapture();
     }
 }