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