Пример #1
0
 public AlghorithmFaceRecognition(IHcFaceDetection faceDetection, IDnFaceRecognition faceRecognition,
                                  ICaptureService captureService, ITestImageRepository testImageRepository)
 {
     _faceDetection       = faceDetection;
     _faceRecognition     = faceRecognition;
     _captureService      = captureService;
     _testImageRepository = testImageRepository;
 }
 public MainViewController(ITestImageRepository testImageRepository, IRegionManager regionManager, IAuthenticationService authenticationService, AlgorithmService algorithmService, IEventAggregator ea)
 {
     _regionManager         = regionManager;
     _authenticationService = authenticationService;
     _algorithmService      = algorithmService;
     _ea = ea;
     _testImageRepository = testImageRepository;
 }
 public ProfileInitService(ITestImageRepository testImageRepository, IDnFaceRecognition dnFaceRecognition,
                           IHcFaceDetection faceDetection,
                           IHeadPositionService headPositionService)
 {
     _testImageRepository = testImageRepository;
     _dnFaceRecognition   = dnFaceRecognition;
     _faceDetection       = faceDetection;
     _headPositionService = headPositionService;
 }
Пример #4
0
 public ProfileInitController(ICaptureService captureService, IHcFaceDetection faceDetection,
                              ProfileInitService profileInitService, ITestImageRepository testImageRepository,
                              IAuthenticationService authenticationService, IRegionManager regionManager)
 {
     _captureService        = captureService;
     _faceDetection         = faceDetection;
     _profileInitService    = profileInitService;
     _testImageRepository   = testImageRepository;
     _authenticationService = authenticationService;
     _regionManager         = regionManager;
     StepInfoContinueClick  = new DelegateCommand(BackExecute);
     StepInfoRetryClick     = new DelegateCommand(StepInfoRetryExecute);
     StartFaceInitCommand   = new DelegateCommand(StartFaceInitExecute);
     BackCommand            = new DelegateCommand(BackExecute);
     _profileInitService.InitFaceProgress = new Progress <ProfileInitProgressArgs>(OnInitFaceProgress);
 }
        public ProfileViewController(ITestImageRepository testImageRepository, IAuthenticationService authenticationService, IRegionManager rm, AlgorithmService moduleService)
        {
            _testImageRepository   = testImageRepository;
            _authenticationService = authenticationService;
            _rm            = rm;
            _moduleService = moduleService;
            RestartInit    = new DelegateCommand(() =>
            {
                _rm.Regions[ShellRegions.MainRegion].RequestNavigate(nameof(ProfileInitView));
            }, () => !_moduleService.Alghorithm.Started);


            _moduleService.Alghorithm.AlgorithmStopped += () =>
            {
                _vm.AlgorithmStarted = false;
                RestartInit.RaiseCanExecuteChanged();
            };
            _moduleService.Alghorithm.AlgorithmStarted += () =>
            {
                _vm.AlgorithmStarted = true;
                RestartInit.RaiseCanExecuteChanged();
            };
        }
 public TestImageRepositoryTests()
 {
     _repository = GetTestImageRepository();
     user        = CreateUser();
 }