Why is my Kinect metadata Incorrect ?

1 view (last 30 days)
at ta
at ta on 4 May 2019
Commented: Walter Roberson on 28 Sep 2020
I have a Kinect for XBoxOne device.
My Mattalb Version is R2016a .
I have installed " Image Acquisition Toolbox Support Package for Kinect For Windows Sensor " from here . then , I detected the Kinect V2 Devices like this correctly .
After that , I followed this to Acquire Image and Body Data .
But , Why is my Kinect metadata different ???????
my Kinect metadata :
metaData =
10x1 struct array with fields:
AbsTime
BodyIndexFrame
BodyTrackingID
ColorJointIndices
DepthJointIndices
FrameNumber
HandLeftConfidence
HandLeftState
HandRightConfidence
HandRightState
IsBodyTracked
JointPositions
JointTrackingState
RelativeFrame
TriggerIndex
This is not correct !
and , " metaData.IsBodyTracked " gives me ten anses !! why ten ?
>> metaData.IsBodyTracked
ans =
0 0 0 0 0 0
ans =
0 0 0 0 0 0
ans =
0 0 0 0 0 0
ans =
0 0 0 0 0 0
ans =
0 0 0 0 0 0
ans =
0 0 0 0 0 0
ans =
0 0 0 0 0 0
ans =
0 0 0 0 0 0
ans =
0 0 0 0 0 0
ans =
0 0 0 0 0 0
These are not in accordance with this link .
and :
>> metaData.JointPositions(:,:,1)
gives me this error in red :
Expected one output from a curly brace or dot indexing expression, but there were 10 results.
What's the problem ?? What should I do ??

Answers (3)

GUO WU
GUO WU on 8 Aug 2019
Hello , have you solved this problem? Now I also have problem with "isBodayTracked".

Walter Roberson
Walter Roberson on 8 Aug 2019
10x1 struct array with fields:
You have a 10 x 1 struct array because you had information returned for 10 different frames.
Each frame has its own metadata, indexed by the frame number. So where you have
metaData.IsBodyTracked
you should be using
metaData(frame_index).IsBodyTracked
for appropriate frame_index value .
If you want to get all of the isBodyTracked information for all of the frames at the same time, then use
vertcat(metaData.IsBodyTracked)

Ahmet Yilmaz
Ahmet Yilmaz on 28 Sep 2020
Hello , have you solved this problem? Now I also have problem with "isBodayTracked". If you have a solution would you please share with us? Thank you.
  1 Comment
Walter Roberson
Walter Roberson on 28 Sep 2020
Are you doing the indexing I talked about in my Answer, but still getting told that metaData(frame_index).IsBodyTracked has multiple outputs?

Sign in to comment.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!