Пример #1
0
 private void AddTrainingExampleWithVideo(Sequence recentTrainedExample, byte[][] video)
 {
     this.examples.Add(recentTrainedExample);
     ShowOptions();
 }
Пример #2
0
 private void AddTrainingExample(Sequence recentTrainedExample)
 {
     this.examples.Add(recentTrainedExample);
     ShowOptions();
 }
Пример #3
0
 private int EvaluteSkeleton(Sequence seq)
 {
     return SkelHMM.Evaluate(seq, s => s.SkeletonFeatures);
 }
Пример #4
0
 private int EvaluateHand(Sequence seq)
 {
     return HandHMM.Evaluate(seq, s => s.HandFeatures);
 }
Пример #5
0
 private void OnFinishedRecordingVideo(Sequence sequence)
 {
     onVideoRecordingFinishedEventHandler(sequence, videoSequence.ToArray());
     videoSequence.Clear();
 }
Пример #6
0
 /// <summary>
 /// Calculate the probability that the given HMM generated the seen observations.
 /// </summary>
 /// <param name="sequence">A sequence of observations</param>
 /// <param name="selectFeatures">A function which extracts the features of each frame</param>
 /// <returns>The Probability that the hmm generated the observations</returns>
 public int Evaluate(Sequence sequence, Func<Sequence, double[][]> selectFeatures)
 {
     return Evaluate(selectFeatures(sequence));
 }