Beispiel #1
0
        public HomeController(PredictionEnginePool <ImageDataInMemory, ImagePrediction> predictionEnginePool, IConfiguration configuration, ILogger <HomeController> logger, ILiteDbFlowerService flowerService)
        {
            // Get the ML Model Engine injected, for scoring
            this.predictionEnginePool = predictionEnginePool;
            this.Configuration        = configuration;
            // Get other injected dependencies
            this.logger        = logger;
            this.flowerService = flowerService;
            FlowerDataset imageset = new FlowerDataset((LiteDbFlowerService)flowerService);

            imageset.InitializeImageSet();
            //imageset.SaveToFile(@"D:\GitHub\FlowerImageClassification\FlowerImageClassification.WebApp\_backup\");
            //imageset.RestoreImageSet(@"D:\GitHub\FlowerImageClassification\FlowerImageClassification.WebApp\_backup\");
        }
 public AdminController(ILiteDbFlowerService flowerService, ILiteDbSentimentService sentimentService)
 {
     this.flowerService    = flowerService;
     this.sentimentService = sentimentService;
 }