HELP!! Can get the image and depthmap
Posted: 15 January 2011 11:17 PM   [ Ignore ]
New Member
Rank
Total Posts:  3
Joined  2011-01-15

Here are my codes:
  CLNUIMotor mot;
  CLNUICamera kinect_camera;
  short position,x = 100,y = 100,z = 20;
  BYTE value;
  bool result;
  PCHAR kinect_s;
  int device_num;
  PBYTE pData;
  position =0;

  pData = (PBYTE) malloc(921600);
  kinect_s = (PCHAR) malloc(sizeof(char)*12);
device_num= GetNUIDeviceCount();
kinect_s = GetNUIDeviceSerial(0);
mot = CreateNUIMotor(kinect_s);
result = SetNUIMotorPosition(mot, position);
result = GetNUIMotorAccelerometer(mot, x,  y,  z);
result = SetNUIMotorLED(mot, 1);
kinect_camera = CreateNUICamera(kinect_s);
result = StartNUICamera(kinect_camera);
result = GetNUICameraColorFrameRGB24(kinect_camera,  pData, 2000);

I always get the false message when I call GetNUICameraColorFrameRGB24(kinect_camera,  pData, 2000);.
Anyone knows how to solve it?? My system is Vista 64, VS 2010.
Thanks!

Profile
 
 
Posted: 18 January 2011 07:43 AM   [ Ignore ]   [ # 1 ]
New Member
Avatar
Rank
Total Posts:  7
Joined  2011-01-17

Look making sense, unless device is unaccessible. Driver badly installed or a UAC issue ?

Is preliminary open step OK ?

Like (device_num>0)  ,  (kinect_s != NULL)  (kinect_camera != NULL) ?

 Signature 

Gordon Eldest

Profile
 
 
 
 


RSS 2.0     Atom Feed