public Form1() { InitializeComponent(); m_sensor = Import.GetDefaultKinectSensor(); m_sensor.Open(); if (!m_sensor.get_IsOpen()) { return; } //m_imageStream = new V2ImageStream(m_sensor); m_depthStream = new V2DepthStream(m_sensor); m_bodyStream = new V2BodyStream(m_sensor); timer1.Tick += OnTick; timer1.Interval = 100; timer1.Start(); }
public Form1() { InitializeComponent(); m_sensor = Import.GetDefaultKinectSensor(); m_sensor.Open(); if (!m_sensor.get_IsOpen()) { return; } //m_imageStream = new V2ImageStream(m_sensor); m_depthStream = new V2DepthStream(m_sensor); m_bodyStream = new V2BodyStream(m_sensor); timer1.Tick+=OnTick; timer1.Interval = 100; timer1.Start(); }
public override void Initialize() { _sensor.Open(); }