Saturday, January 7, 2012

Candescent NUI 12230

I've published Candescent NUI version 12230. You can download it here: [binary] or [source]

There are lots of changes including a split into more projects and renames of public interfaces. So this release will break some existing code, sorry for that!

I've seperated the Kinect SDK part into its own DLL called CCT.NUI.KinectSDK. This code was in the CCT.NUI.Core project before. Like this the core project needs no more reference to Microsoft.Research.Kinect. The next step will probably be to introduce a seperate project for OpenNI.

Until now it was necessary to first create a bitmap and transform that into an image source later to be used in WPF. Now there are data sources that return WriteableBitmaps that can directly be assigned as WPF image source. The WPF sample project now uses these new data sources and also draws the layers with WPF elements.



Next step will probably be to work on performance again. Things seem to have become a bit "sluggish" over time.




6 comments:

  1. Do you have any idea how to make the boundary line/contour points to be smoother (less noisy,less zagged, less bumpy)
    I tried erosion and dilation, and also gaussian blur + threshold
    The line is smoother but still not good enough
    Because of this, my finger tip point is not stable and fluctuating

    ReplyDelete
  2. Hi TcBoy

    I've got the same problem. I haven't spent much time thinking about it yet. Don't know anything right now, if you find a good solution I'd like to know :-)

    - Stefan

    ReplyDelete
  3. http://stackoverflow.com/questions/7416025/how-do-i-smooth-the-curvescontours-in-opencv

    I tried the suggestion by thread starter:
    cvSmooth(TempImage, TempImage, CV_GAUSSIAN, 9, 9, 3);
    cvThreshold(TempImage, TempImage, 127, 255, CV_THRESH_BINARY);

    It smooth the line but it is still not good enough.
    And 1 downside is, after the gaussian blur, my finger gap tend to mix together. Before it was quite clear.

    TcBoY

    ReplyDelete
  4. Thanks for the update!

    I haven't worked on the algorithm for some time.. was busy using it :-) But I'll have to improve it sooner or later. Or Microsoft or PrimeSense will release one that's better anyway.

    ReplyDelete
  5. Hi, I have problems with the last version candescentnui-12234, only works the executable CTT.NUI(12234) but the source code doesn't work at visual studio 2010... I have the following mistakes:

    It couldn't find the file of the source code ...C:\Users\Luis Chavez\Desktop\CTT\CCT.NUI.Tests\Core\RGBImageSourceFactoryTests.cs'

    C:\Users\Luis Chavez\Desktop\CTT\CCT.NUI.Tests\Core\VectorTests.cs'

    C:\Users\Luis Chavez\Desktop\CTT\CCT.NUI.Tests\Core\PointFunctionsTests.cs'

    I'm using the version KinectSDK-v1.0-beta2-x64.msi of sdk of Microsoft.
    Please, help me!!! thanks

    ReplyDelete
  6. Hi Anonymous

    The files were indeed missing. You can either remove the test project from the solution or get the new source here:
    http://candescentnui.codeplex.com/SourceControl/changeset/changes/12387

    Regards
    Stefan

    ReplyDelete