Exemplo n.º 1
0
 protected BaseCamera()
 {
     LeftHand  = new Hand(Side.Left);
     RightHand = new Hand(Side.Right);
     _gestures = new GestureSensor();
     _poses    = new PoseSensor();
 }
Exemplo n.º 2
0
 public FakeCamera()
 {
     LeftHand  = new Hand(Side.Left);
     RightHand = new Hand(Side.Right);
     Face      = new Face(null);
     Gestures  = new GestureSensor();
     Poses     = new PoseSensor();
 }
Exemplo n.º 3
0
 public Pipeline()
 {
     LeftHand  = new Hand(Side.Left);
     RightHand = new Hand(Side.Right);
     Face      = new Face();
     _gestures = new GestureSensor();
     _poses    = new PoseSensor();
 }
Exemplo n.º 4
0
 protected BaseCamera()
 {
     LeftHand           = new Hand(Side.Left);
     RightHand          = new Hand(Side.Right);
     _gestures          = new GestureSensor();
     _poses             = new PoseSensor();
     ImageStream        = new ImageStream();
     SegmentationStream = new ImageStream();
 }
Exemplo n.º 5
0
 public void Configure(RealSenseCamera camera)
 {
     _camera = camera;
     camera.Manager.EnableHand();
     using (var handModule = camera.Manager.QueryHand()) {
         using (var handConfig = handModule.CreateActiveConfiguration()) {
             //handConfig.EnableAllAlerts();
             int numGestures = handConfig.QueryGesturesTotalNumber();
             for (int i = 0; i < numGestures; i++)
             {
                 string name;
                 handConfig.QueryGestureNameByIndex(i, out name);
                 Debug.WriteLine("Gestures: " + name);
             }
             handConfig.EnableAllGestures();
             handConfig.SubscribeGesture(OnGesture);
             handConfig.EnableTrackedJoints(true);
             handConfig.ApplyChanges();
         }
     }
     _sensor = (GestureSensor)camera.Gestures;
     GestureSlide.Configure(camera, (GestureSensor)camera.Gestures);
 }