Why is my Kinect metadata Incorrect ?

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 ??

Réponses (3)

GUO WU
GUO WU le 8 Août 2019

0 votes

Hello , have you solved this problem? Now I also have problem with "isBodayTracked".
Walter Roberson
Walter Roberson le 8 Août 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 le 28 Sep 2020

0 votes

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 commentaire

Walter Roberson
Walter Roberson le 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?

Connectez-vous pour commenter.

Question posée :

le 4 Mai 2019

Commenté :

le 28 Sep 2020

Community Treasure Hunt

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

Start Hunting!

Translated by