getdata errors when capturing skeletal data with kinect

조회 수: 3 (최근 30일)
Rob Wright
Rob Wright 2016년 12월 9일
댓글: Harold Villacís 2018년 2월 14일
Matlab R2016b
Windows 10
Kinect V2.
I'm testing out the code from the Skeleton Viewer for Kinect V2 Skeletal Data and running into issues with getdata and also other items listed below. As you can tell I'm new to Matlab so any pointers would be appreciated. Here are the error codes:
  • Error event occurred at 17:13:00 for video input object: Depth_512x424-kinect-2.
  • Unable to allocate memory for an incoming image frame due to insufficient free physical memory.
  • Unable to allocate memory for an incoming image frame due to insufficient free physical memory.
  • Error in imaqdevice/getdata (line 141)
  • frames = getdata(imaqgate('privateGetField', obj, 'uddobject'),varargin{:});
  • Error in ImaqTrn06 (line 40)
  • [colorImg] = getdata(colorVid); % [colorImg] = getdata(colorVid);
  • Error using imaqdevice/getdata (line 148)
  • OBJ is not running and no frames are available.
  • Error in ImaqTrn06 (line 41)
  • [~, ~, metadata] = getdata(depthVid);
  댓글 수: 1
Harold Villacís
Harold Villacís 2018년 2월 14일
Hi, I have the same problem. And I am running in a computer with 64 Gb RAM, i7 processor

댓글을 달려면 로그인하십시오.

채택된 답변

Nirav Sharda
Nirav Sharda 2016년 12월 12일
Based on the error message it looks like there is not enough physical memory that can be used to get all the frame data(100 frames of depth and color each for that particular resolution). You can try this on a machine with more resources. Also, if you can work with lower resolution data for your specific application, you can use something like
vid = videoinput('kinect',1,'RGB_640x480');
I hope this helps.
  댓글 수: 4
Bryan Beard
Bryan Beard 2017년 5월 1일
did you ever solve this issue chong? I am having the same issue and am not sure how to fix it since I have 16 GB RAM, 250GB free on hard drive, and I7 processor.
Walter Roberson
Walter Roberson 2017년 5월 1일
rgb_memory = 1920 * 1080 * 3 * 100 * 1 byte per component
depth_memory = 1920 * 1080 * 1 * 100 * 2 byte per component
The total is just shy of 1 gigabyte for 100 frames.
I wonder if increasing the Java memory would help ?

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by