I need to use the Microsoft Kinect
But the SDK is currentlu onlu available for Visual Studio 2010, but I need to use the Kinect with delphi.
You job will be to implement a dll I can load from within my program and use to control the Kinect .
SDK: ([login to view URL]
I need the folowing functions
1. StartSession
This funktion have to initialize a connection to the Kinect, and start the session.
Required Parameters:
* OnFrameCallback - this will be a pointer to a callbeck funktion whick will be called reach frame. More later.
* DoRecordToFile - boolean. If True the dll habe to write the grey scalee values as a video file.
* LoadFromVideo - boolean. If true, the FileName Parameter will support a existing video file. This will be the demo mode, so we can playback a recorded grascale video.
FileName - pAnsiChar. This parameter will support a full file name (full path + name), to a video file.
I suppose there will be more parameters needed to establish the connection. You can specify them freely.
2. EndSession
This procedure will stop the recording or end the playback
3. OnFrameCallback
This is the procedure passed as the callback parameter.
It should be called each Frame, and give the following informations as parameters
* RelativeTime : dword - This will be the number of milisecods in video time since the start of the recording
* VideoWidth, VideoHeight : word - the dimensions of the Image
* ImageData - the actual image. I'm not yet sure, which format would be the best here. I'm open for sugestions. But we need the height map here.
Here you can find some helpful Libraries:
[login to view URL]
The above one makes a 2d array out of the height image.
and
[login to view URL]
different things. There is also a interesting blob processing library.
After this step is completed, we will continue with blob processing.
The goal i to track one or more animals, which are moving in front of the sensor.