public GestureModel FinishTrainingSession() { if (!this.analyzing && !this.learning) { if (this.trainsequence.Any()) { // Training the model with this.trainsequence.Count gestures... this.learning = true; GestureModel m = new GestureModel(); m.Train(this.trainsequence); this.classifier.addGestureModel(m); this.trainsequence = new List<Gesture>(); this.learning = false; return m; } } return null; }
public GestureModel FinishTrainingSession() { if (!this.analyzing && !this.learning) { if (this.trainsequence.Any()) { // Training the model with this.trainsequence.Count gestures... this.learning = true; GestureModel m = new GestureModel(); m.Train(this.trainsequence); this.classifier.addGestureModel(m); this.trainsequence = new List <Gesture>(); this.learning = false; return(m); } } return(null); }