/// <summary> /// Initialization of components and configurations /// </summary> public void Init() { _windowMaker = new WindowMaker(); _windowMaker.isOnline = false; _featureExtractor = new FeatureExtractor(); _featureExtractor.isOnline = false; _pipeline.AddStage(_windowMaker); _pipeline.AddStage(_featureExtractor); _pretreatedRecording = new Recording(_preTreatedFrames); _windowMaker.homePipeline = _pipeline; _windowMaker.recording = _pretreatedRecording; _windowMaker.config = _treatmentConfig; }
/// <summary> /// Initialization of the pipeline used for realtime movement recognition based on the settings /// </summary> public void Init() { //Initializing the parameters that will not change between executions for all stages _acquisitionController = new AcquisitionController(); _windowMaker = new WindowMaker(); _featureExtractor = new FeatureExtractor(); _patternRecognition = new PatternRecognition(); _movementGenerator = new MovementGenerator(); _thresholdEngine = new ThresholdEngine(); _acquisitionController.isOnline = true; _acquisitionController.isMonitored = true; _windowMaker.isOnline = true; _featureExtractor.isOnline = true; _featureExtractor.isMonitored = false; _movementGenerator.nMovements = nMovements; _movementGenerator.numSingleMovements = numSingleMovements; _movementGenerator.allowedComplexMovements = allowedComplexMovements; _movementGenerator.objectServer = _objectServer; _movementGenerator.movementMetadata = movementMetadata; _thresholdEngine.enabled = true; _thresholdEngine.isOnline = true; }