MATLAB Answers

Why am I getting an error about TrackingMode when I run KinectForW​indowsExam​ple.m with a Kinect v1?

14 views (last 30 days)
I am running KinectForWindowsExample.m with a Kinect (version 1), and I am getting the the following error message:
depthSrc.TrackingMode = 'Skeleton'; 
No public property TrackingMode exists for class videosource. 
Error in KinectForWindowsExample (line 117)
Why is this error happening?

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 6 Oct 2021 at 4:00
Edited: MathWorks Support Team on 6 Oct 2021 at 13:33
This error can occur in either of the following two situations:
1. Using a Kinect for XBox 360 device, which is unsupported.
Currently Image Acquisition Toolbox supports the following Kinect device models:
 - Kinect for Windows Sensor (version 1)
 - Kinect for Windows v2
Using a "Kinect for XBox 360" can cause unexpected behavior in MATLAB, IMAQTOOL, or Simulink.
One way to determine which Kinect sensor device model you have is to look at the text next to the camera lens on the front of the Kinect sensor device:
  • Kinect for Windows Sensor (version 1)  shows the text "KINECT"
  • Kinect for XBox 360 shows the text "XBOX 360"
2. Using a Kinect v2 device with code written for Kinect for Windows Sensor v1.
A similar example for Kinect v2 can be found here:

More Answers (0)

Community Treasure Hunt

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

Start Hunting!