What is the real world coordinates in skeleton Tracking using kinect. How to find the exact position.Z for Spine joint
.
you can use SkeletonFrameReady
event to get specific position in each frame:
void _sensor_SkeletonFrameReady(object sender, SkeletonFrameReadyEventArgs e)
{
SkeletonFrame sf = e.OpenSkeletonFrame();
if (sf != null)
{
Skeleton[] allSkeletons = new Skeleton[6];
sf.CopySkeletonDataTo(allSkeletons);
Skeleton[] tracked = (Skeleton[]) (
from s in allSkeletons
where s.TrackingState == SkeletonTrackingState.Tracked
select s
);
Skeleton first = (
from s in allSkeletons
where s.TrackingState == SkeletonTrackingState.Tracked
select s
).FirstOrDefault();
if (first != null)
{
var Spinepos=first.Joints[JointType.Spine].Position.Z;
}
}
There is an article Kinect for Windows: Find user height accurately also try
and a good Kinect Getting Started article.