Ejemplo n.º 1
0
        private void button_keyframe_Click(object sender, EventArgs e)
        {
            List <int> keyframeIndexs = MotionMatching.ExtractKeyFrame(_a.Frames);

            foreach (int index in keyframeIndexs)
            {
                HandFeatures hf = HandFeatures.ExtractFeatures(_a.Frames[index]);
                Console.WriteLine(Convert.ToString(hf.StateCode, 2));
            }
        }
Ejemplo n.º 2
0
        private void button_catch_Click(object sender, EventArgs e)
        {
            Frame frame = new Frame(_c.Frame());

            foreach (Hand hand in frame.Hands)
            {
                HandFeatures hf = HandFeatures.ExtractFeatures(hand);
                Console.WriteLine("state code = " + hf.StateCode + "," + Convert.ToString(hf.StateCode, 2));
            }
        }