Exemple #1
0
 public VideoForm(CamInterface c)
 {
     InitFilters();
     InitializeComponent();
     source = c;
     c.NewFrame += new NewFrameEventHandler(cam_NewFrame);
 }
        public MotionDebugPanel(CamInterface source, MotionDetector motionDetect)
        {
            cam = source;
            md = motionDetect;
            InitializeComponent();

            cam.NewFrame += new NewFrameEventHandler(cam_NewFrame);
        }
 public MotionDetector(CamInterface cam, short frameWidth, short frameHeight)
 {
     source = cam;
     m_width = frameWidth;
     m_height = frameHeight;
     size = new Size(m_width, m_height);
     InitFilters();
     cam.NewFrame += new NewFrameEventHandler(cam_NewFrame);
 }
Exemple #4
0
 public MotionDetector(CamInterface cam, short frameWidth, short frameHeight)
 {
     source   = cam;
     m_width  = frameWidth;
     m_height = frameHeight;
     size     = new Size(m_width, m_height);
     InitFilters();
     cam.NewFrame += new NewFrameEventHandler(cam_NewFrame);
 }
Exemple #5
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();
 }