Ejemplo n.º 1
0
        public void Loop(LoopObjects loopObjects)
        {
            _faceData.Update();
            var face = FindFace(_faceData);

            if (face == null)
            {
                return;
            }
            loopObjects.Add(face);
            loopObjects.Add(_faceData);
            TrackFace(face);
        }
Ejemplo n.º 2
0
        private void TrackHand(Hand hand, PXCMHandData.AccessOrderType label)
        {
            PXCMHandData.IHand handInfo;
            if (_handData.QueryHandData(label, 0, out handInfo) != NoError)
            {
                hand.IsVisible = false;
                return;
            }
            hand.IsVisible = true;

            SetHandOrientation(hand, handInfo);
            SetHandOpenness(hand, handInfo);
            SetHandPosition(hand, handInfo);

            _loopObjects.Add(handInfo, label.ToString());
        }