none
Error {"Method not found: 'Single Microsoft.Kinect.PointF.get_X()'."} FaceBasics-WPF version 1409 Sept 2014 RRS feed

  • Question

  • trying to get Face Demo working with V2 Kinect simple tracking.

    {"Method not found: 'Single Microsoft.Kinect.PointF.get_X()'."}

    AT this point in the code:

                        if (this.ValidateFaceBoxAndPoints(faceFrame.FaceFrameResult))

    stack trace:

    System.MissingMethodException was unhandled
      _HResult=-2146233069
      _message=Method not found: 'Single Microsoft.Kinect.PointF.get_X()'.
      HResult=-2146233069
      IsTransient=false
      Message=Method not found: 'Single Microsoft.Kinect.PointF.get_X()'.
      Source=FaceBasics-WPF
      StackTrace:
           at Microsoft.Samples.Kinect.FaceBasics.MainWindow.ValidateFaceBoxAndPoints(FaceFrameResult faceResult)
           at Microsoft.Samples.Kinect.FaceBasics.MainWindow.Reader_FaceFrameArrived(Object sender, FaceFrameArrivedEventArgs e) in c:\Users\macphek\Downloads\Kinect1409\FaceBasics-WPF\MainWindow.xaml.cs:line 391
           at ContextEventHandler`1.SendOrPostDelegate(Object state)
           at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
           at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
           at System.Windows.Threading.DispatcherOperation.InvokeImpl()
           at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
           at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
           at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
           at System.Windows.Threading.DispatcherOperation.Invoke()
           at System.Windows.Threading.Dispatcher.ProcessQueue()
           at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
           at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
           at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
           at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
           at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
           at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
           at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
           at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
           at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
           at System.Windows.Application.RunInternal(Window window)
           at System.Windows.Application.Run()
           at Microsoft.Samples.Kinect.FaceBasics.App.Main() 


    Ken

    Tuesday, September 23, 2014 3:12 AM

Answers

  • are you running an NVidia based GPU? Are you getting IR data? Run the Infrared Basics samples and ensure you are getting an image there. If not, you need to download your NVidia drivers.

    Carmine Sirignano - MSFT

    • Marked as answer by Ken MacPherson Wednesday, October 22, 2014 2:23 PM
    Monday, September 29, 2014 4:35 PM

All replies

  • Check the dll references if they match with the SDK version.

    If you are running public 1409 then the dll reference should point to 1409 location.

     
    Tuesday, September 23, 2014 6:24 AM
  • Are you running the sample from the SDK browser or something you copied from a previous SDK. You need to ensure the database and .dll's are copied(from redist) to the .exe folder.

    Carmine Sirignano - MSFT

    Tuesday, September 23, 2014 6:36 PM
  • I'm able to run the SDK samples for Face from the SDK Browser.

    * Face Basics-WPF says "No bodies or faces are tracked ..."
    * Face Basics-D2D has the video running "FPS=30.00 Time = 450669543"  It doesn't track my face or doing anything but basically show me a video.

    Used Nuget to make sure the packages were correct version.

    Should we  be using the x64 or x86 version of faces?
    PM> Install-Package Microsoft.Kinect.Face.x64  -Pre

    Each package is licensed to you by its owner. Microsoft is not responsible for, nor does it grant any licenses to, third-party packages. Some packages may include dependencies which are governed by additional licenses. Follow the package source (feed) URL to determine any dependencies.
    
    Package Manager Console Host Version 2.8.50313.46
    
    Type 'get-help NuGet' to see all available NuGet commands.
    
    PM> Install-Package Microsoft.Kinect -Pre 
    'Microsoft.Kinect 2.0.1409-publicpreview-10000' already installed.
    Adding 'Microsoft.Kinect 2.0.1409-publicpreview-10000' to FaceBasics-WPF.
    Successfully added 'Microsoft.Kinect 2.0.1409-publicpreview-10000' to FaceBasics-WPF.
    
    PM> Install-Package Microsoft.Kinect.Wpf.Controls -Pre
    Attempting to resolve dependency 'Microsoft.Kinect (≥ 2.0)'.
    'Microsoft.Kinect.Wpf.Controls 2.0.1409-publicpreview-10000' already installed.
    Adding 'Microsoft.Kinect.Wpf.Controls 2.0.1409-publicpreview-10000' to FaceBasics-WPF.
    File Conflict
    File 'HandPointers\HandPointerStyles.xaml' already exists in project 'FaceBasics-WPF'. Do you want to overwrite it?
    [Y] Yes  [A] Yes to All  [N] No  [L] No to All  [?] Help (default is "N"):A
    Overwrite existing file 'HandPointers\HandPointerStyles.xaml'.
    Successfully added 'Microsoft.Kinect.Wpf.Controls 2.0.1409-publicpreview-10000' to FaceBasics-WPF.
    
    PM> Install-Package Microsoft.Kinect.Face -Pre 
    Attempting to resolve dependency 'Microsoft.Kinect (≥ 2.0)'.
    'Microsoft.Kinect.Face 2.0.1409-publicpreview-10000' already installed.
    Adding 'Microsoft.Kinect.Face 2.0.1409-publicpreview-10000' to FaceBasics-WPF.
    File Conflict
    File 'NuiDatabase\HDFaceTracker\WholeHeadModel\fullMeanHead60_tri.ply' already exists in project 'FaceBasics-WPF'. Do you want to overwrite it?
    [Y] Yes  [A] Yes to All  [N] No  [L] No to All  [?] Help (default is "N"):A
    Overwrite existing file 'NuiDatabase\HDFaceTracker\WholeHeadModel\fullMeanHead60_tri.ply'.
    Overwrite existing file 'NuiDatabase\HDFaceTracker\WholeHeadModel\FullHeadMaskVertexCorrespondence.txt'.
    Overwrite existing file 'NuiDatabase\HDFaceTracker\ViewModel\right.p.txt'.
    Overwrite existing file 'NuiDatabase\HDFaceTracker\ViewModel\right.mod.bin'.
    Overwrite existing file 'NuiDatabase\HDFaceTracker\ViewModel\left.p.txt'.
    Overwrite existing file 'NuiDatabase\HDFaceTracker\ViewModel\left.mod.bin'.
    Overwrite existing file 'NuiDatabase\HDFaceTracker\ViewModel\front.p.txt'.
    Overwrite existing file 'NuiDatabase\HDFaceTracker\ViewModel\front.mod.bin'.

    Ohhh, so NuGet does the trick, that it compiles but does not play the FaceBasics-WPF

    but I'm still getting an empty screen says "No bodies or faces are tracked ..."

    At least I'm not getting an error.

    Do you want me to close this one and create a new forum post or can we continue on this one?


    Ken

    Wednesday, September 24, 2014 6:53 PM
  • Download and install this one :: link.

    Thursday, September 25, 2014 9:14 AM
  • are you running an NVidia based GPU? Are you getting IR data? Run the Infrared Basics samples and ensure you are getting an image there. If not, you need to download your NVidia drivers.

    Carmine Sirignano - MSFT

    • Marked as answer by Ken MacPherson Wednesday, October 22, 2014 2:23 PM
    Monday, September 29, 2014 4:35 PM