Hi Westa,
Thank you for that.
That is what I did with Kinect by getting the Joint list then checking the confidence level of each joint and counting total number of joints for a tracked body .
Then depending total number of joints tracked decide if a body tracked useful for further processing.
I tired mimic same thing but I was not getting anywhere.
Here what I did with Kinect;
Joint joint[JointType::JointType_Count];
hResult = pBody[count]->GetJoints(JointType::JointType_Count, joint);
if (SUCCEEDED(hResult))
{
body_flg = true;
int JT = NumberOfTrackedJoints(joint, 25);
.................................................
......................................................
}
int NumberOfTrackedJoints(Joint joints[], int sz)
{
int trackedJoints = 0;
for (int i = 0; i < sz; i++)
{
if (joints[i].TrackingState == 2)
{
trackedJoints++;
}
}
return trackedJoints;
}
//////////////////////////////////////////////////////////////////////
If you could guide me do the same it will be good.
Thanks once again.