protected virtual void OnFrameProcessed(FrameProcessedEventArgs e) { if (FrameProcessed != null) { FrameProcessed(this, e); } }
static void i_FrameProcessed(object sender, FrameProcessedEventArgs e) { Console.WriteLine("Frame was Processed"); Console.WriteLine("X = " + e.roi.X); Console.WriteLine("Y = " + e.roi.Y); FrmPrcs.Stop(); //Environment.Exit(0); }