Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

Kinect color source: Access violation

2 visualizaciones (últimos 30 días)
Longxiang Wang
Longxiang Wang el 17 de Dic. de 2014
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
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 comentarios
vianney p
vianney p el 12 de Abr. de 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 el 12 de Abr. de 2016
vianney, which Kinect are you using?

Respuestas (2)

zhoutong zhang
zhoutong zhang el 26 de Mayo de 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 el 26 de Sept. de 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);

La pregunta está cerrada.

Community Treasure Hunt

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

Start Hunting!

Translated by