Kinect: Looking for SampleCode in .net forms / NOT WPC
Posted: 30 November 2010 08:37 AM   [ Ignore ]
New Member
Rank
Total Posts:  1
Joined  2010-11-27

Hi together,
  I have the requirement do access the Kinect in an .net FORMS application.
  In an WPC-Application I can connect and get the picture without problems
  I would like to implement the CLNUIDImageClass in an forms project.
  If I do this I don´t have the namespace of
  system.Windows.interop
  system.windows.media

  Do anybody has an sample code in .net/Forms to get the Bitmap in an PictureBox?

I can open/close the camera. Set LED and connect to the motor. But I don´t understand how to get the Bitmap-Information in an Picture-Box.  Is it neccessary to use the CLNUIDImageClass (NUIIMAGE) or can I create an own array (depthImage.ImageData) to use this in the function

    CLNUIDevice.GetCameraDepthFrameRGB32(camera, depthImage.ImageData, 0)

and how I can display this result in an Picture-Box?


  Thanks

Profile
 
 
Posted: 01 December 2010 09:27 PM   [ Ignore ]   [ # 1 ]
New Member
Rank
Total Posts:  6
Joined  2010-11-27

I had the same issues you’re having and decided to release a .NET wrapper for CL NUI and OpenKinect (in development). Give it a try over at http://www.nkinect.com

Profile
 
 
Posted: 02 December 2010 12:49 PM   [ Ignore ]   [ # 2 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  585
Joined  2009-09-17

@ChocheR,

Please take a look at the CL Eye SDK for an example of Windows Forms bitmap usage. You can apply the same code to the CL NUI Kinect.

AlexP

Profile
 
 
Posted: 02 December 2010 02:32 PM   [ Ignore ]   [ # 3 ]
New Member
Rank
Total Posts:  1
Joined  2010-12-02

Boris Scheiman, do you, by any chance, have any sample code available?

Profile
 
 
Posted: 04 December 2010 01:16 AM   [ Ignore ]   [ # 4 ]
New Member
Rank
Total Posts:  6
Joined  2010-11-27

Sure. Example code is at http://nkinect.codeplex.com/documentation. I keep a test executable under the main source code branch - NKinectTest.

Profile
 
 
 
 


RSS 2.0     Atom Feed