Пример #1
0
 static void Main(string[] args)
 {
     KinectUtil.KinectInitializer initializer = new KinectUtil.KinectInitializer();
     initializer.Initialize(
         (kinect) =>
     {
         kinect.ElevationAngle = 10;
     }
         );
 }
Пример #2
0
        private void InitializeKinect()
        {
            KinectUtil.KinectInitializer initializer = new KinectUtil.KinectInitializer();
            initializer.Initialize(
                (kinectSensor) =>
            {
                kinectSensor.ColorStream.Enable();
                kinectSensor.ColorFrameReady += ColorFrameReady;
            });

            chooserUI.KinectSensorChooser = initializer.KinectChooser;
        }