private void WindowLoaded(object sender, RoutedEventArgs e) { Tkinect = new TKinect.TKinect(); DepthDisplayHelper.Init(); Tkinect.DepthFrameReady += DepthDisplayHelper.SensorDepthFrameReady; Image.Source = DepthDisplayHelper.DepthBitmap; //To connect to Studio Tkinect.DepthFrameClient.Connect("localhost", 4502); }
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); }
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); }