Click here to Skip to main content
15,894,539 members
Articles / Desktop Programming / WPF

Sitting posture recognition with Kinect sensor

Rate me:
Please Sign up or sign in to vote.
4.78/5 (12 votes)
24 Oct 2011CPOL6 min read 67.2K   3.4K   27  
Recognition of concentrating, non-concentrating, sleeping, and raise-hand postures.
using System;
namespace Nui.Vision
{
	public class NuiUser
	{
		public int Id
		{
			get;
			set;
		}
		public NuiUserBodyPart Head
		{
			get;
			set;
		}
		public NuiUserBodyPart Neck
		{
			get;
			set;
		}
		public NuiUserBodyPart LeftShoulder
		{
			get;
			set;
		}
		public NuiUserBodyPart LeftElbow
		{
			get;
			set;
		}
		public NuiUserBodyPart LeftHand
		{
			get;
			set;
		}
		public NuiUserBodyPart RightShoulder
		{
			get;
			set;
		}
		public NuiUserBodyPart RightElbow
		{
			get;
			set;
		}
		public NuiUserBodyPart RightHand
		{
			get;
			set;
		}
		public NuiUserBodyPart Torso
		{
			get;
			set;
		}
		public NuiUserBodyPart LeftKnee
		{
			get;
			set;
		}
		public NuiUserBodyPart LeftHip
		{
			get;
			set;
		}
		public NuiUserBodyPart LeftFoot
		{
			get;
			set;
		}
		public NuiUserBodyPart RightKnee
		{
			get;
			set;
		}
		public NuiUserBodyPart RightHip
		{
			get;
			set;
		}
		public NuiUserBodyPart RightFoot
		{
			get;
			set;
		}
		public NuiUser()
		{
			this.Head = new NuiUserBodyPart();
			this.Neck = new NuiUserBodyPart();
			this.LeftShoulder = new NuiUserBodyPart();
			this.LeftElbow = new NuiUserBodyPart();
			this.LeftHand = new NuiUserBodyPart();
			this.RightShoulder = new NuiUserBodyPart();
			this.RightElbow = new NuiUserBodyPart();
			this.RightHand = new NuiUserBodyPart();
			this.Torso = new NuiUserBodyPart();
			this.LeftKnee = new NuiUserBodyPart();
			this.LeftHip = new NuiUserBodyPart();
			this.LeftFoot = new NuiUserBodyPart();
			this.RightKnee = new NuiUserBodyPart();
			this.RightHip = new NuiUserBodyPart();
			this.RightFoot = new NuiUserBodyPart();
		}
		public NuiUser(int id) : this()
		{
			this.Id = id;
		}
	}
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior) Altair
Russian Federation Russian Federation
Ph.D., Image processing, Neural net, C++, C#, OPenCv,ASP.Net MVC, JScript, Qt,SQL,Kinnect,SilvelLight,

Comments and Discussions