3 of 3
3
Windows Kinect Driver/SDK - CL NUI Platform Preview
Posted: 16 June 2011 03:02 PM   [ Ignore ]   [ # 31 ]
Rank
Joined  2011-06-14
Total Posts:  1
New Member

The CL-NUI-Platform-1.0.0.1121 and works nice and stable on both my XP and win 7 computers. I find a code to get the depth image using the C API (from http://codelaboratories.com/forums/viewthread/416/P15/#1398). But GetNUICameraDepthFrameRGB32 always returns zero. Can anyone give me some ideas why?
This is the code:
#include “stdafx.h”
#include “CLNUIDevice.h”
#include “cv.h”
#include “highgui.h”

int _tmain(void)
{
cvNamedWindow( “Kinect”, 1 );

HMODULE kinectDll = ::LoadLibrary(TEXT("C:\\Program Files (x86)\\Code Laboratories\\CL NUI Platform\\SDK\\Bin\\CLNUIDevice.dll"));

if (kinectDll==NULL){
printf("Error loading DLL file:\n");
return -1;
}

CLNUICamera KinectCamera=CreateNUICamera();

if(!StartNUICamera(KinectCamera)){
printf("Could Not Start Kinect Camera");
return -1;
}

PDWORD imageName = (PDWORD) malloc(640*480*4);

if(GetNUICameraDepthFrameRGB32(KinectCamera, imageName)){

IplImage* kinectImage = cvCreateImageHeader(cvSize(640,480),8,4);
cvSetData(kinectImage,imageName,kinectImage->widthStep);

//cvCvtColor(kinectImage,img,CV_RGB2BGR);

cvShowImage( “Kinect”, kinectImage);
cvReleaseImageHeader(&kinectImage);
}

return 0;
}

Everything before GetNUICameraDepthFrameRGB32 work all right.
Regards

Profile
 
 
Posted: 12 March 2014 12:47 AM   [ Ignore ]   [ # 32 ]
Rank
Joined  2014-03-11
Total Posts:  1
New Member

Hi I keep getting a really dodgy bug. the screen capture is jumpy both camera’s and when I go to try and close it crashes and hangs there. any ideas what I can do. the tilt motor works great just the camera is being gay.
Josh

Profile
 
 
Posted: 09 May 2016 12:56 PM   [ Ignore ]   [ # 33 ]
Rank
Joined  2016-05-06
Total Posts:  2
New Member

getting the bsod named

Technical informartion:
*** STOP: 0x000000D1 (0x00000018, 0x00000002, 0x00000000, 0xB83AF654)
*** USBPORT.SYS - AddressB83AF654 base at B83A4000, DateStamp 480254ce”

Profile
 
 
Posted: 10 May 2016 01:19 PM   [ Ignore ]   [ # 34 ]
Rank
Joined  2016-05-06
Total Posts:  2
New Member

получил ответ
http://www.deskdecode.com/how-to-fix-stop-0x000000d1-driver_irql_not_less_or_equal-error/

Profile
 
 
   
3 of 3
3