Info
此问题已关闭。 请重新打开它进行编辑或回答。
Kinect color source: Access violation
2 次查看(过去 30 天)
显示 更早的评论
Hi,
I am using a Kinect and the Image Acquisition Toolbox (R2013b) 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?
Greets, Thomas
3 个评论
Shankar Subramanian
2015-3-4
Hi all,
Can you launch Kinect Explorer and let us know if you can actually see any of the color sensor properties in the kinect explorer Tab?
Thanks
Shankar
回答(4 个)
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 个评论
Roc
2014-8-25
Hi, I also encountered this error when I launched kinect to preview the color sensor in the image acquisition toolbox(2014a).Depth sensor seems to work fine.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/175456/image.png)
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
Raghad
2014-10-16
Hiiii, I am facing the same problem
did you figure out how to solve it ?????
2 个评论
Shankar Subramanian
2015-3-4
Hi Raghad,
Can you launch Kinect Explorer and let us know if you can actually see any of the color sensor properties in the kinect explorer Tab?
Thanks
Shankar
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.
Siddhesh Gotad
2015-9-25
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!