Content Archived

This content is no longer current. Our recommendation for up to date content: http://channel9.msdn.com/Series/KinectQuickstart/Setting-up-your-Development-Environment

Setting Up Your Development Environment (Beta 2 SDK)

Sign in to queue

The Discussion

  • User profile image
    Aaron

    Is the Microsoft Kinect Speech Platform not available for download yet or something like that. The link above doesn't seem to actually be a link and it's nowhere on the Kinect SDK pages like the SDK sample says.

  • User profile image
    alex

    Just a "stupid question"... where should I put the coding4fun files I extracted from the zip file??? Thanks

  • User profile image
    WendyCzymoch

    @alex:It doesn't matter where you put them, if you go to recent files you can browse to them.  Once you reference them you should be good to go.  If you move them, you might have to re-reference them.

  • User profile image
    Bas

    Does the speech recognition platform work if your system locale and UI language are not US/English?

  • User profile image
    Peter

    Uninitialize does not stop the IR projector.
    How can I stop the IR - projector? Thanks

  • User profile image
    Mix

    Runtime error occurs after adding nui:

    A first chance exception of type 'System.Windows.Markup.XamlParseException' occurred in PresentationFramework.dll

    Additional information: 'The invocation of the constructor on type 'WpfApplication1.MainWindow' that matches the specified binding constraints threw an exception.'

  • User profile image
    Dan

    @Bas:  The Kinect for Windows Runtime Language Pack (version 0.9) is the acoustic model  for the Kinect for Windows SDK. That is optimized for using Kinect as a microphone and is English only. You should be able to use another recognizer that supports multiple languages, but it won't be as optimized as the Kinect Runtime language pack.

  • User profile image
    Dan

    @Mix: Can you send the inner exception? See if you have an option to "Copy Exception details to clipboard" and respond with them!

  • User profile image
    Mix

    I installed SP1 for VS 2010, restarted my system, created a new solution from scratch and no longer receive this error. Thanks.

  • User profile image
    Dan

    @Mix: Great to hear Smiley

  • User profile image
    Bas

    @Peter: I have the same problem. Once I run an application once, the IR projector stays on until I actually unplug the Kinect from the USB port.

  • User profile image
    Jiggles

    Hi there,

    Coding4Fun Kinect Toolkit. Where do i place the Extracted files to bring them up in the reference list?

    Thankyou in advance

  • User profile image
    alex

    @Jiggles : Use the browse option tab in the add reference window to find them! et voila. That's what I did and worked fine!

  • User profile image
    Dan

    @BasMadPeter: I sent your question to the product team and this is unfortunately a known issue with the driver at beta where the IR projector doesn't turn off. 

  • User profile image
    Austin

    I got an error " Could not load file or assembly 'INuiInstanceHelper.dll' or one of its dependencies. The specified module could not be found." I am attempting a WinForms app, but it did the same, I also tried referencing the dll, and rebuilding - no luck.

  • User profile image
    Austin

    I got it. Needed SP1, If any errors occur Install SP1 from http://www.microsoft.com/download/en/details.aspx?id=23691

  • User profile image
    Clint

    @Austin: bet you had VS open while you did the install, restarting should fix this.  I've logged a bug with the team.

  • User profile image
    Tom_Anderson

    Just a note for a correction:

    using Coding4Fun.Kinect.WPF;

    Where it says WPF, actually Wpf should not be capitalized, it's really:

    using Coding4Fun.Kinect.Wpf;

    And don't forget to add the reference to the Coding4Fun .dll, which can be done (after downloading the .dll from codeplex) in the Solution Explorer by right clicking References>Add Reference>Browse.

  • User profile image
    Clint

    @Tom_Anderson: fixed

  • User profile image
    Clint
  • User profile image
    Flash

    Hi,
    Could you post the tutorial for C/C++?
    Thanks.

  • User profile image
    Kiira33

    J'ai un petit soucis. J'ai fait exactement comme cité en haut mais quand je veut générer, tout est blanc et rien n es'affiche. Pouvez-vous m'aidez s'il vous plait?

  • User profile image
    mamian

    I have done all the things as the page said, but when I debug the program, it always throw an exception which is said "An unhandled exception of type 'System.InvalidOperationException' occurred in Microsoft.Research.Kinect.dll

    Additional information: Failed in native DLL. HRESULT=0x80080014."

    I don't know why. And I can't run the demo(SkeletalViewer and the ShapeGame) which is contained in the SDK normally, everytime I double click it (with the kinect connected to the computer ) ,the computer must crashed and with no response, if I don't connect the computer with kinect, the demo can run , but with no picture.  I really want to know the reason, if I didnt install the SDK correctly or I didnt install the speech recognition correctly or something else ?

  • User profile image
    kAh00t

    Hey folks, I am getting this error here

    Error 1 Could not load file or assembly 'Coding4Fun.Kinect.Wpf, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515) C:\Users\kAh00t\AppData\Local\Temporary Projects\WpfApplication1\MainWindow.xaml 1 1 WpfApplication1

    and

    Error 2 System.IO.FileLoadException was thrown on "C:\Users\kAh00t\AppData\Local\Temporary Projects\WpfApplication1\MainWindow.xaml": Could not load file or assembly 'Coding4Fun.Kinect.Wpf, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515) C:\Users\kAh00t\AppData\Local\Temporary Projects\WpfApplication1\MainWindow.xaml 1 1 WpfApplication1

     

    when trying to follow this tutorial Sad

     

    any help or ideas as to why this may be happening would be very much appreciated!

     

    David

  • User profile image
    omarfuzzer

    ...

  • User profile image
    Rafael

    I had the same problem as kAh00t !!!!

    Error 1 Could not load file or assembly 'Coding4Fun.Kinect.Wpf, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515) C:\Users\kAh00t\AppData\Local\Temporary Projects\WpfApplication1\MainWindow.xaml 1 1 WpfApplication1

    and

    Error 2 System.IO.FileLoadException was thrown on "C:\Users\kAh00t\AppData\Local\Temporary Projects\WpfApplication1\MainWindow.xaml": Could not load file or assembly 'Coding4Fun.Kinect.Wpf, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515) C:\Users\kAh00t\AppData\Local\Temporary Projects\WpfApplication1\MainWindow.xaml 1 1 WpfApplication1

  • User profile image
    Faith

    That was really helpful.
    thank u so much.

  • User profile image
    Dan

    Could not find the closed event... why is it not available to me? Found the loaded event no problem.

  • User profile image
    inhak kim

    Is there any other language pack for this which is not american version ??

  • User profile image
    Fernando

    Hi, well I have a problem with this line in c#:

    if (Runtime.Kinects.Count == 0)
    {
    this.Title = "No Kinect connected";
    }

    The word Kinects has problem in the compilation, the problem says:
    Microsoft.kinect.nui.runtime does not mean contain a definition for Kinects

    Maybe you can help me

    Regards

  • User profile image
    MauroGiusti

    @Fernando:

    Fernando, this functionality is available on the beta 2 version only, you can download it at kinectforwindows.org

  • User profile image
    agusbean

    can i have 1 of the finished source code and the design of kinect application for my computer..???

  • User profile image
    ctre

    you should try making a video we can actually see. Its so distorted, i cant see what is on your screen.

  • User profile image
    ctre

    *edit* i mean the video streaming, some of these videos for download are 500mb's!

  • User profile image
    kendrick0772

    i already plug in my kinect device to the laptop.

    but when i debug the app, it appeared "no kinect connected".

    what is going on? hmmm....

  • User profile image
    kendrick0772

    by the way...forget to mention...the kinect works fine....just those kinect camera and sensor....

  • User profile image
    Angelo Graham

    This simply doesn't work on a windows 7 64 bit machine. My kinect is plugged into the wall with a working outlet. All of the devices are listed correctly in device manager. my computer understands that there is a kinect device connected. The Kinect API however does not. The static Microsoft.Research.Kinect.Nui.Runtime.Kinects call returns an empty KinectDeviceCollection (count = 0). Only the audio samples work. I do not now nor ever have had any other other kinect api(s) installed on this machine. also using vs2010 sp1 with .net 4.0. Any one have any ideas? Thanks in advance.

  • User profile image
    kendrick0772

    Angelo Graham,

    i've no idea too...haha

  • User profile image
    Nozue

    Now, running the risk of asking a really stupid question, what is this code supposed show on screen when a kinect is detected?

    I mean, when there's no kinect conected, it shows the sentence on the window title, just like it's decribed in the code. However, when the kinect is connected, I get an empty white screen. Is it correct?

     

  • User profile image
    AngeloGraham

    I had stated previously that "This simply doesn't work on a windows 7 64 bit machine."  I have since  installed the SDK on a Windows 7 64bit desktop.  I can now say it actaully does work and it is pretty cool.  I am still having trouble getting it to work on my laptop though.  I suspect there must be some sort of software or hardware conflict.  If I figure out the issue, I will post it here.  I dont know if it is related or not but the working computer lists only 1 device icon for the Kinect in the "Devices and Printer" view.  The non working environment lists four icons, one for each component (camera, device, hub, and USB composite device).

  • User profile image
    jeffery

    I got kinect working on 64-bit computer also on a laptop. Open ni drivers definitely cause conflict.

  • User profile image
    matt

    Hi,

    Whenever I try to follow this, or any other, tutorial I get the following issue:

    Any reference to Runtime.Kinects is underlined and the message is:
    "Kinects is not a member of Microsoft.Research.Kinect.Nui.Runtime"

    I also get this error when I download the project files from the website and try to run them.

    Please help.

    Thanks,
    Matt

  • User profile image
    John

    I have the same problem as Matt. No definition for Kinects

  • User profile image
    John

    Matt,

    You have to download beta2 from kinectforwindows.org

  • User profile image
    PsyokJ

    I actually have the same problem as Matt.
    All the Runtime stuff is all underlined red. My imports/usings have "exclaimation marks".

    I have installed everything and still dont work.

  • User profile image
    Choiy

    Quick question..do I need to calibrate first before the head is detected? Is it possible to only detect the upper body and get the skeleton?

  • User profile image
    Amizzy55

    Ok, im new at all this. but im trying to learn. so when i put all of this in and fix all of the errors, i go to run it. and all i get is a blank white window. how can i fix this? heres my exact imput:

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Windows;
    using System.Windows.Controls;
    using System.Windows.Data;
    using System.Windows.Documents;
    using System.Windows.Input;
    using System.Windows.Media;
    using System.Windows.Media.Imaging;
    using System.Windows.Navigation;
    using System.Windows.Shapes;
    using Microsoft.Research.Kinect.Audio;
    using Microsoft.Research.Kinect.Nui;


    namespace WpfApplication1
    {
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
    public MainWindow()
    {
    InitializeComponent();
    }

    Runtime nui = new Runtime();
    private void Window_Loaded(object sender, RoutedEventArgs e)
    {
    nui.Initialize(RuntimeOptions.UseColor);
    }

    private void Window_Closed(object sender, EventArgs e)
    {
    nui.Uninitialize();
    }
    }
    }

  • User profile image
    g33k

    I'm having a problem with adding the c4f CodePlex dll references.  As mentioned multiple times in the above posts, I browse to the DLL's but it doesn't show up on the list of other references.  

    I think the problem may be because I'm using Visual Studio 11 Preview on Windows 8.  Is this a known issue?  How do I add references in VS11?  Or is it better if I stick with the rest of the crowd and revert back to 2010?

    EDIT:  Once I browse for a reference DLL file, it automatically adds it to the project - it doesn't show up on the "Reference Manager" window as shown in the video.  

  • User profile image
    Steven

    my kinect is already connected but when i run the program only shows a white window. Help me.

  • User profile image
    steven

    @Nozue do you find a solution? i got the same window.

  • User profile image
    Ryan Gabriele

    All of the demo's that come with it work awesomely for me, and I've been having a lot of fun working with the camera in my own apps.

    I'm trying to get into working with some of the Speech stuff though and I'm having a lot of trouble. I know my Speech libraries are installed properly because I can build and run the ShapeGame demo that has a Microsoft.Speech dependency. However, when I try and add that as a reference to my own project, I can't find it anywhere.

    What am I doing wrong?

  • User profile image
    JazzCoder

    I've installed the kinect sdk correctly but I can't find the refference "Windows.Reaserch.Kinect"? Please help me.

  • User profile image
    homm

    i have teh same problem. I can't find the microsoft.research.kinect. pls help

  • User profile image
    Digi

    Same can't find microsoft.research anywhere, please help

  • User profile image
    amiem

    Hello,
    I have the same pb, cannot find microsoft.research anywhere...
    Thanks for any help :)

  • User profile image
    amiem

    Hello, I found it finally I had to uninstall the kinect version 1.0 that i had, and install the 1.0-Beta version, then just refer to it from the "references" tab under the project.
    I have another question, hope someone can help : I have a reference to microsoft.Kinect but it is marqued by an exlamation point (that means I have to refer to it) but I can't have Microsoft.Kinect anymore since I uninstalled the version I had, also I don't think both versions can cohabitate...
    Thanks

  • User profile image
    Derek

    Hi, I too cannot find the Microsoft.Research.Kinect reference. I don't want to be installing Beta versions if I can help it.
    Is there a resolution yet?

  • User profile image
    G1E2G3

    This tutorial is out of date -- the link at the top sends you to the new Kinect Quickstart quide. The current version of the Kinect SDK uses the Microsoft.Kinect namespace, however the API has changed, so do see: https://channel9.msdn.com/Series/KinectQuickstart.

  • User profile image
    eva22

    Hican any one help me.... I cannot find the Microsoft.Research.Kinect reference

    Thanks in advance !

  • User profile image
    Kat

    http://code.google.com/p/theforceteam-1073/downloads/detail?name=Microsoft.Research.Kinect.dll&can=2&q=


    Go to this website and download the Microsoft.Research.kinect.dll.

    Put it in your C:\Program Files\Microsoft SDKs\Kinect\v1.5\Assemblies
    Restart your VB application and then you can find the above mentioned reference..

  • User profile image
    Kat

    Can anyone help me with the details that I have the data captured(video files and depth data detail files) for the working but I don't have Kinect currently with me. In a nutshell I want to work on the captured data files offline..What should I do to open file in C#???

  • User profile image
    eva

    can any one help me
    i cant download microsoft Direct SDK(jun2012) at the end it show
    error message that said : there is a problem preventing your installation from continuing , error code s0123
    i have tried other computers and the the same error apear each time !

Add Your 2 Cents