Finger Tracking C#

Finger Tracking C#

Hello,
I am trying to get the finger coordinates for an application i am building in C#. When I execute the below code, it returns a rediculous value such as 2.01 and does not vary with position of your hand or finger. I need to track multiple fingers.

CODE:

private void bridge()
{
pipeline = new UtilMPipeline();
pipeline.EnableGesture();
pipeline.EnableVoiceRecognition();

if (pipeline.Init())
{
while (1 == 1)
{
if (!pipeline.AcquireFrame(true)) break;
else
{

var gstr = pipeline.QueryGesture();
//Geonodes(gstr);
Gestures(gstr);
}
}
}
}

 

private void Geonodes(PXCMGesture gesture)
{

PXCMGesture.GeoNode[] nodeData = new PXCMGesture.GeoNode[6];

PXCMGesture.GeoNode singleNode;
var status = gesture.QueryNodeData(0, PXCMGesture.GeoNode.Label.LABEL_BODY_HAND_PRIMARY, out singleNode);
if (status >= pxcmStatus.PXCM_STATUS_NO_ERROR)
{
this.Invoke(new MethodInvoker(delegate
{
label1.Text = node.positionImage.x.ToString();
}));
}
}

2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

Please see the sample under C:\Program Files (x86)\Intel\PCSDK\framework\CSharp\gesture_viewer.cs

Leave a Comment

Please sign in to add a comment. Not a member? Join today