Hello,
I tried to extract the gist of gesture recognition sample and created a new console application... below is the main method:
but pipe line doesn't initiate (i.e. pp.init() returns false see below) ... what could be the issue... anyone please help... ASAP!!
Thanks in advance
class Program
{
public static PXCMGesture.GeoNode[][] nodes = new PXCMGesture.GeoNode[2][] { new PXCMGesture.GeoNode[11], new PXCMGesture.GeoNode[11] };
public static PXCMGesture.Gesture[] gestures = new PXCMGesture.Gesture[2];
static void Main(string[] args)
{
Console.WriteLine("Gesture demo");UtilMPipeline pp = null;
pp = new UtilMPipeline();
pp.QueryCapture().SetFilter("DepthSense Device 325V2");
pp.EnableGesture("Hand/Finger Tracking and Gesture Recognition");
if (pp.Init())
{
Console.WriteLine("Streaming from camera");
long i = 0L;
while (i < 100000000)
{
if (!pp.AcquireFrame(true)) break;
if (!(pp.IsDisconnected()))
{
/* Display Results */
PXCMGesture gesture = pp.QueryGesture();
PXCMImage depth = pp.QueryImage(PXCMImage.ImageType.IMAGE_TYPE_DEPTH);
//DisplayPicture(depth, gesture); Used to display picture bitmap from BLOB
DisplayGeoNodes(gesture);
DisplayGesture(gesture);
}
pp.ReleaseFrame();
}
}
Hello,
I tried to extract the gist of gesture recognition sample and created a new console application... below is the main method:
but pipe line doesn't initiate (i.e. pp.init() returns false see below) ... what could be the issue... anyone please help... ASAP!!
Thanks in advance
class Program
{
public static PXCMGesture.GeoNode[][] nodes = new PXCMGesture.GeoNode[2][] { new PXCMGesture.GeoNode[11], new PXCMGesture.GeoNode[11] };
public static PXCMGesture.Gesture[] gestures = new PXCMGesture.Gesture[2];
static void Main(string[] args)
{
Console.WriteLine("Gesture demo");UtilMPipeline pp = null;
pp = new UtilMPipeline();
pp.QueryCapture().SetFilter("DepthSense Device 325V2");
pp.EnableGesture("Hand/Finger Tracking and Gesture Recognition");
if (pp.Init())
{
Console.WriteLine("Streaming from camera");
long i = 0L;
while (i < 100000000)
{
if (!pp.AcquireFrame(true)) break;
if (!(pp.IsDisconnected()))
{
/* Display Results */
PXCMGesture gesture = pp.QueryGesture();
PXCMImage depth = pp.QueryImage(PXCMImage.ImageType.IMAGE_TYPE_DEPTH);
//DisplayPicture(depth, gesture); Used to display picture bitmap from BLOB
DisplayGeoNodes(gesture);
DisplayGesture(gesture);
}
pp.ReleaseFrame();
}
}