Kinect for windows sdk introduction

69
初めての Kinect for Windows SDK プログラム 株式会社 ゲッシュ Ver.1.2 2012/06/19 http://www.microsoft.com/en-us/kinectforwindows/

description

Kinect for Windows Introduction

Transcript of Kinect for windows sdk introduction

  • 1. Kinect for Windows SDK Ver.1.2 2012/06/19http://www.microsoft.com/en-us/kinectforwindows/

2. (http://www.geis.co.jp/) Windows NUI Scrum [email protected] @kaorun55KINECT introduction by Geis Co. Ltd. is licensed under a Creative Commons - - 2.1 License. 3. KINECT introduction by Geis Co. Ltd. is licensed under a Creative Commons - - 2.1 License. 4. KINECT introduction by Geis Co. Ltd. is licensed under a Creative Commons - - 2.1 License. 5. Kinect MicrosoftXbox 360 (Kinect for Xbox 360) 201221WindowsKinect (Kinect for Windows) KINECT introduction by Geis Co. Ltd. is licensed under a Creative Commons - - 2.1 License. 6. Kinect for Xbox 360 280051,000121,800KINECT introduction by Geis Co. Ltd. is licensed under a Creative Commons - - 2.1 License. 7. Kinect for WindowsKINECT introduction by Geis Co. Ltd. is licensed under a Creative Commons - - 2.1 License. 8. Kinect for Windows 201221()Windows Kinect 24,800(249US) 40cmNear Mode Kinect for Xbox 360 KINECT introduction by Geis Co. Ltd. is licensed under a Creative Commons - - 2.1 License. 9. KinectKINECT introduction by Geis Co. Ltd. is licensed under a Creative Commons - - 2.1 License. 10. Kinect for Windows(xx)65 x 280 x 70(mm) 600gKinect (1.5m) USB/(2.8m)Windows 7 OSWindows Embedded Standard 7(x86,x64)2.66GHz 2GBRAMUSB 2.0()Kinect for Windows SDK(SDK)http://www.microsoft.com/en-us/kinectforwindows/ KINECT introduction by Geis Co. Ltd. is licensed under a Creative Commons - - 2.1 License. 11. Kinect fot Windows SDK Kinect for Windows SDK 2012/06/19 v1.5 ()Kinect for Windows Kinect for Xbox 360 ()KINECT introduction by Geis Co. Ltd. is licensed under a Creative Commons - - 2.1 License. 12. RGB (6) (2) KINECT introduction by Geis Co. Ltd. is licensed under a Creative Commons - - 2.1 License. 13. Kinect(4) KINECT introduction by Geis Co. Ltd. is licensed under a Creative Commons - - 2.1 License. 14. () KINECT introduction by Geis Co. Ltd. is licensed under a Creative Commons - - 2.1 License. 15. RGBKINECT introduction by Geis Co. Ltd. is licensed under a Creative Commons - - 2.1 License. 16. DefaulrNearKINECT introduction by Geis Co. Ltd. is licensed under a Creative Commons - - 2.1 License. 17. KINECT introduction by Geis Co. Ltd. is licensed under a Creative Commons - - 2.1 License. 18. KINECT introduction by Geis Co. Ltd. is licensed under a Creative Commons - - 2.1 License. 19. DefaulrNearKINECT introduction by Geis Co. Ltd. is licensed under a Creative Commons - - 2.1 License. 20. KINECT introduction by Geis Co. Ltd. is licensed under a Creative Commons - - 2.1 License. 21. Seated KINECT introduction by Geis Co. Ltd. is licensed under a Creative Commons - - 2.1 License. 22. KINECT introduction by Geis Co. Ltd. is licensed under a Creative Commons - - 2.1 License. 23. KINECT introduction by Geis Co. Ltd. is licensed under a Creative Commons - - 2.1 License. 24. KINECT introduction by Geis Co. Ltd. is licensed under a Creative Commons - - 2.1 License. 25. KINECT introduction by Geis Co. Ltd. is licensed under a Creative Commons - - 2.1 License. 26. Kinect for Windows SDK Book by Geis Co. Ltd. is licensed under a Creative Commons - - 2.1 License. 27. Kinect for Windows SDK Book by Geis Co. Ltd. is licensed under a Creative Commons - - 2.1 License. 28. KINECT introduction by Geis Co. Ltd. is licensed under a Creative Commons - - 2.1 License. 29. KINECT introduction by Geis Co. Ltd. is licensed under a Creative Commons - - 2.1 License. 30. KINECT introduction by Geis Co. Ltd. is licensed under a Creative Commons - - 2.1 License. 31. KINECT introduction by Geis Co. Ltd. is licensed under a Creative Commons - - 2.1 License. 32. KINECT introduction by Geis Co. Ltd. is licensed under a Creative Commons - - 2.1 License. 33. Kinect for Windows SDK v1.5KINECT introduction by Geis Co. Ltd. is licensed under a Creative Commons - - 2.1 License. 34. Kinect for Windows SDK Kinect for Windows Developer Toolkit http://www.microsoft.com/en-us/kinectforwindows/ Kinect for Windows Kinect fot Xbox 360()KINECT introduction by Geis Co. Ltd. is licensed under a Creative Commons - - 2.1 License. 35. Windows 7 SP1 32bit Visual C# 2010 Express http://www.microsoft.com/japan/ msdn/vstudio/express/ WPF Coding4Fun.Kinect Toolkit http://c4fkinect.codeplex.com/KINECT introduction by Geis Co. Ltd. is licensed under a Creative Commons - - 2.1 License. 36. https://github.com/kaorun55/ KinectSdkIntroduction KINECT introduction by Geis Co. Ltd. is licensed under a Creative Commons - - 2.1 License. 37. http://d.hatena.ne.jp/kaorun55/20120201/1328123704 KINECT introduction by Geis Co. Ltd. is licensed under a Creative Commons - - 2.1 License. 38. 1. Kinect 2. Beta Beta Kinect for Windows SDK 3. 32bit64bit KINECT introduction by Geis Co. Ltd. is licensed under a Creative Commons - - 2.1 License. 39. 4. KINECT introduction by Geis Co. Ltd. is licensed under a Creative Commons - - 2.1 License. 40. 5.Kinect KINECT introduction by Geis Co. Ltd. is licensed under a Creative Commons - - 2.1 License. 41. 6.Microsoft Kinect SDK vX.XDeveloper Toolkit Browser vX.X KINECT introduction by Geis Co. Ltd. is licensed under a Creative Commons - - 2.1 License. 42. 7.Kinect Explorer OKKINECT introduction by Geis Co. Ltd. is licensed under a Creative Commons - - 2.1 License. 43. http://d.hatena.ne.jp/kaorun55/20120201/1328125693 KINECT introduction by Geis Co. Ltd. is licensed under a Creative Commons - - 2.1 License. 44. 1. C#WPF KINECT introduction by Geis Co. Ltd. is licensed under a Creative Commons - - 2.1 License. 45. 2. Kinect SDKKinect Toolkit KINECT introduction by Geis Co. Ltd. is licensed under a Creative Commons - - 2.1 License. 46. RGBhttp://d.hatena.ne.jp/kaorun55/20120201/1328125693 KINECT introduction by Geis Co. Ltd. is licensed under a Creative Commons - - 2.1 License. 47. RGBKINECT introduction by Geis Co. Ltd. is licensed under a Creative Commons - - 2.1 License. 48. MainWindow.xaml KINECT introduction by Geis Co. Ltd. is licensed under a Creative Commons - - 2.1 License. 49. MainWindow.xaml.cs using System;using System.Windows;using Coding4Fun.Kinect.Wpf;using Microsoft.Kinect;namespace RgbCamera{/// /// MainWindow.xaml /// public partial class MainWindow : Window{public MainWindow(){InitializeComponent();try {if ( KinectSensor.KinectSensors.Count == 0 ) {throw new Exception( "Kinect" );}// KinectKinectSensor kinect = KinectSensor.KinectSensors[0];KINECT introduction by Geis Co. Ltd. is licensed under a Creative Commons - - 2.1 License. 50. MainWindow.xaml.cs// Colorkinect.ColorFrameReady +=new EventHandler( kinect_ColorFrameReady );kinect.ColorStream.Enable();// Kinectkinect.Start();}catch ( Exception ex ) {MessageBox.Show( ex.Message );Close();}}void kinect_ColorFrameReady( object sender, ColorImageFrameReadyEventArgs e ){imageRgbCamera.Source = e.OpenColorImageFrame().ToBitmapSource();}}}KINECT introduction by Geis Co. Ltd. is licensed under a Creative Commons - - 2.1 License. 51. http://d.hatena.ne.jp/kaorun55/20120201/1328146583 KINECT introduction by Geis Co. Ltd. is licensed under a Creative Commons - - 2.1 License. 52. KINECT introduction by Geis Co. Ltd. is licensed under a Creative Commons - - 2.1 License. 53. MainWindow.xaml KINECT introduction by Geis Co. Ltd. is licensed under a Creative Commons - - 2.1 License. 54. MainWindow.xaml.cspublic MainWindow(){InitializeComponent();try {if ( KinectSensor.KinectSensors.Count == 0 ) {throw new Exception( "Kinect" );}// KinectKinectSensor kinect = KinectSensor.KinectSensors[0];// Colorkinect.ColorFrameReady +=new EventHandler( kinect_ColorFrameReady );kinect.ColorStream.Enable();// Depthkinect.DepthFrameReady +=new EventHandler( kinect_DepthFrameReady );kinect.DepthStream.Enable();// Kinectkinect.Start();}catch ( Exception ex ) {MessageBox.Show( ex.Message );Close();}} KINECT introduction by Geis Co. Ltd. is licensed under a Creative Commons - - 2.1 License. 55. MainWindow.xaml.cs// RGBvoid kinect_ColorFrameReady( object sender, ColorImageFrameReadyEventArgs e ){imageRgbCamera.Source = e.OpenColorImageFrame().ToBitmapSource();}// void kinect_DepthFrameReady( object sender, DepthImageFrameReadyEventArgs e ){imageDepthCamera.Source = e.OpenDepthImageFrame().ToBitmapSource();} KINECT introduction by Geis Co. Ltd. is licensed under a Creative Commons - - 2.1 License. 56. http://d.hatena.ne.jp/kaorun55/20120201/1328148344 KINECT introduction by Geis Co. Ltd. is licensed under a Creative Commons - - 2.1 License. 57. KINECT introduction by Geis Co. Ltd. is licensed under a Creative Commons - - 2.1 License. 58. MainWindow.xaml KINECT introduction by Geis Co. Ltd. is licensed under a Creative Commons - - 2.1 License. 59. MainWindow.xaml.cspublic MainWindow(){ ... // Color kinect.ColorFrameReady += new EventHandler( kinect_ColorFrameReady ); kinect.ColorStream.Enable(); // Depth kinect.DepthFrameReady += new EventHandler( kinect_DepthFrameReady ); kinect.DepthStream.Enable(); // Skeleton kinect.SkeletonStream.Enable(); // Kinect kinect.Start(); ...} KINECT introduction by Geis Co. Ltd. is licensed under a Creative Commons - - 2.1 License. 60. http://d.hatena.ne.jp/kaorun55/20120201/1328150079 KINECT introduction by Geis Co. Ltd. is licensed under a Creative Commons - - 2.1 License. 61. KINECT introduction by Geis Co. Ltd. is licensed under a Creative Commons - - 2.1 License. 62. MainWindow.xaml KINECT introduction by Geis Co. Ltd. is licensed under a Creative Commons - - 2.1 License. 63. MainWindow.xaml.csKinectSensor kinect;public MainWindow(){InitializeComponent();try {if ( KinectSensor.KinectSensors.Count == 0 ) {throw new Exception( "Kinect" );}// Kinectkinect = KinectSensor.KinectSensors[0];// kinect.AllFramesReady += new EventHandler( kinect_AllFramesReady );// Color,Depth,Skeletonkinect.ColorStream.Enable();kinect.DepthStream.Enable();kinect.SkeletonStream.Enable();// Kinectkinect.Start();}catch ( Exception ex ) {MessageBox.Show( ex.Message );Close();}} KINECT introduction by Geis Co. Ltd. is licensed under a Creative Commons - - 2.1 License. 64. MainWindow.xaml.cs void kinect_AllFramesReady( object sender, AllFramesReadyEventArgs e ){imageRgbCamera.Source = e.OpenColorImageFrame().ToBitmapSource();imageDepthCamera.Source = e.OpenDepthImageFrame().ToBitmapSource();// ShowSkeleton( e );}KINECT introduction by Geis Co. Ltd. is licensed under a Creative Commons - - 2.1 License. 65. MainWindow.xaml.csprivate void ShowSkeleton( AllFramesReadyEventArgs e ){// canvas1.Children.Clear();// SkeletonFrame skeletonFrame = e.OpenSkeletonFrame();if ( skeletonFrame != null ) {// Skeleton[] skeletonData = new Skeleton[skeletonFrame.SkeletonArrayLength];skeletonFrame.CopySkeletonDataTo( skeletonData );// foreach ( var skeleton in skeletonData ) {if ( skeleton.TrackingState == SkeletonTrackingState.Tracked ) {// foreach ( Joint joint in skeleton.Joints ) { // ColorImagePoint point = kinect.MapSkeletonPointToColor( joint.Position, kinect.ColorStream.Format ); // canvas1.Children.Add( new Ellipse() {Margin = new Thickness( point.X, point.Y, 0, 0 ),Fill = new SolidColorBrush( Colors.Black ),Width = 20,Height = 20, } ); }}}}KINECT introduction by Geis Co. Ltd. is licensed under a Creative Commons - - 2.1 License. 66. http://www.slideshare.net/kaorun55/kinect-introductionKINECT introduction by Geis Co. Ltd. is licensed under a Creative Commons - - 2.1 License. 67. KINECT for Windows SDK C#http://www.slideshare.net/kaorun55/kinect-for-windows-sdk-c KINECT introduction by Geis Co. Ltd. is licensed under a Creative Commons - - 2.1 License. 68. KINECT for Windows SDK C++http://www.slideshare.net/kaorun55/kinect-for-windows-sdk-cpp KINECT introduction by Geis Co. Ltd. is licensed under a Creative Commons - - 2.1 License. 69. Enjoy!! Kinect Hack!!twitter:@kaorun55KINECT introduction by Geis Co. Ltd. is licensed under a Creative Commons - - 2.1 License.