File Exchange

image thumbnail

Image Acquisition Toolbox Support Package for Kinect For Windows Sensor

Acquire video and images from Kinect for Windows Sensor.

138 Downloads

Updated 12 Sep 2018

Editor's Note: This file was selected as MATLAB Central Pick of the Week

Image Acquisition Toolbox™ Support Package for Kinect® For Windows® Sensor enables you to acquire image sensor data directly into MATLAB® and Simulink®.

This support package is functional for R2013a and beyond.

Comments and Ratings (71)

YaXiao Dong

does it support matlab R2018a?

Chris Street

Thanks for releasing this toolbox and for your replies already given. Bit of a newbie question: I am looking at the metadata.JointPositions matrix but I can't tell what unit of measurement is being used. I'm assuming (0,0,0) is the centre of the camera, and I believe I've read elsewhere that positive values indicate upwards, left of, and away from the principle point. Thanks in advance

Chris Street

Hi Carolina,

The setup program is checking the Windows OS version from the registry and is using REG.exe to do so.
What OS are you running MATLAB on?

Madhura

Hello. Help me with this please:

Executing command: [D:\Downloads\MathWorks\SupportPackages\R2017b\archives\3p\kinectsdk.instrset_common_1505502581\KinectRuntime-v1.6-Setup.exe, /s]
(abr 23, 2018 17:39:46) Process returned exit value of '0'
(abr 23, 2018 17:39:46) Finished install of KinectRuntime-v1.6-Setup
(abr 23, 2018 17:39:46) Starting install of Kinect For Windows Runtime 2.0
(abr 23, 2018 17:39:46) Executing command: [cmd, /c, FOR, /F, "tokens=2*", %A, IN, ('REG.exe, query, "HKLM\SOFTWARE\Microsoft\Windows, NT\CurrentVersion", /v, CurrentVersion'), DO, IF, %B, GEQ, 6.3, D:\Downloads\MathWorks\SupportPackages\R2017b\archives\3p\kinectv2sdk.instrset_common_1506380765\KinectRuntime-v2.0_1409-Setup.exe]
"REG.exe" no se reconoce como un comando interno o externo,
programa o archivo por lotes ejecutable.
(abr 23, 2018 17:39:46) Process returned exit value of '1'
(abr 23, 2018 17:39:46) This 3P Component Failed To Install: 3p/kinectv2sdk.instrset_common
(abr 23, 2018 17:39:46) Install Error: Failed to install the third-party software: Kinect For Windows Runtime 2.0
This is required by:Image Acquisition Toolbox Support Package for Kinect for Windows Sensor
To resolve this issue, see this MATLAB Answer.

ALI TASKIRAN

hello guys ! I have some problems. I am Ubuntu user and some adds cannot be installed. Where can i find 'em . Thank you so much!

kun wang

hello,I am newer one for matlab.I want to know the code that is about to get video from kinect

Hi Gerson and Alana have to install the Kinect SDK v 1.8 https://www.microsoft.com/en-us/download/confirmation.aspx?id=40278 first then install the Image Acquisition Toolbox Support Package for Kinect For Windows Sensor

ahmed nasr

@madhura suresh ... i have it working but not on matlab ...

Hi Ahmed,

The Microsoft Kinect is a Windows-only product, so it can't be used on Macintosh and Linux platforms.

ahmed nasr

i forgot to say that i am using matlab 2017b

ahmed nasr

hello
: The support package is not compatible with your version of MATLAB or operating system
i am using mac and i need to use the kinect in matlab on mac... so please if anyone knows how tell me i am kinda desperate.
thank you in advance

Is it true that older versions of matlab get away of the type of kinect?
I'm currently using kinect with xbox 360 label, so I can't use it on matlab 2015a and 2016b (because I've tried it on those versions).
There is another way to trick matlab in order to use my kinect?
Thanks in advance

I have the same issue as Alana.

hwInfo =

AdaptorDllName: 'C:\MATLAB\SupportPackages\R2015b\kinectforwindowsruntime\toolbox\imaq\supportpackages\kinectr…'
AdaptorDllVersion: '4.10 (R2015b)'
AdaptorName: 'kinect'
DeviceIDs: {1x0 cell}
DeviceInfo: [1x0 struct]

What should I do?
BTW: I'm using kinect V1 model 1414 the first one.

I've installed OpenNi v 2.0 and Nite v 2.0, but seems like isn't related to what I got.

Hi Edwin,

The Microsoft Kinect is a Windows-only product, so it can't be used on Macintosh and Linux platforms.

Edwin Mercado

Hi. Can I use the Kinect for windows and this toolbox in a MacBook Pro?

Yang: From the output, it looks like you are using the XBOX 360 senso, which is not supported.

Haniyeh: What issues are you having? What hardware are you using?

Hongyi: The XBOX 360 sensor is not supported. You can use the XBOX One Sensor with the Kinect adapter though.

Alana: What hardware are you using? The XBOX 360 sensor is not supported.

ALANA SOUZA

Problem: Warning: The Kinect Sensor is either not Powered or is not supported.

info =

struct with fields:

AdaptorDllName: 'C:\ProgramData\MATLAB\SupportPackages\R2017a\toolbox\imaq\supportpackages\kinectruntime\adaptor\win64\mwkinectimaq.dll'
AdaptorDllVersion: '5.2 (R2017a)'
AdaptorName: 'kinect'
DeviceIDs: {1×0 cell}
DeviceInfo: [1×0 struct]

What is the solution to this error?

Hongyi Guan

imaqhwinfo gives:
InstalledAdaptors: {'kinect'}
MATLABVersion: '9.1 (R2016b)'
ToolboxName: 'Image Acquisition Toolbox'
ToolboxVersion: '5.1 (R2016b)'

but i get an error:
Warning: The Kinect Sensor is either not Powered or is not supported.
Error using videoinput (line 233)
There are no devices installed for the specified ADAPTORNAME. See IMAQHWINFO.

Error in handDetector (line 4)
vid = videoinput('kinect',1);

how do i resolve this? I'm using an xbox 360 kinect

hi
i'm doing some work on eye tracking with kinect and i'm using image acquisition toolbox
I had installed SDK but in my matlab I can't see the kinect option to add in toolbox and star capturing
plz plz some body helps me

Yang Hong

Hi
I used Matlab2016a with Kinect V1 and ran the demo well except skeletal tracking.I found that something lost in the Device Specific Properties of function getselectedsource,such as TrackingMode,etc. Any help will be appreciated!
--------------------------------------------------
depthSrc =
Display Summary for Video Source Object:
General Settings:
Parent = [1x1 videoinput]
Selected = on
SourceName = Depth Source
Tag = [0x0 string]
Type = videosource

Device Specific Properties:
Accelerometer = [-0.03663 -0.9536 -0.31013]
CameraElevationAngle = 18
FrameRate = 30.0554
IREmitter = on

Hi Omar,

The XBOX sensor is not supported with Kinect in MATLAB. However, if you were to use a release >= 16a, it would work with the Xbox One sensor and the Kinect adapter.

Omar Crypps

Hi everyone,
My Matlab 2015a wasn't able to detect my Kinect Xbox 360 with SDK 1.7

Then I Installed Matlab 2013a with SDK 1.6
And it works correctly

hi
i am using matlab 2016a and i am trying to download the hardware suport parkage but its not installing on the computer yet the computer is a 64bit one. i also try to find out if the kinect is connected by using *imaqhwinfo* command but the matlab returns *Undefined function or variable* i am so much in need of help on this matter

@Arvind Kumar - XBOX 360 is not supported by the Image Acquisition Toolbox. The toolbox only supports the Kinect for Windows sensor.

Arvind Kumar

Dear Shankar,
i am getiing problem in interfacing Kinect XBOX 360 to my LAPTOP, having windows 10 operating system and MATLAB 2015 version. when i run videoinput('kinect', 1) command on matlab command window, it gives error "THERE ARE NO DEVICE INSTALLED FOR THE SPECIFIED ADAPTORNAME, see IMAQHWINFO".

Carlos Castro

Why does my kinect does not work for me( I'm using R2015b) but it works perfectly fine with R2014b? I can't use the depth sensor with the 2015 version.

@Vashishth - Kinect XBOX 360 is not supported by Image Acquisition Toolbox. The toolbox only supports Kinect for Windows sensor.

Can I get skeleton viewpoints in MATLAB 2015a using Kinect XBOX 360 ?

Thanks for any suggestion
Vashishth

Avi Nehemiah

major maj

There is a way to add "Face tracking" api to matlab?

it is available since 1.5:
https://msdn.microsoft.com/en-us/library/jj130970.aspx

@ieadarf: The Kinect V1 is supported with SDK version 1.6. If you are having trouble getting Kinect to work with this setup, please email support@mathworks.com.

@Pallavi Mitra: Kinect V2 is not supported presently with MATLAB. MATLAB only supports the V1 sensor. Support for the V2 will be added in a future release.

Pallavi Mitra

I have installed kinect for windows sdk v2 and also the kinect for windows sensor support package.Now when I plug in the usb of the kinect sensor,and run the command imaqhwinfo('kinect') in matlab 2013a I get the following warning.The Kinect Sensor is either not Powered or is not supported. Are there any system requirements like an i7 with 3.1Ghz speed processor? Please help!

ieadarf

I have tried Windows SDK rutime v.14.1 , 1.6 and 1.8 in Matlab R2014a (32 bit). but still sensors do not work and there is a warning: The Kinect Sensor is either not Powered or is not supported. What is your suggestion please?

Andy Thé

Unfortunately we cannot commit to anything yet but we are targeting 16a.

kygienLogan

Any date on support release for Kinect v2 with Matlab? I am using Matlab R2015a and Image Acquisition Toolbox 4.9.

Shirong Wang

Another question: How can I get point cloud data using this package, including X,Y(unit in mm, not in pixel) but not just depth data in Z and RGB data?

Shirong Wang

I've just found that the range of data is [801, 4000], which means that the unit is mm. :-)

Shirong Wang

Hi Andy,
I run the given demo and find the depthFrameData different with the physical condition, for example,
depthFrameData(1,1,1,1) is 1404 but physical distance is 1.24m, so how can I reflect the data into the real world condition? Or what's the range of the depthFrameData, so I can make a linear mapping.
Thank you in advance! The Package really helps me!

Andy Thé

Hi Mike and Yanchao,
We are planning the support but we unfortunately cannot commit to a release as of yet.
Sorry,
Andy

Ying Ming

Ying Ming

Hi Andy,

Do you know when the new version could be released for Kinect v2?

Mike

Yanchao Yu

Hi Andy,

Many thanks for your reply. Do you know when the new version could be released for Kinect v2?

Yanchao

Andy Thé

Hi Yanchao,
Currently we don't support version 2 of the Kinect for Windows, only version 1 is supported at this time.
-Andy

Yanchao Yu

Hi Bruce,
I installed Kinect for windows version 2 on a Win 8.1 machine, it works well with "Kinect studio 2.0". And then I installed the Image acquisition toolbox and the Kinect Support Package. However, I got errors as shown below. I tried to run the Image Acquisition Tool, but there isn't device listed in the hardware browser. I will be appreciated if you could help me to solve this problem.

Many thanks,
Yanchao
______
hwInfo =

AdaptorDllName: 'C:\MATLAB\SupportPackages\R2014b\kinectforwindowsruntime\toolbox\imaq\supportpackages\kinectruntime\adaptor\win64\mwkinectimaq.dll'
AdaptorDllVersion: '4.8 (R2014b)'
AdaptorName: 'kinect'
DeviceIDs: {1x0 cell}
DeviceInfo: [1x0 struct]

Error using videoinput (line 233)
There are no devices installed for the specified ADAPTORNAME. See IMAQHWINFO.

Error in Kinect_Test (line 13)
colorVid = videoinput('kinect',1)

Hi Bruce,
thanks for answering.

Indeed we do have the new v2. Is there any way to use it under Matlab ?

Roberto-

Hi Roberto,

Are you using Kinect for Windows v1 or the new v2? This support package is for the older v1 device.

- Bruce

Hi Bruce, Hi there,
I just installed Kinect for Windows on my notebook (OS Win8), it works perfectly with "kinect studio 2.0". I further installed the Support Package for Image acquisition toolbox in order to use it under Matlab R2014b.

When I try to snap from it I got an error "no device installed", as it follows.

Thanks for any suggestion.
Roberto-
______
>> imaqhwinfo
ans =
InstalledAdaptors: {'kinect'}
MATLABVersion: '8.4 (R2014b)'
ToolboxName: 'Image Acquisition Toolbox'
ToolboxVersion: '4.8 (R2014b)'

>> colch=videoinput('kinect',1)
Error using videoinput (line 233). There are no devices installed for the specified ADAPTORNAME. See IMAQHWINFO.

cesar

cesar (view profile)

Hussein

how to save and play depth and color videos using this package? I mean instead of having to connect the Kinect, I'm asking how can I use the Kinect to save depth and color videos and then use the example to read the data from videos instead of the Kinect?

Francesco

Now my kinect xbox 360 works with matlab without using openni. I had the problem "The Kinect Sensor is either not Powered or is not supported" with microsoft windows sdk 1.7, but with microsoft windows sdk 1.8 the problem has disappeared.

Michael

Francesco, how did you fix your error? Im getting the same one "The Kinect Sensor is either not Powered or is not supported"

Nev,

Do you mean the depth data or the metadata with XYZ information about each skeleton joint?

A general example on how to use all modes is available here: http://www.mathworks.com/help/imaq/examples/using-the-kinect-r-for-windows-r-from-image-acquisition-toolbox-tm.html

Thanks,
Bruce

Nev

Nev (view profile)

I have install the support package but I couldn't get the xyz data. When I run getdata(vidSrcDepth) 4-D frame data all same. Can you help me to optain x y z data if possible?

Unfortunately, this package does not work for mac.

This is probably a dumb question but will this support package work for mac?

Francesco

I'm using xbox 360, finally I've discovered the problem. Thank you very much Bruce.

Francesco

Francesco,

What version of Kinect are you using? To work with this package, you need "Kinect for Windows" which is different than the Kinect you can use with Xbox.

Thanks,
Bruce

Francesco

Kinect works in my laptopo with OpenNi and PrimeSense driver. After I have uninstalled OpenNi and PrimeSense driver. I have installed only microsoft runtime 1.6 with the matlab kinect support. In Device Manager there are:

Kinect for windows->
1)Kinect for windows Audio Array Control
2)Kinect for windows Camera
3)Kinect for windows Device
4)Kinect for windows Security Control
Audio,Video and gaming controller->
1)Kinect USB Audio

One led is fix and the other on the camera is flashing. I think is powered.

I tried to start Matlab after kinect is powered and the driver is working but without success. Do I need to install windows kinect SDK?

Francesco

Andy Thé

Hi Francesco,
It sounds like a driver problem. Make sure that before you start MATLAB that the Kinect for Windows is powered and recognized by Windows under the device manager. Once the Kinect is powered and the driver is working, then try to start MATLAB.

We have seen problems if you try to connect the Kinect after MATLAB is already running.

Hope that helps,
Andy

Francesco

Hi,

I receive this warning "The Kinect Sensor is either not Powered or is not supported" using the function hwInfo=imaqhwinfo('kinect'). Why?
Thanks for your attention.

Chee Kit

Thanks Bruce. All working. Does the toolbox have functionality to compute real world xyz coordinates?

Walther - Please make sure you are using r2013a of MATLAB, Image Processing Toolbox, and Image Acquisition Toolbox.

Chee - This does not require separate installation of the SDK. This package includes a runtime from Microsoft. It is not compatible with OpenNI. If you want to use OpenNI, please check out the other file exchange entries for Kinect support.

Chee Kit

Hi Bruce,

Do I need to install Kinect for Windows SDK (v1.6 or v1.7) to use this package? Is it also compatible with other drivers such as OpenNI? Thank you.

Walther

Hi,

I just wanted to know if I should install Kinect for windows SDK 1.7 in order to make it work? I had SDK 1.6 and Imaq wasn't able to find the device even though I had installed the kinect for windows runtime. Am I missing something? Thanks for your attention.

Sheldon

Hi Bruce,

Thank you for your answer.I install R2013a and everything is fine now.

Great regards!
Sheldon

Hi Sheldon,

You need to install R2013a in order to use this support package. If you must stick with R2012b, then there are other otpions available on the file exchange (search for "Kinect").

Thanks,
Bruce

MATLAB Release Compatibility
Created with R2013a
Compatible with R2013a to R2018b
Platform Compatibility
Windows macOS Linux

Discover Live Editor

Create scripts with code, output, and formatted text in a single executable document.


Learn About Live Editor