Tilt and Smoothing Parameters WPF controls for your next Kinect Project

Today's Kinect for Windows v1 project is a work in progress found on CodePlex. Why re-invent when you can just reuse. :)

WPF Kinect User Controls

Current release contains two Kinect related UI WPF Controls to simplify developers live:

- Kinect tilt control - provides ability to tilt the controller up and down using Slidebar,

- Kinect smoothing parameters - provides ability to set advanced parameters for the skeleton tracking, see http://msdn.microsoft.com/en-us/library/jj131024.aspx for details.

The controls are designed to minimize the amount of the code and time to start working with. All you need is to instantiate in XAML code, set few parameters and ... that's it. Both controls require KinectSensor object instantiated in the code-behind, bound to its' dependency properties.

Sample ColorStream solution is provided, explaining how to use controls, see WpfKinectUserControlSample solution in download section.

What can I do with those controls?

KinectTiltControl - provides visual component (a slidebar) to set current tilt of the Kinect sensor attached. It synchronizes with sensor hardware in both directions (reading current value on sensor attachment). Control can handle dynamic sensor change during runtime.

KinectFilteringParamsControl - provides visual component to configure tracking parameters of the skeleton tracking mechanism embedded in the Kinect SDK. This include all the parameters specified by the Kinect SDK (based on Kinect SDK v.1.8): http://msdn.microsoft.com/en-us/library/jj131024.aspx . It also supports serialization and deserialization of those parameters to the XML file, to simplify experiment management.

Each control is bound to the KinectSensor instance thus you can use more than one to manage multiple Kinects independently.

The control disables and enables automatically - based on existence of the active Kinect sensor attached.

Install and using guide.

Starting Kinect development with those controls is pretty simple:

  1. Download latest DLL
  2. Reference in your project
  3. Add namespace to your xaml window / control:
    xmlns:uc="clr-namespace:WpfKinectUserControls;assembly=WpfKinectUserControls"
  4. Instantiate control in XAML (if you're using more than one Kinect in your project, there is no problem - put as many as you need).
  5. Configure controls - actually the only required parameters in case of the KinectTiltControl control is
    CurrentKinectSensor="{Binding Path=Kinect}"
    bind it to your KinectSensor property.
    • in case of the KinectFilteringParamsControl there are five more properties you may want to set to provide default values to the control.

The SOURCE CODE section provides sample solution.

Project Information URL: https://wpfkinect.codeplex.com/

Project Download URL: https://wpfkinect.codeplex.com/releases

Project Source URL: https://wpfkinect.codeplex.com/SourceControl/latest




Tags:

Follow the Discussion

Comments Closed

Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation, please create a new thread in our Forums,
or Contact Us and let us know.