Beispiel #1
0
        private void WindowLoaded(object sender, RoutedEventArgs e)
        {
            Tkinect = new TKinect.TKinect();
            SkeletonDisplayHelper.Init();
            Tkinect.SkeletonFrameReady += SkeletonDisplayHelper.SensorSkeletonFrameReady;
            Image.Source = SkeletonDisplayHelper.ImageSource;

            //To connect to Studio
            Tkinect.SkeletonFrameClient.Connect("localhost", 4503);
        }
Beispiel #2
0
        public static void InitKinectClient()
        {
            TKinect = new TKinect.TKinect();

            //COLOR
            ColorDisplayHelper.Init();
            TKinect.ColorFrameReady += ColorDisplayHelper.SensorColorFrameReady;

            //DEPTH
            DepthDisplayHelper.Init();
            TKinect.DepthFrameReady += DepthDisplayHelper.SensorDepthFrameReady;

            //SKELETON
            SkeletonDisplayHelper.Init();
            TKinect.SkeletonFrameReady += SkeletonDisplayHelper.SensorSkeletonFrameReady;

            //CLINET
            TKinect.ColorFrameClient.Connect("localhost", 4501);
            TKinect.DepthFrameClient.Connect("localhost", 4502);
            TKinect.SkeletonFrameClient.Connect("localhost", 4503);
        }
Beispiel #3
0
        public static void InitKinectHost()
        {
            //Initialize TKinect
            TKinect = new TKinect.TKinect();

            //COLOR
            ColorDisplayHelper.Init();
            TKinect.ColorFrameReady += ColorDisplayHelper.SensorColorFrameReady;

            //DEPTH
            DepthDisplayHelper.Init();
            TKinect.DepthFrameReady += DepthDisplayHelper.SensorDepthFrameReady;

            //SKELETON
            SkeletonDisplayHelper.Init();
            TKinect.SkeletonFrameReady += SkeletonDisplayHelper.SensorSkeletonFrameReady;

            //HOST
            TKinect.ColorFrameHost.Start(4501);
            TKinect.DepthFrameHost.Start(4502);
            TKinect.SkeletonFrameHost.Start(4503);
        }