Exemplo n.º 1
0
        public MainWindow()
        {
            InitializeComponent();
            GuiDispatcher = Dispatcher;

            try
            {
                _windows = new List<CameraWindow>();

                _cameraController = new CameraController(CreateCamera, 25);

                _captureController = new CaptureController(100);
                _captureController.TimeFrameElapsed += _captureController_TimeFrameElapsed;
                CreateSubWindows();
                _start = DateTime.Now;
                _captureController.Start();
                _captureController.CaptureStatus = CaptureStatus.Recording;
            }
            catch (Exception exception)
            {
                Console.WriteLine(exception);
                throw;
            }

            Hide();
        }
 public BodyExtractorProcessor(CameraController controller)
 {
 }
Exemplo n.º 3
0
 private AbstractCamera CreateCamera(CameraController controller, int id, int camerawidth, int cameraheight,
                                     int framerate, DsDevice device)
 {
     return new FilterCamera(id, camerawidth, cameraheight, framerate, device, new BackgroundSubtractProcessor());
 }