Coffeehouse Thread

6 posts

Forum Read Only

This forum has been made read only by the site admins. No new threads or comments can be added.

kinect face tracking tutorial

Back to Forum: Coffeehouse
  • User profile image
    smtabatabaie

    hi , this is my first post here . I've got some ideas to use face tracking feature in 1.5 sdk . but there isn't any good tutorial about using it's features , in sdk 1.0 Dan's tutorials was really great and could give you some great knowledge to start your work but I didn't find any good tutorials on 1.5 sdk . the best I've found was in this blog : http://www.renauddumont.be/en/2012/kinect-sdk-1-5-face-tracking-en-csharp

    which the sample didn't work for me and gave me this error : "'The invocation of the constructor on type 'AwesomeFaceTracking.MainWindow' that matches the specifed binding constraints threw an expection.'Line number '3′ and line position '9′."

    anyone knows any good tutorial on how to get started in face tracking in c# ? 

    thanks so much

  • User profile image
    Dan

    Thanks for the shoutout Smiley I did a very basic Face Tracking demo for TechEd Europe that shows how to rotate an image based on the rotation of your face - http://channel9.msdn.com/Events/TechEd/Europe/2012/DEV330#time=56m55s The sample is also included as well. Hope this helps,

     

    -Dan

  • User profile image
    smtabatabaie

    thanks so much Dan , that video was as always really great for me cause I hadn't been programming kinect in last 4 months and that video did a really great job on refreshing my mind. I tried to simply pass the colorImage and Depth and skeleton values to my FaceTrackFrame variable . but as soon as I try to pass the sensor to my faceTracker ( i mean like faceTracker = new FaceTracker(newSensor) ) I get this exception error which I haven't been able to solve in the past 15hours :

    "Could not load file or assembly 'Microsoft.Kinect.Toolkit.FaceTracking, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. An attempt was made to load a program with an incorrect format."

    I searched and it seems like it's cause I have x64 windows ...

    I'll be appreciated if someone can help me with this.

    thanks

  • User profile image
    smtabatabaie

    ok I think I solved that , in solution explorer I should have opened solution properties and in configuration manager I should have changed every project to x64 , and then copy two dll files from 

    C:\Program Files\Microsoft SDKs\Kinect\Developer Toolkit v1.5.0\Redist\amd64 directory to my

    bin\x64\Debug directory

    and that solved that exception

    oh thank god I gotta sleep Smiley

  • User profile image
    Dan

    @smtabatabaie: Yes, that's one of the issues is you have to make sure that the libraries are in the right place, meaning \bin\debug so that the files actually load. It's a bit unintuitive since you would assume everything is included when you reference the library, but you do have to manually set that path. Just glad you figured it out already Smiley

  • User profile image
    smtabatabaie

    Thanks Dan , the other thing is I didn't find any documentation on face tracking feature in sdk 1.5 . the best I found was in this page : http://msdn.microsoft.com/en-us/library/jj130970.aspx 

    which is mostly in C++ . and for example if I want to have the 2D position of nose I don't know what  method in FaceTrackFrame object I should use . or which point number is which element in face . I'll be appreciated if you can reference me something which covers those things . 

    thank you so much

Conversation locked

This conversation has been locked by the site admins. No new comments can be made.