예제 #1
0
 //Starts recording from the kinect
 public void startRecording()
 {
     areRecording = true;
     currentRecording = new GestureRecording();
 }
예제 #2
0
        /// <summary>
        /// Given a gesture recording object gets the most likely sign
        /// </summary>
        /// <param name="?"></param>
        /// <returns></returns>
        public string getSign(GestureRecording gr)
        {
            Dictionary<JointType, List<double[]>> jointObsHM = gr.getJointReadings(false); //Fix.

            //Translate for use in the getSign method
            Dictionary<string, double[][]> jointObsSeq = new Dictionary<string, double[][]>();
            foreach (JointType j in GestureRecording.trackedJoints)
            {
                string jname = j.ToString();
                List<double[]> seqList; jointObsHM.TryGetValue(j, out seqList);
                double[][] seqArr = seqList.ToArray();
                jointObsSeq.Add(jname, seqArr);
            }

            return getSign(jointObsSeq);
        }