チルト
積んであったkinectを動かしてみる。
SDK1.5でチルト角の調整。
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using Microsoft.Kinect; namespace Tilt { public partial class Form1 : Form { KinectSensor kinect; public Form1() { InitializeComponent(); kinect = KinectSensor.KinectSensors[0]; kinect.Start(); kinectTilt.Value = kinect.ElevationAngle; } private void numericUpDown1_ValueChanged(object sender, EventArgs e) { try { kinect.ElevationAngle = (int)kinectTilt.Value; } catch (InvalidOperationException ex) { MessageBox.Show(ex.ToString()); } } } }
ネット上によくある
using Microsoft.Research.Kinect;
とか
Runtime
というのが変わっているぽいのでSDK1.5版のメモ。