Exemple #1
0
 protected void OnUpdate(Classifier.Frame frame)
 {
     if (recording)
     {
         CurrentGesture.frames.Add(frame);
     }
 }
Exemple #2
0
        protected static float FramesDistance(Classifier.Frame f1, Classifier.Frame f2)
        {
            float dist = 0f;

            dist += Vector3.Distance(f1.thumb, f2.thumb);
            dist += Vector3.Distance(f1.index, f2.index);
            dist += Vector3.Distance(f1.middle, f2.middle);
            dist += Vector3.Distance(f1.ring, f2.ring);
            dist += Vector3.Distance(f1.pinky, f2.pinky);

            return(dist);
        }