public RecognizeFromUrlController( IImagePreProcessor preProcessor, IOcrClient ocrClient, ITextPostProcessor postProcessor, IHttpClientFactory httpClientFactory, JsonSerializer serializer) { PreProcessor = preProcessor; OcrClient = ocrClient; PostProcessor = postProcessor; HttpClientFactory = httpClientFactory; Serializer = serializer; }
/// <summary> /// /// </summary> /// <param name="logger"></param> /// <param name="dirReader"></param> /// <param name="preProc"></param> /// <param name="borderSearcher"></param> /// <param name="colummnCalculator"></param> /// <param name="saver"></param> /// <param name="edgeFinder"></param> /// <param name="edgeFitter"></param> public EvaluationProcessor1(ILogger logger, IDirectoryReader dirReader, IImagePreProcessor preProc, IBorderSearcher borderSearcher, IColumnDataCalculator colummnCalculator, IResultSaver saver, IEdgeLineFinder edgeFinder, IEdgeLineFitter edgeFitter) : base(logger) { _dirReader = dirReader; _preProc = preProc; _borderSearcher = borderSearcher; _columnDataCalculator = colummnCalculator; _saver = saver; _edgeFinder = edgeFinder; _edgeFitter = edgeFitter; _logger?.Info($"{this.GetType().Name} instantiated."); Init(); _logger?.Info($"{this.GetType().Name} " + (IsInitialized ? string.Empty : "NOT") + " initialized."); }