Пример #1
0
        public MotionDebugPanel(CamInterface source, MotionDetector motionDetect)
        {
            cam = source;
            md = motionDetect;
            InitializeComponent();

            cam.NewFrame += new NewFrameEventHandler(cam_NewFrame);
        }
Пример #2
0
 public MainForm()
 {
     motionTimeout = new System.Timers.Timer(2000);
     motionTimeout.Elapsed += new System.Timers.ElapsedEventHandler(motionTimeout_Elapsed);
     cam = new CamInterface();
     //cam.NewFrame += new NewFrameEventHandler(cam_NewFrame);
     //new VideoForm(cam).Show();
     //new TestPanel().Show();
     motionDetect = new MotionDetector(cam, 1024,576);
     motionDetect.MotionDetected += new MotionDetectedEventHandler(motionDetect_MotionDetected);
     Network.Init(9762);
     InitializeComponent();
     new MotionDebugPanel(cam,motionDetect).Show();
 }