Why is my Kinect metadata Incorrect ?
Mostrar comentarios más antiguos
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 ??
Respuestas (3)
GUO WU
el 8 de Ag. de 2019
0 votos
Hello , have you solved this problem? Now I also have problem with "isBodayTracked".
Walter Roberson
el 8 de Ag. de 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
el 28 de Sept. de 2020
0 votos
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 comentario
Walter Roberson
el 28 de Sept. de 2020
Are you doing the indexing I talked about in my Answer, but still getting told that metaData(frame_index).IsBodyTracked has multiple outputs?
Categorías
Más información sobre Acquisition Using Kinect for Windows Hardware en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!