Software Archive
Read-only legacy content
17061 Discussions

C# SIMPLE example of Creating and register a gesture handler.

LeRoy_G_
Beginner
466 Views

HI all I would like a simple full C# example on how to handle OnFiredGesture. All I want is to get the "fist" , "spreadfingers" and "v_sign" gestures , Nothing else :) .NB:  I'm using the F200 camera

The documentation is not clear on how to implement it.

pxcmStatus OnModuleProcessedFrame(Int32 mid, PXCMBase module, PXCMCapture.Sample sample) {
   // check if the callback is from the hand tracking module
   if (mid==PXCMHandModule.CUID) {
       // Retrieve the current hand data
       handData.Update();
       // Process hand data
   }
   // return NO_ERROR to continue, or any error to abort
   return pxcmStatus.PXCM_STATUS_NO_ERROR;

}

 

Thanks

0 Kudos
2 Replies
Xusheng_L_Intel
Employee
466 Views

You can find the sample codes @https://software.intel.com/sites/landingpage/realsense/camera-sdk/v1.1/documentation/html/manuals_handling_gestures.html under "Creating and Registering a Gesture Handler". Thanks!

0 Kudos
LeRoy_G_
Beginner
466 Views

David Lu (Intel) wrote:

You can find the sample codes @https://software.intel.com/sites/landingpage/realsense/camera-sdk/v1.1/d... under "Creating and Registering a Gesture Handler". Thanks!

 

Hi Thanks for the reply... that's actually where I found the sample code in my question :\ ... I realised the C# example is incorrect. I guess I will have to wait until they fix it or use the java example and convert it into C#

0 Kudos
Reply