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 .
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
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
2019년 8월 8일
0 개 추천
Hello , have you solved this problem? Now I also have problem with "isBodayTracked".
Walter Roberson
2019년 8월 8일
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
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
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?
카테고리
도움말 센터 및 File Exchange에서 Acquisition Using Kinect for Windows Hardware에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!