public MainPageViewModel(IOcrService ocrService, CurrentImageService currentImageService, INavigationService navigationService) { _ocrService = ocrService; _currentImageService = currentImageService; _navigationService = navigationService; ScanCommand = new AsyncCommand(Scan); }
public ImageAnalyzerService(inRiverContext context) { _utilityService = context.ExtensionManager.UtilityService; _dataService = context.ExtensionManager.DataService; _cognitiveServicesTranslationService = new CognitiveServicesTranslationService(context); _ocrService = new CognitiveServicesImageOcrService(context); }
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); }
public TestHandler(ILoggerFactory loggerFactory, IEventService eventService, ITelegramService telegramService, IEasyCronService easyCronService, IOcrService ocrSpaceService) { _logger = loggerFactory.CreateLogger <TestHandler>(); _eventService = eventService; _telegramService = telegramService; _easyCronService = easyCronService; _ocrSpaceService = ocrSpaceService; }
public MainViewModel(IFilePickerService fileoPickerService, IOcrService ocrService, IDialogService dialogService) { _fileoPickerService = fileoPickerService; _ocrService = ocrService; _dialogService = dialogService; _fileoPickerService.Initialise(); }
public ScannedRecipeEditorController( IRecipeRepository recipeRepo, IImageRepository imageRepo, IOcrService ocrService) { _recipeRepo = recipeRepo; _imageRepo = imageRepo; _ocrService = ocrService; }
public OcrProcessor(DiscordClient client, Config config) { _client = client; _config = config; _ocrService = new OcrService { SaveDebugImages = config.Debug }; }
public CloudOcrPageViewModel(INavigationService navigationService, IPageDialogService pageDialogService, IOcrService ocrService) : base(navigationService, pageDialogService) { this.ocrService = ocrService; this.TakePhotoCommand = new DelegateCommand( async() => await TakePhotoExecuteAsync().ConfigureAwait(false)); }
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; }
public Worker(ILogger <Worker> logger, IWebScrapingService service, IOcrService ocrService, IRepository repo ) { log = logger; this.webService = service; this.ocrService = ocrService; this.repo = repo; }
// 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(); } }
protected string GetOcrResultString(IOcrService ocrService, string fileName) { var filePath = Path.Combine(BasePath, FolderName, fileName); return(OcrTestsHelper.GetOcrResultString(ocrService, filePath)); }
public static void ClassInitialize(TestContext context) { ocrService = new OcrService(); }
public RaidModule(IRaidService raidService, IEmojiService emojiService, IConfigurationService configurationService, IOcrService ocrService, ILocalizationService localizationService) : base(configurationService, emojiService, localizationService) { RaidService = raidService; OcrService = ocrService; }
public OcrController(IOcrService service) { _service = service; }
public ImageToTextFunction(IOcrService ocrService) { _ocrService = ocrService; }
public MainVM() { mOCRService = new TesseractOcrService(); mFileDialogService = new FileDialogService(); mOpenImgCmd = new BindableCommand(OnOpenImageBtnClick); }
public PdfService(ILogger <PdfService> logger, IOcrService ocrService) { Logger = logger; OcrService = ocrService; }
public PublishEventHandler(IEventService eventService, ILoggerFactory loggerFactory, IOcrService ocrSpaceService) { _eventService = eventService; _logger = loggerFactory.CreateLogger <PublishEventHandler>(); _ocrSpaceService = ocrSpaceService; }
public MainWindowViewModel(IDialogService dialogSvc, IOcrService ocrSvc) { dialogService = dialogSvc; ocrService = ocrSvc; }
public HomeController(IOcrService ocrService, IDataService dataService) { this._ocrService = ocrService; this._dataService = dataService; }