public VideoFrameAnalyzerService(IEventAggregator eventAggregator, IVisualizationService visualizationService, IOpenCvService openCvService, IFaceService faceService, IDataInsertionService dataInsertionService) { _frameGrabber = new FrameGrabber <LiveCameraResult>(); _eventAggregator = eventAggregator; _visualizationService = visualizationService; _openCvService = openCvService; _faceService = faceService; _dataInsertionService = dataInsertionService; _localFaceDetector = _openCvService.DefaultFrontalFaceDetector(); }
public ShellViewModel(IEventAggregator eventAggregator, IVideoFrameAnalyzerService videoFrameAnalyzerService, IVisualizationService visualizationService, IEmotionService emotionService, IFaceService faceService, IDataInsertionService dataInsertionService) { _eventAggregator = eventAggregator; _videoFrameAnalyzerService = videoFrameAnalyzerService; _visualizationService = visualizationService; _emotionService = emotionService; _faceService = faceService; _dataInsertionService = dataInsertionService; _videoFrameAnalyzerService.InitializeFrameGrabber(); _timer = new DispatcherTimer(DispatcherPriority.Render); SetCurrentTime(); }