예제 #1
0
 public ObjectDetectionService(SharedVideoSource capture,
                               IOptions <ModelEnvConfiguration> config)
 {
     _capture = capture;
     _config  = config;
     Initialize();
     ConsumeModel.Predict(_config.Value.ModelPath, new ModelInput());
 }
예제 #2
0
 public TrainDataService(SharedVideoSource videoSource,
                         IOptions <ModelEnvConfiguration> config,
                         ModelBuilder modelBuilder, LogQueue logQueue)
 {
     _videoSource  = videoSource;
     _config       = config;
     _modelBuilder = modelBuilder;
     _logQueue     = logQueue;
 }