Example #1
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);
 }
Example #2
0
 private void ConfigureGestures()
 {
     GestureSlide.Configure(this, _gestures);
 }