I am currently working on a Kinect project for fall detection. I am only doing a basic detection of the head because that's the only way I know how to. Anyway I need to get the updated position of the MousePointer of a Ellipse. I tried using the MouseMove function but it seems to only update once. I need it to update constantly when it moves.
Is there a way to do this?
Sorry If It sounded vague but I used the Skeleton functions of Kinect to get my joint position. From there, I mapped a david beckham picture onto the head. What I am trying to do is actually detect from pixels whether the head entered the pixels.
My problem now is that the head's location doesn't update REGULARLY when i use the MouseMove function. I am trying to find a solution to that or even better, find a new way to detect the head location because frankly I find my method a little stupid.
So basically this is the front panel. I don't have the kinect with me so I can't show how it looks like actually.
private void left_ankle_MouseMove(object sender, MouseEventArgs e)
{
Point lA = e.GetPosition(this);
leftAnkleX = lA.X;
leftAnkleY = lA.Y;
}
private void getReady()
{
if (null != leftAnkleX && null != leftAnkleY && null != headX && null != headY && null != rightAnkleX && null != rightAnkleY)
{
if ((headX > btmLeftX) && (headX <btmRightY) && (headX <topLeftY))
ss_dis.Text = "Detected";
}
}
This is how I am trying to grab the david beckham Ellipse but it's not working very well.
Hope there is enough info now!