Пример #1
0
        /// <summary>
        /// hand gesture controler constructor
        /// </summary>
        /// <param name="eventHandler">the event handler that consume the gesture event triggered by an hand gesture action</param>
        public HandGestureControler(EventHandler <GestureEventArgs> eventHandler)
        {
            this.GestureRecognised = eventHandler;
            this.leftHandQueue     = new Queue <Point3D>();
            this.rightHandQueue    = new Queue <Point3D>();

            //load the hand gestures from the path
            InitHandGestures();

            handDetector = new HandDetector(templateList);
        }
        /// <summary>
        /// hand gesture controler constructor
        /// </summary>
        /// <param name="eventHandler">the event handler that consume the gesture event triggered by an hand gesture action</param>
        public HandGestureControler(EventHandler<GestureEventArgs> eventHandler)
        {
            this.GestureRecognised = eventHandler;
            this.leftHandQueue = new Queue<Point3D>();
            this.rightHandQueue = new Queue<Point3D>();

            //load the hand gestures from the path
            InitHandGestures();

            handDetector = new HandDetector(templateList);
        }