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

回答 (3 件)

GUO WU
GUO WU 2019 年 8 月 8 日

0 投票

Hello , have you solved this problem? Now I also have problem with "isBodayTracked".
Walter Roberson
Walter Roberson 2019 年 8 月 8 日

0 投票

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 2020 年 9 月 28 日

0 投票

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 件のコメント

Walter Roberson
Walter Roberson 2020 年 9 月 28 日
Are you doing the indexing I talked about in my Answer, but still getting told that metaData(frame_index).IsBodyTracked has multiple outputs?

サインインしてコメントする。

質問済み:

2019 年 5 月 4 日

コメント済み:

2020 年 9 月 28 日

Community Treasure Hunt

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

Start Hunting!

Translated by