I have to create a Interactive menu board. I am using Kinect for Windows SDK v1.8. Till now by using its in built sample projects(Control basis - Wpf) I am able navigate (Control
kinecttilebutton). When I start running the program and nobody is in the room it works Perfectly but if there is more than one person in front of the kinect sensor the the hand (Kinect Mouse Pointer) move here and there .
Now my question
Is there any option kinect sensor only detect a person in a particular area (eg x=100-150,y=100-150,z=100-150)?
Edit
Here is come code where it process the skeleton data.
private void SensorSkeletonFrameReady(object sender, SkeletonFrameReadyEventArgs skeletonFrameReadyEventArgs)
{
// Even though we un-register all our event handlers when the sensor
// changes, there may still be an event for the old sensor in the queue
// due to the way the KinectSensor delivers events. So check again here.
if (this.KinectSensor != sender)
{
return;
}
using (SkeletonFrame skeletonFrame = skeletonFrameReadyEventArgs.OpenSkeletonFrame())
{
if (null != skeletonFrame)
{
try
{
// Copy the skeleton data from the frame to an array used for temporary storage
skeletonFrame.CopySkeletonDataTo(this.skeletons);
var accelerometerReading = this.KinectSensor.AccelerometerGetCurrentReading();
// Hand data to Interaction framework to be processed
this.interactionStream.ProcessSkeleton(this.skeletons, accelerometerReading, skeletonFrame.Timestamp);
}
catch (InvalidOperationException)
{
// SkeletonFrame functions may throw when the sensor gets
// into a bad state. Ignore the frame in that case.
}
}
}
}