none
Visual Gesture Builder - invalid id and unable to detect the gesture from the .gbd file RRS feed

  • Question

  • Hi

    I am using Visual Gesture Builder to create the gesture called swipe left using right hand. I created the .gbd file. And I tried to read it in c++. I followed the samples in the following 2 links.

    https://github.com/KHeresy/KinectForWindows2Sample/blob/v2-naming/Gesture/01_Simple/SimpleGesture.cpp

    https://kheresy.wordpress.com/2015/09/04/vgb-cpp-api/

    I created the database. I got the gesture type, count, name. I created the vgb source, reader. After that once the body is detected I am unable to get the valid id from .gbd file and at the same time am unable to detect the gesture and confidence also. Without getting anything from the vgb frame I can't process it. So what is the reason or where is the problem? 

    Can anyone help me?

    Thanks in advance

    Saturday, April 23, 2016 10:50 AM

All replies

  • Hi 

    Finally I found the answer. There was a problem in memory allocation. Memory leakage was there. So initialixation of vgb frame soure, vgb frame reader and vgb database should be done separately to initialize only once. Other processes like getting available gestures, adding gestures, reading vgb frame, detecting gestures can be done once the body is detected. Now my program works perfectly to read the .gbd file and able to detect the gesture. But it works fine for the single gesture in a database. But when there is multiple gestures it detects the gestures. But sometimes it fails to detect the gesture, sometimes it detects anyone gesture. I don't know the reason and I don't know how to differentiate with multiple gestures when a particular gesture is detected and I can know this gesture is detected so..

    Can any one help me?

    Thanks in advance

    Friday, May 6, 2016 7:29 AM