コード例 #1
0
 public MainPageViewModel(IOcrService ocrService, CurrentImageService currentImageService, INavigationService navigationService)
 {
     _ocrService          = ocrService;
     _currentImageService = currentImageService;
     _navigationService   = navigationService;
     ScanCommand          = new AsyncCommand(Scan);
 }
コード例 #2
0
 public ImageAnalyzerService(inRiverContext context)
 {
     _utilityService = context.ExtensionManager.UtilityService;
     _dataService    = context.ExtensionManager.DataService;
     _cognitiveServicesTranslationService = new CognitiveServicesTranslationService(context);
     _ocrService = new CognitiveServicesImageOcrService(context);
 }
コード例 #3
0
        public static string GetOcrResultString(IOcrService ocrService, string filePath, FenceConfiguration[] fences = null)
        {
            var utcNow          = SystemClock.Instance.GetCurrentInstant().InUtc();
            var channelTimeZone = DateTimeZoneProviders.Tzdb["Europe/Zurich"];
            var result          = ocrService.AddRaidAsync(typeof(i18n), utcNow, channelTimeZone, filePath, 4, fences, true).Result;

            return(result.Message);
        }
コード例 #4
0
 public TestHandler(ILoggerFactory loggerFactory, IEventService eventService, ITelegramService telegramService, IEasyCronService easyCronService, IOcrService ocrSpaceService)
 {
     _logger          = loggerFactory.CreateLogger <TestHandler>();
     _eventService    = eventService;
     _telegramService = telegramService;
     _easyCronService = easyCronService;
     _ocrSpaceService = ocrSpaceService;
 }
コード例 #5
0
        public MainViewModel(IFilePickerService fileoPickerService, IOcrService ocrService, IDialogService dialogService)
        {
            _fileoPickerService = fileoPickerService;
            _ocrService         = ocrService;
            _dialogService      = dialogService;

            _fileoPickerService.Initialise();
        }
コード例 #6
0
 public ScannedRecipeEditorController(
     IRecipeRepository recipeRepo, 
     IImageRepository imageRepo,
     IOcrService ocrService)
 {
     _recipeRepo = recipeRepo;
     _imageRepo = imageRepo;
     _ocrService = ocrService;
 }
コード例 #7
0
 public OcrProcessor(DiscordClient client, Config config)
 {
     _client     = client;
     _config     = config;
     _ocrService = new OcrService
     {
         SaveDebugImages = config.Debug
     };
 }
コード例 #8
0
        public CloudOcrPageViewModel(INavigationService navigationService,
                                     IPageDialogService pageDialogService,
                                     IOcrService ocrService) : base(navigationService, pageDialogService)
        {
            this.ocrService = ocrService;

            this.TakePhotoCommand = new DelegateCommand(
                async() => await TakePhotoExecuteAsync().ConfigureAwait(false));
        }
コード例 #9
0
 public Application(IHostApplicationLifetime appLifetime, IMyService myService, IConfiguration configuration, ILogger <Application> logger, IOcrService ocrService, IPdfService pdfService)
 {
     // ここでインジェクションしたものをクラスフィールドに保持する
     AppLifetime   = appLifetime;
     MyService     = myService;
     Configuration = configuration;
     Logger        = logger;
     OcrService    = ocrService;
     PdfService    = pdfService;
 }
コード例 #10
0
ファイル: Worker.cs プロジェクト: appleton6509/CovidTracker
 public Worker(ILogger <Worker> logger,
               IWebScrapingService service,
               IOcrService ocrService,
               IRepository repo
               )
 {
     log             = logger;
     this.webService = service;
     this.ocrService = ocrService;
     this.repo       = repo;
 }
コード例 #11
0
    // Update is called once per frame
    private void Update()
    {
        if (Time.frameCount % FrameInterval == 0)
        {
            //Initialize
            if (Service == null)
            {
                Service = UWPBridgeService.GetService <IOcrService>();
                Service.OnRecognized = SetString;
            }

            //Perform optical character recognition
            Service.Recognize();
        }
    }
コード例 #12
0
        protected string GetOcrResultString(IOcrService ocrService, string fileName)
        {
            var filePath = Path.Combine(BasePath, FolderName, fileName);

            return(OcrTestsHelper.GetOcrResultString(ocrService, filePath));
        }
コード例 #13
0
 public static void ClassInitialize(TestContext context)
 {
     ocrService = new OcrService();
 }
コード例 #14
0
 public RaidModule(IRaidService raidService, IEmojiService emojiService, IConfigurationService configurationService, IOcrService ocrService, ILocalizationService localizationService)
     : base(configurationService, emojiService, localizationService)
 {
     RaidService = raidService;
     OcrService  = ocrService;
 }
コード例 #15
0
ファイル: OcrController.cs プロジェクト: tomersbg/ocr
 public OcrController(IOcrService service)
 {
     _service = service;
 }
コード例 #16
0
 public ImageToTextFunction(IOcrService ocrService)
 {
     _ocrService = ocrService;
 }
コード例 #17
0
 public MainVM()
 {
     mOCRService        = new TesseractOcrService();
     mFileDialogService = new FileDialogService();
     mOpenImgCmd        = new BindableCommand(OnOpenImageBtnClick);
 }
コード例 #18
0
 public PdfService(ILogger <PdfService> logger, IOcrService ocrService)
 {
     Logger     = logger;
     OcrService = ocrService;
 }
コード例 #19
0
 public PublishEventHandler(IEventService eventService, ILoggerFactory loggerFactory, IOcrService ocrSpaceService)
 {
     _eventService    = eventService;
     _logger          = loggerFactory.CreateLogger <PublishEventHandler>();
     _ocrSpaceService = ocrSpaceService;
 }
コード例 #20
0
 public MainWindowViewModel(IDialogService dialogSvc, IOcrService ocrSvc)
 {
     dialogService = dialogSvc;
     ocrService    = ocrSvc;
 }
コード例 #21
0
 public HomeController(IOcrService ocrService, IDataService dataService)
 {
     this._ocrService  = ocrService;
     this._dataService = dataService;
 }