Info
この質問は閉じられています。 編集または回答するには再度開いてください。
Kinect color source: Access violation
1 回表示 (過去 30 日間)
古いコメントを表示
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/146501/image.jpeg)
Hi,
I am using a Kinect and the Image Acquisition Toolbox (R2014b) to capture color/ir and depth data from the Kincet via Matlab. Everything (capturing, preview,...) works fine, but if I use GETSELECTEDSOURCE() to read out the device properties, Matlab crashes every time and shows an access violation.
However, this happens ONLY for the color source, i.e. for the depth camera GETSELECTEDSOURCE works fine! Does anyone face the same problem or has any hints for me?
Best regards, Wang
2 件のコメント
vianney p
2016 年 4 月 12 日
I have a similar problem but matlab 2015 does not work with color/ir and depth data. Can you solve the problem? Thank you
回答 (2 件)
zhoutong zhang
2015 年 5 月 26 日
I think you used Kinect V1 for Xbox instead of Kinect V1 for windows. I encountered the same problem with the xbox version, yet everything works fine with the windows version.
0 件のコメント
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);
0 件のコメント
この質問は閉じられています。
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!