File Exchange

image thumbnail

Image Acquisition Toolbox Support Package for Kinect For Windows Sensor

Acquire video and images from Kinect for Windows Sensor.

4.66667
6 Ratings

96 Downloads

Updated

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 (55)

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

Avi Nehemiah (view profile)

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é

Andy Thé (view profile)

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é

Andy Thé (view profile)

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é

Andy Thé (view profile)

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-

Bruce Tannenbaum

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"

Bruce Tannenbaum

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?

Bruce Tannenbaum

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

Bruce Tannenbaum

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é

Andy Thé (view profile)

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?

Bruce Tannenbaum

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

Bruce Tannenbaum

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

Sheldon

I can't install it.I am using R2012b

When I double click on kinectforwindowsruntime.mlpkginstall in the Current Folder Browser, it just opens as a txt file in editor without installing it.

When I use command targetinstaller, it opens the targetinstaller but not support package installer which is different from [http://www.mathworks.com.au/help/imaq/installing-the-kinect-for-windows-runtime.html?searchHighlight=kinect+runtime] so I could not follow the instruction at that page.

What should I do to install it?Must I install R2013a?

Updates

no change - upgrading hardware support package download action

-updated thumbnail and minor text description.

Minor license change

MATLAB Release
MATLAB 8.1 (R2013a)

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video