Пример #1
0
 public ClassificationService(ILogger <ClassificationService> logger,
                              IPredictionEnginePoolService <InMemoryImageData, ImagePrediction> predictionEnginePoolService,
                              IOptions <MLModelOptions> mlOptions)
 {
     _mlOptions = mlOptions.Value;
     _logger    = logger;
     _predictionEnginePoolService = predictionEnginePoolService;
 }
Пример #2
0
 public ClassificationController(IPredictionEnginePoolService <InMemoryImageData, ImagePrediction> predictionEnginePoolService,
                                 IClassificationService classificationService)
 {
     _predictionEnginePoolService = predictionEnginePoolService;
     _classificationService       = classificationService;
 }