Esempio n. 1
0
        public VideoForm(string cameraName, Size imageSize, ControlForm controlForm)
        {
            InitializeComponent();
            this.controlForm = controlForm;

            ImageSize       = imageSize;
            this.cameraName = cameraName;

            cameraThread      = new Thread(new ThreadStart(TrackingCameraThread));        // change to thread pool
            cameraThread.Name = cameraName;
            cameraThread.Start();
        }
        public VideoForm(string cameraName, Size imageSize, ControlForm controlForm)
        {
            InitializeComponent();
            this.controlForm = controlForm;

            ImageSize = imageSize;
            this.cameraName = cameraName;

            cameraThread = new Thread(new ThreadStart(TrackingCameraThread)); // change to thread pool
            cameraThread.Name = cameraName;
            cameraThread.Start();
        }
        public TrackingCamera(string cameraName, Size imageSize, ControlForm controlForm)
        {
            this.cameraName = cameraName;
            this.imageSize = imageSize;
            this.controlForm = controlForm;

            CalibrationPoints = new List<PointUV>();

            //blobCountingObjectsProcessing.HighlightMotionRegions = false;
            //motionDetector = new MotionDetector(iMotionDetector, blobCountingObjectsProcessing);

            Calibrate();
        }
Esempio n. 4
0
        public TrackingCamera(string cameraName, Size imageSize, ControlForm controlForm)
        {
            this.cameraName  = cameraName;
            this.imageSize   = imageSize;
            this.controlForm = controlForm;

            CalibrationPoints = new List <PointUV>();

            //blobCountingObjectsProcessing.HighlightMotionRegions = false;
            //motionDetector = new MotionDetector(iMotionDetector, blobCountingObjectsProcessing);

            Calibrate();
        }
        protected override void OnExecute(Command command, System.Drawing.Rectangle buttonRect)
        {
            base.OnExecute(command, buttonRect);

            controlForm = new ControlForm();
            controlForm.Show();
        }