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