none
Kinect V2 Gesture Name in .gdb file RRS feed

  • Question

  • I have created one .gbd file with continuous gesture which working with Live Analysis. I need to integrate with the VC++ program but I can not read the name of the gesture.

    I have added Kinect.VisualGestureBuilder.h & copied Kinect.VisualGestureBuilder.lib and the vgbtechs in the output folder.

    #include "stdafx.h"
    #include <Kinect.h>
    #include <Kinect.VisualGestureBuilder.h>
    
    int main()
    {
    
        IVisualGestureBuilderDatabase *database = nullptr; 
        HRESULT hr = CreateVisualGestureBuilderDatabaseInstanceFromFile(L"D:/GestureDB/SwingLeft.gbd", &database);
        if (SUCCEEDED(hr)) OutputDebugString(L"database created \n "); 
        IGesture **gestures = new IGesture*[3]; 
        hr = database->get_AvailableGestures(1, gestures);
        if (SUCCEEDED(hr)) OutputDebugString(L"Gesture available\n ");
    
        WCHAR name[200];
        gestures[0]->get_Name(200, name);
        OutputDebugString(name); // Blank 
        return 0;
    }

    Can anyone help me to solve this.

    Thanks in advance !!

    Wednesday, May 25, 2016 6:31 AM