Info

This question is closed. Reopen it to edit or answer.

Kinect color source: Access violation

1 view (last 30 days)
Thomas
Thomas on 4 Aug 2014
Closed: MATLAB Answer Bot on 20 Aug 2021
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 Comments
Shankar Subramanian
Shankar Subramanian on 4 Mar 2015
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
Madhura Suresh
Madhura Suresh on 14 Jul 2015
Are you using Windows 8 with Kinect for Windows sensor? Thanks, Madhura

Answers (4)

zhoutong zhang
zhoutong zhang on 26 May 2015
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.

Roc
Roc on 25 Aug 2014
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.
  2 Comments
vianney p
vianney p on 12 Apr 2016
I have a similar problem but matlab 2015 does not work with color/ir and depth data. Can you solve the problem? Thank you
Walter Roberson
Walter Roberson on 12 Apr 2016
vianney, which Kinect are you using?

Raghad
Raghad on 16 Oct 2014
Hiiii, I am facing the same problem
did you figure out how to solve it ?????
  2 Comments
Shankar Subramanian
Shankar Subramanian on 4 Mar 2015
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
zhoutong zhang on 26 May 2015
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
Siddhesh Gotad on 25 Sep 2015
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);

This question is closed.

Community Treasure Hunt

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

Start Hunting!