public string Recognize(List <Sketch.Substroke> strokes) { ZernikeMoment moment = new ZernikeMoment(strokes); string best = _network.Classify(moment.FeatureValues); return(best); }
public void Add(string label, List <Sketch.Substroke> strokes) { ZernikeMoment moment = new ZernikeMoment(label, strokes); if (_momentInstances.ContainsKey(label)) { _momentInstances[label].Add(moment); } else { _momentInstances.Add(label, new List <ZernikeMoment>(new ZernikeMoment[] { moment })); } }