Missing properties of Kinect 360 V1 Matlab 2017a - no TrackingMode, no Skeleton

Hello evereyone!
Has anyone used the Kinect 360 v1 in Matlab R2017a?
I have some troubles connecting Kinect 360 V1 with Matlab 2017a. I use all codes in Matlab 2013a and works perfectly. But in Matlab 2017a some properties are missing. There is no "TrackingMode", "BodyPosture", "DepthMode", "IREmitter" and "SkeletonsToTrack".
Above: exemple in Matlab tutorial.
Now, the image of what i have got:
%Testes iniciais para Kinect no Matlab 2017
clear all;
close all;
clc;
vid = videoinput('kinect',1,'RGB_640x480')
src = getselectedsource(vid)
src.BacklightCompensation = 'LowLightsPriority';
preview(vid);
pause();
closepreview(vid);
vid2 = videoinput('kinect',2,'Depth_640x480');
src = getselectedsource(vid2);
start(vid2);
% Get the data on the object.
[frame, ts, metaData] = getdata(vid2);
% Look at the metadata to see the parameters in the skeletal data.
metaData
metaData.IsSkeletonTracked
metaData.JointWorldCoordinates(:,:,1)
% View the segmentation data as an image.
imagesc(metaDataDepth.SegmentationData);
% Set the color map to jet to color code the people detected.
colormap(jet);
Someone can help me?

3 Comments

I do not have a Kinect of any kind to test with.
Note: the only Kinect V1 that was supported was Kinect For Windows V1. Some of the other Kinect worked partly with the older versions of the support package, but the upgrades to the support package to support Kinect V2 might have lost some accidental compatibility.
In a follow-up duplicate question, the poster clarified that this is a Kinect 360 v1

Sign in to comment.

 Accepted Answer

The Kinect 360 (for xbox) is not supported; see https://www.mathworks.com/hardware-support/kinect-windows.html . The 360 was never supported by Mathworks, but some earlier versions could talk to half of it.

6 Comments

Thanks Walter. I really appreciate your help. So, my real problem is: I trying to build a image category classifier with this code (a copy of
myfolder = 'C:\Users\MARQUES\Desktop\Engenharia\Iniciação Científica\Testes\Imagens_mao';
imds = imageDatastore(myfolder,'IncludeSubfolders',1,'LabelSource','foldernames');
[trainingSet,testSet] = splitEachLabel(imds,0.3,'randomize');
bag = bagOfFeatures(trainingSet);
categoryClassifier = trainImageCategoryClassifier(trainingSet,bag);
confMatrix = evaluate(categoryClassifier,testSet)
mean(diag(confMatrix))
img = imread(fullfile(myfolder,'cups','bigMug.jpg'));
[labelIdx, score] = predict(categoryClassifier,img);
categoryClassifier.Labels(labelIdx)
It is working well with my image database. But this code just is supported just at R2017a. There is a way to adapt to version R2013a? What is the best alternative? (sorry for the low english skills)
There is a way to use the variable "categoryClassifier" created in this code in the R2013a version?
imageDatastore function requires R2016a or later.
imageDatastore is not for use with "live" images. There is no equivalent for use with images or skeletons streamed from Kinect.
bagOfFeatures requires R2014b or later and uses imageDataStore in current versions. Older versions used imageSet which requires R2014b or later
trainImageCategoryClassifier requires R2014b or later and uses imageStore (earlier, imageSet) and bagOfFeatures. "The function trains a support vector machine (SVM) multiclass classifier".
The support for SVM multiclass calculations was introduced in R2014b; https://www.mathworks.com/help/stats/compactclassificationecoc-class.html
So... you are going to have to rewrite a lot.
The built in support for SVM was added in R2013a; https://www.mathworks.com/help/stats/svmtrain.html
Have you considered the possibility of using R2013a just to talk to the Kinect, and have it store files for processing in R2017a ?
@Jose Marques: Please use flags only to inform admins and editors about contents, which might conflict with the terms of use.
When I was posting the forum missunderstanded my post like spam. So I use a flag.

Sign in to comment.

More Answers (1)

Hi, I have the same problem, how you solve it??

2 Comments

Hello, I figured out that Kinect 360 work fine with MATLAB r2013.
so, I can use that version to work with the kinect 360?

Sign in to comment.

Products

Community Treasure Hunt

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

Start Hunting!