2015-06-16 49 views
0

我剛開始使用Kinect版本2(SDK 2.0)進行開發,並嘗試使用kinect支持的Windows應用商店應用程序。爲了與網格應用建立基本互動,我跟蹤了一個微軟的視頻。您在App.xaml.cs文件中添加以下幾行代碼:與kinect版本2的交互

KinectRegion region = new KinectRegion(); 
KinectUserViewer viewer = new KinectUserViewer() { 
    HorizontalAlignment = HorizontalAlignment.Center, 
    VerticalAlignment = VerticalAlignment.Bottom, 
    Width = 121, 
    Height = 100 
}; 
Grid grid = new Grid(); 
grid.Children.Add(region): 
grid.Children.Add(viewer); 
region.Content = rootFrame; 
Window.Current.Content = grid; 

我沒有收到錯誤報告或例外情況,用戶查看器顯示正常。但是沒有互動。無論我做什麼,我都無法讓手形圖標像在演示中一樣出現在屏幕上。

任何有關出錯的幫助或建議將不勝感激。

P.S.我是Windows開發新手,我有蘋果背景。

回答

0

我知道你在一個月前問過這個問題,但是你打開了Package.appxmanifest文件中的麥克風和攝像頭功能嗎?它位於Capabilities選項卡下。

+0

是的,我有。這是第一步。 –