Running Kinect with Image Acquisition tool box

3 ビュー (過去 30 日間)
Mohammad
Mohammad 2014 年 3 月 13 日
回答済み: Siddhesh Gotad 2015 年 9 月 26 日
Hi Everyone;
I just started using Microsoft Kinect with image acquisition tool box. So using the imaqtool command, I get the GUI that allows me preview/log the data.
However, when I connect it with Microsoft Kinect, the color camera causes MATLAB to crash. the error prompt that I get is "MATLAB has encountered an internal problem and needs to be closed"
The depth camera however works fine.
Anyone knows what the issue is?
I am using MATLAB R2013b
Thanks; Ali
  1 件のコメント
Suneesh
Suneesh 2014 年 3 月 13 日
Sounds like a bug. Contact Technical Support

サインインしてコメントする。

回答 (1 件)

Siddhesh Gotad
Siddhesh Gotad 2015 年 9 月 26 日
I was getting the same error with Matlab 2015a on kinect for xbox. I implemented the following code and got the desired output without any errors:
vid = videoinput('kinect', 1, 'RGB_640x480');
triggerconfig(vid,'manual');
set(vid,'FramesPerTrigger',1);
set(vid,'TriggerRepeat', Inf);
set(vid,'ReturnedColorSpace','rgb');
start(vid);
trigger(vid);
colorImage= getdata(vid);
stop(vid);

Community Treasure Hunt

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

Start Hunting!

Translated by