Esempio n. 1
0
        public InfoPageViewModel(INavigationService navigationService, IOpenCVService openCvService)
            : base(navigationService)
        {
            this._OpenCvService = openCvService;

            this.Title = "Info";

            this.Version = openCvService.GetVersion();
        }
 public VideoFrameAnalyzerService(IEventAggregator eventAggregator, IVisualizationService visualizationService, IOpenCVService openCVService, IFaceService faceService)
 {
     _frameGrabber         = new FrameGrabber <LiveCameraResult>();
     _eventAggregator      = eventAggregator;
     _visualizationService = visualizationService;
     _openCVService        = openCVService;
     _faceService          = faceService;
     _localFaceDetector    = _openCVService.DefaultFrontalFaceDetector();
 }
        public ScanViewModel()
        {
            _tesseract            = DependencyService.Get <ITesseract>().TesseractApi;
            _openCVService        = DependencyService.Get <IOpenCVService>();
            ReturnNavCommand      = new Command(async() => await ExecuteReturnNavCommand());
            OpenCameraCommand     = new Command(async() => await ExecuteOpenCameraCommand());
            ConfirmReadingCommand = new Command(async() => await ExecuteConfirmReadingCommand());

            MessagingCenter.Subscribe <CameraResultMessage>(this, CameraResultMessage.Key, async(sender) => await HandleResult(sender));
        }
Esempio n. 4
0
        public PhotoPageViewModel(INavigationService navigationService,
                                  IPhotoPickerService photoPickerService,
                                  IOpenCVService openCvService)
            : base(navigationService)
        {
            this._PhotoPickerService = photoPickerService;
            this._OpenCvService      = openCvService;

            this.Title = "Photo";
        }
 public VisualizationService(IOpenCVService openCVService, IFaceService faceService, IEmotionService emotionService)
 {
     _openCVService  = openCVService;
     _faceService    = faceService;
     _emotionService = emotionService;
 }